author | insilmaril |
Wed Jan 10 13:26:12 2007 +0000 (2007-01-10) | |
changeset 420 | b7447adddc9a |
parent 364 | 7b74fa3772bf |
child 421 | 5522d1da7e37 |
permissions | -rw-r--r-- |
insilmaril@364 | 1 |
#ifndef SELECTION_H |
insilmaril@364 | 2 |
#define SELECTION_H |
insilmaril@364 | 3 |
|
insilmaril@0 | 4 |
#include "linkablemapobj.h" |
insilmaril@364 | 5 |
#include "mapcenterobj.h" |
insilmaril@0 | 6 |
|
insilmaril@0 | 7 |
class Selection |
insilmaril@0 | 8 |
{ |
insilmaril@0 | 9 |
public: |
insilmaril@0 | 10 |
Selection (); |
insilmaril@0 | 11 |
~Selection(); |
insilmaril@0 | 12 |
void copy(const Selection&); |
insilmaril@0 | 13 |
void clear(); |
insilmaril@364 | 14 |
void setMapCenter (MapCenterObj *); |
insilmaril@0 | 15 |
|
insilmaril@0 | 16 |
bool select (LinkableMapObj*); |
insilmaril@364 | 17 |
bool select (const QString &); |
insilmaril@364 | 18 |
void unselect (); |
insilmaril@0 | 19 |
bool isEmpty(); |
insilmaril@0 | 20 |
uint count(); |
insilmaril@0 | 21 |
|
insilmaril@364 | 22 |
QString getSelectString(); |
insilmaril@364 | 23 |
|
insilmaril@0 | 24 |
private: |
insilmaril@364 | 25 |
void init(); |
insilmaril@364 | 26 |
QList <LinkableMapObj*> selectList; |
insilmaril@364 | 27 |
MapCenterObj *mapCenter; |
insilmaril@0 | 28 |
}; |
insilmaril@0 | 29 |
#endif |
insilmaril@0 | 30 |