diff -r 96402b172173 -r a8a98a94899a mapeditor.h --- a/mapeditor.h Wed Oct 29 17:42:34 2008 +0000 +++ b/mapeditor.h Tue Nov 04 12:09:10 2008 +0000 @@ -28,7 +28,6 @@ public: void toggleStandardFlag(QString); - void updateSelection(); // update geometry of selection AttributeTable* attributeTable(); void testFunction1(); // just testing new stuff @@ -92,11 +91,21 @@ QPoint exportOffset; // set before export, used in save -public: - void setSelectionModel (QItemSelectionModel*); - QItemSelectionModel* selectionModel(); +//////////// Selection related +signals: + void selectionChanged(); // Emitted when selection or its represantion changes + private: QItemSelectionModel* selModel; // we treat MapEditor as View here... + QList selboxList; + QColor selectionColor; + +public slots: + void updateSelection(const QItemSelection &,const QItemSelection &); // update selection +public: + void updateSelectionGeometry(); // update geometry of selection + void setSelectionColor (QColor c); + QColor getSelectionColor (); }; #endif