SUIT_SelectionMgr::~SUIT_SelectionMgr()
{
+ mySelectors.setAutoDelete( true );
}
void SUIT_SelectionMgr::installSelector( SUIT_Selector* sel )
}
}
-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 )
{
for ( SUIT_Selector* aSel = mySelectors.first(); aSel; aSel = mySelectors.next() )
{
- if ( aSel != sel )
- aSel->setSelected( newOwners );
+ // Temporary action(to avoid selection of the objects which don't pass the filters):
+ //if ( aSel != sel )
+ aSel->setSelected( newOwners );
}
}
myIsSelChangeEnabled = true;