mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-12 13:37:00 -04:00
All three dimensions on stats panel in a single multicolumn list
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1040 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
@@ -11,6 +11,7 @@
|
||||
|
||||
#include <util/prec.hpp>
|
||||
#include <gui/set/panel.hpp>
|
||||
#include <data/graph_type.hpp>
|
||||
|
||||
class StatCategoryList;
|
||||
class StatDimensionList;
|
||||
@@ -18,6 +19,10 @@ class GraphControl;
|
||||
class FilteredCardList;
|
||||
class IconMenu;
|
||||
|
||||
// Pick the style here:
|
||||
#define USE_DIMENSION_LISTS 1
|
||||
#define USE_SEPARATE_DIMENSION_LISTS 0
|
||||
|
||||
// ----------------------------------------------------------------------------- : StatsPanel
|
||||
|
||||
/// A panel for showing statistics on cards
|
||||
@@ -44,8 +49,13 @@ class StatsPanel : public SetWindowPanel {
|
||||
private:
|
||||
DECLARE_EVENT_TABLE();
|
||||
|
||||
StatCategoryList* categories;
|
||||
StatDimensionList* dimensions[3];
|
||||
#if USE_SEPARATE_DIMENSION_LISTS
|
||||
StatDimensionList* dimensions[3];
|
||||
#elif USE_DIMENSION_LISTS
|
||||
StatDimensionList* dimensions;
|
||||
#else
|
||||
StatCategoryList* categories;
|
||||
#endif
|
||||
GraphControl* graph;
|
||||
FilteredCardList* card_list;
|
||||
IconMenu* menuGraph;
|
||||
@@ -55,7 +65,8 @@ class StatsPanel : public SetWindowPanel {
|
||||
|
||||
void onChange();
|
||||
void onGraphSelect(wxCommandEvent&);
|
||||
void showCategory();
|
||||
void showCategory(const GraphType* prefer_layout = nullptr);
|
||||
void showLayout(GraphType);
|
||||
void filterCards();
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user