ACF $AcfVersion:0$
CSelectableGuiComp.h
Go to the documentation of this file.
1// SPDX-License-Identifier: LGPL-2.1-or-later OR GPL-2.0-or-later OR GPL-3.0-or-later OR LicenseRef-ACF-Commercial
2#pragma once
3
4
5// ACF includes
7
9
11
12#include <GeneratedFiles/iqtprm/ui_CSelectableGuiComp.h>
13
14
15namespace iqtprm
16{
17
18
23 Ui::CSelectableGuiComp,
24 iprm::ISelectionParam>
25{
26 Q_OBJECT
27public:
29 Ui::CSelectableGuiComp,
31
32 I_BEGIN_COMPONENT(CSelectableGuiComp);
33 I_ASSIGN_MULTI_0(m_slaveGuisCompPtr, "SlaveGuis", "List of the slave GUI's", true);
34 I_ASSIGN(m_noSelectionLabelAttrPtr, "NoSelectionLabel", "Text to be shown for empty selection", false, "Nothing selected");
35 I_ASSIGN(m_noSelectionIconAttrPtr, "NoSelectionIcon", "File path to the image to be shown for empty selection", false, "");
36 I_ASSIGN(m_selectorGuiCompPtr, "SelectorGui", "UI for selection change", false, "SelectorGui");
37 I_ASSIGN_TO(m_selectorObserverCompPtr, m_selectorGuiCompPtr, false);
38 I_END_COMPONENT;
39
40protected:
41 // reimplemented (iqtgui::TGuiObserverWrap)
42 virtual void OnGuiModelAttached() override;
43 virtual void OnGuiModelDetached() override;
44 virtual void UpdateGui(const istd::IChangeable::ChangeSet& changeSet) override;
45
46 // reimplemented (iqtgui::CGuiComponentBase)
47 virtual void OnGuiCreated() override;
48 virtual void OnGuiDestroyed() override;
49
50protected:
51 I_MULTIREF(iqtgui::IGuiObject, m_slaveGuisCompPtr);
52 I_TEXTATTR(m_noSelectionLabelAttrPtr);
53 I_ATTR(QString, m_noSelectionIconAttrPtr);
54 I_REF(iqtgui::IGuiObject, m_selectorGuiCompPtr);
55 I_REF(imod::IObserver, m_selectorObserverCompPtr);
56
57private:
58 typedef QMap<QWidget*, iqtgui::IGuiObject*> WidgetGuiMap;
59
60 WidgetGuiMap m_widgetToGuiMap;
61};
62
63
64} // namespace iqtprm
65
66
67
68
Common interface for all classes implementing the Observer functionality in the Model/Observer design...
Definition IObserver.h:156
Interface allowing to select single option from list of options.
Common interface for GUI objects used in ACF component context.
Definition IGuiObject.h:133
Base class for all Qt GUI components.
Component to show any selected GUI, implemented as observer of iprm::ISelectionParam.
virtual void OnGuiModelAttached() override
virtual void UpdateGui(const istd::IChangeable::ChangeSet &changeSet) override
virtual void OnGuiDestroyed() override
iqtgui::TDesignerGuiObserverCompBase< Ui::CSelectableGuiComp, iprm::ISelectionParam > BaseClass
virtual void OnGuiModelDetached() override
I_TEXTATTR(m_noSelectionLabelAttrPtr)
virtual void OnGuiCreated() override
Set of change flags (its IDs).
Definition IChangeable.h:36
This package contains Qt based implementations of standard parameter components.