6#include <QtCore/QtGlobal>
8#if QT_VERSION >= 0x050000
9#include <QtWidgets/QMenu>
10#include <QtWidgets/QStyledItemDelegate>
11#include <QtWidgets/QDialog>
14#include <QtGui/QStyledItemDelegate>
15#include <QtGui/QPainter>
16#include <QtGui/QDialog>
23#include <GeneratedFiles/iqtprm/ui_CExtParamsManagerGuiComp.h>
24#include <GeneratedFiles/iqtprm/ui_CElementEditorGui.h>
38 Ui::CExtParamsManagerGuiComp, iprm::IParamsManager>
46 I_ASSIGN_MULTI_0(m_parameterEditorIdsAttrPtr,
"ParameterEditorIds",
"List of parameter editors type IDs used for showing the job's parameter for the corresponding worker types",
false);
47 I_ASSIGN_MULTI_0(m_parameterGuisCompPtr,
"ParameterEditors",
"List of parameter editors used for showing the job's parameter for the corresponding worker types",
false);
48 I_ASSIGN_TO(m_parameterObserversCompPtr, m_parameterGuisCompPtr,
true);
49 I_ASSIGN_TO(m_parameterEditorsCompPtr, m_parameterGuisCompPtr,
true);
106 virtual void paint(QPainter *painter,
const QStyleOptionViewItem &option,
const QModelIndex &index)
const override;
107 virtual QSize
sizeHint(
const QStyleOptionViewItem &option,
const QModelIndex &index)
const override;
126 Ui::CElementEditorGui m_ui;
156 I_MULTIATTR(QByteArray, m_parameterEditorIdsAttrPtr);
Common interface for an model editor.
Common interface for all classes implementing the Observer functionality in the Model/Observer design...
Manager of parameter sets.
Common interface for GUI objects used in ACF component context.
Base class for all Qt GUI components.
Edit dialog for the parameter set name and description.
virtual ~CElementEditorDialog()
int Execute(QString &name, QString &description, iqtgui::IGuiObject *paramsGuiPtr)
Start the dialog with the predefined name and description parameters.
Delegate implementation for customization of the parameter set item view in the parameter set list.
virtual QSize sizeHint(const QStyleOptionViewItem &option, const QModelIndex &index) const override
virtual void paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const override
UI manager of the parameter sets.
ParameterEditorMap m_parameterEditorMap
QByteArray m_lastSelectedParameterSetId
virtual void UpdateGui(const istd::IChangeable::ChangeSet &changeSet) override
void on_CloneButton_clicked()
QMap< QByteArray, ParameterEditor > ParameterEditorMap
Mapping between the parameter type ID and corresponding editor.
void on_ReloadButton_clicked()
int GetParameterTypeIndexById(const QByteArray ¶meterTypeId) const
DataRoles
Data roles used in the list view items.
@ DR_DESCRIPTION
Parameter set description.
@ DR_INDEX
Index of the parameter set in the list.
@ DR_UUID
ID of the parameter set.
@ DR_PARAMETER_TYPE
Parameter type ID.
void on_AddButton_clicked()
iqtgui::TDesignerGuiObserverCompBase< Ui::CExtParamsManagerGuiComp, iprm::IParamsManager > BaseClass
void on_ElementList_itemSelectionChanged()
virtual void OnGuiCreated() override
void on_EditButton_clicked()
void on_RemoveButton_clicked()
void on_ElementList_doubleClicked(const QModelIndex &index)
Set of change flags (its IDs).
This package contains Qt based implementations of standard parameter components.
Internal structure used for binding of model editor, observer and gui editor for the parameter set in...
imod::IModelEditor * editorPtr
imod::IObserver * observerPtr
iqtgui::IGuiObject * guiPtr