diff -r 6dc0a20031f7 -r 1b4d1ea6ea8c treeitem.h --- a/treeitem.h Wed Feb 04 16:33:16 2009 +0000 +++ b/treeitem.h Fri Mar 06 15:02:58 2009 +0000 @@ -20,16 +20,20 @@ TreeItem *child(int row); int childCount() const; int columnCount() const; + int branchCount() const; int row() const; int column() const; int depth() ; TreeItem *parent(); + int num(); // object index, e.g. branch number // Accessing data QVariant data(int column) const; void setHeading (const QString s); QString getHeading(); + void setNote(const QString s); + QString getNote(); void setType (const Type t); Type getType (); QString getTypeName (); @@ -47,7 +51,7 @@ LinkableMapObj* getLMO(); void setLMO (LinkableMapObj*); -private: +protected: QList childItems; QList itemData; TreeItem *parentItem; @@ -56,7 +60,7 @@ LinkableMapObj *lmo; int branchOffset; - int branchCount; + int branchCounter; int lastSelectedBranchNum; };