1.1 --- a/branchitem.h Tue Mar 31 15:36:10 2009 +0000
1.2 +++ b/branchitem.h Wed Apr 01 15:06:57 2009 +0000
1.3 @@ -10,9 +10,22 @@
1.4 public:
1.5 BranchItem(const QList<QVariant> &data, TreeItem *parent = 0);
1.6 ~BranchItem();
1.7 + void copy (BranchItem *item);
1.8
1.9 QString saveToDir (const QString &tmpdir,const QString &prefix, const QPointF& offset);
1.10
1.11 + virtual void unScroll();
1.12 + virtual void toggleScroll(); // scroll or unscroll
1.13 + virtual bool isScrolled(); // returns scroll state
1.14 + virtual bool hasScrolledParent(BranchItem*); // true, if any of the parents is scrolled
1.15 + virtual void tmpUnscroll(); // unscroll scrolled parents temporary e.g. during "find" process
1.16 + virtual void resetTmpUnscroll(); // scroll all tmp scrolled parents again e.g. when unselecting
1.17 +
1.18 +
1.19 +protected:
1.20 + bool scrolled; // true if all children are scrolled and thus invisible
1.21 + bool tmpUnscrolled; // can only be true (temporary) for a scrolled subtree
1.22 +
1.23 };
1.24
1.25 #endif