branchitem.h
author insilmaril
Mon, 20 Apr 2009 10:42:05 +0000
changeset 754 db0ec4bcf416
parent 753 25a77484ec72
child 755 ed5b407975b3
permissions -rw-r--r--
minor fixes
     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 updateVisibility();
    19 
    20 protected:
    21 	QString vymLink;
    22 public:	
    23 	virtual void setVymLink (QString);
    24     virtual QString getVymLink ();
    25 
    26 protected:	
    27 	bool scrolled;			// true if all children are scrolled and thus invisible
    28 	bool tmpUnscrolled;		// can only be true (temporary) for a scrolled subtree
    29 public:
    30 	virtual void unScroll();				
    31 	virtual void toggleScroll();			// scroll or unscroll
    32 	virtual bool isScrolled();				// returns scroll state
    33 	virtual bool hasScrolledParent(BranchItem*);	// true, if any of the parents is scrolled
    34 	virtual void tmpUnscroll();				// unscroll scrolled parents temporary e.g. during "find" process
    35 	virtual void resetTmpUnscroll();		// scroll all tmp scrolled parents again e.g. when unselecting
    36 
    37 	TreeItem* findMapItem (QPointF,TreeItem*);	//! search map for branches or images
    38 	virtual TreeItem* findID (QString sid);		//! search map for object with ID string
    39 
    40 	BranchObj* getBranchObj();	
    41 };
    42 
    43 #endif