diff -r fe3c52c49037 -r 367d875453ed attribute.h --- a/attribute.h Wed Feb 27 16:08:45 2008 +0000 +++ b/attribute.h Wed Feb 27 16:09:06 2008 +0000 @@ -11,14 +11,16 @@ enum AttributeType { Undefined, //!< Undefined type + IntList, //!< Free integer + FreeInt, //!< Free integer StringList, //!< List of strings, one can be attribute value FreeString, //!< Any string can be attribute value, not unique UniqueString//!< UniqueString, e.g. for IDs }; /*! \brief A key and a value - The data itself is stored in Attribute Definitions (AttributeDef). A list of these tables - AttributeTable is maintained for every MapEditor. + The data itself is stored in Attribute Definitions (AttributeDef). + A list of these tables AttributeTable is maintained for every MapEditor. */ class Attribute:public XMLObj { public: @@ -77,10 +79,12 @@ AttributeDef* getDef(const QString &k); //!< Get defintion of attribute int countKeys(); //!< Return number of keys QStringList getKeys (); + QStringList getTypes(); QString getDataXML(); protected: QList attdefs; + QStringList typeList; };