ICF 3.1.1.10
Technical documentation of ICF Libraries
CSelectableParamsSetGuiComp.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_CSelectableParamsSetGuiComp_included
7#define iqtprm_CSelectableParamsSetGuiComp_included
8
9
10// ICF includes
11#include <iprm/IParamsSet.h>
13
14
15namespace iprmgui
16{
17
18
24{
25public:
27
28 I_BEGIN_COMPONENT(CSelectableParamsSetGuiComp);
29 I_ASSIGN_MULTI_0(m_slaveObserversCompPtr, "Editors", "Editors for the parameters in the parameter set", true);
30 I_END_COMPONENT;
31
32public:
34
35 // reimplemented (imod::IObserver)
36 void BeforeModelChange(imod::IModel* modelPtr) override;
37 void AfterModelChange(imod::IModel* modelPtr, const istd::IChangeable::ChangeSet& changeSet) override;
38
39protected:
40 // reimplemented (istdgui::TGuiObserverWrap)
41 void OnGuiModelAttached() override;
42 void OnGuiModelDetached() override;
43
44private:
45 void EnsureDetachLastEditor();
46 void ConnectCurrentEditor();
47
48 iprm::IParamsSet* ExtractParamsSetPtr(imod::IModel* modelPtr) const;
49
50private:
51 int m_currentParamsSetIndex;
52
53 I_MULTIREF(imod::IObserver, m_slaveObserversCompPtr);
54};
55
56
57} // namespace iprmgui
58
59
60#endif // !iqtprm_CSelectableParamsSetGuiComp_included
61
62
Common interface for model objects, that supports Model/Observer design pattern.
Definition IModel.h:29
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
Component to show any selected GUI, implemented as observer of iprm::ISelectionParam.
Editor for the selected parameter in the parameter manager.
void AfterModelChange(imod::IModel *modelPtr, const istd::IChangeable::ChangeSet &changeSet) override
This function will be called after update of the observer contents occures.
void BeforeModelChange(imod::IModel *modelPtr) override
This function will be called before update of the observer contents occures.
Set of change flags (its IDs).
Definition IChangeable.h:38
This package contains Qt based implementations of standard parameter components.

© Witold Gantzke and Kirill Lepskiy