//+----------------------------------------------------------------------------+ //| Description: Magic Set Editor - Program to make Magic (tm) cards | //| Copyright: (C) 2001 - 2006 Twan van Laarhoven | //| License: GNU General Public License 2 or later (see file COPYING) | //+----------------------------------------------------------------------------+ // ----------------------------------------------------------------------------- : Includes #include // ----------------------------------------------------------------------------- : MultipleChoiceField MultipleChoiceField::MultipleChoiceField() : minimum_selection(0) , maximum_selection(1000000) {} StyleP MultipleChoiceField::newStyle(const FieldP& thisP) const { return new_shared(); } ValueP MultipleChoiceField::newValue(const FieldP& thisP) const { return new_shared(); } String MultipleChoiceField::typeName() const { return _("multiple choice"); } IMPLEMENT_REFLECTION(MultipleChoiceField) { REFLECT_BASE(ChoiceField); REFLECT(minimum_selection); REFLECT(maximum_selection); } // ----------------------------------------------------------------------------- : MultipleChoiceStyle MultipleChoiceStyle::MultipleChoiceStyle() : direction(HORIZONTAL) , spacing(0) {} IMPLEMENT_REFLECTION_ENUM(Direction) { VALUE_N("horizontal", HORIZONTAL); VALUE_N("vertical", VERTICAL); } IMPLEMENT_REFLECTION(MultipleChoiceStyle) { REFLECT_BASE(ChoiceStyle); REFLECT(direction); REFLECT(spacing); } // ----------------------------------------------------------------------------- : MultipleChoiceValue IMPLEMENT_REFLECTION_NAMELESS(MultipleChoiceValue) { REFLECT_BASE(ChoiceValue); }