selection.h
author insilmaril
Tue, 05 Sep 2006 07:56:57 +0000
branchqt4-port
changeset 20 9ad3d0391be1
parent 16 41c3d7f9f532
permissions -rw-r--r--
More undo/redo commands. Undo debug output still enabled
insilmaril@16
     1
#ifndef SELECTION_H
insilmaril@16
     2
#define SELECTION_H
insilmaril@16
     3
insilmaril@16
     4
#include <q3ptrlist.h>
insilmaril@0
     5
insilmaril@0
     6
#include "linkablemapobj.h"
insilmaril@16
     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@16
    16
	void setMapCenter (MapCenterObj *);
insilmaril@0
    17
	
insilmaril@0
    18
	bool select (LinkableMapObj*);
insilmaril@16
    19
	bool select (const QString &);
insilmaril@16
    20
	void unselect ();
insilmaril@0
    21
	bool isEmpty();
insilmaril@0
    22
	uint count();
insilmaril@0
    23
insilmaril@16
    24
	QString getSelectString();
insilmaril@16
    25
insilmaril@0
    26
private:
insilmaril@16
    27
	void init();
insilmaril@16
    28
	QList <LinkableMapObj*> selectList;
insilmaril@16
    29
	MapCenterObj *mapCenter;
insilmaril@0
    30
};
insilmaril@0
    31
#endif
insilmaril@0
    32