1.1 --- a/treeitem.h Wed Feb 04 16:33:16 2009 +0000
1.2 +++ b/treeitem.h Fri Mar 06 15:02:58 2009 +0000
1.3 @@ -20,16 +20,20 @@
1.4 TreeItem *child(int row);
1.5 int childCount() const;
1.6 int columnCount() const;
1.7 + int branchCount() const;
1.8
1.9 int row() const;
1.10 int column() const;
1.11 int depth() ;
1.12 TreeItem *parent();
1.13 + int num(); // object index, e.g. branch number
1.14
1.15 // Accessing data
1.16 QVariant data(int column) const;
1.17 void setHeading (const QString s);
1.18 QString getHeading();
1.19 + void setNote(const QString s);
1.20 + QString getNote();
1.21 void setType (const Type t);
1.22 Type getType ();
1.23 QString getTypeName ();
1.24 @@ -47,7 +51,7 @@
1.25 LinkableMapObj* getLMO();
1.26 void setLMO (LinkableMapObj*);
1.27
1.28 -private:
1.29 +protected:
1.30 QList<TreeItem*> childItems;
1.31 QList<QVariant> itemData;
1.32 TreeItem *parentItem;
1.33 @@ -56,7 +60,7 @@
1.34 LinkableMapObj *lmo;
1.35
1.36 int branchOffset;
1.37 - int branchCount;
1.38 + int branchCounter;
1.39 int lastSelectedBranchNum;
1.40 };
1.41