author | insilmaril |
Tue, 23 Jan 2007 11:50:56 +0000 | |
changeset 423 | 7019762f8701 |
parent 421 | 5522d1da7e37 |
child 424 | d886c77ac0fe |
permissions | -rw-r--r-- |
1 #ifndef SELECTION_H
2 #define SELECTION_H
4 #include "linkablemapobj.h"
5 #include "mapcenterobj.h"
7 enum SelectionType {Undefined,Branch,MapCenter,FloatImage};
9 class Selection
10 {
11 public:
12 Selection ();
13 ~Selection();
14 void copy(const Selection&);
15 void clear();
16 void setMapCenter (MapCenterObj *);
18 bool select (LinkableMapObj*);
19 bool select (const QString &);
20 bool reselect ();
21 void unselect ();
22 bool isEmpty();
23 uint count();
24 SelectionType type();
26 QString getSelectString();
28 private:
29 void init();
30 QList <LinkableMapObj*> selectList;
31 QList <LinkableMapObj*> lastSelectList;
32 MapCenterObj *mapCenter;
33 };
34 #endif