]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
New method "isSynchronizing()"
authorstv <stv@opencascade.com>
Tue, 20 Dec 2005 12:52:49 +0000 (12:52 +0000)
committerstv <stv@opencascade.com>
Tue, 20 Dec 2005 12:52:49 +0000 (12:52 +0000)
src/SUIT/SUIT_SelectionMgr.cxx
src/SUIT/SUIT_SelectionMgr.h

index 640ee62ab814e2371afbbfad479a0d99fa0da68c..98a33e83a99fdda74688286741e65a892aa0f68b 100755 (executable)
@@ -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
index 2805192972100a9bbbd6a4e456dd4825f2543686..b31678eb2e96a4db2124a136173cd166609eacbc 100755 (executable)
@@ -71,6 +71,8 @@ public:
   bool            autoDeleteFilter() const;
   void            setAutoDeleteFilter( const bool );
 
+  bool            isSynchronizing() const;
+
 signals:
   void            selectionChanged();