author | insilmaril |
Mon Oct 16 12:42:54 2006 +0000 (2006-10-16) | |
changeset 392 | 18f824bd3070 |
parent 0 | 7a96bd401351 |
child 406 | 1c8ff1928b97 |
permissions | -rw-r--r-- |
insilmaril@364 | 1 |
#ifndef SELECTION_H |
insilmaril@364 | 2 |
#define SELECTION_H |
insilmaril@364 | 3 |
|
insilmaril@364 | 4 |
#include <q3ptrlist.h> |
insilmaril@0 | 5 |
|
insilmaril@0 | 6 |
#include "linkablemapobj.h" |
insilmaril@364 | 7 |
#include "mapcenterobj.h" |
insilmaril@0 | 8 |
|
insilmaril@0 | 9 |
class Selection |
insilmaril@0 | 10 |
{ |
insilmaril@0 | 11 |
public: |
insilmaril@0 | 12 |
Selection (); |
insilmaril@0 | 13 |
~Selection(); |
insilmaril@0 | 14 |
void copy(const Selection&); |
insilmaril@0 | 15 |
void clear(); |
insilmaril@364 | 16 |
void setMapCenter (MapCenterObj *); |
insilmaril@0 | 17 |
|
insilmaril@0 | 18 |
bool select (LinkableMapObj*); |
insilmaril@364 | 19 |
bool select (const QString &); |
insilmaril@364 | 20 |
void unselect (); |
insilmaril@0 | 21 |
bool isEmpty(); |
insilmaril@0 | 22 |
uint count(); |
insilmaril@0 | 23 |
|
insilmaril@364 | 24 |
QString getSelectString(); |
insilmaril@364 | 25 |
|
insilmaril@0 | 26 |
private: |
insilmaril@364 | 27 |
void init(); |
insilmaril@364 | 28 |
QList <LinkableMapObj*> selectList; |
insilmaril@364 | 29 |
MapCenterObj *mapCenter; |
insilmaril@0 | 30 |
}; |
insilmaril@0 | 31 |
#endif |
insilmaril@0 | 32 |