1.1 --- a/attribute.h Mon Jan 07 14:52:49 2008 +0000
1.2 +++ b/attribute.h Mon Oct 06 11:10:20 2008 +0000
1.3 @@ -11,14 +11,16 @@
1.4
1.5 enum AttributeType {
1.6 Undefined, //!< Undefined type
1.7 + IntList, //!< Free integer
1.8 + FreeInt, //!< Free integer
1.9 StringList, //!< List of strings, one can be attribute value
1.10 FreeString, //!< Any string can be attribute value, not unique
1.11 UniqueString//!< UniqueString, e.g. for IDs
1.12 };
1.13
1.14 /*! \brief A key and a value
1.15 - The data itself is stored in Attribute Definitions (AttributeDef). A list of these tables
1.16 - AttributeTable is maintained for every MapEditor.
1.17 + The data itself is stored in Attribute Definitions (AttributeDef).
1.18 + A list of these tables AttributeTable is maintained for every MapEditor.
1.19 */
1.20 class Attribute:public XMLObj {
1.21 public:
1.22 @@ -77,10 +79,12 @@
1.23 AttributeDef* getDef(const QString &k); //!< Get defintion of attribute
1.24 int countKeys(); //!< Return number of keys
1.25 QStringList getKeys ();
1.26 + QStringList getTypes();
1.27 QString getDataXML();
1.28
1.29 protected:
1.30 QList <AttributeDef*> attdefs;
1.31 + QStringList typeList;
1.32 };
1.33
1.34