]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
add an argument to selected() specifying a selector
authorapo <apo@opencascade.com>
Thu, 2 Jun 2005 09:58:51 +0000 (09:58 +0000)
committerapo <apo@opencascade.com>
Thu, 2 Jun 2005 09:58:51 +0000 (09:58 +0000)
src/SalomeApp/SalomeApp_SelectionMgr.cxx
src/SalomeApp/SalomeApp_SelectionMgr.h

index aa23098186c4ad107d7ca53edc58e835697db57e..683d5327b971110246ec4c0a2c80e520f5399cf6 100644 (file)
@@ -36,18 +36,18 @@ SalomeApp_Application* SalomeApp_SelectionMgr::application() const
   get all selected objects from selection manager
 
 */
-void SalomeApp_SelectionMgr::selectedObjects( SALOME_ListIO& lst ) const
+void SalomeApp_SelectionMgr::selectedObjects( SALOME_ListIO& theList, const QString& theType ) const
 {
-  lst.Clear();
+  theList.Clear();
 
   SUIT_DataOwnerPtrList aList;
-  selected( aList );
+  selected( aList, theType );
 
   for ( SUIT_DataOwnerPtrList::const_iterator itr = aList.begin(); itr != aList.end(); ++itr )
   {
     const SalomeApp_DataOwner* owner = dynamic_cast<const SalomeApp_DataOwner*>( (*itr).operator->() );
     if( owner )
-      lst.Append( owner->IO() );
+      theList.Append( owner->IO() );
   }
 }
 
index f9eee9ccfdc76688a854541d964eaffc82cbe833..79e7e7e0d7f54c7b91227117bbae122ed68b8fc1 100644 (file)
@@ -26,7 +26,7 @@ public:
 
   SalomeApp_Application* application() const;
 
-  void                   selectedObjects( SALOME_ListIO& ) const;
+  void                   selectedObjects( SALOME_ListIO&, const QString& = QString::null ) const;
   void                   setSelectedObjects( const SALOME_ListIO&, const bool = false );
 
   void                   GetIndexes( const Handle(SALOME_InteractiveObject)& IObject,