CCIMXDesktop
Loading...
Searching...
No Matches
downdockwidget.h
1
#ifndef DOWNDOCKWIDGET_H
2
#define DOWNDOCKWIDGET_H
3
4
#include <QWidget>
5
6
namespace
Ui {
7
class
DownDockWidget
;
8
}
9
class
DesktopMainWindow
;
10
class
AppWidget
;
11
16
class
DownDockWidget
:
public
QWidget {
17
Q_OBJECT
18
static
constexpr
unsigned
short
DOCK_MAX_APP_CNT = 4;
19
20
public
:
26
explicit
DownDockWidget
(QWidget* parent =
nullptr
);
31
void
set_dock_apps
(
const
QList<AppWidget*>& apps);
32
38
void
set_parent_window
(
DesktopMainWindow
* parent_window) {
39
this->parent_window = parent_window;
40
}
41
46
~DownDockWidget
();
51
void
on_app_dispatched
(
const
AppWidget
* app);
52
53
private
:
54
Ui::DownDockWidget* ui;
55
QList<AppWidget*> dock_apps;
56
QHash<AppWidget*, int> app_usage_count;
57
DesktopMainWindow
* parent_window {
nullptr
};
58
void
replace_docks();
59
};
60
61
#endif
// DOWNDOCKWIDGET_H
AppWidget
The AppWidget class represents an application widget placed on the desktop.
Definition
appwidget.h:19
DesktopMainWindow
DesktopMainWindow is the main frontend window of the application. For beginners, this is the starting...
Definition
desktopmainwindow.h:33
DownDockWidget
The DownDockWidget class holdings the down dock sessions it supports the dynamic sorted according fre...
Definition
downdockwidget.h:16
DownDockWidget::~DownDockWidget
~DownDockWidget()
Destroy the Down Dock Widget object.
Definition
downdockwidget.cpp:84
DownDockWidget::set_dock_apps
void set_dock_apps(const QList< AppWidget * > &apps)
set_dock_apps set the dock apps waiting for shows
Definition
downdockwidget.cpp:40
DownDockWidget::on_app_dispatched
void on_app_dispatched(const AppWidget *app)
on_app_dispatched hooks the success app
Definition
downdockwidget.cpp:88
DownDockWidget::set_parent_window
void set_parent_window(DesktopMainWindow *parent_window)
Set the parent window object.
Definition
downdockwidget.h:38
ui
downdockwidget.h
Generated by
1.9.8