Added ValueViewer,DataViewer,CardViewer and made related changes

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@49 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
twanvl
2006-10-26 20:33:23 +00:00
parent 46cf4dbb64
commit c8e8dd0220
24 changed files with 515 additions and 57 deletions
+3 -6
View File
@@ -23,10 +23,7 @@ DECLARE_POINTER_TYPE(SymbolField);
class SymbolField : public Field {
public:
// no extra data
virtual ValueP newValue(const FieldP& thisP) const;
virtual StyleP newStyle(const FieldP& thisP) const;
virtual String typeName() const;
DECLARE_FIELD_TYPE(Symbol);
private:
DECLARE_REFLECTION();
@@ -38,7 +35,7 @@ class SymbolField : public Field {
class SymbolStyle : public Style {
public:
inline SymbolStyle(const SymbolFieldP& field) : Style(field) {}
HAS_FIELD(Symbol)
DECLARE_STYLE_TYPE(Symbol);
class Variation;
typedef shared_ptr<Variation> VariationP;
@@ -64,7 +61,7 @@ class SymbolStyle::Variation {
class SymbolValue : public Value {
public:
inline SymbolValue(const SymbolFieldP& field) : Value(field) {}
HAS_FIELD(Symbol)
DECLARE_HAS_FIELD(Symbol)
String filename; ///< Filename of the symbol (in the current package)