selection.h
changeset 421 5522d1da7e37
parent 406 1c8ff1928b97
child 424 d886c77ac0fe
     1.1 --- a/selection.h	Wed Jan 10 13:26:12 2007 +0000
     1.2 +++ b/selection.h	Tue Jan 23 11:50:53 2007 +0000
     1.3 @@ -4,6 +4,8 @@
     1.4  #include "linkablemapobj.h"
     1.5  #include "mapcenterobj.h"
     1.6  
     1.7 +enum SelectionType {Undefined,Branch,MapCenter,FloatImage};
     1.8 +
     1.9  class Selection 
    1.10  {
    1.11  public:
    1.12 @@ -15,15 +17,18 @@
    1.13  	
    1.14  	bool select (LinkableMapObj*);
    1.15  	bool select (const QString &);
    1.16 +	bool reselect ();
    1.17  	void unselect ();
    1.18  	bool isEmpty();
    1.19  	uint count();
    1.20 +	SelectionType type();
    1.21  
    1.22  	QString getSelectString();
    1.23  
    1.24  private:
    1.25  	void init();
    1.26  	QList <LinkableMapObj*> selectList;
    1.27 +	QList <LinkableMapObj*> lastSelectList;
    1.28  	MapCenterObj *mapCenter;
    1.29  };
    1.30  #endif