diff -r 7ea31701156e -r 7f43b93242aa treeitem.h --- a/treeitem.h Tue Aug 05 07:36:53 2008 +0000 +++ b/treeitem.h Mon Oct 06 11:10:20 2008 +0000 @@ -4,9 +4,12 @@ #include #include +class LinkableMapObj; + class TreeItem { public: + enum Type {Undefined,MapCenter,Branch}; TreeItem(const QList &data, TreeItem *parent = 0); ~TreeItem(); @@ -16,13 +19,27 @@ int childCount() const; int columnCount() const; QVariant data(int column) const; + void setHeading (const QString s); + QString getHeading(); + void setType (const Type t); + Type getType (); + QString getTypeName (); + int row() const; + int column() const; TreeItem *parent(); + // Relation to map objects in graphicsscene + LinkableMapObj* getLMO(); + void setLMO (LinkableMapObj*); + private: QList childItems; QList itemData; TreeItem *parentItem; + + Type type; + LinkableMapObj *lmo; }; #endif