vymmodel.h
changeset 727 96402b172173
parent 726 7f43b93242aa
child 728 a8a98a94899a
     1.1 --- a/vymmodel.h	Mon Oct 06 11:10:20 2008 +0000
     1.2 +++ b/vymmodel.h	Wed Oct 29 17:42:34 2008 +0000
     1.3 @@ -525,11 +525,14 @@
     1.4  	QString latestSelectionString;	// select string of latest added object
     1.5  
     1.6  public:
     1.7 +	void setSelectionModel(QItemSelectionModel *);		// Set common selectionModel
     1.8 +
     1.9  	void setSelectionBlocked(bool);
    1.10  	bool isSelectionBlocked();
    1.11  
    1.12 -	bool select(const QString &);			// Select by string
    1.13 -	bool select(LinkableMapObj *lmo);		// Select by pointer
    1.14 +	bool select ();							// select by using common QItemSlectionModel
    1.15 +	bool select (const QString &);			// Select by string
    1.16 +	bool select (LinkableMapObj *lmo);		// Select by pointer
    1.17  	void unselect();
    1.18  	void reselect();
    1.19  
    1.20 @@ -562,6 +565,8 @@
    1.21      void selectMapSelectionColor();
    1.22  private:	
    1.23      void setSelectionColorInt(QColor);
    1.24 +	QItemSelectionModel *selModel;
    1.25 +
    1.26  public:	
    1.27      void setSelectionColor(QColor);
    1.28      QColor getSelectionColor();