CModelDialogGuiComp.h
Go to the documentation of this file.
1 #ifndef iqtgui_CModelDialogGuiComp_included
2 #define iqtgui_CModelDialogGuiComp_included
3 
4 
5 // ACF includes
6 #include <imod/IObserver.h>
7 #include <imod/IModel.h>
9 
10 #include <iqtgui/CDialogGuiComp.h>
11 
12 
13 namespace iqtgui
14 {
15 
16 
24  public imod::TSingleModelObserverBase<istd::IChangeable>
25 {
26 public:
29 
30  I_BEGIN_COMPONENT(CModelDialogGuiComp);
31  I_REGISTER_INTERFACE(imod::IObserver);
32  I_ASSIGN(m_editorCompPtr, "Gui", "Editor for the model data", true, "ModelObserver");
33  I_ASSIGN(m_dataCompPtr, "Model", "Model data", false, "Model");
34  I_ASSIGN(m_workingModelFactoryCompPtr, "WorkingDataFactory", "Model factory using to create the working model data", true, "WorkingModelFactory");
35  I_ASSIGN_TO(m_workingDataFactoryCompPtr, m_workingModelFactoryCompPtr, true);
36  I_END_COMPONENT;
37 
38  // reimplemented (iqtgui::IDialog)
39  virtual int ExecuteDialog(IGuiObject* parentPtr);
40 
41 private:
42  I_REF(imod::IObserver, m_editorCompPtr);
43  I_REF(istd::IChangeable, m_dataCompPtr);
44  I_FACT(imod::IModel, m_workingModelFactoryCompPtr);
45  I_FACT(istd::IChangeable, m_workingDataFactoryCompPtr);
46 
47  istd::TDelPtr<icomp::IComponent> m_workingObjectPtr;
48 };
49 
50 
51 } // namespace iqtgui
52 
53 
54 #endif // !iqtgui_CModelDialogGuiComp_included
55 
Component for the dialog based model editing.
Basic implementation for a single model observer with binding to concrete data object interface...
iqtgui::CDialogGuiComp BaseClass
Common interface for data model objects, which can be changed.
Definition: IChangeable.h:24
Common interface for GUI objects using in component context.
Definition: IGuiObject.h:25
virtual int ExecuteDialog(IGuiObject *parentPtr)
Execute dialog instance.
imod::TSingleModelObserverBase< istd::IChangeable > BaseClass2
Common interface for all classes implementing the Observer functionality in the Model/Observer design...
Definition: IObserver.h:24
Common interface for model objects, that supports Model/Observer design pattern.
Definition: IModel.h:23
Dialog based representation of any UI-Component.

© 2007-2017 Witold Gantzke and Kirill Lepskiy