diff -r 008e72977ab8 -r 9ff332964015 branchitem.h --- a/branchitem.h Thu Mar 26 07:50:32 2009 +0000 +++ b/branchitem.h Wed Apr 01 15:06:57 2009 +0000 @@ -10,9 +10,22 @@ public: BranchItem(const QList &data, TreeItem *parent = 0); ~BranchItem(); + void copy (BranchItem *item); QString saveToDir (const QString &tmpdir,const QString &prefix, const QPointF& offset); + virtual void unScroll(); + virtual void toggleScroll(); // scroll or unscroll + virtual bool isScrolled(); // returns scroll state + virtual bool hasScrolledParent(BranchItem*); // true, if any of the parents is scrolled + virtual void tmpUnscroll(); // unscroll scrolled parents temporary e.g. during "find" process + virtual void resetTmpUnscroll(); // scroll all tmp scrolled parents again e.g. when unselecting + + +protected: + bool scrolled; // true if all children are scrolled and thus invisible + bool tmpUnscrolled; // can only be true (temporary) for a scrolled subtree + }; #endif