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