CSceneConnectorGuiComp.h
Go to the documentation of this file.
1 #ifndef iqt2d_CSceneConnectorGuiComp_included
2 #define iqt2d_CSceneConnectorGuiComp_included
3 
4 
5 // ACF includes
7 #include <iqtgui/IGuiObject.h>
10 #include <iqt2d/IViewProvider.h>
11 #include <iqt2d/IViewExtender.h>
12 
13 #include <GeneratedFiles/iqt2d/ui_CSceneConnectorGuiComp.h>
14 
15 
16 namespace iqt2d
17 {
18 
19 
21  public iqtgui::TDesignerGuiCompBase<Ui::CSceneConnectorGuiComp, QWidget>,
22  virtual public ibase::ICommandsProvider
23 {
24 public:
26 
27  I_BEGIN_COMPONENT(CSceneConnectorGuiComp);
28  I_REGISTER_INTERFACE(ibase::ICommandsProvider);
29  I_ASSIGN(m_sceneGuiCompPtr, "SceneGui", "Gui providing scene information", true, "SceneGui");
30  I_ASSIGN_TO(m_sceneCommandsCompPtr, m_sceneGuiCompPtr, false);
31  I_ASSIGN_TO(m_sceneProviderCompPtr, m_sceneGuiCompPtr, true);
32  I_ASSIGN(m_extenderGuiCompPtr, "ExtenderGui", "Gui providing parameters displayed on scene", false, "ExtenderGui");
33  I_ASSIGN_TO(m_extenderCommandsCompPtr, m_extenderGuiCompPtr, false);
34  I_ASSIGN_TO(m_extenderCompPtr, m_extenderGuiCompPtr, true);
35  I_END_COMPONENT;
36 
37  // reimplemented (ibase::ICommandsProvider)
38  virtual const ibase::IHierarchicalCommand* GetCommands() const;
39 
40 protected:
41  // reimplemented (iqtgui::CGuiComponentBase)
42  virtual void OnGuiCreated();
43  virtual void OnGuiDestroyed();
44 
45  // reimplemented (icomp::CComponentBase)
46  virtual void OnComponentCreated();
47  virtual void OnComponentDestroyed();
48 
49 private:
50  I_REF(iqtgui::IGuiObject, m_sceneGuiCompPtr);
51  I_REF(ibase::ICommandsProvider, m_sceneCommandsCompPtr);
52  I_REF(IViewProvider, m_sceneProviderCompPtr);
53  I_REF(iqtgui::IGuiObject, m_extenderGuiCompPtr);
54  I_REF(ibase::ICommandsProvider, m_extenderCommandsCompPtr);
55  I_REF(IViewExtender, m_extenderCompPtr);
56 
57  mutable iqtgui::CHierarchicalCommand m_commands;
58 };
59 
60 
61 } // namespace iqt2d
62 
63 
64 #endif // !iqt2d_CSceneConnectorGuiComp_included
65 
66 
Implementation of hierarchical command based on QAction from Qt.
Interface for GUI objects presenting its results using extern view objects.
Definition: IViewExtender.h:19
Base class for all Qt GUI components, which use the Qt designer's UI.
virtual void OnComponentDestroyed()
virtual void OnGuiCreated()
Called just after GUI is initialized.
iqtgui::TDesignerGuiCompBase< Ui::CSceneConnectorGuiComp, QWidget > BaseClass
Interface for a provider of the heriarchical commands.
Common interface to define the hierarchical graph structures.
Common interface for GUI objects using in component context.
Definition: IGuiObject.h:25
Interface for GUI objects managing view.
Definition: IViewProvider.h:24
virtual void OnGuiDestroyed()
Called just before GUI is released.
virtual const ibase::IHierarchicalCommand * GetCommands() const
Get list of menu commands.
virtual void OnComponentCreated()

© 2007-2017 Witold Gantzke and Kirill Lepskiy