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() );
}
}
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,