X-Git-Url: https://git.sven.stormbind.net/?a=blobdiff_plain;f=attributeitem.h;fp=attributeitem.h;h=0000000000000000000000000000000000000000;hb=d483bd8e6523c23c6f1d8908a2e0611c2bc9ff4f;hp=a1c4767c3d653c7aa7a9a384d4da548331f676e6;hpb=7dfa3fe589d1722d49681f42cdb0bf1e6efb5223;p=sven%2Fvym.git diff --git a/attributeitem.h b/attributeitem.h deleted file mode 100644 index a1c4767..0000000 --- a/attributeitem.h +++ /dev/null @@ -1,48 +0,0 @@ -#ifndef ATTRIBUTEITEM_H -#define ATTRIBUTEITEM_H - -#include -#include - -#include "branchitem.h" - -/*! \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. -*/ -class AttributeItem:public BranchItem { -public: -enum Type { - Undefined, //!< Undefined type - IntList, //!< Integer - FreeInt, //!< Integer - StringList, //!< List of strings - FreeString, //!< String - UniqueString//!< String which is unique in a map, e.g. for IDs -}; - - AttributeItem(const QList &data, TreeItem *parent = 0); - virtual ~AttributeItem(); - void set (const QString &k, const QString &v, const Type &t); - void get (QString &k, QString &v, Type &t); - void setKey (const QString &k); - QString getKey (); - void setValue (const QString &v); - QVariant getValue (); - using BranchItem::setType; - virtual void setType (const Type &t); - AttributeItem::Type getAttributeType (); - QString getTypeString (); - void setInternal (bool b); - bool isInternal(); - QString getDataXML(); -protected: - void createHeading(); - bool internal; //!< Internal attributes cannot be edited by user - QString key; - QVariant value; - Type attrType; -}; - -#endif -