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