From ef8e99f6b44fb518afa5881a772ce45528e9e276 Mon Sep 17 00:00:00 2001 From: stv Date: Tue, 20 Dec 2005 12:52:49 +0000 Subject: [PATCH] New method "isSynchronizing()" --- src/SUIT/SUIT_SelectionMgr.cxx | 11 ++++++++++- src/SUIT/SUIT_SelectionMgr.h | 2 ++ 2 files changed, 12 insertions(+), 1 deletion(-) 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(); -- 2.39.2