selection.h
author insilmaril
Tue, 05 Sep 2006 13:48:17 +0000
changeset 375 06ab6df252fa
parent 364 7b74fa3772bf
child 406 1c8ff1928b97
permissions -rw-r--r--
Version 1.55. Fixed (recently) broken saveToDir
     1 #ifndef SELECTION_H
     2 #define SELECTION_H
     3 
     4 #include <q3ptrlist.h>
     5 
     6 #include "linkablemapobj.h"
     7 #include "mapcenterobj.h"
     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 	void unselect ();
    21 	bool isEmpty();
    22 	uint count();
    23 
    24 	QString getSelectString();
    25 
    26 private:
    27 	void init();
    28 	QList <LinkableMapObj*> selectList;
    29 	MapCenterObj *mapCenter;
    30 };
    31 #endif
    32