implemented all field types

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@29 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
twanvl
2006-10-19 12:31:51 +00:00
parent 5e1125c26e
commit 9f73e2e9dc
14 changed files with 448 additions and 46 deletions
+10 -1
View File
@@ -21,6 +21,11 @@ DECLARE_POINTER_TYPE(SymbolFilter);
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;
private:
DECLARE_REFLECTION();
};
@@ -31,7 +36,7 @@ class SymbolField : public Field {
class SymbolStyle : public Style {
public:
class Variation;
DECLARE_POINTER_TYPE(Variation);
typedef shared_ptr<Variation> VariationP;
vector<VariationP> variations; ///< Different variantions of the same symbol
private:
@@ -41,6 +46,7 @@ class SymbolStyle : public Style {
/// Styling for a symbol variation, defines color, border, etc.
class SymbolStyle::Variation {
public:
Variation();
String name; ///< Name of this variation
SymbolFilterP filter; ///< Filter to color the symbol
double border_radius; ///< Border radius for the symbol
@@ -53,6 +59,9 @@ class SymbolStyle::Variation {
class SymbolValue : public Value {
public:
String filename; ///< Filename of the symbol (in the current package)
virtual String toString() const;
private:
DECLARE_REFLECTION();
};