mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 13:06:59 -04:00
implemented all field types
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@29 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
@@ -9,5 +9,47 @@
|
||||
#include <data/field/symbol.hpp>
|
||||
|
||||
// ----------------------------------------------------------------------------- : SymbolField
|
||||
|
||||
StyleP SymbolField::newStyle(const FieldP& thisP) const {
|
||||
return new_shared<SymbolStyle>();
|
||||
}
|
||||
|
||||
ValueP SymbolField::newValue(const FieldP& thisP) const {
|
||||
return new_shared<SymbolValue>();
|
||||
}
|
||||
|
||||
String SymbolField::typeName() const {
|
||||
return _("symbol");
|
||||
}
|
||||
|
||||
IMPLEMENT_REFLECTION(SymbolField) {
|
||||
REFLECT_BASE(Field);
|
||||
}
|
||||
|
||||
|
||||
// ----------------------------------------------------------------------------- : SymbolStyle
|
||||
|
||||
IMPLEMENT_REFLECTION(SymbolStyle) {
|
||||
REFLECT_BASE(Style);
|
||||
REFLECT(variations);
|
||||
}
|
||||
|
||||
SymbolStyle::Variation::Variation()
|
||||
: border_radius(0.05)
|
||||
{}
|
||||
|
||||
IMPLEMENT_REFLECTION(SymbolStyle::Variation) {
|
||||
REFLECT(name);
|
||||
REFLECT(border_radius);
|
||||
//REFLECT_NAMELESS(filter);
|
||||
}
|
||||
|
||||
// ----------------------------------------------------------------------------- : SymbolValue
|
||||
|
||||
String SymbolValue::toString() const {
|
||||
return filename.empty() ? wxEmptyString : _("<symbol>");
|
||||
}
|
||||
|
||||
IMPLEMENT_REFLECTION_NAMELESS(SymbolValue) {
|
||||
REFLECT_NAMELESS(filename);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user