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
+12 -2
View File
@@ -15,12 +15,22 @@
/// Types of graphs
enum GraphType
{ GRAPH_TYPE_BAR
, GRAPH_TYPE_PIE
{ GRAPH_TYPE_PIE
, GRAPH_TYPE_BAR
, GRAPH_TYPE_STACK
, GRAPH_TYPE_SCATTER
, GRAPH_TYPE_SCATTER_PIE
};
/// Dimensions for each graph type
inline size_t dimensionality(GraphType type) {
if (type == GRAPH_TYPE_PIE) return 1;
if (type == GRAPH_TYPE_BAR) return 1;
if (type == GRAPH_TYPE_STACK) return 2;
if (type == GRAPH_TYPE_SCATTER) return 2;
if (type == GRAPH_TYPE_SCATTER_PIE) return 3;
else return 0;
}
// ----------------------------------------------------------------------------- : EOF
#endif