6 #include <QGraphicsScene>
7 #include <QItemSelectionModel>
21 enum Type {Undefined,Branch,MapCenter,FloatImage};
24 void copy(const Selection&);
26 void setModel (VymModel *);
28 bool select (LinkableMapObj*);
29 bool select (const QString &);
38 LinkableMapObj * first(); // first in selection list
39 LinkableMapObj * single(); // NULL, if multiple selected
40 BranchObj* getBranch();
41 TreeItem* getBranchItem();
42 QModelIndex getBranchIndex(); //!< Returns index of first selected branch or mapcenter
43 FloatImageObj* getFloatImage();
45 QString getSelectString();
48 QList <LinkableMapObj*> selectList;
49 QList <LinkableMapObj*> lastSelectList;
53 QItemSelectionModel *selModel; //!< QSelectionModel is shared across views and initialized in setModel
56 bool blocked; //!< if true, no new selection possible