branchitem.h
author insilmaril
Wed, 01 Apr 2009 15:06:57 +0000
changeset 749 9ff332964015
parent 747 008e72977ab8
child 750 ff3b01ce0960
permissions -rw-r--r--
moved scroll functions from BranchObj to BranchItem
     1 #ifndef BRANCHITEM_H
     2 #define BRANCHITEM_H
     3 
     4 #include "treeitem.h"
     5 
     6 class QString;
     7 
     8 class BranchItem:public TreeItem
     9 {
    10 public:
    11     BranchItem(const QList<QVariant> &data, TreeItem *parent = 0);
    12     ~BranchItem();
    13 	void copy (BranchItem *item);
    14 
    15 	QString saveToDir (const QString &tmpdir,const QString &prefix, const QPointF& offset);
    16 
    17 	virtual void unScroll();				
    18 	virtual void toggleScroll();			// scroll or unscroll
    19 	virtual bool isScrolled();				// returns scroll state
    20 	virtual bool hasScrolledParent(BranchItem*);	// true, if any of the parents is scrolled
    21 	virtual void tmpUnscroll();				// unscroll scrolled parents temporary e.g. during "find" process
    22 	virtual void resetTmpUnscroll();		// scroll all tmp scrolled parents again e.g. when unselecting
    23 
    24 
    25 protected:	
    26 	bool scrolled;			// true if all children are scrolled and thus invisible
    27 	bool tmpUnscrolled;		// can only be true (temporary) for a scrolled subtree
    28 
    29 };
    30 
    31 #endif