12 enum Type {Undefined,MapCenter,Branch,Image};
13 TreeItem(const QList<QVariant> &data, TreeItem *parent = 0);
16 // General housekeeping
17 void appendChild (TreeItem *child);
18 void removeChild (int row);
20 TreeItem *child(int row);
21 int childCount() const;
22 int columnCount() const;
30 QVariant data(int column) const;
31 void setHeading (const QString s);
33 void setType (const Type t);
35 QString getTypeName ();
37 // Navigation and selection
38 TreeItem* getChildNum(const int &n);
39 TreeItem* getFirstBranch();
40 TreeItem* getLastBranch();
41 TreeItem* getBranchNum(const int &n);
42 void setLastSelectedBranch();
43 TreeItem* getLastSelectedBranch();
46 // Relation to map objects in graphicsscene
47 LinkableMapObj* getLMO();
48 void setLMO (LinkableMapObj*);
51 QList<TreeItem*> childItems;
52 QList<QVariant> itemData;
60 int lastSelectedBranchNum;