Version: 8.3.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
SUIT_Selector Class Referenceabstract

#include <SUIT_Selector.h>

Inheritance diagram for SUIT_Selector:
Inheritance graph

Classes

class  Destroyer
 

Public Member Functions

 SUIT_Selector (SUIT_SelectionMgr *, QObject *=0)
 
virtual ~SUIT_Selector ()
 
virtual QString type () const =0
 
SUIT_SelectionMgrselectionMgr () const
 
bool isEnabled () const
 
virtual void setEnabled (const bool)
 
bool autoBlock () const
 
virtual void setAutoBlock (const bool)
 
void selected (SUIT_DataOwnerPtrList &) const
 
void setSelected (const SUIT_DataOwnerPtrList &)
 
bool hasSelectionMode (const int) const
 
void selectionModes (QList< int > &) const
 
QObjectowner () const
 

Protected Member Functions

void selectionChanged ()
 
virtual void getSelection (SUIT_DataOwnerPtrList &) const =0
 
virtual void setSelection (const SUIT_DataOwnerPtrList &)=0
 

Private Attributes

SUIT_SelectionMgrmySelMgr
 
bool myBlock
 
bool myEnabled
 
bool myAutoBlock
 
DestroyermyDestroyer
 

Detailed Description

Class provide selector for data owners.

Base class for all selectors used in SUIT-based applications. Provides functionality to get/set selection from/into some widget (ObjectBrowser, viewers, etc) Used by selection manager for selection synhronizing

Constructor & Destructor Documentation

SUIT_Selector::SUIT_Selector ( SUIT_SelectionMgr selMgr,
QObject parent = 0 
)

Constructor.

References SUIT_SelectionMgr::installSelector(), and myDestroyer.

Member Function Documentation

bool SUIT_Selector::autoBlock ( ) const

Checks: Is selector auto block?

References myAutoBlock.

virtual void SUIT_Selector::getSelection ( SUIT_DataOwnerPtrList ) const
protectedpure virtual
bool SUIT_Selector::hasSelectionMode ( const int  mode) const

Checks: Is selection manager has selection mode mode?

References SUIT_SelectionMgr::hasSelectionMode(), and selectionMgr().

bool SUIT_Selector::isEnabled ( ) const

Checks: Is selctor enabled?

References myEnabled.

QObject * SUIT_Selector::owner ( ) const

Get owner of this selector.

References myDestroyer.

void SUIT_Selector::selected ( SUIT_DataOwnerPtrList lst) const

Puts to lst selection list of data owners.

References SUIT_DataOwnerPtrList::clear(), and getSelection().

void SUIT_Selector::selectionChanged ( )
protected
SUIT_SelectionMgr * SUIT_Selector::selectionMgr ( ) const

Gets selection manager.

References mySelMgr.

void SUIT_Selector::selectionModes ( QList< int > &  lst) const

Puts to list lst selection modes from selection manager.

References selectionMgr(), and SUIT_SelectionMgr::selectionModes().

void SUIT_Selector::setAutoBlock ( const bool  on)
virtual

Sets selctor autoblock to on.

References myAutoBlock.

void SUIT_Selector::setEnabled ( const bool  on)
virtual

Sets selctor anbled to on.

References myEnabled.

void SUIT_Selector::setSelected ( const SUIT_DataOwnerPtrList lst)

Puts to selection list of data owners lst..

References isEnabled(), myBlock, and setSelection().

Member Data Documentation

bool SUIT_Selector::myAutoBlock
private
bool SUIT_Selector::myBlock
private
Destroyer* SUIT_Selector::myDestroyer
private
bool SUIT_Selector::myEnabled
private
SUIT_SelectionMgr* SUIT_Selector::mySelMgr
private

The documentation for this class was generated from the following files: