//+----------------------------------------------------------------------------+ //| Description: Magic Set Editor - Program to make Magic (tm) cards | //| Copyright: (C) Twan van Laarhoven and the other MSE developers | //| License: GNU General Public License 2 or later (see file COPYING) | //+----------------------------------------------------------------------------+ // ----------------------------------------------------------------------------- : Includes #include #include #include // ----------------------------------------------------------------------------- : SymbolField IMPLEMENT_FIELD_TYPE(Symbol, "symbol"); IMPLEMENT_REFLECTION(SymbolField) { REFLECT_BASE(Field); } // ----------------------------------------------------------------------------- : SymbolStyle IMPLEMENT_REFLECTION(SymbolStyle) { REFLECT_BASE(Style); REFLECT(min_aspect_ratio); REFLECT(max_aspect_ratio); REFLECT(variations); } SymbolVariation::SymbolVariation() : border_radius(0.05) {} SymbolVariation::~SymbolVariation() {} bool SymbolVariation::operator == (const SymbolVariation& that) const { return name == that.name && border_radius == that.border_radius && *filter == *that.filter; } IMPLEMENT_REFLECTION_NO_SCRIPT(SymbolVariation) { REFLECT(name); REFLECT(border_radius); REFLECT_NAMELESS(filter); } // ----------------------------------------------------------------------------- : SymbolValue String SymbolValue::toString() const { return filename.empty() ? wxEmptyString : _(""); } IMPLEMENT_REFLECTION_NO_GET_MEMBER(SymbolValue) { if (fieldP->save_value || !handler.isWriting) REFLECT_NAMELESS(filename); } void SymbolValue::reflect(GetMember& handler) {} void SymbolValue::reflect(GetDefaultMember& handler) {}