mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 04:57:00 -04:00
Remove DECLARE_TYPEOF
It is no longer needed since C++11
This commit is contained in:
@@ -16,8 +16,6 @@
|
|||||||
#include <wx/process.h>
|
#include <wx/process.h>
|
||||||
#include <wx/wfstream.h>
|
#include <wx/wfstream.h>
|
||||||
|
|
||||||
DECLARE_TYPEOF_COLLECTION(ScriptParseError);
|
|
||||||
|
|
||||||
String read_utf8_line(wxInputStream& input, bool until_eof = false);
|
String read_utf8_line(wxInputStream& input, bool until_eof = false);
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------- : Command line interface
|
// ----------------------------------------------------------------------------- : Command line interface
|
||||||
@@ -242,7 +240,6 @@ void CLISetInterface::handleCommand(const String& command) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#if USE_SCRIPT_PROFILING
|
#if USE_SCRIPT_PROFILING
|
||||||
DECLARE_TYPEOF_COLLECTION(FunctionProfileP);
|
|
||||||
void CLISetInterface::showProfilingStats(const FunctionProfile& item, int level) {
|
void CLISetInterface::showProfilingStats(const FunctionProfile& item, int level) {
|
||||||
// show parent
|
// show parent
|
||||||
if (level == 0) {
|
if (level == 0) {
|
||||||
|
|||||||
@@ -15,8 +15,6 @@
|
|||||||
#include <util/tagged_string.hpp>
|
#include <util/tagged_string.hpp>
|
||||||
#include <util/error.hpp>
|
#include <util/error.hpp>
|
||||||
|
|
||||||
DECLARE_TYPEOF_COLLECTION(KeywordModeP);
|
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------- : Add Keyword
|
// ----------------------------------------------------------------------------- : Add Keyword
|
||||||
|
|
||||||
AddKeywordAction::AddKeywordAction(Set& set)
|
AddKeywordAction::AddKeywordAction(Set& set)
|
||||||
|
|||||||
@@ -22,7 +22,6 @@
|
|||||||
|
|
||||||
class Set;
|
class Set;
|
||||||
DECLARE_POINTER_TYPE(Keyword);
|
DECLARE_POINTER_TYPE(Keyword);
|
||||||
DECLARE_TYPEOF_COLLECTION(GenericAddAction<KeywordP>::Step);
|
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------- : Add Keyword
|
// ----------------------------------------------------------------------------- : Add Keyword
|
||||||
|
|
||||||
|
|||||||
@@ -14,11 +14,6 @@
|
|||||||
#include <data/stylesheet.hpp>
|
#include <data/stylesheet.hpp>
|
||||||
#include <util/error.hpp>
|
#include <util/error.hpp>
|
||||||
|
|
||||||
DECLARE_TYPEOF_COLLECTION(IndexMap<FieldP COMMA ValueP>);
|
|
||||||
DECLARE_TYPEOF_COLLECTION(CardP);
|
|
||||||
DECLARE_TYPEOF_COLLECTION(PackTypeP);
|
|
||||||
DECLARE_TYPEOF_COLLECTION(int);
|
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------- : Add card
|
// ----------------------------------------------------------------------------- : Add card
|
||||||
|
|
||||||
AddCardAction::AddCardAction(Set& set)
|
AddCardAction::AddCardAction(Set& set)
|
||||||
|
|||||||
@@ -24,8 +24,6 @@ DECLARE_POINTER_TYPE(StyleSheet);
|
|||||||
DECLARE_POINTER_TYPE(Field);
|
DECLARE_POINTER_TYPE(Field);
|
||||||
DECLARE_POINTER_TYPE(Value);
|
DECLARE_POINTER_TYPE(Value);
|
||||||
DECLARE_POINTER_TYPE(PackType);
|
DECLARE_POINTER_TYPE(PackType);
|
||||||
DECLARE_TYPEOF_COLLECTION(GenericAddAction<CardP>::Step);
|
|
||||||
DECLARE_TYPEOF_COLLECTION(GenericAddAction<PackTypeP>::Step);
|
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------- : Add card
|
// ----------------------------------------------------------------------------- : Add card
|
||||||
|
|
||||||
|
|||||||
@@ -11,12 +11,6 @@
|
|||||||
#include <data/action/symbol_part.hpp>
|
#include <data/action/symbol_part.hpp>
|
||||||
#include <util/error.hpp>
|
#include <util/error.hpp>
|
||||||
|
|
||||||
DECLARE_TYPEOF_COLLECTION(pair<SymbolShapeP COMMA SymbolShapeCombine>);
|
|
||||||
DECLARE_TYPEOF_COLLECTION(pair<SymbolPartP COMMA size_t >);
|
|
||||||
DECLARE_TYPEOF_COLLECTION(RemoveSymbolPartsAction::Removal);
|
|
||||||
DECLARE_TYPEOF_COLLECTION(SymbolPartP);
|
|
||||||
DECLARE_TYPEOF_COLLECTION(ControlPointP);
|
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------- : Utility
|
// ----------------------------------------------------------------------------- : Utility
|
||||||
|
|
||||||
String action_name_for(const set<SymbolPartP>& parts, const String& action) {
|
String action_name_for(const set<SymbolPartP>& parts, const String& action) {
|
||||||
|
|||||||
@@ -10,9 +10,6 @@
|
|||||||
#include <data/action/symbol_part.hpp>
|
#include <data/action/symbol_part.hpp>
|
||||||
#include <gfx/bezier.hpp>
|
#include <gfx/bezier.hpp>
|
||||||
|
|
||||||
DECLARE_TYPEOF_COLLECTION(Vector2D);
|
|
||||||
DECLARE_TYPEOF_COLLECTION(ControlPointP);
|
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------- : Utility
|
// ----------------------------------------------------------------------------- : Utility
|
||||||
|
|
||||||
inline double sgn(double v) { return v > 0 ? 1 : -1; }
|
inline double sgn(double v) { return v > 0 ? 1 : -1; }
|
||||||
@@ -384,7 +381,6 @@ void SinglePointRemoveAction::perform(bool to_undo) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
DECLARE_POINTER_TYPE(SinglePointRemoveAction);
|
DECLARE_POINTER_TYPE(SinglePointRemoveAction);
|
||||||
DECLARE_TYPEOF_COLLECTION(SinglePointRemoveActionP);
|
|
||||||
|
|
||||||
|
|
||||||
// Remove a set of points from a symbol shape.
|
// Remove a set of points from a symbol shape.
|
||||||
|
|||||||
@@ -15,9 +15,6 @@
|
|||||||
#include <util/reflect.hpp>
|
#include <util/reflect.hpp>
|
||||||
#include <util/delayed_index_maps.hpp>
|
#include <util/delayed_index_maps.hpp>
|
||||||
|
|
||||||
DECLARE_TYPEOF_COLLECTION(FieldP);
|
|
||||||
DECLARE_TYPEOF_NO_REV(IndexMap<FieldP COMMA ValueP>);
|
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------- : Card
|
// ----------------------------------------------------------------------------- : Card
|
||||||
|
|
||||||
Card::Card()
|
Card::Card()
|
||||||
|
|||||||
@@ -19,8 +19,6 @@
|
|||||||
#include <data/field/package_choice.hpp>
|
#include <data/field/package_choice.hpp>
|
||||||
#include <util/error.hpp>
|
#include <util/error.hpp>
|
||||||
|
|
||||||
DECLARE_TYPEOF_COLLECTION(StyleListener*);
|
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------- : Field
|
// ----------------------------------------------------------------------------- : Field
|
||||||
|
|
||||||
Field::Field()
|
Field::Field()
|
||||||
|
|||||||
@@ -12,9 +12,6 @@
|
|||||||
#include <util/defaultable.hpp>
|
#include <util/defaultable.hpp>
|
||||||
#include <wx/imaglist.h>
|
#include <wx/imaglist.h>
|
||||||
|
|
||||||
DECLARE_TYPEOF_COLLECTION(ChoiceField::ChoiceP);
|
|
||||||
DECLARE_TYPEOF(map<String COMMA ScriptableImage>);
|
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------- : ChoiceField
|
// ----------------------------------------------------------------------------- : ChoiceField
|
||||||
|
|
||||||
ChoiceField::ChoiceField()
|
ChoiceField::ChoiceField()
|
||||||
|
|||||||
@@ -10,8 +10,6 @@
|
|||||||
#include <data/field/color.hpp>
|
#include <data/field/color.hpp>
|
||||||
#include <script/script.hpp>
|
#include <script/script.hpp>
|
||||||
|
|
||||||
DECLARE_TYPEOF_COLLECTION(ColorField::ChoiceP);
|
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------- : ColorField
|
// ----------------------------------------------------------------------------- : ColorField
|
||||||
|
|
||||||
ColorField::ColorField()
|
ColorField::ColorField()
|
||||||
|
|||||||
@@ -21,10 +21,6 @@
|
|||||||
#include <wx/datstrm.h>
|
#include <wx/datstrm.h>
|
||||||
#include <wx/filename.h>
|
#include <wx/filename.h>
|
||||||
|
|
||||||
DECLARE_TYPEOF_COLLECTION(String);
|
|
||||||
DECLARE_TYPEOF_COLLECTION(CardP);
|
|
||||||
DECLARE_TYPEOF(map<String COMMA String>);
|
|
||||||
|
|
||||||
String card_rarity_code(const String& rarity);
|
String card_rarity_code(const String& rarity);
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------- : Generic export dialog
|
// ----------------------------------------------------------------------------- : Generic export dialog
|
||||||
@@ -190,8 +186,6 @@ class ApprFormat {
|
|||||||
String name, sets;
|
String name, sets;
|
||||||
};
|
};
|
||||||
|
|
||||||
DECLARE_TYPEOF_COLLECTION(ApprFormat);
|
|
||||||
|
|
||||||
/// An Apprentice format database (Format.dat)
|
/// An Apprentice format database (Format.dat)
|
||||||
class ApprFormatDatabase : public ApprDatabase {
|
class ApprFormatDatabase : public ApprDatabase {
|
||||||
public:
|
public:
|
||||||
@@ -276,8 +270,6 @@ class ApprDistro {
|
|||||||
void writeD(wxTextOutputStream& tout, const String& name, int c, int u, int r);
|
void writeD(wxTextOutputStream& tout, const String& name, int c, int u, int r);
|
||||||
};
|
};
|
||||||
|
|
||||||
DECLARE_TYPEOF(map<String COMMA ApprDistro>);
|
|
||||||
|
|
||||||
/// An Apprentice distribution database (Distro.dat)
|
/// An Apprentice distribution database (Distro.dat)
|
||||||
class ApprDistroDatabase : public ApprDatabase {
|
class ApprDistroDatabase : public ApprDatabase {
|
||||||
public:
|
public:
|
||||||
@@ -362,7 +354,6 @@ String untag_appr(const String& s) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
DECLARE_POINTER_TYPE(ApprCardRecord);
|
DECLARE_POINTER_TYPE(ApprCardRecord);
|
||||||
DECLARE_TYPEOF_COLLECTION(ApprCardRecordP);
|
|
||||||
|
|
||||||
/// An Apprentice card database (cardinfo.dat)
|
/// An Apprentice card database (cardinfo.dat)
|
||||||
class ApprCardDatabase : public ApprDatabase {
|
class ApprCardDatabase : public ApprDatabase {
|
||||||
|
|||||||
@@ -16,8 +16,6 @@
|
|||||||
#include <render/card/viewer.hpp>
|
#include <render/card/viewer.hpp>
|
||||||
#include <wx/filename.h>
|
#include <wx/filename.h>
|
||||||
|
|
||||||
DECLARE_TYPEOF_COLLECTION(CardP);
|
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------- : Single card export
|
// ----------------------------------------------------------------------------- : Single card export
|
||||||
|
|
||||||
void export_image(const SetP& set, const CardP& card, const String& filename) {
|
void export_image(const SetP& set, const CardP& card, const String& filename) {
|
||||||
|
|||||||
@@ -19,9 +19,6 @@
|
|||||||
#include <util/error.hpp>
|
#include <util/error.hpp>
|
||||||
#include <util/platform.hpp>
|
#include <util/platform.hpp>
|
||||||
|
|
||||||
DECLARE_TYPEOF_COLLECTION(ControlPointP);
|
|
||||||
DECLARE_TYPEOF_COLLECTION(SymbolPartP);
|
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------- : Image preprocessing
|
// ----------------------------------------------------------------------------- : Image preprocessing
|
||||||
|
|
||||||
enum ImageMarker
|
enum ImageMarker
|
||||||
|
|||||||
@@ -18,8 +18,6 @@
|
|||||||
#include <util/tagged_string.hpp>
|
#include <util/tagged_string.hpp>
|
||||||
#include <wx/wfstream.h>
|
#include <wx/wfstream.h>
|
||||||
|
|
||||||
DECLARE_TYPEOF_COLLECTION(CardP);
|
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------- : MtgEditorFileFormat
|
// ----------------------------------------------------------------------------- : MtgEditorFileFormat
|
||||||
|
|
||||||
/// The file format of Mtg Editor files
|
/// The file format of Mtg Editor files
|
||||||
|
|||||||
@@ -17,8 +17,6 @@
|
|||||||
#include <util/tagged_string.hpp>
|
#include <util/tagged_string.hpp>
|
||||||
#include <wx/wfstream.h>
|
#include <wx/wfstream.h>
|
||||||
|
|
||||||
DECLARE_TYPEOF_COLLECTION(CardP);
|
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------- : Utilities
|
// ----------------------------------------------------------------------------- : Utilities
|
||||||
|
|
||||||
/// Convert a tagged string to MWS format: \t\t before each line beyond the first
|
/// Convert a tagged string to MWS format: \t\t before each line beyond the first
|
||||||
|
|||||||
@@ -18,9 +18,6 @@
|
|||||||
#include <util/io/package_manager.hpp>
|
#include <util/io/package_manager.hpp>
|
||||||
#include <script/script.hpp>
|
#include <script/script.hpp>
|
||||||
|
|
||||||
DECLARE_TYPEOF_COLLECTION(FieldP);
|
|
||||||
DECLARE_TYPEOF_COLLECTION(StatsDimensionP);
|
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------- : Game
|
// ----------------------------------------------------------------------------- : Game
|
||||||
|
|
||||||
IMPLEMENT_DYNAMIC_ARG(Game*, game_for_reading, nullptr);
|
IMPLEMENT_DYNAMIC_ARG(Game*, game_for_reading, nullptr);
|
||||||
|
|||||||
@@ -11,12 +11,6 @@
|
|||||||
#include <util/tagged_string.hpp>
|
#include <util/tagged_string.hpp>
|
||||||
|
|
||||||
class KeywordTrie;
|
class KeywordTrie;
|
||||||
DECLARE_TYPEOF(map<Char COMMA KeywordTrie*>);
|
|
||||||
DECLARE_TYPEOF_COLLECTION(KeywordTrie*);
|
|
||||||
DECLARE_TYPEOF_COLLECTION(KeywordP);
|
|
||||||
DECLARE_TYPEOF_COLLECTION(KeywordModeP);
|
|
||||||
DECLARE_TYPEOF_COLLECTION(KeywordParamP);
|
|
||||||
DECLARE_TYPEOF_COLLECTION(const Keyword*);
|
|
||||||
DECLARE_POINTER_TYPE(KeywordParamValue);
|
DECLARE_POINTER_TYPE(KeywordParamValue);
|
||||||
class Value;
|
class Value;
|
||||||
DECLARE_DYNAMIC_ARG(Value*, value_being_updated);
|
DECLARE_DYNAMIC_ARG(Value*, value_being_updated);
|
||||||
|
|||||||
@@ -21,8 +21,6 @@
|
|||||||
#include <wx/mstream.h>
|
#include <wx/mstream.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
DECLARE_TYPEOF(map<String COMMA SubLocaleP>);
|
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------- : Locale class
|
// ----------------------------------------------------------------------------- : Locale class
|
||||||
|
|
||||||
// when reading, ignore "#_ADD" start of line pragmas
|
// when reading, ignore "#_ADD" start of line pragmas
|
||||||
|
|||||||
@@ -14,11 +14,6 @@
|
|||||||
#include <queue>
|
#include <queue>
|
||||||
using boost::indeterminate;
|
using boost::indeterminate;
|
||||||
|
|
||||||
DECLARE_TYPEOF_COLLECTION(PackTypeP);
|
|
||||||
DECLARE_TYPEOF_COLLECTION(PackItemP);
|
|
||||||
DECLARE_TYPEOF_COLLECTION(CardP);
|
|
||||||
DECLARE_TYPEOF_CONST(map<String COMMA PackInstanceP>);
|
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------- : PackType
|
// ----------------------------------------------------------------------------- : PackType
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -23,9 +23,6 @@
|
|||||||
#include <script/profiler.hpp>
|
#include <script/profiler.hpp>
|
||||||
#include <wx/sstream.h>
|
#include <wx/sstream.h>
|
||||||
|
|
||||||
DECLARE_TYPEOF_COLLECTION(CardP);
|
|
||||||
DECLARE_TYPEOF_NO_REV(IndexMap<FieldP COMMA ValueP>);
|
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------- : Set
|
// ----------------------------------------------------------------------------- : Set
|
||||||
|
|
||||||
Set::Set()
|
Set::Set()
|
||||||
|
|||||||
@@ -23,8 +23,6 @@
|
|||||||
#include <wx/wfstream.h>
|
#include <wx/wfstream.h>
|
||||||
#include <wx/stdpaths.h>
|
#include <wx/stdpaths.h>
|
||||||
|
|
||||||
DECLARE_TYPEOF_COLLECTION(AutoReplaceP);
|
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------- : Extra types
|
// ----------------------------------------------------------------------------- : Extra types
|
||||||
|
|
||||||
IMPLEMENT_REFLECTION_ENUM(CheckUpdates) {
|
IMPLEMENT_REFLECTION_ENUM(CheckUpdates) {
|
||||||
|
|||||||
@@ -11,10 +11,6 @@
|
|||||||
#include <data/field.hpp>
|
#include <data/field.hpp>
|
||||||
#include <data/field/choice.hpp>
|
#include <data/field/choice.hpp>
|
||||||
|
|
||||||
DECLARE_TYPEOF_COLLECTION(String);
|
|
||||||
DECLARE_TYPEOF_COLLECTION(StatsDimensionP);
|
|
||||||
DECLARE_TYPEOF_COLLECTION(ChoiceField::ChoiceP);
|
|
||||||
|
|
||||||
extern ScriptValueP script_primary_choice;
|
extern ScriptValueP script_primary_choice;
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------- : Statistics dimension
|
// ----------------------------------------------------------------------------- : Statistics dimension
|
||||||
|
|||||||
@@ -13,9 +13,6 @@
|
|||||||
#include <util/io/package_manager.hpp>
|
#include <util/io/package_manager.hpp>
|
||||||
#include <gui/new_window.hpp> // for selecting stylesheets on load error
|
#include <gui/new_window.hpp> // for selecting stylesheets on load error
|
||||||
|
|
||||||
DECLARE_TYPEOF_COLLECTION(StyleSheet*);
|
|
||||||
DECLARE_TYPEOF_COLLECTION(FieldP);
|
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------- : StyleSheet
|
// ----------------------------------------------------------------------------- : StyleSheet
|
||||||
|
|
||||||
IMPLEMENT_DYNAMIC_ARG(StyleSheet*, stylesheet_for_reading, nullptr);
|
IMPLEMENT_DYNAMIC_ARG(StyleSheet*, stylesheet_for_reading, nullptr);
|
||||||
|
|||||||
@@ -12,9 +12,6 @@
|
|||||||
#include <script/to_value.hpp>
|
#include <script/to_value.hpp>
|
||||||
#include <gfx/bezier.hpp>
|
#include <gfx/bezier.hpp>
|
||||||
|
|
||||||
DECLARE_TYPEOF_COLLECTION(ControlPointP);
|
|
||||||
DECLARE_TYPEOF_COLLECTION(SymbolPartP);
|
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------- : ControlPoint
|
// ----------------------------------------------------------------------------- : ControlPoint
|
||||||
|
|
||||||
IMPLEMENT_REFLECTION_ENUM(LockMode) {
|
IMPLEMENT_REFLECTION_ENUM(LockMode) {
|
||||||
|
|||||||
@@ -17,10 +17,6 @@
|
|||||||
#include <render/text/element.hpp> // fot CharInfo
|
#include <render/text/element.hpp> // fot CharInfo
|
||||||
#include <script/image.hpp>
|
#include <script/image.hpp>
|
||||||
|
|
||||||
DECLARE_TYPEOF_COLLECTION(SymbolFont::DrawableSymbol);
|
|
||||||
DECLARE_TYPEOF_COLLECTION(SymbolInFontP);
|
|
||||||
DECLARE_TYPEOF_COLLECTION(InsertSymbolMenuP);
|
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------- : SymbolFont
|
// ----------------------------------------------------------------------------- : SymbolFont
|
||||||
|
|
||||||
// SymbolFont that is used for SymbolInFonts constructed with the default constructor
|
// SymbolFont that is used for SymbolInFonts constructed with the default constructor
|
||||||
|
|||||||
@@ -17,8 +17,6 @@
|
|||||||
#include <util/window_id.hpp>
|
#include <util/window_id.hpp>
|
||||||
#include <util/error.hpp>
|
#include <util/error.hpp>
|
||||||
|
|
||||||
DECLARE_TYPEOF_COLLECTION(AutoReplaceP);
|
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------- : AutoReplaceList
|
// ----------------------------------------------------------------------------- : AutoReplaceList
|
||||||
|
|
||||||
DECLARE_EVENT_TYPE(EVENT_ITEM_SELECT, <not used>)
|
DECLARE_EVENT_TYPE(EVENT_ITEM_SELECT, <not used>)
|
||||||
|
|||||||
@@ -12,9 +12,6 @@
|
|||||||
#include <util/window_id.hpp>
|
#include <util/window_id.hpp>
|
||||||
#include <wx/statline.h>
|
#include <wx/statline.h>
|
||||||
|
|
||||||
DECLARE_TYPEOF_COLLECTION(CardP);
|
|
||||||
DECLARE_TYPEOF_COLLECTION(ExportCardSelectionChoiceP);
|
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------- : ExportCardSelectionChoice
|
// ----------------------------------------------------------------------------- : ExportCardSelectionChoice
|
||||||
|
|
||||||
ExportCardSelectionChoice::ExportCardSelectionChoice()
|
ExportCardSelectionChoice::ExportCardSelectionChoice()
|
||||||
|
|||||||
@@ -17,9 +17,6 @@
|
|||||||
#include <util/window_id.hpp>
|
#include <util/window_id.hpp>
|
||||||
#include <wx/caret.h>
|
#include <wx/caret.h>
|
||||||
|
|
||||||
DECLARE_TYPEOF_COLLECTION(ValueViewerP);
|
|
||||||
DECLARE_TYPEOF_COLLECTION(ValueViewer*);
|
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------- : DataEditor
|
// ----------------------------------------------------------------------------- : DataEditor
|
||||||
|
|
||||||
DataEditor::DataEditor(Window* parent, int id, long style)
|
DataEditor::DataEditor(Window* parent, int id, long style)
|
||||||
|
|||||||
@@ -23,12 +23,7 @@
|
|||||||
#include <util/window_id.hpp>
|
#include <util/window_id.hpp>
|
||||||
#include <wx/clipbrd.h>
|
#include <wx/clipbrd.h>
|
||||||
|
|
||||||
DECLARE_TYPEOF_COLLECTION(CardP);
|
|
||||||
DECLARE_TYPEOF_COLLECTION(FieldP);
|
|
||||||
DECLARE_POINTER_TYPE(ChoiceValue);
|
DECLARE_POINTER_TYPE(ChoiceValue);
|
||||||
DECLARE_TYPEOF(map<int COMMA FieldP>);
|
|
||||||
DECLARE_TYPEOF_NO_REV(IndexMap<FieldP COMMA StyleP>);
|
|
||||||
DECLARE_TYPEOF_COLLECTION(CardListBase*);
|
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------- : Events
|
// ----------------------------------------------------------------------------- : Events
|
||||||
|
|
||||||
|
|||||||
@@ -12,9 +12,6 @@
|
|||||||
#include <data/field.hpp>
|
#include <data/field.hpp>
|
||||||
#include <util/window_id.hpp>
|
#include <util/window_id.hpp>
|
||||||
|
|
||||||
DECLARE_TYPEOF_COLLECTION(FieldP);
|
|
||||||
DECLARE_TYPEOF_COLLECTION(CardListColumnSelectDialog::ColumnSettingsF);
|
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------- : CardListColumnSelectDialog
|
// ----------------------------------------------------------------------------- : CardListColumnSelectDialog
|
||||||
|
|
||||||
CardListColumnSelectDialog::CardListColumnSelectDialog(Window* parent, const GameP& game)
|
CardListColumnSelectDialog::CardListColumnSelectDialog(Window* parent, const GameP& game)
|
||||||
|
|||||||
@@ -9,8 +9,6 @@
|
|||||||
#include <util/prec.hpp>
|
#include <util/prec.hpp>
|
||||||
#include <gui/control/filtered_card_list.hpp>
|
#include <gui/control/filtered_card_list.hpp>
|
||||||
|
|
||||||
DECLARE_TYPEOF_COLLECTION(CardP);
|
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------- : FilteredCardList
|
// ----------------------------------------------------------------------------- : FilteredCardList
|
||||||
|
|
||||||
FilteredCardList::FilteredCardList(Window* parent, int id, long additional_style)
|
FilteredCardList::FilteredCardList(Window* parent, int id, long additional_style)
|
||||||
|
|||||||
@@ -12,8 +12,6 @@
|
|||||||
#include <gfx/gfx.hpp>
|
#include <gfx/gfx.hpp>
|
||||||
#include <wx/dcbuffer.h>
|
#include <wx/dcbuffer.h>
|
||||||
|
|
||||||
DECLARE_TYPEOF_COLLECTION(GalleryList::SubColumn_for_typeof);
|
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------- : Events
|
// ----------------------------------------------------------------------------- : Events
|
||||||
|
|
||||||
DEFINE_EVENT_TYPE(EVENT_GALLERY_SELECT);
|
DEFINE_EVENT_TYPE(EVENT_GALLERY_SELECT);
|
||||||
|
|||||||
@@ -13,17 +13,6 @@
|
|||||||
#include <wx/dcbuffer.h>
|
#include <wx/dcbuffer.h>
|
||||||
#include <wx/tooltip.h>
|
#include <wx/tooltip.h>
|
||||||
|
|
||||||
DECLARE_TYPEOF_COLLECTION(GraphAxisP);
|
|
||||||
DECLARE_TYPEOF_COLLECTION(GraphElementP);
|
|
||||||
DECLARE_TYPEOF_COLLECTION(GraphGroup);
|
|
||||||
DECLARE_TYPEOF_COLLECTION(GraphDataElement*);
|
|
||||||
DECLARE_TYPEOF_COLLECTION(GraphP);
|
|
||||||
DECLARE_TYPEOF_COLLECTION(int);
|
|
||||||
DECLARE_TYPEOF_COLLECTION(vector<int>);
|
|
||||||
DECLARE_TYPEOF_COLLECTION(String);
|
|
||||||
DECLARE_TYPEOF_COLLECTION(UInt);
|
|
||||||
DECLARE_TYPEOF_COLLECTION(pair<String COMMA String>);
|
|
||||||
|
|
||||||
template <typename T> inline T sgn(T v) { return v < 0 ? -1 : 1; }
|
template <typename T> inline T sgn(T v) { return v < 0 ? -1 : 1; }
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------- : Events
|
// ----------------------------------------------------------------------------- : Events
|
||||||
@@ -74,7 +63,6 @@ void GraphDataPre::splitList(size_t axis) {
|
|||||||
struct SmartLess{
|
struct SmartLess{
|
||||||
inline bool operator () (const String& a, const String& b) const { return smart_less(a,b); }
|
inline bool operator () (const String& a, const String& b) const { return smart_less(a,b); }
|
||||||
};
|
};
|
||||||
DECLARE_TYPEOF(map<String COMMA UInt COMMA SmartLess>);
|
|
||||||
|
|
||||||
String to_bin(double value, double bin_size) {
|
String to_bin(double value, double bin_size) {
|
||||||
if (bin_size <= 0 || value == 0) {
|
if (bin_size <= 0 || value == 0) {
|
||||||
|
|||||||
@@ -16,8 +16,6 @@
|
|||||||
#include <wx/imaglist.h>
|
#include <wx/imaglist.h>
|
||||||
#include <gui/util.hpp>
|
#include <gui/util.hpp>
|
||||||
|
|
||||||
DECLARE_TYPEOF_COLLECTION(FieldP);
|
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------- : ImageCardList
|
// ----------------------------------------------------------------------------- : ImageCardList
|
||||||
|
|
||||||
ImageCardList::ImageCardList(Window* parent, int id, long additional_style)
|
ImageCardList::ImageCardList(Window* parent, int id, long additional_style)
|
||||||
|
|||||||
@@ -21,9 +21,6 @@
|
|||||||
#include <gfx/color.hpp>
|
#include <gfx/color.hpp>
|
||||||
#include <wx/clipbrd.h>
|
#include <wx/clipbrd.h>
|
||||||
|
|
||||||
DECLARE_TYPEOF_COLLECTION(KeywordP);
|
|
||||||
DECLARE_TYPEOF_COLLECTION(CardP);
|
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------- : Events
|
// ----------------------------------------------------------------------------- : Events
|
||||||
|
|
||||||
DEFINE_EVENT_TYPE(EVENT_KEYWORD_SELECT);
|
DEFINE_EVENT_TYPE(EVENT_KEYWORD_SELECT);
|
||||||
|
|||||||
@@ -14,9 +14,6 @@
|
|||||||
#include <data/export_template.hpp>
|
#include <data/export_template.hpp>
|
||||||
#include <data/settings.hpp>
|
#include <data/settings.hpp>
|
||||||
|
|
||||||
DECLARE_TYPEOF_COLLECTION(ValueViewerP);
|
|
||||||
DECLARE_TYPEOF_NO_REV(IndexMap<FieldP COMMA StyleP>);
|
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------- : NativeLookEditor
|
// ----------------------------------------------------------------------------- : NativeLookEditor
|
||||||
|
|
||||||
NativeLookEditor::NativeLookEditor(Window* parent, int id, long style)
|
NativeLookEditor::NativeLookEditor(Window* parent, int id, long style)
|
||||||
|
|||||||
@@ -13,8 +13,6 @@
|
|||||||
#include <script/profiler.hpp>
|
#include <script/profiler.hpp>
|
||||||
#include <gui/util.hpp>
|
#include <gui/util.hpp>
|
||||||
|
|
||||||
DECLARE_TYPEOF_COLLECTION(PackagedP);
|
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------- : PackageList
|
// ----------------------------------------------------------------------------- : PackageList
|
||||||
|
|
||||||
PackageList::PackageList(Window* parent, int id, int direction, bool always_focused)
|
PackageList::PackageList(Window* parent, int id, int direction, bool always_focused)
|
||||||
|
|||||||
@@ -12,8 +12,6 @@
|
|||||||
#include <data/card.hpp>
|
#include <data/card.hpp>
|
||||||
#include <wx/imaglist.h>
|
#include <wx/imaglist.h>
|
||||||
|
|
||||||
DECLARE_TYPEOF_COLLECTION(CardP);
|
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------- : SelectCardList
|
// ----------------------------------------------------------------------------- : SelectCardList
|
||||||
|
|
||||||
SelectCardList::SelectCardList(Window* parent, int id, long additional_style)
|
SelectCardList::SelectCardList(Window* parent, int id, long additional_style)
|
||||||
|
|||||||
@@ -13,8 +13,6 @@
|
|||||||
#include <data/field/text.hpp>
|
#include <data/field/text.hpp>
|
||||||
#include <data/action/value.hpp>
|
#include <data/action/value.hpp>
|
||||||
|
|
||||||
DECLARE_TYPEOF_COLLECTION(ValueViewerP);
|
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------- : TextCtrl
|
// ----------------------------------------------------------------------------- : TextCtrl
|
||||||
|
|
||||||
TextCtrl::TextCtrl(Window* parent, int id, bool multi_line, long style)
|
TextCtrl::TextCtrl(Window* parent, int id, bool multi_line, long style)
|
||||||
|
|||||||
@@ -12,8 +12,6 @@
|
|||||||
#include <wx/renderer.h>
|
#include <wx/renderer.h>
|
||||||
#include <wx/dcbuffer.h>
|
#include <wx/dcbuffer.h>
|
||||||
|
|
||||||
DECLARE_TYPEOF_COLLECTION(TreeList::ItemP);
|
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------- : TreeList : item managment
|
// ----------------------------------------------------------------------------- : TreeList : item managment
|
||||||
|
|
||||||
void TreeList::rebuild(bool full) {
|
void TreeList::rebuild(bool full) {
|
||||||
|
|||||||
@@ -17,8 +17,6 @@
|
|||||||
#include <util/tagged_string.hpp>
|
#include <util/tagged_string.hpp>
|
||||||
#include <wx/filename.h>
|
#include <wx/filename.h>
|
||||||
|
|
||||||
DECLARE_TYPEOF_COLLECTION(CardP);
|
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------- : ImagesExportWindow
|
// ----------------------------------------------------------------------------- : ImagesExportWindow
|
||||||
|
|
||||||
ImagesExportWindow::ImagesExportWindow(Window* parent, const SetP& set, const ExportCardSelectionChoices& choices)
|
ImagesExportWindow::ImagesExportWindow(Window* parent, const SetP& set, const ExportCardSelectionChoices& choices)
|
||||||
|
|||||||
@@ -13,11 +13,6 @@
|
|||||||
#include <gfx/gfx.hpp>
|
#include <gfx/gfx.hpp>
|
||||||
#include <wx/url.h>
|
#include <wx/url.h>
|
||||||
|
|
||||||
DECLARE_TYPEOF_COLLECTION(InstallablePackageP);
|
|
||||||
DECLARE_TYPEOF_COLLECTION(PackageUpdateList::TreeItemP);
|
|
||||||
DECLARE_TYPEOF_COLLECTION(TreeList::ItemP);
|
|
||||||
|
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------- : PackageUpdateList::TreeItem
|
// ----------------------------------------------------------------------------- : PackageUpdateList::TreeItem
|
||||||
|
|
||||||
void PackageUpdateList::TreeItem::add(const InstallablePackageP& package, const String& path, int level) {
|
void PackageUpdateList::TreeItem::add(const InstallablePackageP& package, const String& path, int level) {
|
||||||
|
|||||||
@@ -25,10 +25,6 @@
|
|||||||
|
|
||||||
DECLARE_POINTER_TYPE(Installer);
|
DECLARE_POINTER_TYPE(Installer);
|
||||||
|
|
||||||
DECLARE_TYPEOF_COLLECTION(PackageDependencyP);
|
|
||||||
DECLARE_TYPEOF_COLLECTION(InstallablePackageP);
|
|
||||||
DECLARE_TYPEOF_COLLECTION(DownloadableInstallerP);
|
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------- : TODO: MOVE
|
// ----------------------------------------------------------------------------- : TODO: MOVE
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|||||||
@@ -16,8 +16,6 @@
|
|||||||
#include <wx/filename.h>
|
#include <wx/filename.h>
|
||||||
#include <wx/notebook.h>
|
#include <wx/notebook.h>
|
||||||
|
|
||||||
DECLARE_TYPEOF_COLLECTION(PackagedP);
|
|
||||||
|
|
||||||
// use a combo box for the zoom choices instead of a spin control
|
// use a combo box for the zoom choices instead of a spin control
|
||||||
#define USE_ZOOM_COMBOBOX 1
|
#define USE_ZOOM_COMBOBOX 1
|
||||||
|
|
||||||
|
|||||||
@@ -16,7 +16,6 @@
|
|||||||
#include <render/card/viewer.hpp>
|
#include <render/card/viewer.hpp>
|
||||||
#include <wx/print.h>
|
#include <wx/print.h>
|
||||||
|
|
||||||
DECLARE_TYPEOF_COLLECTION(CardP);
|
|
||||||
DECLARE_POINTER_TYPE(PageLayout);
|
DECLARE_POINTER_TYPE(PageLayout);
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------- : Layout
|
// ----------------------------------------------------------------------------- : Layout
|
||||||
|
|||||||
@@ -12,8 +12,6 @@
|
|||||||
|
|
||||||
#if USE_SCRIPT_PROFILING
|
#if USE_SCRIPT_PROFILING
|
||||||
|
|
||||||
DECLARE_TYPEOF_COLLECTION(FunctionProfileP);
|
|
||||||
|
|
||||||
// -----------------------------------------------------------------------------
|
// -----------------------------------------------------------------------------
|
||||||
// Profiler Panel : class
|
// Profiler Panel : class
|
||||||
// -----------------------------------------------------------------------------
|
// -----------------------------------------------------------------------------
|
||||||
|
|||||||
@@ -27,8 +27,6 @@
|
|||||||
#include <util/window_id.hpp>
|
#include <util/window_id.hpp>
|
||||||
#include <wx/splitter.h>
|
#include <wx/splitter.h>
|
||||||
|
|
||||||
DECLARE_TYPEOF_COLLECTION(AddCardsScriptP);
|
|
||||||
|
|
||||||
#ifdef EVT_TOOL_DROPDOWN
|
#ifdef EVT_TOOL_DROPDOWN
|
||||||
// This is only available after patching wx or in version 2.10
|
// This is only available after patching wx or in version 2.10
|
||||||
// see http://trac.wxwidgets.org/ticket/8556
|
// see http://trac.wxwidgets.org/ticket/8556
|
||||||
|
|||||||
@@ -18,8 +18,6 @@
|
|||||||
#include <wx/clipbrd.h>
|
#include <wx/clipbrd.h>
|
||||||
|
|
||||||
DECLARE_POINTER_TYPE(ConsoleMessage);
|
DECLARE_POINTER_TYPE(ConsoleMessage);
|
||||||
DECLARE_TYPEOF_COLLECTION(ScriptParseError);
|
|
||||||
DECLARE_TYPEOF_COLLECTION(ConsoleMessageP);
|
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------- : MessageControl
|
// ----------------------------------------------------------------------------- : MessageControl
|
||||||
|
|
||||||
|
|||||||
@@ -23,10 +23,6 @@
|
|||||||
#include <wx/statline.h>
|
#include <wx/statline.h>
|
||||||
#include <wx/artprov.h>
|
#include <wx/artprov.h>
|
||||||
|
|
||||||
DECLARE_TYPEOF_COLLECTION(ParamReferenceTypeP);
|
|
||||||
DECLARE_TYPEOF_COLLECTION(KeywordParamP);
|
|
||||||
DECLARE_TYPEOF_COLLECTION(KeywordModeP);
|
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------- : KeywordsPanel
|
// ----------------------------------------------------------------------------- : KeywordsPanel
|
||||||
|
|
||||||
KeywordsPanel::KeywordsPanel(Window* parent, int id)
|
KeywordsPanel::KeywordsPanel(Window* parent, int id)
|
||||||
|
|||||||
@@ -20,11 +20,6 @@
|
|||||||
#include <wx/spinctrl.h>
|
#include <wx/spinctrl.h>
|
||||||
#include <wx/dcbuffer.h>
|
#include <wx/dcbuffer.h>
|
||||||
|
|
||||||
DECLARE_TYPEOF_COLLECTION(PackTypeP);
|
|
||||||
DECLARE_TYPEOF_COLLECTION(PackItemP);
|
|
||||||
DECLARE_TYPEOF_COLLECTION(CardP);
|
|
||||||
DECLARE_TYPEOF_COLLECTION(PackAmountPicker);
|
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------- : RandomCardList
|
// ----------------------------------------------------------------------------- : RandomCardList
|
||||||
|
|
||||||
/// A card list that contains the
|
/// A card list that contains the
|
||||||
|
|||||||
@@ -22,13 +22,6 @@
|
|||||||
#include <gfx/gfx.hpp>
|
#include <gfx/gfx.hpp>
|
||||||
#include <wx/splitter.h>
|
#include <wx/splitter.h>
|
||||||
|
|
||||||
DECLARE_TYPEOF_COLLECTION(StatsDimensionP);
|
|
||||||
DECLARE_TYPEOF_COLLECTION(String);
|
|
||||||
DECLARE_TYPEOF_COLLECTION(size_t);
|
|
||||||
DECLARE_TYPEOF_COLLECTION(CardP);
|
|
||||||
typedef pair<StatsDimensionP,String> pair_StatsDimensionP_String;
|
|
||||||
DECLARE_TYPEOF_COLLECTION(pair_StatsDimensionP_String);
|
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------- : StatCategoryList
|
// ----------------------------------------------------------------------------- : StatCategoryList
|
||||||
#if !USE_DIMENSION_LISTS
|
#if !USE_DIMENSION_LISTS
|
||||||
|
|
||||||
|
|||||||
@@ -21,8 +21,6 @@
|
|||||||
#include <data/action/set.hpp>
|
#include <data/action/set.hpp>
|
||||||
#include <data/action/value.hpp>
|
#include <data/action/value.hpp>
|
||||||
|
|
||||||
DECLARE_TYPEOF_COLLECTION(FieldP);
|
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------- : StylePanel : initialization
|
// ----------------------------------------------------------------------------- : StylePanel : initialization
|
||||||
|
|
||||||
StylePanel::StylePanel(Window* parent, int id)
|
StylePanel::StylePanel(Window* parent, int id)
|
||||||
|
|||||||
@@ -40,10 +40,6 @@
|
|||||||
#include <data/action/value.hpp>
|
#include <data/action/value.hpp>
|
||||||
#include <data/action/set.hpp>
|
#include <data/action/set.hpp>
|
||||||
|
|
||||||
DECLARE_TYPEOF_COLLECTION(SetWindowPanel*);
|
|
||||||
DECLARE_TYPEOF_COLLECTION(SetWindow*);
|
|
||||||
DECLARE_TYPEOF_COLLECTION(String);
|
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------- : Constructor
|
// ----------------------------------------------------------------------------- : Constructor
|
||||||
|
|
||||||
SetWindow::SetWindow(Window* parent, const SetP& set)
|
SetWindow::SetWindow(Window* parent, const SetP& set)
|
||||||
|
|||||||
@@ -18,8 +18,6 @@
|
|||||||
#include <wx/dcbuffer.h>
|
#include <wx/dcbuffer.h>
|
||||||
#include <wx/caret.h>
|
#include <wx/caret.h>
|
||||||
|
|
||||||
DECLARE_TYPEOF_COLLECTION(SymbolPartP);
|
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------- : Events
|
// ----------------------------------------------------------------------------- : Events
|
||||||
|
|
||||||
DEFINE_EVENT_TYPE(EVENT_PART_SELECT);
|
DEFINE_EVENT_TYPE(EVENT_PART_SELECT);
|
||||||
|
|||||||
@@ -16,8 +16,6 @@
|
|||||||
#include <util/window_id.hpp>
|
#include <util/window_id.hpp>
|
||||||
#include <util/error.hpp>
|
#include <util/error.hpp>
|
||||||
|
|
||||||
DECLARE_TYPEOF_COLLECTION(ControlPointP);
|
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------- : SymbolPointEditor
|
// ----------------------------------------------------------------------------- : SymbolPointEditor
|
||||||
|
|
||||||
SymbolPointEditor::SymbolPointEditor(SymbolControl* control, const SymbolShapeP& part)
|
SymbolPointEditor::SymbolPointEditor(SymbolControl* control, const SymbolShapeP& part)
|
||||||
|
|||||||
@@ -16,8 +16,6 @@
|
|||||||
#include <util/error.hpp>
|
#include <util/error.hpp>
|
||||||
#include <gfx/gfx.hpp>
|
#include <gfx/gfx.hpp>
|
||||||
|
|
||||||
DECLARE_TYPEOF_COLLECTION(SymbolPartP);
|
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------- : SymbolSelectEditor
|
// ----------------------------------------------------------------------------- : SymbolSelectEditor
|
||||||
|
|
||||||
SymbolSelectEditor::SymbolSelectEditor(SymbolControl* control, bool rotate)
|
SymbolSelectEditor::SymbolSelectEditor(SymbolControl* control, bool rotate)
|
||||||
|
|||||||
@@ -11,8 +11,6 @@
|
|||||||
#include <data/symbol.hpp>
|
#include <data/symbol.hpp>
|
||||||
#include <gfx/bezier.hpp>
|
#include <gfx/bezier.hpp>
|
||||||
|
|
||||||
DECLARE_TYPEOF_COLLECTION(SymbolPartP);
|
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------- : Selection
|
// ----------------------------------------------------------------------------- : Selection
|
||||||
|
|
||||||
void SymbolPartsSelection::setSymbol(const SymbolP& symbol) {
|
void SymbolPartsSelection::setSymbol(const SymbolP& symbol) {
|
||||||
|
|||||||
@@ -12,9 +12,6 @@
|
|||||||
#include <util/error.hpp>
|
#include <util/error.hpp>
|
||||||
#include <wx/thread.h>
|
#include <wx/thread.h>
|
||||||
|
|
||||||
typedef pair<ThumbnailRequestP,Image> pair_ThumbnailRequestP_Image;
|
|
||||||
DECLARE_TYPEOF_COLLECTION(pair_ThumbnailRequestP_Image);
|
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------- : Image Cache
|
// ----------------------------------------------------------------------------- : Image Cache
|
||||||
|
|
||||||
String user_settings_dir();
|
String user_settings_dir();
|
||||||
|
|||||||
@@ -20,7 +20,6 @@
|
|||||||
#include <wx/url.h>
|
#include <wx/url.h>
|
||||||
|
|
||||||
DECLARE_POINTER_TYPE(VersionData);
|
DECLARE_POINTER_TYPE(VersionData);
|
||||||
DECLARE_TYPEOF_COLLECTION(PackageDependencyP);
|
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------- : Update data
|
// ----------------------------------------------------------------------------- : Update data
|
||||||
|
|
||||||
|
|||||||
@@ -14,8 +14,6 @@
|
|||||||
#include <script/image.hpp>
|
#include <script/image.hpp>
|
||||||
#include <wx/imaglist.h>
|
#include <wx/imaglist.h>
|
||||||
|
|
||||||
DECLARE_TYPEOF_COLLECTION(ChoiceField::ChoiceP);
|
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------- : ChoiceThumbnailRequest
|
// ----------------------------------------------------------------------------- : ChoiceThumbnailRequest
|
||||||
|
|
||||||
class ChoiceThumbnailRequest : public ThumbnailRequest {
|
class ChoiceThumbnailRequest : public ThumbnailRequest {
|
||||||
|
|||||||
@@ -13,8 +13,6 @@
|
|||||||
#include <data/action/value.hpp>
|
#include <data/action/value.hpp>
|
||||||
#include <wx/colordlg.h>
|
#include <wx/colordlg.h>
|
||||||
|
|
||||||
DECLARE_TYPEOF_COLLECTION(ColorField::ChoiceP);
|
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------- : DropDownColorList
|
// ----------------------------------------------------------------------------- : DropDownColorList
|
||||||
|
|
||||||
// A drop down list of color choices
|
// A drop down list of color choices
|
||||||
|
|||||||
@@ -12,8 +12,6 @@
|
|||||||
#include <gui/util.hpp>
|
#include <gui/util.hpp>
|
||||||
#include <data/action/value.hpp>
|
#include <data/action/value.hpp>
|
||||||
|
|
||||||
DECLARE_TYPEOF_COLLECTION(PackageChoiceValueViewer::Item);
|
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------- : DropDownPackageChoiceList
|
// ----------------------------------------------------------------------------- : DropDownPackageChoiceList
|
||||||
|
|
||||||
/// A drop down list of color choices
|
/// A drop down list of color choices
|
||||||
|
|||||||
@@ -25,13 +25,6 @@
|
|||||||
#undef small // some evil windows header defines this
|
#undef small // some evil windows header defines this
|
||||||
|
|
||||||
DECLARE_SHARED_POINTER_TYPE(DropDownList);
|
DECLARE_SHARED_POINTER_TYPE(DropDownList);
|
||||||
DECLARE_TYPEOF_COLLECTION(WordListP);
|
|
||||||
DECLARE_TYPEOF_COLLECTION(WordListWordP);
|
|
||||||
DECLARE_TYPEOF_COLLECTION(WordListPosP);
|
|
||||||
DECLARE_TYPEOF_COLLECTION(AutoReplaceP);
|
|
||||||
struct DropDownWordListItem;
|
|
||||||
DECLARE_TYPEOF_COLLECTION(DropDownWordListItem);
|
|
||||||
DECLARE_TYPEOF_COLLECTION(String);
|
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------- : TextValueEditorScrollBar
|
// ----------------------------------------------------------------------------- : TextValueEditorScrollBar
|
||||||
|
|
||||||
|
|||||||
@@ -18,9 +18,6 @@
|
|||||||
#include <data/action/set.hpp>
|
#include <data/action/set.hpp>
|
||||||
#include <gui/util.hpp> // clearDC
|
#include <gui/util.hpp> // clearDC
|
||||||
|
|
||||||
DECLARE_TYPEOF_COLLECTION(ValueViewerP);
|
|
||||||
DECLARE_TYPEOF_NO_REV(IndexMap<FieldP COMMA StyleP>);
|
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------- : DataViewer
|
// ----------------------------------------------------------------------------- : DataViewer
|
||||||
|
|
||||||
DataViewer::DataViewer() {}
|
DataViewer::DataViewer() {}
|
||||||
|
|||||||
@@ -11,8 +11,6 @@
|
|||||||
#include <util/error.hpp> // clearDC_black
|
#include <util/error.hpp> // clearDC_black
|
||||||
#include <gui/util.hpp> // clearDC_black
|
#include <gui/util.hpp> // clearDC_black
|
||||||
|
|
||||||
DECLARE_TYPEOF_COLLECTION(SymbolPartP);
|
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------- : Simple rendering
|
// ----------------------------------------------------------------------------- : Simple rendering
|
||||||
|
|
||||||
Image render_symbol(const SymbolP& symbol, double border_radius, int width, int height, bool editing_hints, bool allow_smaller) {
|
Image render_symbol(const SymbolP& symbol, double border_radius, int width, int height, bool editing_hints, bool allow_smaller) {
|
||||||
|
|||||||
@@ -12,7 +12,6 @@
|
|||||||
#include <data/field/text.hpp>
|
#include <data/field/text.hpp>
|
||||||
#include <gfx/color.hpp>
|
#include <gfx/color.hpp>
|
||||||
|
|
||||||
DECLARE_TYPEOF_COLLECTION(TextElementP);
|
|
||||||
DECLARE_POINTER_TYPE(FontTextElement);
|
DECLARE_POINTER_TYPE(FontTextElement);
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------- : TextElements
|
// ----------------------------------------------------------------------------- : TextElements
|
||||||
|
|||||||
@@ -10,9 +10,6 @@
|
|||||||
#include <render/text/viewer.hpp>
|
#include <render/text/viewer.hpp>
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
|
|
||||||
DECLARE_TYPEOF_COLLECTION(TextViewer::Line);
|
|
||||||
DECLARE_TYPEOF_COLLECTION(double);
|
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------- : Line
|
// ----------------------------------------------------------------------------- : Line
|
||||||
|
|
||||||
struct TextViewer::Line {
|
struct TextViewer::Line {
|
||||||
|
|||||||
@@ -10,8 +10,6 @@
|
|||||||
#include <render/value/color.hpp>
|
#include <render/value/color.hpp>
|
||||||
#include <render/card/viewer.hpp>
|
#include <render/card/viewer.hpp>
|
||||||
|
|
||||||
DECLARE_TYPEOF_COLLECTION(ColorField::ChoiceP);
|
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------- : ColorValueViewer
|
// ----------------------------------------------------------------------------- : ColorValueViewer
|
||||||
|
|
||||||
IMPLEMENT_VALUE_VIEWER(Color);
|
IMPLEMENT_VALUE_VIEWER(Color);
|
||||||
|
|||||||
@@ -12,8 +12,6 @@
|
|||||||
#include <render/card/viewer.hpp>
|
#include <render/card/viewer.hpp>
|
||||||
#include <gui/util.hpp>
|
#include <gui/util.hpp>
|
||||||
|
|
||||||
DECLARE_TYPEOF_COLLECTION(String);
|
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------- : MultipleChoiceValueViewer
|
// ----------------------------------------------------------------------------- : MultipleChoiceValueViewer
|
||||||
|
|
||||||
IMPLEMENT_VALUE_VIEWER(MultipleChoice);
|
IMPLEMENT_VALUE_VIEWER(MultipleChoice);
|
||||||
|
|||||||
@@ -11,9 +11,6 @@
|
|||||||
#include <util/io/package_manager.hpp>
|
#include <util/io/package_manager.hpp>
|
||||||
#include <gui/util.hpp>
|
#include <gui/util.hpp>
|
||||||
|
|
||||||
DECLARE_TYPEOF_COLLECTION(PackagedP);
|
|
||||||
DECLARE_TYPEOF_COLLECTION(PackageChoiceValueViewer::Item);
|
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------- : PackageChoiceValueViewer
|
// ----------------------------------------------------------------------------- : PackageChoiceValueViewer
|
||||||
|
|
||||||
IMPLEMENT_VALUE_VIEWER(PackageChoice);
|
IMPLEMENT_VALUE_VIEWER(PackageChoice);
|
||||||
|
|||||||
@@ -14,8 +14,6 @@
|
|||||||
#include <gui/util.hpp> // draw_checker
|
#include <gui/util.hpp> // draw_checker
|
||||||
#include <util/error.hpp>
|
#include <util/error.hpp>
|
||||||
|
|
||||||
DECLARE_TYPEOF_COLLECTION(SymbolVariationP);
|
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------- : SymbolValueViewer
|
// ----------------------------------------------------------------------------- : SymbolValueViewer
|
||||||
|
|
||||||
IMPLEMENT_VALUE_VIEWER(Symbol);
|
IMPLEMENT_VALUE_VIEWER(Symbol);
|
||||||
|
|||||||
@@ -10,8 +10,6 @@
|
|||||||
#include <render/value/viewer.hpp>
|
#include <render/value/viewer.hpp>
|
||||||
#include <render/card/viewer.hpp>
|
#include <render/card/viewer.hpp>
|
||||||
|
|
||||||
DECLARE_TYPEOF_COLLECTION(wxPoint);
|
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------- : ValueViewer
|
// ----------------------------------------------------------------------------- : ValueViewer
|
||||||
|
|
||||||
ValueViewer::ValueViewer(DataViewer& parent, const StyleP& style)
|
ValueViewer::ValueViewer(DataViewer& parent, const StyleP& style)
|
||||||
|
|||||||
@@ -12,9 +12,6 @@
|
|||||||
#include <util/error.hpp>
|
#include <util/error.hpp>
|
||||||
#include <queue>
|
#include <queue>
|
||||||
|
|
||||||
DECLARE_TYPEOF_COLLECTION(ScriptValueP);
|
|
||||||
DECLARE_TYPEOF_COLLECTION(Context::Binding);
|
|
||||||
|
|
||||||
// NOTE: dependency.cpp has nothing to do with dependency.hpp, the latter defines the dependency
|
// NOTE: dependency.cpp has nothing to do with dependency.hpp, the latter defines the dependency
|
||||||
// type, which is used here as an abstract type. The header for this source file is context.hpp
|
// type, which is used here as an abstract type. The header for this source file is context.hpp
|
||||||
|
|
||||||
|
|||||||
@@ -18,8 +18,6 @@
|
|||||||
#include <data/game.hpp>
|
#include <data/game.hpp>
|
||||||
#include <random>
|
#include <random>
|
||||||
|
|
||||||
DECLARE_TYPEOF_COLLECTION(pair<String COMMA ScriptValueP>);
|
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------- : Debugging
|
// ----------------------------------------------------------------------------- : Debugging
|
||||||
|
|
||||||
SCRIPT_FUNCTION(trace) {
|
SCRIPT_FUNCTION(trace) {
|
||||||
|
|||||||
@@ -19,12 +19,6 @@
|
|||||||
#include <data/field/multiple_choice.hpp>
|
#include <data/field/multiple_choice.hpp>
|
||||||
#include <data/action/value.hpp>
|
#include <data/action/value.hpp>
|
||||||
|
|
||||||
DECLARE_TYPEOF_COLLECTION(FieldP);
|
|
||||||
DECLARE_TYPEOF_COLLECTION(TextValue*);
|
|
||||||
DECLARE_TYPEOF_COLLECTION(String);
|
|
||||||
DECLARE_TYPEOF_COLLECTION(pair<String COMMA bool>);
|
|
||||||
DECLARE_TYPEOF_COLLECTION(ChoiceField::ChoiceP);
|
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------- : Combined editor
|
// ----------------------------------------------------------------------------- : Combined editor
|
||||||
|
|
||||||
// Combining multiple (text) values into a single one
|
// Combining multiple (text) values into a single one
|
||||||
|
|||||||
@@ -21,8 +21,6 @@
|
|||||||
#include <wx/wfstream.h>
|
#include <wx/wfstream.h>
|
||||||
#include <wx/filename.h>
|
#include <wx/filename.h>
|
||||||
|
|
||||||
DECLARE_TYPEOF_COLLECTION(SymbolFont::DrawableSymbol);
|
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------- : Utility
|
// ----------------------------------------------------------------------------- : Utility
|
||||||
|
|
||||||
// Make sure we can export files to a data directory
|
// Make sure we can export files to a data directory
|
||||||
@@ -87,8 +85,6 @@ struct NegTag {
|
|||||||
NegTag(Tag* tag, bool neg) : tag(tag), neg(neg) {}
|
NegTag(Tag* tag, bool neg) : tag(tag), neg(neg) {}
|
||||||
};
|
};
|
||||||
|
|
||||||
DECLARE_TYPEOF_COLLECTION(NegTag);
|
|
||||||
|
|
||||||
/// A stack of opened HTML tags
|
/// A stack of opened HTML tags
|
||||||
class TagStack {
|
class TagStack {
|
||||||
public:
|
public:
|
||||||
|
|||||||
@@ -19,8 +19,6 @@
|
|||||||
#include <gfx/generated_image.hpp>
|
#include <gfx/generated_image.hpp>
|
||||||
#include <render/symbol/filter.hpp>
|
#include <render/symbol/filter.hpp>
|
||||||
|
|
||||||
DECLARE_TYPEOF_COLLECTION(SymbolVariationP);
|
|
||||||
|
|
||||||
void parse_enum(const String&, ImageCombine& out);
|
void parse_enum(const String&, ImageCombine& out);
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------- : Utility
|
// ----------------------------------------------------------------------------- : Utility
|
||||||
|
|||||||
@@ -13,7 +13,6 @@
|
|||||||
#include <util/error.hpp>
|
#include <util/error.hpp>
|
||||||
|
|
||||||
DECLARE_POINTER_TYPE(ScriptRegex);
|
DECLARE_POINTER_TYPE(ScriptRegex);
|
||||||
DECLARE_TYPEOF_COLLECTION(pair<Variable COMMA ScriptValueP>);
|
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------- : Regex type
|
// ----------------------------------------------------------------------------- : Regex type
|
||||||
|
|
||||||
|
|||||||
@@ -14,8 +14,6 @@
|
|||||||
#include <util/io/package_manager.hpp> // for "include file" semi hack
|
#include <util/io/package_manager.hpp> // for "include file" semi hack
|
||||||
#include <stack>
|
#include <stack>
|
||||||
|
|
||||||
DECLARE_TYPEOF_COLLECTION(Variable);
|
|
||||||
|
|
||||||
#ifdef __WXMSW__
|
#ifdef __WXMSW__
|
||||||
#define TokenType TokenType_ // some stupid windows header uses our name
|
#define TokenType TokenType_ // some stupid windows header uses our name
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -16,8 +16,6 @@
|
|||||||
#error "It looks like you are building the final release; disable USE_SCRIPT_PROFILING!"
|
#error "It looks like you are building the final release; disable USE_SCRIPT_PROFILING!"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
DECLARE_TYPEOF(map<size_t COMMA FunctionProfileP>);
|
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------- : Timer
|
// ----------------------------------------------------------------------------- : Timer
|
||||||
|
|
||||||
Timer::Timer() {
|
Timer::Timer() {
|
||||||
|
|||||||
@@ -16,7 +16,6 @@
|
|||||||
|
|
||||||
typedef map<String, Variable> Variables;
|
typedef map<String, Variable> Variables;
|
||||||
Variables variables;
|
Variables variables;
|
||||||
DECLARE_TYPEOF(Variables);
|
|
||||||
#ifdef _DEBUG
|
#ifdef _DEBUG
|
||||||
vector<String> variable_names;
|
vector<String> variable_names;
|
||||||
#endif
|
#endif
|
||||||
@@ -148,8 +147,6 @@ unsigned int Script::getLabel() const {
|
|||||||
return (unsigned int)instructions.size();
|
return (unsigned int)instructions.size();
|
||||||
}
|
}
|
||||||
|
|
||||||
DECLARE_TYPEOF_COLLECTION(Instruction);
|
|
||||||
|
|
||||||
#ifdef _DEBUG // debugging
|
#ifdef _DEBUG // debugging
|
||||||
|
|
||||||
String Script::dumpScript() const {
|
String Script::dumpScript() const {
|
||||||
|
|||||||
@@ -17,8 +17,6 @@
|
|||||||
Alignment from_string(const String&);
|
Alignment from_string(const String&);
|
||||||
void parse_enum(const String&,Direction&);
|
void parse_enum(const String&,Direction&);
|
||||||
|
|
||||||
DECLARE_TYPEOF_COLLECTION(ScriptParseError);
|
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------- : Store
|
// ----------------------------------------------------------------------------- : Store
|
||||||
|
|
||||||
void store(const ScriptValueP& val, String& var) { var = val->toString(); }
|
void store(const ScriptValueP& val, String& var) { var = val->toString(); }
|
||||||
|
|||||||
@@ -14,8 +14,6 @@
|
|||||||
#include <util/error.hpp>
|
#include <util/error.hpp>
|
||||||
#include <boost/pool/singleton_pool.hpp>
|
#include <boost/pool/singleton_pool.hpp>
|
||||||
|
|
||||||
DECLARE_TYPEOF_COLLECTION(pair<Variable COMMA ScriptValueP>);
|
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------- : ScriptValue
|
// ----------------------------------------------------------------------------- : ScriptValue
|
||||||
// Base cases
|
// Base cases
|
||||||
|
|
||||||
|
|||||||
@@ -13,9 +13,6 @@
|
|||||||
|
|
||||||
// ----------------------------------------------------------------------------- : Action stack
|
// ----------------------------------------------------------------------------- : Action stack
|
||||||
|
|
||||||
DECLARE_TYPEOF_COLLECTION(Action*);
|
|
||||||
DECLARE_TYPEOF_COLLECTION(ActionListener*);
|
|
||||||
|
|
||||||
ActionStack::ActionStack()
|
ActionStack::ActionStack()
|
||||||
: save_point(nullptr)
|
: save_point(nullptr)
|
||||||
, last_was_add(false)
|
, last_was_add(false)
|
||||||
|
|||||||
@@ -15,8 +15,6 @@
|
|||||||
#endif
|
#endif
|
||||||
#include <queue>
|
#include <queue>
|
||||||
|
|
||||||
DECLARE_TYPEOF_COLLECTION(ScriptParseError);
|
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------- : Debug utilities
|
// ----------------------------------------------------------------------------- : Debug utilities
|
||||||
|
|
||||||
#if defined(_MSC_VER) && defined(_DEBUG) && defined(_CRT_WIDE)
|
#if defined(_MSC_VER) && defined(_DEBUG) && defined(_CRT_WIDE)
|
||||||
|
|||||||
@@ -13,8 +13,6 @@
|
|||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
|
|
||||||
DECLARE_TYPEOF_COLLECTION(String);
|
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------- : File names
|
// ----------------------------------------------------------------------------- : File names
|
||||||
|
|
||||||
String normalize_filename(const String& name) {
|
String normalize_filename(const String& name) {
|
||||||
|
|||||||
@@ -18,12 +18,6 @@
|
|||||||
|
|
||||||
// ----------------------------------------------------------------------------- : Typeof magic
|
// ----------------------------------------------------------------------------- : Typeof magic
|
||||||
|
|
||||||
// GCC has a buildin typeof function, so it doesn't need (as much) hacks
|
|
||||||
#define DECLARE_TYPEOF(T)
|
|
||||||
#define DECLARE_TYPEOF_NO_REV(T)
|
|
||||||
#define DECLARE_TYPEOF_CONST(T)
|
|
||||||
#define DECLARE_TYPEOF_COLLECTION(T)
|
|
||||||
|
|
||||||
#define TYPEOF(Value) decltype(Value)
|
#define TYPEOF(Value) decltype(Value)
|
||||||
#define TYPEOF_IT(Value) decltype((Value).begin())
|
#define TYPEOF_IT(Value) decltype((Value).begin())
|
||||||
#define TYPEOF_CIT(Value) decltype((Value).begin())
|
#define TYPEOF_CIT(Value) decltype((Value).begin())
|
||||||
@@ -32,14 +26,6 @@
|
|||||||
#define TYPEOF_REF(Value) decltype(*(Value).begin())&
|
#define TYPEOF_REF(Value) decltype(*(Value).begin())&
|
||||||
#define TYPEOF_CREF(Value) decltype(*(Value).begin())&
|
#define TYPEOF_CREF(Value) decltype(*(Value).begin())&
|
||||||
|
|
||||||
/// Use for template classes
|
|
||||||
/** i.e.
|
|
||||||
* DECLARE_TYPEOF(pair<a COMMA b>);
|
|
||||||
* instead of
|
|
||||||
* DECLARE_TYPEOF(pair<a,b>);
|
|
||||||
*/
|
|
||||||
#define COMMA ,
|
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------- : Looping macros with iterators
|
// ----------------------------------------------------------------------------- : Looping macros with iterators
|
||||||
|
|
||||||
/// Iterate over a collection, using an iterator it of type Type
|
/// Iterate over a collection, using an iterator it of type Type
|
||||||
|
|||||||
@@ -16,9 +16,6 @@
|
|||||||
#include <wx/zipstrm.h>
|
#include <wx/zipstrm.h>
|
||||||
#include <wx/dir.h>
|
#include <wx/dir.h>
|
||||||
|
|
||||||
DECLARE_TYPEOF(Package::FileInfos);
|
|
||||||
DECLARE_TYPEOF_COLLECTION(PackageDependencyP);
|
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------- : Package : outside
|
// ----------------------------------------------------------------------------- : Package : outside
|
||||||
|
|
||||||
IMPLEMENT_DYNAMIC_ARG(Package*, writing_package, nullptr);
|
IMPLEMENT_DYNAMIC_ARG(Package*, writing_package, nullptr);
|
||||||
|
|||||||
@@ -175,7 +175,6 @@ class Package : public IntrusivePtrVirtualBase {
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
/// Information on files in the package
|
/// Information on files in the package
|
||||||
/** Note: must be public for DECLARE_TYPEOF to work */
|
|
||||||
typedef map<String, FileInfo> FileInfos;
|
typedef map<String, FileInfo> FileInfos;
|
||||||
inline const FileInfos& getFileInfos() const { return files; }
|
inline const FileInfos& getFileInfos() const { return files; }
|
||||||
/// When was a file last modified?
|
/// When was a file last modified?
|
||||||
|
|||||||
@@ -19,10 +19,6 @@
|
|||||||
#include <wx/stdpaths.h>
|
#include <wx/stdpaths.h>
|
||||||
#include <wx/wfstream.h>
|
#include <wx/wfstream.h>
|
||||||
|
|
||||||
DECLARE_TYPEOF_COLLECTION(InstallablePackageP);
|
|
||||||
DECLARE_TYPEOF_COLLECTION(PackageVersionP);
|
|
||||||
DECLARE_TYPEOF_COLLECTION(PackageVersion::FileInfo);
|
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------- : PackageManager : in memory
|
// ----------------------------------------------------------------------------- : PackageManager : in memory
|
||||||
|
|
||||||
PackageManager package_manager;
|
PackageManager package_manager;
|
||||||
|
|||||||
@@ -26,8 +26,6 @@ class wxTextOutputStream;
|
|||||||
/// The string type used throughout MSE
|
/// The string type used throughout MSE
|
||||||
typedef wxString String;
|
typedef wxString String;
|
||||||
|
|
||||||
DECLARE_TYPEOF_NO_REV(String); // iterating over characters in a string
|
|
||||||
|
|
||||||
inline wxStdString const& toStdString(String const& s) {
|
inline wxStdString const& toStdString(String const& s) {
|
||||||
#if wxUSE_UNICODE_WCHAR
|
#if wxUSE_UNICODE_WCHAR
|
||||||
return s.ToStdWstring();
|
return s.ToStdWstring();
|
||||||
|
|||||||
Reference in New Issue
Block a user