ICF 3.1.1.10
Technical documentation of ICF Libraries
CStatusBarWidgetComp.h
Go to the documentation of this file.
1/********************************************************************************
2** This file is part of the ICF Framework. Copyright (C) Witold Gantzke & Kirill Lepskiy
3** ICF Framework may be used under the terms of the LGPL License v. 2.1 by the Free Software Foundation.
4********************************************************************************/
5
6#ifndef iqtgui_CStatusBarWidgetGuiComp_included
7#define iqtgui_CStatusBarWidgetGuiComp_included
8
9
10// Qt includes
11#include <QtCore/QtGlobal>
12#include <QtWidgets/QStatusBar>
13
14// ICF includes
16
18#include <istdgui/IGuiObject.h>
19
20
21namespace istdgui
22{
23
24
31{
32public:
34
35 I_BEGIN_COMPONENT(CStatusBarWidgetComp);
36 I_REGISTER_INTERFACE(istdgui::IMainWindowComponent);
37 I_ASSIGN_MULTI_0(m_statusBarWidgetsCompPtr, "StatusBarWidgets", "Widgets to place into the status bar of the application", true);
38 I_ASSIGN(m_isSizeGripEnabledAttrPtr, "EnableSizeGrip", "if enabled, the size grip will be created", true, true);
39 I_ASSIGN(m_suppressWidgetFrameAttrPtr, "SuppressWidgetFrame", "if enabled, the frame around status bar widgets will be hidden", true, false);
40 I_END_COMPONENT;
41
42 // reimplemented (istdgui::IMainWindowComponent)
43 bool AddToMainWindow(QMainWindow& mainWindow) override;
44 bool RemoveFromMainWindow(QMainWindow& mainWindow) override;
45 QString GetTitle() const override;
46 int GetFlags() const override;
47
48private:
49 I_MULTIREF(istdgui::IGuiObject, m_statusBarWidgetsCompPtr);
50 I_ATTR(bool, m_isSizeGripEnabledAttrPtr);
51 I_ATTR(bool, m_suppressWidgetFrameAttrPtr);
52};
53
54
55} // namespace istdgui
56
57
58#endif // !iqtgui_CStatusBarWidgetGuiComp_included
59
60
Base class for component implementation.
Component for inserting of a widget into a status bar of the application.
int GetFlags() const override
Get properties of of the window component.
bool RemoveFromMainWindow(QMainWindow &mainWindow) override
Remove this component from main window.
QString GetTitle() const override
Get the title of the main window component.
bool AddToMainWindow(QMainWindow &mainWindow) override
Add this component to main window.
Common interface for GUI objects using in component context.
Definition IGuiObject.h:27
A common interface for main window component such as dock widget, tool bar and so on.
Standard GUI specific interfaces and components based on Qt.

© Witold Gantzke and Kirill Lepskiy