Added toolbar and menu for switching between graph layouts

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@914 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
twanvl
2008-05-31 20:15:21 +00:00
parent 44fd9dbb42
commit 78e154c481
9 changed files with 149 additions and 14 deletions
+6 -1
View File
@@ -305,7 +305,7 @@ class GraphControl : public wxControl {
GraphControl(Window* parent, int id);
/// Set the type of graph used, from a number of predefined choices
void setLayout(GraphType type);
void setLayout(GraphType type, bool force_refresh = false);
/// Update the data in the graph
void setData(const GraphDataPre& data);
/// Update the data in the graph
@@ -316,6 +316,11 @@ class GraphControl : public wxControl {
/// Get the current item along the given axis
String getSelection(size_t axis) const;
/// Get the current layout
GraphType getLayout() const;
/// Get the current dimensionality
size_t getDimensionality() const;
private:
/// Graph object
GraphP graph;