mapeditor.h
changeset 728 a8a98a94899a
parent 726 7f43b93242aa
child 729 7ddbe3fa34a1
     1.1 --- a/mapeditor.h	Wed Oct 29 17:42:34 2008 +0000
     1.2 +++ b/mapeditor.h	Tue Nov 04 12:09:10 2008 +0000
     1.3 @@ -28,7 +28,6 @@
     1.4  public:
     1.5  	void toggleStandardFlag(QString);
     1.6  
     1.7 -	void updateSelection();				// update geometry of selection
     1.8  
     1.9  	AttributeTable* attributeTable();
    1.10      void testFunction1();				// just testing new stuff
    1.11 @@ -92,11 +91,21 @@
    1.12  
    1.13  	QPoint exportOffset;		// set before export, used in save
    1.14  
    1.15 -public:
    1.16 -	void setSelectionModel (QItemSelectionModel*);
    1.17 -	QItemSelectionModel* selectionModel();
    1.18 +//////////// Selection related
    1.19 +signals:
    1.20 +	void selectionChanged();			// Emitted when selection or its represantion changes
    1.21 +
    1.22  private:	
    1.23      QItemSelectionModel* selModel;	// we treat MapEditor as View here...
    1.24 +	QList <QGraphicsRectItem*> selboxList;
    1.25 +	QColor selectionColor;
    1.26 +
    1.27 +public slots:
    1.28 +	void updateSelection(const QItemSelection &,const QItemSelection &); // update selection
    1.29 +public:
    1.30 +	void updateSelectionGeometry();	// update geometry of selection
    1.31 +	void setSelectionColor (QColor c);
    1.32 +	QColor getSelectionColor ();
    1.33  
    1.34  };
    1.35  #endif