selection.h
changeset 385 63e28dfd877d
parent 0 7a96bd401351
child 406 1c8ff1928b97
     1.1 --- a/selection.h	Sun Jan 30 12:58:47 2005 +0000
     1.2 +++ b/selection.h	Thu Sep 14 11:38:17 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 <qptrlist.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 -	QPtrList <LinkableMapObj> selectList;
    1.37 +	void init();
    1.38 +	QList <LinkableMapObj*> selectList;
    1.39 +	MapCenterObj *mapCenter;
    1.40  };
    1.41  #endif
    1.42