mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 13:06:59 -04:00
added FieldP to values and styles, implemented reflection for IndexMap
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@36 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
@@ -15,13 +15,7 @@ MultipleChoiceField::MultipleChoiceField()
|
||||
, maximum_selection(1000000)
|
||||
{}
|
||||
|
||||
StyleP MultipleChoiceField::newStyle(const FieldP& thisP) const {
|
||||
return new_shared<MultipleChoiceStyle>();
|
||||
}
|
||||
|
||||
ValueP MultipleChoiceField::newValue(const FieldP& thisP) const {
|
||||
return new_shared<MultipleChoiceValue>();
|
||||
}
|
||||
FIELD_TYPE(MultipleChoice)
|
||||
|
||||
String MultipleChoiceField::typeName() const {
|
||||
return _("multiple choice");
|
||||
@@ -35,8 +29,9 @@ IMPLEMENT_REFLECTION(MultipleChoiceField) {
|
||||
|
||||
// ----------------------------------------------------------------------------- : MultipleChoiceStyle
|
||||
|
||||
MultipleChoiceStyle::MultipleChoiceStyle()
|
||||
: direction(HORIZONTAL)
|
||||
MultipleChoiceStyle::MultipleChoiceStyle(const MultipleChoiceFieldP& field)
|
||||
: ChoiceStyle(field)
|
||||
, direction(HORIZONTAL)
|
||||
, spacing(0)
|
||||
{}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user