ACF $AcfVersion:0$
CParamsManagerGuiComp.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
8
9namespace iqtprm
10{
11
12
18{
19public:
21
22 I_BEGIN_COMPONENT(CParamsManagerGuiComp);
23 I_ASSIGN(m_paramsGuiCompPtr, "ParamsGui", "GUI object used to display parameters", false, "ParamsGui");
24 I_ASSIGN_TO(m_paramsObserverCompPtr, m_paramsGuiCompPtr, false);
25 I_END_COMPONENT;
26
27protected:
28 // reimplemented (CParamsManagerGuiCompBase)
29 virtual imod::IObserver* GetObserverPtr(const iprm::IParamsSet* paramsSetPtr) const override;
30 virtual iqtgui::IGuiObject* GetEditorGuiPtr(const iprm::IParamsSet* paramsSetPtr) const override;
31
32 // reimplemented (iqtgui::CComponentBase)
33 virtual void OnGuiCreated() override;
34 virtual void OnGuiDestroyed() override;
35
36private:
37 I_REF(iqtgui::IGuiObject, m_paramsGuiCompPtr);
38 I_REF(imod::IObserver, m_paramsObserverCompPtr);
39};
40
41
42} // namespace iqtprm
43
44
45
46
Common interface for all classes implementing the Observer functionality in the Model/Observer design...
Definition IObserver.h:156
Set of general parameters.
Definition IParamsSet.h:81
Common interface for GUI objects used in ACF component context.
Definition IGuiObject.h:133
Simple parameter manager editor using single paramer element editor.
CParamsManagerGuiCompBase BaseClass
virtual void OnGuiDestroyed() override
virtual imod::IObserver * GetObserverPtr(const iprm::IParamsSet *paramsSetPtr) const override
Get the observer for a given parameter set.
virtual iqtgui::IGuiObject * GetEditorGuiPtr(const iprm::IParamsSet *paramsSetPtr) const override
Get the editor GUI for a given parameter set.
virtual void OnGuiCreated() override
This package contains Qt based implementations of standard parameter components.