1.1 --- a/selection.h Mon Jan 29 12:29:13 2007 +0000
1.2 +++ b/selection.h Sat Mar 31 09:28:27 2007 +0000
1.3 @@ -1,8 +1,18 @@
1.4 #ifndef SELECTION_H
1.5 #define SELECTION_H
1.6
1.7 -#include "linkablemapobj.h"
1.8 -#include "mapcenterobj.h"
1.9 +#include <QString>
1.10 +#include <QList>
1.11 +#include <QGraphicsScene>
1.12 +
1.13 +
1.14 +class MapEditor;
1.15 +class BranchObj;
1.16 +class FloatImageObj;
1.17 +class MapCenterObj;
1.18 +class LinkableMapObj;
1.19 +
1.20 +
1.21
1.22 enum SelectionType {Undefined,Branch,MapCenter,FloatImage};
1.23
1.24 @@ -13,8 +23,10 @@
1.25 ~Selection();
1.26 void copy(const Selection&);
1.27 void clear();
1.28 - void setMapCenter (MapCenterObj *);
1.29 -
1.30 + void setMapEditor (MapEditor *);
1.31 + void update();
1.32 + void setColor (QColor c);
1.33 + QColor getColor ();
1.34 bool select (LinkableMapObj*);
1.35 bool select (const QString &);
1.36 bool reselect ();
1.37 @@ -33,7 +45,12 @@
1.38 void init();
1.39 QList <LinkableMapObj*> selectList;
1.40 QList <LinkableMapObj*> lastSelectList;
1.41 + QList <QGraphicsRectItem*> selboxList;
1.42 + MapEditor *mapEditor;
1.43 MapCenterObj *mapCenter;
1.44 + QGraphicsScene *scene;
1.45 +
1.46 + QColor color;
1.47 };
1.48 #endif
1.49