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;
23 int branchCount() const;
29 int num(); // object index, e.g. branch number
32 QVariant data(int column) const;
33 void setHeading (const QString s);
35 void setNote(const QString s);
37 void setType (const Type t);
39 QString getTypeName ();
41 // Navigation and selection
42 TreeItem* getChildNum(const int &n);
43 TreeItem* getFirstBranch();
44 TreeItem* getLastBranch();
45 TreeItem* getBranchNum(const int &n);
46 void setLastSelectedBranch();
47 TreeItem* getLastSelectedBranch();
50 // Relation to map objects in graphicsscene
51 LinkableMapObj* getLMO();
52 void setLMO (LinkableMapObj*);
55 QList<TreeItem*> childItems;
56 QList<QVariant> itemData;
64 int lastSelectedBranchNum;