6#include <QtCore/QtGlobal>
7#if QT_VERSION >= 0x050000
8#include <QtWidgets/QMenu>
18#include <GeneratedFiles/iqtprm/ui_COptionsManagerEditorComp.h>
26 Ui::COptionsManagerEditorComp,
27 iprm::IOptionsManager>
33 Ui::COptionsManagerEditorComp,
37 I_ASSIGN(m_allowAddRemoveAttrPtr,
"AllowAddRemove",
"If it is false, 'Add' and 'Remove' buttons will be always hidden",
true,
true);
38 I_ASSIGN(m_allowUpDownAttrPtr,
"AllowUpDown",
"If it is false, 'Up' and 'Down' buttons will be always hidden",
true,
true);
39 I_ASSIGN(m_iconSizeAttrPtr,
"IconSize",
"Size for page icons",
false, 32);
40 I_ASSIGN(m_defaultOptionNameAttrPtr,
"DefaultOptionName",
"Default name of parameter set. Use %1 to insert automatic enumeration",
true,
"Option %1");
41 I_ASSIGN(m_paramsLoaderCompPtr,
"ParamsLoader",
"Loader for the parameter set",
false,
"ParamsLoader");
74 void UpdateButtonsVisibility();
77 I_ATTR(
bool, m_allowAddRemoveAttrPtr);
78 I_ATTR(
bool, m_allowUpDownAttrPtr);
79 I_ATTR(
int, m_iconSizeAttrPtr);
83 mutable int m_lastSelectedIndex;
Interface providing loading and saving of data objects.
Common interface for the management of dynamic selection constraints.
Base class for all Qt GUI components.
void on_AddButton_clicked()
virtual void OnGuiModelDetached() override
void on_OptionsList_itemSelectionChanged()
void on_RemoveButton_clicked()
virtual void OnGuiCreated() override
virtual void UpdateGui(const istd::IChangeable::ChangeSet &changeSet) override
int GetSelectedIndex() const
iqtgui::TDesignerGuiObserverCompBase< Ui::COptionsManagerEditorComp, iprm::IOptionsManager > BaseClass
QByteArray GetSelectedParamsSetTypeId() const
void on_DownButton_clicked()
QString CalculateNewDefaultName() const
virtual void OnGuiModelAttached() override
COptionsManagerEditorComp()
void on_LoadParamsButton_clicked()
void on_SaveParamsButton_clicked()
void EnsureSelectedIndexUpdated() const
void on_OptionsList_itemChanged(QListWidgetItem *item)
void on_UpButton_clicked()
Set of change flags (its IDs).
#define I_TEXTATTR(member)
Declare translatable text attribute member.
This package contains Qt based implementations of standard parameter components.