Added clone() function to Value.

Added support for per-card styling

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@430 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
twanvl
2007-06-24 01:30:34 +00:00
parent df9bb78e51
commit f0628317a3
25 changed files with 147 additions and 21 deletions
+1
View File
@@ -52,6 +52,7 @@ class BooleanValue : public ChoiceValue {
public:
inline BooleanValue(const ChoiceFieldP& field) : ChoiceValue(field) {}
DECLARE_HAS_FIELD(Boolean);
virtual ValueP clone() const;
// no extra data
+1
View File
@@ -177,6 +177,7 @@ class ChoiceValue : public Value {
typedef Defaultable<String> ValueType;
ValueType value; /// The name of the selected choice
virtual ValueP clone() const;
virtual String toString() const;
virtual bool update(Context&);
+1
View File
@@ -83,6 +83,7 @@ class ColorValue : public Value {
typedef Defaultable<Color> ValueType;
ValueType value; ///< The value
virtual ValueP clone() const;
virtual String toString() const;
virtual bool update(Context&);
+1
View File
@@ -58,6 +58,7 @@ class ImageValue : public Value {
ValueType filename; ///< Filename of the image (in the current package), or ""
Age last_update; ///< When was the image last changed?
virtual ValueP clone() const;
virtual String toString() const;
private:
+1
View File
@@ -68,6 +68,7 @@ class InfoValue : public Value {
String value;
virtual ValueP clone() const;
virtual String toString() const;
virtual bool update(Context&);
+1
View File
@@ -56,6 +56,7 @@ class MultipleChoiceValue : public ChoiceValue {
public:
inline MultipleChoiceValue(const MultipleChoiceFieldP& field) : ChoiceValue(field, false) {}
DECLARE_HAS_FIELD(MultipleChoice);
virtual ValueP clone() const;
String last_change; ///< Which of the choices was selected/deselected last?
+1
View File
@@ -69,6 +69,7 @@ class SymbolValue : public Value {
ValueType filename; ///< Filename of the symbol (in the current package)
Age last_update; ///< When was the symbol last changed?
virtual ValueP clone() const;
virtual String toString() const;
private:
+1
View File
@@ -110,6 +110,7 @@ class TextValue : public Value {
ValueType value; ///< The text of this value
Age last_update; ///< When was the text last changed?
virtual ValueP clone() const;
virtual String toString() const;
virtual bool update(Context&);