11 class BranchItem:public TreeItem
14 BranchItem(const QList<QVariant> &data, TreeItem *parent = 0);
15 virtual ~BranchItem();
16 void copy (BranchItem *item);
18 void insertBranch (int pos,BranchItem *branch);
20 QString saveToDir (const QString &tmpdir,const QString &prefix, const QPointF& offset);
22 virtual void updateVisibility();
27 virtual void setVymLink (QString);
28 virtual QString getVymLink ();
30 virtual void setHeadingColor (QColor color); //!Overloaded from TreeItem to update QGraphicsView
33 bool scrolled; // true if all children are scrolled and thus invisible
34 bool tmpUnscrolled; // can only be true (temporary) for a scrolled subtree
36 virtual void unScroll();
37 virtual void toggleScroll(); // scroll or unscroll
38 virtual bool isScrolled(); // returns scroll state
39 virtual bool hasScrolledParent(BranchItem*); // true, if any of the parents is scrolled
40 virtual void tmpUnscroll(); // unscroll scrolled parents temporary e.g. during "find" process
41 virtual void resetTmpUnscroll(); // scroll all tmp scrolled parents again e.g. when unselecting
43 TreeItem* findMapItem (QPointF p,TreeItem* excludeTI); //! search map for branches or images. Ignore excludeTI, where search is started
44 virtual TreeItem* findID (QString sid); //! search map for object with ID string
46 virtual BranchObj* getBranchObj();
47 virtual BranchObj* createMapObj(QGraphicsScene *scene); //! Create classic object in GraphicsView