mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-12 05:36:59 -04:00
added multiple choice field
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@35 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
@@ -42,6 +42,9 @@ class ChoiceField : public Field {
|
||||
/// An item that can be chosen for this field
|
||||
class ChoiceField::Choice {
|
||||
public:
|
||||
Choice();
|
||||
Choice(const String& name);
|
||||
|
||||
String name; ///< Name/value of the item
|
||||
String default_name; ///< A default item, if this is a group and default_name.empty() there is no default
|
||||
vector<ChoiceP> choices; ///< Choices and sub groups in this group
|
||||
@@ -50,9 +53,7 @@ class ChoiceField::Choice {
|
||||
* The top level group has first_id 0.
|
||||
*/
|
||||
int first_id;
|
||||
|
||||
Choice();
|
||||
|
||||
|
||||
/// Is this a group?
|
||||
bool isGroup() const;
|
||||
/// Can this Choice itself be chosen?
|
||||
|
||||
Reference in New Issue
Block a user