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< iqtgui::TGuiObserverWrap< iqtgui::TDesignerGuiCompBase< Ui::CSelectionParamGuiComp, QWidget >, imod::TSingleModelObserverBase< iprm::ISelectionParam > > > istd::IPolymorphic iqtgui::TGuiObserverWrap< iqtgui::TDesignerGuiCompBase< Ui::CSelectionParamGuiComp, QWidget >, imod::TSingleModelObserverBase< iprm::ISelectionParam > > iqtgui::TDesignerGuiCompBase< Ui::CSelectionParamGuiComp, QWidget > imod::TSingleModelObserverBase< iprm::ISelectionParam > imod::IModelEditor iqtgui::TGuiComponentBase< QWidget > imod::CSingleModelObserverBase istd::IPolymorphic iqtgui::CGuiComponentBase imod::IObserver ibase::TLocalizableWrap< icomp::CComponentBase > iqtgui::IGuiObject istd::IPolymorphic icomp::CComponentBase istd::IPolymorphic icomp::IComponent istd::IPolymorphic

Public Types

enum  UiMode { UM_COMBOBOX, UM_RADIOBUTTON_HORIZONTAL, UM_RADIOBUTTON_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::ISelectionParam
BaseClass
 
- Public Types inherited from iqtgui::TGuiComponentBase< QWidget >
typedef CGuiComponentBase BaseClass
 
- Public Types inherited from iqtgui::CGuiComponentBase
typedef icomp::CComponentBase BaseClass
 
- Public Types inherited from ibase::TLocalizableWrap< icomp::CComponentBase >
typedef icomp::CComponentBase BaseClass
 
- Public Types inherited from imod::TSingleModelObserverBase< iprm::ISelectionParam >
typedef CSingleModelObserverBase BaseClass
 
typedef iprm::ISelectionParam ModelType
 
- Public Types inherited from imod::CSingleModelObserverBase
typedef imod::IModel ModelType
 
- Public Types inherited from imod::IModelEditor
enum  ChangeFlags { CF_INIT_EDITOR = 0x3720694 }
 Data model change notification flags. More...
 

Public Member Functions

 CSelectionParamGuiComp ()
 
- Public Member Functions inherited from iqtgui::TGuiComponentBase< QWidget >
 TGuiComponentBase ()
 
virtual QWidget * GetQtWidget () const
 
- Public Member Functions inherited from iqtgui::CGuiComponentBase
 I_REGISTER_SUBELEMENT_INTERFACE_T (VisualStatus, IVisualStatus, ExtractVisualStatus)
 
 I_REGISTER_SUBELEMENT_INTERFACE_T (VisualStatus, istd::IChangeable, ExtractVisualStatus)
 
 I_REGISTER_SUBELEMENT_INTERFACE_T (VisualStatus, imod::IModel, ExtractVisualStatus)
 
 CGuiComponentBase ()
 
bool IsGuiShown () const
 
virtual bool IsGuiCreated () const
 Inform if GUI was initilized. More...
 
virtual bool CreateGui (QWidget *parentPtr)
 Initialize GUI and connect it to the parent. More...
 
virtual bool DestroyGui ()
 Release GUI and disconnect it from parent. More...
 
virtual QWidget * GetWidget () const
 Get access to internal QWidget object. More...
 
virtual void OnTryClose (bool *ignoredPtr=NULL)
 Called on trying to close application. More...
 
- Public Member Functions inherited from ibase::TLocalizableWrap< icomp::CComponentBase >
 TLocalizableWrap ()
 
virtual void EnableLocalization (bool enableLocalization=true)
 If enabled, listen to the language change event from the application context. More...
 
- Public Member Functions inherited from icomp::CComponentBase
 CComponentBase ()
 Create component and assign it to specific context. More...
 
virtual const ICompositeComponentGetParentComponent (bool ownerOnly=false) const
 Get parent of this component. More...
 
virtual void * GetInterface (const istd::CClassInfo &interfaceType, const QByteArray &subId="")
 Get access to specified component interface. More...
 
virtual const IComponentContextGetComponentContext () const
 Get access to component context describing all application-specified component information loaded from components registry. More...
 
virtual void SetComponentContext (const icomp::IComponentContext *contextPtr, const ICompositeComponent *parentPtr, bool isParentOwner)
 Set component context of this component. More...
 
- Public Member Functions inherited from istd::IPolymorphic
virtual ~IPolymorphic ()
 
- Public Member Functions inherited from imod::TSingleModelObserverBase< iprm::ISelectionParam >
 TSingleModelObserverBase ()
 
iprm::ISelectionParamGetObservedObject () const
 Get instance of observed object. More...
 
iprm::ISelectionParamGetObjectPtr () const
 Get instance of observed object. More...
 
bool AttachOrSetObject (iprm::ISelectionParam *objectPtr)
 Attach to model of object or set object pointer, if no connection is possible. More...
 
- Public Member Functions inherited from imod::CSingleModelObserverBase
 CSingleModelObserverBase ()
 
virtual ~CSingleModelObserverBase ()
 
imod::IModelGetObservedModel () const
 Get access to observed model. More...
 
imod::IModelGetModelPtr () const
 Get access to observed model. More...
 
void EnsureModelDetached ()
 Make sure this observer is detached. More...
 
void SetObservedIds (const istd::IChangeable::ChangeSet &changeMask)
 Set list of ID's beeing observed. More...
 
virtual bool IsModelAttached (const imod::IModel *modelPtr=NULL) const
 Check if specified model is attached. More...
 
virtual void BeforeUpdate (imod::IModel *modelPtr)
 This function will be called before update of the observer contents occures. More...
 

Protected Slots

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

Protected Member Functions

virtual void OnGuiModelAttached ()
 Called when model is attached and GUI is created. More...
 
virtual void OnGuiModelDetached ()
 Called when model is detached or GUI is destroyed. More...
 
virtual void UpdateGui (const istd::IChangeable::ChangeSet &changeSet)
 Do update of the GUI to reflect the state of model. More...
 
virtual void OnGuiCreated ()
 Called just after GUI is initialized. More...
 
virtual void OnGuiDestroyed ()
 Called just before GUI is released. More...
 
virtual void OnGuiShown ()
 Called from widget event filter when slave widget is shown. More...
 
virtual void OnGuiRetranslate ()
 Called from widget event filter when GUI should be retranslated. More...
 
virtual void OnModelChanged (int modelId, const istd::IChangeable::ChangeSet &changeSet)
 
- Protected Member Functions inherited from iqtgui::CGuiComponentBase
virtual bool OnKeyPressed (QKeyEvent *event)
 Called from widget event filter when key is pressed. More...
 
virtual void OnRetranslate ()
 Called when non-GUI elements (like commands) should be retranslated. More...
 
void SetStatusIcon (const QIcon &icon)
 Set status icon;. More...
 
void SetStatusText (const QString &text)
 Set status text;. More...
 
virtual void OnLanguageChanged ()
 
virtual bool eventFilter (QObject *sourcePtr, QEvent *eventPtr)
 
- Protected Member Functions inherited from icomp::CComponentBase
bool IsComponentActive () const
 Check if component is active. More...
 
virtual const
icomp::IRealComponentStaticInfo
GetComponentStaticInfo () const =0
 Get access to static info of this component. More...
 
- Protected Member Functions inherited from imod::TSingleModelObserverBase< iprm::ISelectionParam >
virtual iprm::ISelectionParamCastFromModel (imod::IModel *modelPtr) const
 
- Protected Member Functions inherited from imod::CSingleModelObserverBase
void SetModelPtr (imod::IModel *modelPtr)
 Set internal model pointer to specified value. More...
 
virtual void OnUpdate (const istd::IChangeable::ChangeSet &changeSet)
 Called on update of observed model. More...
 
bool RegisterModel (IModel *modelPtr, int modelId=0, const istd::IChangeable::ChangeSet &relevantFlags=istd::IChangeable::GetAllChanges())
 Register the data model to be observed. More...
 
void UnregisterModel (int modelId=0)
 Unregister the data model object. More...
 
void UnregisterAllModels ()
 Unregister all observed data objects. More...
 
template<class Object >
Object * GetObjectAt (int modelId) const
 Get concrete object instance of the obsered model. More...
 

Additional Inherited Members

- Static Protected Member Functions inherited from icomp::CComponentBase
static const
icomp::IRealComponentStaticInfo
InitStaticInfo (IComponent *componentPtr)
 
static QByteArray GetComponentId (const icomp::IComponentContext *componentContextPtr, const QByteArray &contextId=QByteArray())
 
- Protected Attributes inherited from iqtgui::CGuiComponentBase
imod::TModelWrap< VisualStatusm_visualStatus
 
- Static Protected Attributes inherited from imod::CSingleModelObserverBase
static const
istd::IChangeable::ChangeSet 
s_undoChanges
 

Detailed Description

Simple editor for an exclusive option selection.

Definition at line 41 of file CSelectionParamGuiComp.h.

Member Typedef Documentation

Definition at line 50 of file CSelectionParamGuiComp.h.

Member Enumeration Documentation

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 89 of file CSelectionParamGuiComp.h.

Command label position.

Enumerator
LP_LEFT 

Left from the selector.

LP_TOP 

On top of the selector.

Definition at line 76 of file CSelectionParamGuiComp.h.

GUI mode for selection representation.

Enumerator
UM_COMBOBOX 

Combo box selection.

UM_RADIOBUTTON_HORIZONTAL 

Horizontal radio buttons group.

UM_RADIOBUTTON_VERTICAL 

Vertical radio buttons group.

Definition at line 55 of file CSelectionParamGuiComp.h.

Constructor & Destructor Documentation

iqtprm::CSelectionParamGuiComp::CSelectionParamGuiComp ( )

Member Function Documentation

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

Called just after GUI is initialized.

Reimplemented from iqtgui::TDesignerGuiObserverCompBase< Ui::CSelectionParamGuiComp, iprm::ISelectionParam >.

virtual void iqtprm::CSelectionParamGuiComp::OnGuiDestroyed ( )
protectedvirtual
virtual void iqtprm::CSelectionParamGuiComp::OnGuiModelAttached ( )
protectedvirtual
virtual void iqtprm::CSelectionParamGuiComp::OnGuiModelDetached ( )
protectedvirtual
virtual void iqtprm::CSelectionParamGuiComp::OnGuiRetranslate ( )
protectedvirtual
virtual void iqtprm::CSelectionParamGuiComp::OnGuiShown ( )
protectedvirtual
virtual void iqtprm::CSelectionParamGuiComp::OnModelChanged ( int  modelId,
const istd::IChangeable::ChangeSet changeSet 
)
protectedvirtual
void iqtprm::CSelectionParamGuiComp::OnRadioButtonSelectionChanged ( bool  isSelected)
protectedslot
void iqtprm::CSelectionParamGuiComp::OnResetButtonClicked ( )
protectedslot
void iqtprm::CSelectionParamGuiComp::OnSelectionChanged ( int  index)
protectedslot
virtual void iqtprm::CSelectionParamGuiComp::UpdateGui ( const istd::IChangeable::ChangeSet changeSet)
protectedvirtual

Do update of the GUI to reflect the state of model.

This method should be implmented by derived classes instead of imod::IModelEditor::UpdateEditor().

Reimplemented from iqtgui::TGuiObserverWrap< iqtgui::TDesignerGuiCompBase< Ui::CSelectionParamGuiComp, QWidget >, imod::TSingleModelObserverBase< iprm::ISelectionParam > >.


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

© 2007-2017 Witold Gantzke and Kirill Lepskiy