CCommandsToolBarGuiComp.h
Go to the documentation of this file.
1 #ifndef iqtgui_CCommandsToolBarGuiComp_included
2 #define iqtgui_CCommandsToolBarGuiComp_included
3 
4 
5 // ACF includes
7 
10 
11 
12 namespace iqtgui
13 {
14 
15 
20 {
21 public:
23 
24  I_BEGIN_COMPONENT(CCommandsToolBarGuiComp);
25  I_REGISTER_INTERFACE(iqtgui::IMainWindowComponent);
26  I_ASSIGN(m_commandsProviderCompPtr, "CommandsProvider", "Commands for the tool bar", true, "CommandsProvider");
27  I_END_COMPONENT;
28 
29 protected:
30  // reimplemented (CGuiComponentBase)
31  virtual void OnGuiCreated();
32  virtual void OnGuiDestroyed();
33 
34 private:
35  I_REF(ibase::ICommandsProvider, m_commandsProviderCompPtr);
36 
37  iqtgui::CHierarchicalCommand m_toolBarCommands;
38 };
39 
40 
41 } // namespace iqtgui
42 
43 
44 #endif // !iqtgui_CCommandsToolBarGuiComp_included
45 
46 
Implementation of hierarchical command based on QAction from Qt.
virtual void OnGuiDestroyed()
Called just before GUI is released.
Interface for a provider of the heriarchical commands.
virtual void OnGuiCreated()
Called just after GUI is initialized.
A common interface for main window component such as dock widget, tool bar and so on...
Basic implementation of a tool bar component.
Component for construction of a tool bar for a given commands provider.

© 2007-2017 Witold Gantzke and Kirill Lepskiy