mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-11 13:17:00 -04:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user