ACF $AcfVersion:0$
Public Types | Public Member Functions | Protected Slots | Protected Member Functions | List of all members
iqtprm::CSelectionParamGuiComp Class Reference

Simple editor for an exclusive option selection. More...

#include <CSelectionParamGuiComp.h>

Inheritance diagram for iqtprm::CSelectionParamGuiComp:
iqtgui::TDesignerGuiObserverCompBase< Ui::CSelectionParamGuiComp, iprm::ISelectionParam > imod::CMultiModelDispatcherBase ibase::TModelObserverCompBaseWrap< ObserverComponent > istd::IPolymorphic

Public Types

enum  UiMode { UM_COMBOBOX , UM_RADIOBUTTON_HORIZONTAL , UM_RADIOBUTTON_VERTICAL , UM_COMBOBOX_VERTICAL }
 GUI mode for selection representation. More...
 
enum  LabelPosition { LP_LEFT , LP_TOP }
 Command label position. More...
 
enum  LabelAlignment {
  LA_LEFT_TOP , LA_CENTER_TOP , LA_RIGHT_TOP , LA_LEFT_CENTER ,
  LA_CENTER , LA_RIGHT_CENTER , LA_LEFT_BOTTOM , LA_CENTER_BOTTOM ,
  LA_RIGHT_BOTTOM
}
 
typedef iqtgui::TDesignerGuiObserverCompBase< Ui::CSelectionParamGuiComp, iprm::ISelectionParamBaseClass
 
- Public Types inherited from ibase::TModelObserverCompBaseWrap< ObserverComponent >
typedef ObserverComponent BaseClass
 

Public Member Functions

 CSelectionParamGuiComp ()
 

Protected Slots

void OnSelectionChanged (int index)
 
void OnRadioButtonSelectionChanged (bool isSelected)
 
void OnResetButtonClicked ()
 
void OnFilterTextEdited (const QString &text)
 

Protected Member Functions

virtual void OnGuiModelAttached () override
 
virtual void OnGuiModelDetached () override
 
virtual void UpdateGui (const istd::IChangeable::ChangeSet &changeSet) override
 
virtual void OnGuiCreated () override
 
virtual void OnGuiDestroyed () override
 
virtual void OnGuiShown () override
 
virtual void OnGuiRetranslate () override
 
virtual void OnModelChanged (int modelId, const istd::IChangeable::ChangeSet &changeSet) override
 Called when some model observed by dispatcher will be changed.
 
- Protected Member Functions inherited from ibase::TModelObserverCompBaseWrap< ObserverComponent >
virtual void OnComponentCreated () override
 
virtual void OnComponentDestroyed () override
 
bool RegisterModel (IModel *modelPtr, int modelId=0, const istd::IChangeable::ChangeSet &relevantFlags=istd::IChangeable::GetAllChanges())
 Register the data model to be observed.
 
void UnregisterModel (int modelId=0)
 Unregister the data model object.
 
void UnregisterAllModels ()
 Unregister all observed data objects.
 
template<class Object >
Object * GetObjectAt (int modelId) const
 Get concrete object instance of the obsered model.
 
- Protected Member Functions inherited from istd::IPolymorphic
virtual ~IPolymorphic ()
 

Detailed Description

Simple editor for an exclusive option selection.

Definition at line 43 of file CSelectionParamGuiComp.h.

Member Typedef Documentation

◆ BaseClass

Definition at line 52 of file CSelectionParamGuiComp.h.

Member Enumeration Documentation

◆ LabelAlignment

Enumerator
LA_LEFT_TOP 
LA_CENTER_TOP 
LA_RIGHT_TOP 
LA_LEFT_CENTER 
LA_CENTER 
LA_RIGHT_CENTER 
LA_LEFT_BOTTOM 
LA_CENTER_BOTTOM 
LA_RIGHT_BOTTOM 

Definition at line 96 of file CSelectionParamGuiComp.h.

◆ LabelPosition

Command label position.

Enumerator
LP_LEFT 

Left from the selector.

LP_TOP 

On top of the selector.

Definition at line 83 of file CSelectionParamGuiComp.h.

◆ UiMode

GUI mode for selection representation.

Enumerator
UM_COMBOBOX 

Horizontal combo box selection.

UM_RADIOBUTTON_HORIZONTAL 

Horizontal radio buttons group.

UM_RADIOBUTTON_VERTICAL 

Vertical radio buttons group.

UM_COMBOBOX_VERTICAL 

Vertical combo box selection.

Definition at line 57 of file CSelectionParamGuiComp.h.

Constructor & Destructor Documentation

◆ CSelectionParamGuiComp()

iqtprm::CSelectionParamGuiComp::CSelectionParamGuiComp ( )

Member Function Documentation

◆ OnFilterTextEdited

void iqtprm::CSelectionParamGuiComp::OnFilterTextEdited ( const QString &  text)
protectedslot

◆ OnGuiCreated()

virtual void iqtprm::CSelectionParamGuiComp::OnGuiCreated ( )
overrideprotectedvirtual

◆ OnGuiDestroyed()

virtual void iqtprm::CSelectionParamGuiComp::OnGuiDestroyed ( )
overrideprotectedvirtual

◆ OnGuiModelAttached()

virtual void iqtprm::CSelectionParamGuiComp::OnGuiModelAttached ( )
overrideprotectedvirtual

◆ OnGuiModelDetached()

virtual void iqtprm::CSelectionParamGuiComp::OnGuiModelDetached ( )
overrideprotectedvirtual

◆ OnGuiRetranslate()

virtual void iqtprm::CSelectionParamGuiComp::OnGuiRetranslate ( )
overrideprotectedvirtual

◆ OnGuiShown()

virtual void iqtprm::CSelectionParamGuiComp::OnGuiShown ( )
overrideprotectedvirtual

◆ OnModelChanged()

virtual void iqtprm::CSelectionParamGuiComp::OnModelChanged ( int  modelId,
const istd::IChangeable::ChangeSet changeSet 
)
overrideprotectedvirtual

Called when some model observed by dispatcher will be changed.

Implements imod::CMultiModelDispatcherBase.

◆ OnRadioButtonSelectionChanged

void iqtprm::CSelectionParamGuiComp::OnRadioButtonSelectionChanged ( bool  isSelected)
protectedslot

◆ OnResetButtonClicked

void iqtprm::CSelectionParamGuiComp::OnResetButtonClicked ( )
protectedslot

◆ OnSelectionChanged

void iqtprm::CSelectionParamGuiComp::OnSelectionChanged ( int  index)
protectedslot

◆ UpdateGui()

virtual void iqtprm::CSelectionParamGuiComp::UpdateGui ( const istd::IChangeable::ChangeSet changeSet)
overrideprotectedvirtual

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