From ed336dea068e7466ae89bad2caacc46b939bcb20 Mon Sep 17 00:00:00 2001 From: twanvl Date: Sun, 19 Nov 2006 18:59:33 +0000 Subject: [PATCH] Added GraphControl; FilteredCardList; ValueEditor git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@74 0fc631ac-6414-0410-93d0-97cfa31319b6 --- src/data/set.hpp | 1 + src/data/stylesheet.hpp | 2 +- src/data/symbol_font.cpp | 93 ++++++++++++++ src/data/symbol_font.hpp | 37 ++++-- src/gui/control/card_editor.cpp | 9 ++ src/gui/control/card_editor.hpp | 5 + src/gui/control/card_list.cpp | 5 +- src/gui/control/card_list.hpp | 12 +- src/gui/control/card_viewer.cpp | 10 +- src/gui/control/filtered_card_list.cpp | 37 ++++++ src/gui/control/filtered_card_list.hpp | 52 ++++++++ src/gui/control/gallery_list.hpp | 3 + src/gui/control/graph.cpp | 39 ++++++ src/gui/control/graph.hpp | 161 +++++++++++++++++++++++++ src/gui/control/package_list.hpp | 5 +- src/gui/set/cards_panel.cpp | 1 + src/gui/set/cards_panel.hpp | 2 - src/gui/set/set_info_panel.cpp | 7 +- src/gui/set/stats_panel.cpp | 47 +++++++- src/gui/set/stats_panel.hpp | 10 ++ src/gui/set/window.cpp | 6 +- src/gui/value/editor.cpp | 11 ++ src/gui/value/editor.hpp | 106 ++++++++++++++++ src/mse.vcproj | 22 +++- src/render/card/viewer.hpp | 1 + src/render/text/element.cpp | 39 +++--- src/render/text/element.hpp | 37 +++--- src/render/text/font.cpp | 8 +- src/render/text/line.cpp | 11 +- src/render/text/symbol.cpp | 6 +- src/render/text/viewer.cpp | 2 +- 31 files changed, 705 insertions(+), 82 deletions(-) create mode 100644 src/gui/control/filtered_card_list.cpp create mode 100644 src/gui/control/filtered_card_list.hpp create mode 100644 src/gui/control/graph.cpp create mode 100644 src/gui/control/graph.hpp create mode 100644 src/gui/value/editor.cpp create mode 100644 src/gui/value/editor.hpp diff --git a/src/data/set.hpp b/src/data/set.hpp index 6710cee1..7bbfad82 100644 --- a/src/data/set.hpp +++ b/src/data/set.hpp @@ -65,6 +65,7 @@ class Set : public Packaged { void updateFor(const CardP& card); /// Stylesheet to use for a particular card + /** card may be null */ StyleSheetP stylesheetFor(const CardP& card); /// Styling information for a particular stylesheet diff --git a/src/data/stylesheet.hpp b/src/data/stylesheet.hpp index e7f04303..7d8f56ba 100644 --- a/src/data/stylesheet.hpp +++ b/src/data/stylesheet.hpp @@ -51,7 +51,7 @@ class StyleSheet : public Packaged { static StyleSheetP byGameAndName(const Game& game, const String& name); /// name of the package without the game name String stylesheetName() const; - + static String typeNameStatic(); virtual String typeName() const; virtual String fullName() const; diff --git a/src/data/symbol_font.cpp b/src/data/symbol_font.cpp index eb8fde85..d8c88ee1 100644 --- a/src/data/symbol_font.cpp +++ b/src/data/symbol_font.cpp @@ -7,8 +7,96 @@ // ----------------------------------------------------------------------------- : Includes #include +#include +#include +#include