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:
twanvl
2006-11-24 16:36:17 +00:00
parent edfe24a05f
commit 0a916f89bc
23 changed files with 268 additions and 66 deletions
+2 -1
View File
@@ -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&);
+2 -1
View File
@@ -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&);
+2 -1
View File
@@ -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;
+2 -1
View File
@@ -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;
+2 -1
View File
@@ -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&);