selection.h
author insilmaril
Wed, 30 Jul 2008 14:42:03 +0000
branchrelease-1-12-maintained
changeset 43 cf274b28e5fe
parent 0 7a96bd401351
child 2 608f976aa7bb
child 364 7b74fa3772bf
permissions -rw-r--r--
Fixed animation timer, which didn't stop once activated
insilmaril@0
     1
#ifndef SELECTIONOBJ_H
insilmaril@0
     2
#define SELECTIONOBJ_H
insilmaril@0
     3
insilmaril@0
     4
#include "linkablemapobj.h"
insilmaril@0
     5
#include <qptrlist.h>
insilmaril@0
     6
insilmaril@0
     7
class Selection 
insilmaril@0
     8
{
insilmaril@0
     9
public:
insilmaril@0
    10
	Selection ();
insilmaril@0
    11
	Selection (const Selection&);
insilmaril@0
    12
	~Selection();
insilmaril@0
    13
	void init();
insilmaril@0
    14
	void copy(const Selection&);
insilmaril@0
    15
	void clear();
insilmaril@0
    16
	
insilmaril@0
    17
	bool select (LinkableMapObj*);
insilmaril@0
    18
	void unselect (LinkableMapObj*);
insilmaril@0
    19
	bool isEmpty();
insilmaril@0
    20
	uint count();
insilmaril@0
    21
insilmaril@0
    22
private:
insilmaril@0
    23
	QPtrList <LinkableMapObj> selectList;
insilmaril@0
    24
};
insilmaril@0
    25
#endif
insilmaril@0
    26