From: stv Date: Tue, 20 Dec 2005 12:52:49 +0000 (+0000) Subject: New method "isSynchronizing()" X-Git-Tag: T_Before_Join_BR_3_1_0deb~15 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=ef8e99f6b44fb518afa5881a772ce45528e9e276;p=modules%2Fgui.git New method "isSynchronizing()" --- diff --git a/src/SUIT/SUIT_SelectionMgr.cxx b/src/SUIT/SUIT_SelectionMgr.cxx index 640ee62ab..98a33e83a 100755 --- a/src/SUIT/SUIT_SelectionMgr.cxx +++ b/src/SUIT/SUIT_SelectionMgr.cxx @@ -144,7 +144,7 @@ void SUIT_SelectionMgr::selectionChanged( SUIT_Selector* sel ) { // Temporary action(to avoid selection of the objects which don't pass the filters): //if ( aSel != sel ) - aSel->setSelected( newOwners ); + aSel->setSelected( newOwners ); } } myIsSelChangeEnabled = true; @@ -152,6 +152,15 @@ void SUIT_SelectionMgr::selectionChanged( SUIT_Selector* sel ) emit selectionChanged(); } +/*! + Returns true if selection manger is in synchronising mode + (during synchonisation of the selectors selection). +*/ +bool SUIT_SelectionMgr::isSynchronizing() const +{ + return !myIsSelChangeEnabled; +} + /*! Checks: Is selection manager has selection mode \a mode? */ bool SUIT_SelectionMgr::hasSelectionMode( const int mode ) const diff --git a/src/SUIT/SUIT_SelectionMgr.h b/src/SUIT/SUIT_SelectionMgr.h index 280519297..b31678eb2 100755 --- a/src/SUIT/SUIT_SelectionMgr.h +++ b/src/SUIT/SUIT_SelectionMgr.h @@ -71,6 +71,8 @@ public: bool autoDeleteFilter() const; void setAutoDeleteFilter( const bool ); + bool isSynchronizing() const; + signals: void selectionChanged();