CParamsManagerGuiComp.h
Go to the documentation of this file.
1 #ifndef iqtprm_CParamsManagerGuiComp_included
2 #define iqtprm_CParamsManagerGuiComp_included
3 
4 
5 // ACF includes
7 
8 
9 namespace iqtprm
10 {
11 
12 
18 {
19 public:
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 
27 protected:
28  // reimplemented (CParamsManagerGuiCompBase)
29  virtual imod::IObserver* GetObserverPtr(const iprm::IParamsSet* paramsSetPtr) const;
30  virtual iqtgui::IGuiObject* GetEditorGuiPtr(const iprm::IParamsSet* paramsSetPtr) const;
31 
32  // reimplemented (iqtgui::CComponentBase)
33  virtual void OnGuiCreated();
34  virtual void OnGuiDestroyed();
35 
36 private:
37  I_REF(iqtgui::IGuiObject, m_paramsGuiCompPtr);
38  I_REF(imod::IObserver, m_paramsObserverCompPtr);
39 };
40 
41 
42 } // namespace iqtprm
43 
44 
45 #endif // !iqtprm_CParamsManagerGuiComp_included
46 
47 
virtual void OnGuiDestroyed()
Called just before GUI is released.
CParamsManagerGuiCompBase BaseClass
virtual void OnGuiCreated()
Called just after GUI is initialized.
Simple parameter manager editor using single paramer element editor.
virtual imod::IObserver * GetObserverPtr(const iprm::IParamsSet *paramsSetPtr) const
Get the observer for a given parameter set.
Common interface for GUI objects using in component context.
Definition: IGuiObject.h:25
virtual iqtgui::IGuiObject * GetEditorGuiPtr(const iprm::IParamsSet *paramsSetPtr) const
Get the editor GUI for a given parameter set.
Common interface for all classes implementing the Observer functionality in the Model/Observer design...
Definition: IObserver.h:24
Set of general parameters.
Definition: IParamsSet.h:23

© 2007-2017 Witold Gantzke and Kirill Lepskiy