CCIMXDesktop
Loading...
Searching...
No Matches
TopSideBarWidget.h
1
#ifndef TOPSIDEBARWIDGET_H
2
#define TOPSIDEBARWIDGET_H
3
4
#include <QWidget>
5
class
IconEvent
;
6
class
StatusBarIconWidget
;
7
class
NetStatusStatusBarIconWidget
;
8
class
DesktopMainWindow
;
9
namespace
Ui {
10
class
TopSideBarWidget
;
11
}
12
18
class
TopSideBarWidget
:
public
QWidget {
19
Q_OBJECT
20
21
public
:
26
explicit
TopSideBarWidget
(QWidget* parent =
nullptr
);
27
31
~TopSideBarWidget
();
32
37
void
installHookedWindow
(
DesktopMainWindow
* mainWindow);
38
42
enum class
AcceptPosition
{
43
LeftSide
,
44
RightSide
45
};
46
52
void
append_to_toolside
(
StatusBarIconWidget
* src,
AcceptPosition
position);
53
58
void
handle_possibleEvent
(
IconEvent
* events);
59
65
StatusBarIconWidget
*
queryFromName
(
const
QString& name);
66
71
void
setHeight
(
const
int
height
);
72
77
int
height_min
()
const
;
78
83
int
height_max
()
const
;
84
89
int
height
()
const
{
90
return
selfHeight;
91
}
92
93
private
:
94
Ui::TopSideBarWidget* ui;
95
97
void
initLeftHandside();
98
100
void
initRightHandside();
101
102
int
selfHeight;
103
QList<StatusBarIconWidget*> iconsWidgets;
104
DesktopMainWindow
* mainWindow;
105
};
106
107
#endif
// TOPSIDEBARWIDGET_H
DesktopMainWindow
DesktopMainWindow is the main frontend window of the application. For beginners, this is the starting...
Definition
desktopmainwindow.h:33
NetStatusStatusBarIconWidget
Network status indicator widget for status bar.
Definition
NetStatusStatusBarIconWidget.h:17
StatusBarIconWidget
Abstract base widget class representing an icon in the status bar.
Definition
StatusBarIconWidget.h:47
TopSideBarWidget
Top sidebar container widget.
Definition
TopSideBarWidget.h:18
TopSideBarWidget::~TopSideBarWidget
~TopSideBarWidget()
Destroys the top sidebar widget.
Definition
TopSideBarWidget.cpp:14
TopSideBarWidget::height_min
int height_min() const
Gets the minimum allowed height.
Definition
TopSideBarWidget.cpp:59
TopSideBarWidget::AcceptPosition
AcceptPosition
Append position specifier.
Definition
TopSideBarWidget.h:42
TopSideBarWidget::AcceptPosition::LeftSide
@ LeftSide
Left side of the sidebar.
TopSideBarWidget::AcceptPosition::RightSide
@ RightSide
Right side of the sidebar.
TopSideBarWidget::height_max
int height_max() const
Gets the maximum allowed height.
Definition
TopSideBarWidget.cpp:63
TopSideBarWidget::append_to_toolside
void append_to_toolside(StatusBarIconWidget *src, AcceptPosition position)
Appends a status bar widget to the sidebar.
Definition
TopSideBarWidget.cpp:24
TopSideBarWidget::height
int height() const
Gets the current height.
Definition
TopSideBarWidget.h:89
TopSideBarWidget::installHookedWindow
void installHookedWindow(DesktopMainWindow *mainWindow)
Installs the main window reference for event handling.
Definition
TopSideBarWidget.cpp:18
TopSideBarWidget::handle_possibleEvent
void handle_possibleEvent(IconEvent *events)
Processes icon events.
Definition
TopSideBarWidget.cpp:37
TopSideBarWidget::queryFromName
StatusBarIconWidget * queryFromName(const QString &name)
Queries status icon widget by name.
Definition
TopSideBarWidget.cpp:45
TopSideBarWidget::setHeight
void setHeight(const int height)
Sets the sidebar height.
Definition
TopSideBarWidget.cpp:54
IconEvent
Represents a custom event targeting a specific StatusBarIconWidget.
Definition
StatusBarIconWidget.h:20
ui
topstatusbar
TopSideBarWidget.h
Generated by
1.9.8