1 #include "SUIT_Selector.h"
3 #include "SUIT_SelectionMgr.h"
5 SUIT_Selector::SUIT_Selector( SUIT_SelectionMgr* selMgr, QObject* parent ) :
13 selMgr->installSelector( this );
16 SUIT_Selector::~SUIT_Selector()
19 selectionMgr()->removeSelector( this );
22 SUIT_SelectionMgr* SUIT_Selector::selectionMgr() const
27 bool SUIT_Selector::isEnabled() const
32 void SUIT_Selector::setEnabled( const bool on )
37 bool SUIT_Selector::autoBlock() const
42 void SUIT_Selector::setAutoBlock( const bool on )
47 void SUIT_Selector::selected( SUIT_DataOwnerPtrList& lst ) const
53 void SUIT_Selector::setSelected( const SUIT_DataOwnerPtrList& lst )
66 void SUIT_Selector::selectionChanged()
68 if ( selectionMgr() && isEnabled() && ( !autoBlock() || !myBlock ) )
69 selectionMgr()->selectionChanged( this );
72 bool SUIT_Selector::hasSelectionMode( const int mode ) const
74 if ( !selectionMgr() )
77 return selectionMgr()->hasSelectionMode( mode );
80 void SUIT_Selector::selectionModes( QValueList<int>& lst ) const
83 selectionMgr()->selectionModes( lst );