From: apo Date: Thu, 2 Jun 2005 09:58:51 +0000 (+0000) Subject: add an argument to selected() specifying a selector X-Git-Tag: T3_0_0_a1~28 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=e8fb0b245d8e7c09e02f9d6b9cab11ed2295fc64;p=modules%2Fgui.git add an argument to selected() specifying a selector --- diff --git a/src/SalomeApp/SalomeApp_SelectionMgr.cxx b/src/SalomeApp/SalomeApp_SelectionMgr.cxx index aa2309818..683d5327b 100644 --- a/src/SalomeApp/SalomeApp_SelectionMgr.cxx +++ b/src/SalomeApp/SalomeApp_SelectionMgr.cxx @@ -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( (*itr).operator->() ); if( owner ) - lst.Append( owner->IO() ); + theList.Append( owner->IO() ); } } diff --git a/src/SalomeApp/SalomeApp_SelectionMgr.h b/src/SalomeApp/SalomeApp_SelectionMgr.h index f9eee9ccf..79e7e7e0d 100644 --- a/src/SalomeApp/SalomeApp_SelectionMgr.h +++ b/src/SalomeApp/SalomeApp_SelectionMgr.h @@ -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,