]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
add an argument to selected() specifying a selector
authoreap <eap@opencascade.com>
Thu, 2 Jun 2005 09:45:18 +0000 (09:45 +0000)
committereap <eap@opencascade.com>
Thu, 2 Jun 2005 09:45:18 +0000 (09:45 +0000)
src/SUIT/SUIT_SelectionMgr.cxx
src/SUIT/SUIT_SelectionMgr.h

index 1089fb81a358cb78c824c79aaaafba9f5e162307..b19694e89544459efd36da024110e19bb5d70bdb 100755 (executable)
@@ -47,13 +47,15 @@ void SUIT_SelectionMgr::setEnabled( const bool on, const QString& typ )
   }
 }
 
-void SUIT_SelectionMgr::selected( SUIT_DataOwnerPtrList& lst ) const
+void SUIT_SelectionMgr::selected( SUIT_DataOwnerPtrList& lst, const QString& type ) const
 {
   lst.clear();
 
   QMap<const SUIT_DataOwner*, int> map;
   for ( SelectorListIterator it( mySelectors ); it.current(); ++it )
   {
+    if ( !type.isEmpty() && it.current()->type() != type )
+      continue;
     SUIT_DataOwnerPtrList curList;
     it.current()->selected( curList );
     for ( SUIT_DataOwnerPtrList::const_iterator itr = curList.begin(); itr != curList.end(); ++itr )
index 5f172c52e21129dfe9798d8b126949807f64eb55..bc1b66faac1ad375e1ad3b46dd096d0a0dcff95d 100755 (executable)
@@ -18,7 +18,7 @@ public:
   virtual ~SUIT_SelectionMgr();
 
   void            clearSelected();
-  virtual void    selected( SUIT_DataOwnerPtrList& ) const;
+  virtual void    selected( SUIT_DataOwnerPtrList&, const QString& = QString::null ) const;
   virtual void    setSelected( const SUIT_DataOwnerPtrList&, const bool = false );
 
   virtual void    installSelector( SUIT_Selector* );