ICF 3.0.5.47
Technical documentation of ICF Libraries
CParamsManagerGuiComp.h
Go to the documentation of this file.
1/********************************************************************************
2** This file is part of the ICF Framework. Copyright (C) Witold Gantzke & Kirill Lepskiy
3** ICF Framework may be used under the terms of the LGPL License v. 2.1 by the Free Software Foundation.
4********************************************************************************/
5
6#ifndef iqtprm_CParamsManagerGuiComp_included
7#define iqtprm_CParamsManagerGuiComp_included
8
9
10// ICF includes
12
13
14namespace iprmgui
15{
16
17
23{
24public:
26
27 I_BEGIN_COMPONENT(CParamsManagerGuiComp);
28 I_ASSIGN(m_paramsGuiCompPtr, "ParamsGui", "GUI object used to display parameters", false, "ParamsGui");
29 I_ASSIGN_TO(m_paramsObserverCompPtr, m_paramsGuiCompPtr, false);
30 I_END_COMPONENT;
31
32protected:
33 // reimplemented (CParamsManagerGuiCompBase)
34 imod::IObserver* GetEditorObserver(const iprm::IParamsSet* paramsSetPtr) const override;
35 istdgui::IGuiObject* GetEditorGui(const iprm::IParamsSet* paramsSetPtr) const override;
36
37 // reimplemented (istdgui::CComponentBase)
38 void OnGuiCreated() override;
39 void OnGuiDestroyed() override;
40
41private:
42 I_REF(istdgui::IGuiObject, m_paramsGuiCompPtr);
43 I_REF(imod::IObserver, m_paramsObserverCompPtr);
44};
45
46
47} // namespace iprmgui
48
49
50#endif // !iqtprm_CParamsManagerGuiComp_included
51
52
Common interface for all classes implementing the Observer functionality in the Model/Observer design...
Definition IObserver.h:30
Set of general parameters.
Definition IParamsSet.h:29
Simple parameter manager editor using single paramer element editor.
void OnGuiDestroyed() override
Called just before GUI is released.
CParamsManagerGuiCompBase BaseClass
void OnGuiCreated() override
Called just after GUI is initialized.
istdgui::IGuiObject * GetEditorGui(const iprm::IParamsSet *paramsSetPtr) const override
Get the editor GUI for a given parameter set.
imod::IObserver * GetEditorObserver(const iprm::IParamsSet *paramsSetPtr) const override
Get the observer for a given parameter set.
Common interface for GUI objects using in component context.
Definition IGuiObject.h:27
This package contains Qt based implementations of standard parameter components.

© Witold Gantzke and Kirill Lepskiy