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 childNumber() const;
23 int columnCount() const;
24 int branchCount() const;
30 int num(); // object index, e.g. branch number
33 QVariant data(int column) const;
34 void setHeading (const QString s);
36 void setNote(const QString s);
38 void setType (const Type t);
40 QString getTypeName ();
42 // Navigation and selection
43 TreeItem* getChildNum(const int &n);
44 TreeItem* getFirstBranch();
45 TreeItem* getLastBranch();
46 TreeItem* getBranchNum(const int &n);
47 void setLastSelectedBranch();
48 TreeItem* getLastSelectedBranch();
51 // Relation to map objects in graphicsscene
52 LinkableMapObj* getLMO();
53 void setLMO (LinkableMapObj*);
56 QList<TreeItem*> childItems;
57 QList<QVariant> itemData;
65 int lastSelectedBranchNum;