selection.h
branchqt4-port
changeset 16 41c3d7f9f532
parent 2 608f976aa7bb
     1.1 --- a/selection.h	Tue Aug 15 12:01:14 2006 +0000
     1.2 +++ b/selection.h	Tue Aug 29 08:31:42 2006 +0000
     1.3 @@ -1,26 +1,32 @@
     1.4 -#ifndef SELECTIONOBJ_H
     1.5 -#define SELECTIONOBJ_H
     1.6 +#ifndef SELECTION_H
     1.7 +#define SELECTION_H
     1.8 +
     1.9 +#include <q3ptrlist.h>
    1.10  
    1.11  #include "linkablemapobj.h"
    1.12 -#include <q3ptrlist.h>
    1.13 +#include "mapcenterobj.h"
    1.14  
    1.15  class Selection 
    1.16  {
    1.17  public:
    1.18  	Selection ();
    1.19 -	Selection (const Selection&);
    1.20  	~Selection();
    1.21 -	void init();
    1.22  	void copy(const Selection&);
    1.23  	void clear();
    1.24 +	void setMapCenter (MapCenterObj *);
    1.25  	
    1.26  	bool select (LinkableMapObj*);
    1.27 -	void unselect (LinkableMapObj*);
    1.28 +	bool select (const QString &);
    1.29 +	void unselect ();
    1.30  	bool isEmpty();
    1.31  	uint count();
    1.32  
    1.33 +	QString getSelectString();
    1.34 +
    1.35  private:
    1.36 -	Q3PtrList <LinkableMapObj> selectList;
    1.37 +	void init();
    1.38 +	QList <LinkableMapObj*> selectList;
    1.39 +	MapCenterObj *mapCenter;
    1.40  };
    1.41  #endif
    1.42