mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 04:57:00 -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:
+1
-13
@@ -26,10 +26,6 @@ ValueP TextField::newValue(const FieldP& thisP) const {
|
||||
return new_shared<TextValue>();
|
||||
}
|
||||
|
||||
FieldP TextField::clone() const {
|
||||
return new_shared1<TextField>(*this);
|
||||
}
|
||||
|
||||
String TextField::typeName() const {
|
||||
return _("text");
|
||||
}
|
||||
@@ -46,24 +42,16 @@ IMPLEMENT_REFLECTION(TextField) {
|
||||
|
||||
// ----------------------------------------------------------------------------- : TextStyle
|
||||
|
||||
StyleP TextStyle::clone() const {
|
||||
return new_shared1<TextStyle>(*this);
|
||||
}
|
||||
|
||||
IMPLEMENT_REFLECTION(TextStyle) {
|
||||
REFLECT_BASE(Style);
|
||||
}
|
||||
|
||||
// ----------------------------------------------------------------------------- : TextValue
|
||||
|
||||
ValueP TextValue::clone() const {
|
||||
return new_shared1<TextValue>(*this);
|
||||
}
|
||||
String TextValue::toString() const {
|
||||
return value();
|
||||
}
|
||||
|
||||
IMPLEMENT_REFLECTION(TextValue) {
|
||||
REFLECT_BASE(Value);
|
||||
IMPLEMENT_REFLECTION_NAMELESS(TextValue) {
|
||||
REFLECT_NAMELESS(value);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user