mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-11 05:07:00 -04:00
Added value actions for common value types; drop down list is now correctly aligned
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@92 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
@@ -143,7 +143,8 @@ class ChoiceValue : public Value {
|
||||
{}
|
||||
DECLARE_HAS_FIELD(Choice)
|
||||
|
||||
Defaultable<String> value; /// The name of the selected choice
|
||||
typedef Defaultable<String> ValueType;
|
||||
ValueType value; /// The name of the selected choice
|
||||
|
||||
virtual String toString() const;
|
||||
virtual bool update(Context&);
|
||||
|
||||
@@ -76,7 +76,8 @@ class ColorValue : public Value {
|
||||
inline ColorValue(const ColorFieldP& field) : Value(field) {}
|
||||
DECLARE_HAS_FIELD(Color)
|
||||
|
||||
Defaultable<Color> value; ///< The value
|
||||
typedef Defaultable<Color> ValueType;
|
||||
ValueType value; ///< The value
|
||||
|
||||
virtual String toString() const;
|
||||
virtual bool update(Context&);
|
||||
|
||||
@@ -50,7 +50,8 @@ class ImageValue : public Value {
|
||||
public:
|
||||
inline ImageValue(const ImageFieldP& field) : Value(field) {}
|
||||
|
||||
FileName filename; ///< Filename of the image (in the current package), or ""
|
||||
typedef FileName ValueType;
|
||||
ValueType filename; ///< Filename of the image (in the current package), or ""
|
||||
|
||||
virtual String toString() const;
|
||||
|
||||
|
||||
@@ -65,7 +65,8 @@ class SymbolValue : public Value {
|
||||
inline SymbolValue(const SymbolFieldP& field) : Value(field) {}
|
||||
DECLARE_HAS_FIELD(Symbol)
|
||||
|
||||
FileName filename; ///< Filename of the symbol (in the current package)
|
||||
typedef FileName ValueType;
|
||||
ValueType filename; ///< Filename of the symbol (in the current package)
|
||||
|
||||
virtual String toString() const;
|
||||
|
||||
|
||||
@@ -80,7 +80,8 @@ class TextValue : public Value {
|
||||
inline TextValue(const TextFieldP& field) : Value(field) {}
|
||||
DECLARE_HAS_FIELD(Text)
|
||||
|
||||
Defaultable<String> value; ///< The text of this value
|
||||
typedef Defaultable<String> ValueType;
|
||||
ValueType value; ///< The text of this value
|
||||
|
||||
virtual String toString() const;
|
||||
virtual bool update(Context&);
|
||||
|
||||
Reference in New Issue
Block a user