11 class BranchItem:public TreeItem
14 BranchItem(const QList<QVariant> &data, TreeItem *parent = 0);
16 void copy (BranchItem *item);
18 QString saveToDir (const QString &tmpdir,const QString &prefix, const QPointF& offset);
20 virtual void updateVisibility();
25 virtual void setVymLink (QString);
26 virtual QString getVymLink ();
29 bool scrolled; // true if all children are scrolled and thus invisible
30 bool tmpUnscrolled; // can only be true (temporary) for a scrolled subtree
32 virtual void unScroll();
33 virtual void toggleScroll(); // scroll or unscroll
34 virtual bool isScrolled(); // returns scroll state
35 virtual bool hasScrolledParent(BranchItem*); // true, if any of the parents is scrolled
36 virtual void tmpUnscroll(); // unscroll scrolled parents temporary e.g. during "find" process
37 virtual void resetTmpUnscroll(); // scroll all tmp scrolled parents again e.g. when unselecting
39 TreeItem* findMapItem (QPointF,TreeItem*); //! search map for branches or images
40 virtual TreeItem* findID (QString sid); //! search map for object with ID string
42 BranchObj* getBranchObj();
43 BranchObj* createMapObj(QGraphicsScene *scene); //! Create classic object in GraphicsView