CStatusBarWidgetComp.h
Go to the documentation of this file.
1 #ifndef iqtgui_CStatusBarWidgetGuiComp_included
2 #define iqtgui_CStatusBarWidgetGuiComp_included
3 
4 
5 // Qt includes
6 #include <QtCore/QtGlobal>
7 #if QT_VERSION >= 0x050000
8 #include <QtWidgets/QStatusBar>
9 #else
10 #include <QtGui/QStatusBar>
11 #endif
12 
13 // ACF includes
14 #include <icomp/CComponentBase.h>
15 
17 #include <iqtgui/IGuiObject.h>
18 
19 
20 namespace iqtgui
21 {
22 
23 
28  public icomp::CComponentBase,
29  virtual public iqtgui::IMainWindowComponent
30 {
31 public:
33 
34  I_BEGIN_COMPONENT(CStatusBarWidgetComp);
35  I_REGISTER_INTERFACE(iqtgui::IMainWindowComponent);
36  I_ASSIGN_MULTI_0(m_statusBarWidgetsCompPtr, "StatusBarWidgets", "Widgets to place into the status bar of the application", true);
37  I_ASSIGN(m_isSizeGripEnabledAttrPtr, "EnableSizeGrip", "if enabled, the size grip will be created", true, true);
38  I_ASSIGN(m_suppressWidgetFrameAttrPtr, "SuppressWidgetFrame", "if enabled, the frame around status bar widgets will be hidden", true, false);
39  I_END_COMPONENT;
40 
41  // reimplemented (iqtgui::IMainWindowComponent)
42  virtual bool AddToMainWindow(QMainWindow& mainWindow);
43  virtual bool RemoveFromMainWindow(QMainWindow& mainWindow);
44  virtual QString GetTitle() const;
45  virtual int GetFlags() const;
46 
47 private:
48  I_MULTIREF(iqtgui::IGuiObject, m_statusBarWidgetsCompPtr);
49  I_ATTR(bool, m_isSizeGripEnabledAttrPtr);
50  I_ATTR(bool, m_suppressWidgetFrameAttrPtr);
51 };
52 
53 
54 } // namespace iqtgui
55 
56 
57 #endif // !iqtgui_CStatusBarWidgetGuiComp_included
58 
59 
virtual QString GetTitle() const
Get the title of the main window component.
virtual bool AddToMainWindow(QMainWindow &mainWindow)
Add this component to main window.
Base class for component implementation.
virtual bool RemoveFromMainWindow(QMainWindow &mainWindow)
Remove this component from main window.
icomp::CComponentBase BaseClass
Component for inserting of a widget into a status bar of the application.
A common interface for main window component such as dock widget, tool bar and so on...
virtual int GetFlags() const
Get properties of of the window component.
Common interface for GUI objects using in component context.
Definition: IGuiObject.h:25

© 2007-2017 Witold Gantzke and Kirill Lepskiy