1 #include "SUIT_Selector.h"
3 #include "SUIT_SelectionMgr.h"
5 SUIT_Selector::SUIT_Selector( SUIT_SelectionMgr* selMgr )
12 selMgr->installSelector( this );
15 SUIT_Selector::~SUIT_Selector()
18 selectionMgr()->removeSelector( this );
21 SUIT_SelectionMgr* SUIT_Selector::selectionMgr() const
26 bool SUIT_Selector::isEnabled() const
31 void SUIT_Selector::setEnabled( const bool on )
36 bool SUIT_Selector::autoBlock() const
41 void SUIT_Selector::setAutoBlock( const bool on )
46 void SUIT_Selector::selected( SUIT_DataOwnerPtrList& lst ) const
52 void SUIT_Selector::setSelected( const SUIT_DataOwnerPtrList& lst )
65 void SUIT_Selector::selectionChanged()
67 if ( selectionMgr() && isEnabled() && ( !autoBlock() || !myBlock ) )
68 selectionMgr()->selectionChanged( this );
71 bool SUIT_Selector::hasSelectionMode( const int mode ) const
73 if ( !selectionMgr() )
76 return selectionMgr()->hasSelectionMode( mode );
79 void SUIT_Selector::selectionModes( QValueList<int>& lst ) const
82 selectionMgr()->selectionModes( lst );