6#include <QtCore/QTimer>
7#include <QtCore/QtGlobal>
8#if QT_VERSION >= 0x050000
9#include <QtWidgets/QMenu>
20#include <GeneratedFiles/iqtprm/ui_CParamsManagerGuiCompBase.h>
29 Ui::CParamsManagerGuiCompBase, iprm::IParamsManager>,
36 Ui::CParamsManagerGuiCompBase,
41 I_ASSIGN(m_allowAddRemoveAttrPtr,
"AllowAddRemove",
"If it is false, 'Add' and 'Remove' buttons will be always hidden",
true,
true);
42 I_ASSIGN(m_allowUpDownAttrPtr,
"AllowUpDown",
"If it is false, 'Up' and 'Down' buttons will be always hidden",
true,
true);
43 I_ASSIGN(m_supportEnablingAttrPtr,
"AllowEnable",
"If this option is activated, the single parameter sets can be enabled/disabled in the list",
true,
false);
44 I_ASSIGN(m_supportRenameAttrPtr,
"SupportRename",
"Allow change parameters name",
true,
true);
45 I_ASSIGN(m_comboBoxViewAttrPtr,
"CompactView",
"Shows parameters list as a combo box",
true,
false);
46 I_ASSIGN(m_comboBoxEditableAttrPtr,
"CompactViewComboEditable",
"Combo box in compact mode is editable",
true,
true);
47 I_ASSIGN(m_comboBoxHiddenAttrPtr,
"CompactViewComboHidden",
"Combo box in compact mode is hidden - basically disables user to change selection",
true,
false);
48 I_ASSIGN(m_iconProviderCompPtr,
"IconProvider",
"Icons for drop-down types menu",
false,
"IconProvider");
49 I_ASSIGN(m_paramsLoaderCompPtr,
"ParamsLoader",
"Loader for the parameter set",
false,
"ParamsLoader");
50 I_ASSIGN(m_supplementaryLabelTextAttrPtr,
"CopyPasteInfoLabelText",
"Text of info Label",
false,
"");
103 const int paramSetIndex,
105 QTreeWidgetItem* paramsSetItemPtr)
107 Q_UNUSED(managerPtr);
108 Q_UNUSED(paramSetIndex);
109 Q_UNUSED(paramsSetPtr);
110 Q_UNUSED(paramsSetItemPtr);
153 void AttachCurrentExtender();
154 void DetachCurrentExtender();
158 I_ATTR(
bool, m_allowAddRemoveAttrPtr);
159 I_ATTR(
bool, m_allowUpDownAttrPtr);
160 I_ATTR(
bool, m_supportEnablingAttrPtr);
161 I_ATTR(
bool, m_supportRenameAttrPtr);
162 I_ATTR(
bool, m_comboBoxViewAttrPtr);
163 I_ATTR(
bool, m_comboBoxEditableAttrPtr);
164 I_ATTR(
bool, m_comboBoxHiddenAttrPtr);
167 I_ATTR(QByteArray, m_supplementaryLabelTextAttrPtr);
169 typedef QMap<int, QIcon> StateIconsMap;
173 QMenu m_startVariableMenus;
174 QMap<QByteArray, int> m_factoryIconIndexMap;
175 StateIconsMap m_stateIconsMap;
177 typedef QMap<iqt2d::IViewProvider*, int> ConnectedSceneFlags;
178 ConnectedSceneFlags m_connectedSceneFlags;
180 static QString m_copyParamsSetName;
181 static int m_pasteIndex;
183 QTimer m_hideInfoLabelTimer;
Interface providing loading and saving of data objects.
Common interface for model objects, that supports Model/Observer design pattern.
Common interface for all classes implementing the Observer functionality in the Model/Observer design...
Manager of parameter sets.
Set of general parameters.
Interface for GUI objects presenting its results using extern view objects.
Interface for GUI objects managing view.
Common interface for GUI objects used in ACF component context.
This interface provides acces to an icon.
Base class for all Qt GUI components.
void on_ParamsTree_itemChanged(QTreeWidgetItem *item, int column)
void on_ParamsComboBox_editTextChanged(const QString &text)
virtual void AfterUpdate(imod::IModel *modelPtr, const istd::IChangeable::ChangeSet &changeSet) override
virtual void RemoveItemsFromScene(iqt2d::IViewProvider *providerPtr) override
Called when items should be removed from specified scene.
virtual void OnTreeItemAdded(iprm::IParamsManager *managerPtr, const int paramSetIndex, const iprm::IParamsSet *paramsSetPtr, QTreeWidgetItem *paramsSetItemPtr)
Callback for item decoration.
void on_AddButton_clicked()
int GetIndexByName(const QString &itemName) const
virtual void OnGuiModelDetached() override
virtual void PasteParamsSet(const int index=-1)
Paste ParamsSet from Clipboard When reimplemented in MultiParamsManager, the paramsSetType should be ...
virtual iqt2d::IViewExtender * GetCurrentViewExtenderPtr() const
Get the currently active view extender.
virtual void OnGuiModelAttached() override
void EnsureParamsGuiDetached()
bool CopyParamsSetToClipboard(iser::ISerializable *objectPtr, const char *type) const
virtual iqtgui::IGuiObject * GetEditorGuiPtr(const iprm::IParamsSet *paramsSetPtr) const =0
Get the editor GUI for a given parameter set.
virtual void OnParameterSelectionChanged()
Callback for parameter selection.
void on_SaveParamsButton_clicked()
void on_ParamsTree_itemSelectionChanged()
void on_CopyButton_clicked()
virtual void UpdateParamsView(int selectedIndex)
bool PasteParamsSetFromClipboard(iser::ISerializable *objectPtr, const char *type)
void on_PasteButton_clicked()
void on_ParamsComboBox_currentIndexChanged(int index)
void on_LoadParamsButton_clicked()
virtual void OnGuiCreated() override
virtual void OnDesignSchemaChanged(const QByteArray &themeId) override
void on_DownButton_clicked()
void on_UpButton_clicked()
QByteArray GetSelectedParamsSetTypeId() const
CParamsManagerGuiCompBase()
virtual void CopyParamsSet(const int index)
Copy ParamsSet (index) to Clipboard.
virtual imod::IObserver * GetObserverPtr(const iprm::IParamsSet *paramsSetPtr) const =0
Get the observer for a given parameter set.
iqtgui::TDesignerGuiObserverCompBase< Ui::CParamsManagerGuiCompBase, iprm::IParamsManager > BaseClass
virtual void AddItemsToScene(iqt2d::IViewProvider *providerPtr, int flags) override
Called when items should be added to specified scene.
void on_RemoveButton_clicked()
int GetSelectedIndex() const
void OnAddMenuOptionClicked(QAction *action)
virtual void UpdateGui(const istd::IChangeable::ChangeSet &changeSet) override
void InsertNewParamsSet(int typeIndex=-1)
Common class for all classes which objects can be archived or restored from archive.
Set of change flags (its IDs).
This package contains Qt based implementations of standard parameter components.