Top sidebar container widget. More...
#include <TopSideBarWidget.h>
Public Types | |
enum class | AcceptPosition { LeftSide , RightSide } |
Append position specifier. More... | |
Public Member Functions | |
TopSideBarWidget (QWidget *parent=nullptr) | |
Constructs the top sidebar widget. | |
~TopSideBarWidget () | |
Destroys the top sidebar widget. | |
void | installHookedWindow (DesktopMainWindow *mainWindow) |
Installs the main window reference for event handling. | |
void | append_to_toolside (StatusBarIconWidget *src, AcceptPosition position) |
Appends a status bar widget to the sidebar. | |
void | handle_possibleEvent (IconEvent *events) |
Processes icon events. | |
StatusBarIconWidget * | queryFromName (const QString &name) |
Queries status icon widget by name. | |
void | setHeight (const int height) |
Sets the sidebar height. | |
int | height_min () const |
Gets the minimum allowed height. | |
int | height_max () const |
Gets the maximum allowed height. | |
int | height () const |
Gets the current height. | |
Top sidebar container widget.
Holds and manages status bar icon widgets in the top sidebar area.
|
strong |
|
explicit |
Constructs the top sidebar widget.
parent | Parent widget (optional) |
void TopSideBarWidget::append_to_toolside | ( | StatusBarIconWidget * | src, |
AcceptPosition | position | ||
) |
Appends a status bar widget to the sidebar.
src | Widget to append |
position | Target side (left/right) |
void TopSideBarWidget::handle_possibleEvent | ( | IconEvent * | events | ) |
Processes icon events.
events | Event to handle |
|
inline |
Gets the current height.
int TopSideBarWidget::height_max | ( | ) | const |
Gets the maximum allowed height.
int TopSideBarWidget::height_min | ( | ) | const |
Gets the minimum allowed height.
void TopSideBarWidget::installHookedWindow | ( | DesktopMainWindow * | mainWindow | ) |
Installs the main window reference for event handling.
mainWindow | Pointer to the main window |
StatusBarIconWidget * TopSideBarWidget::queryFromName | ( | const QString & | name | ) |
Queries status icon widget by name.
name | Name of the widget to find |
void TopSideBarWidget::setHeight | ( | const int | height | ) |
Sets the sidebar height.
height | New height value |