mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-11 13:17:00 -04:00
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:
@@ -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
|
||||
|
||||
|
||||
@@ -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&);
|
||||
|
||||
|
||||
@@ -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&);
|
||||
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -68,6 +68,7 @@ class InfoValue : public Value {
|
||||
|
||||
String value;
|
||||
|
||||
virtual ValueP clone() const;
|
||||
virtual String toString() const;
|
||||
virtual bool update(Context&);
|
||||
|
||||
|
||||
@@ -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?
|
||||
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -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&);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user