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

UI manager of the parameter sets. More...

#include <CExtParamsManagerGuiComp.h>

Inheritance diagram for iqtprm::CExtParamsManagerGuiComp:
iqtgui::TDesignerGuiObserverCompBase< Ui::CExtParamsManagerGuiComp, iprm::IParamsManager > ibase::TModelObserverCompBaseWrap< ObserverComponent >

Classes

class  CElementEditorDialog
 Edit dialog for the parameter set name and description. More...
 
class  CElementItemDelegate
 Delegate implementation for customization of the parameter set item view in the parameter set list. More...
 
struct  ParameterEditor
 Internal structure used for binding of model editor, observer and gui editor for the parameter set in a one object. More...
 

Public Types

typedef iqtgui::TDesignerGuiObserverCompBase< Ui::CExtParamsManagerGuiComp, iprm::IParamsManagerBaseClass
 
- Public Types inherited from ibase::TModelObserverCompBaseWrap< ObserverComponent >
typedef ObserverComponent BaseClass
 

Protected Types

enum  DataRoles { DR_DESCRIPTION = Qt::UserRole + 1 , DR_PARAMETER_TYPE , DR_INDEX , DR_UUID }
 Data roles used in the list view items. More...
 
typedef QMap< QByteArray, ParameterEditorParameterEditorMap
 Mapping between the parameter type ID and corresponding editor.
 

Protected Slots

void on_AddButton_clicked ()
 
void on_CloneButton_clicked ()
 
void on_EditButton_clicked ()
 
void on_RemoveButton_clicked ()
 
void on_ReloadButton_clicked ()
 
void on_ElementList_doubleClicked (const QModelIndex &index)
 
void on_ElementList_itemSelectionChanged ()
 

Protected Member Functions

int GetParameterTypeIndexById (const QByteArray &parameterTypeId) const
 
void UpdateCommands ()
 
virtual void UpdateGui (const istd::IChangeable::ChangeSet &changeSet) override
 
virtual void OnGuiCreated () override
 
- Protected Member Functions inherited from ibase::TModelObserverCompBaseWrap< ObserverComponent >
virtual void OnComponentCreated () override
 
virtual void OnComponentDestroyed () override
 

Protected Attributes

ParameterEditorMap m_parameterEditorMap
 
QByteArray m_lastSelectedParameterSetId
 

Detailed Description

UI manager of the parameter sets.

With help of this UI-editor the parameter sets can be added, removed, copied and edited. The editor is realized as observer of the iprm::IParamsManager data model interface.

Definition at line 36 of file CExtParamsManagerGuiComp.h.

Member Typedef Documentation

◆ BaseClass

Definition at line 43 of file CExtParamsManagerGuiComp.h.

◆ ParameterEditorMap

Mapping between the parameter type ID and corresponding editor.

Definition at line 150 of file CExtParamsManagerGuiComp.h.

Member Enumeration Documentation

◆ DataRoles

Data roles used in the list view items.

Enumerator
DR_DESCRIPTION 

Parameter set description.

DR_PARAMETER_TYPE 

Parameter type ID.

DR_INDEX 

Index of the parameter set in the list.

DR_UUID 

ID of the parameter set.

Definition at line 76 of file CExtParamsManagerGuiComp.h.

Member Function Documentation

◆ GetParameterTypeIndexById()

int iqtprm::CExtParamsManagerGuiComp::GetParameterTypeIndexById ( const QByteArray &  parameterTypeId) const
protected

◆ on_AddButton_clicked

void iqtprm::CExtParamsManagerGuiComp::on_AddButton_clicked ( )
protectedslot

◆ on_CloneButton_clicked

void iqtprm::CExtParamsManagerGuiComp::on_CloneButton_clicked ( )
protectedslot

◆ on_EditButton_clicked

void iqtprm::CExtParamsManagerGuiComp::on_EditButton_clicked ( )
protectedslot

◆ on_ElementList_doubleClicked

void iqtprm::CExtParamsManagerGuiComp::on_ElementList_doubleClicked ( const QModelIndex &  index)
protectedslot

◆ on_ElementList_itemSelectionChanged

void iqtprm::CExtParamsManagerGuiComp::on_ElementList_itemSelectionChanged ( )
protectedslot

◆ on_ReloadButton_clicked

void iqtprm::CExtParamsManagerGuiComp::on_ReloadButton_clicked ( )
protectedslot

◆ on_RemoveButton_clicked

void iqtprm::CExtParamsManagerGuiComp::on_RemoveButton_clicked ( )
protectedslot

◆ OnGuiCreated()

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

◆ UpdateCommands()

void iqtprm::CExtParamsManagerGuiComp::UpdateCommands ( )
protected

◆ UpdateGui()

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

Member Data Documentation

◆ m_lastSelectedParameterSetId

QByteArray iqtprm::CExtParamsManagerGuiComp::m_lastSelectedParameterSetId
protected

Definition at line 165 of file CExtParamsManagerGuiComp.h.

◆ m_parameterEditorMap

ParameterEditorMap iqtprm::CExtParamsManagerGuiComp::m_parameterEditorMap
protected

Definition at line 151 of file CExtParamsManagerGuiComp.h.


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