CCIMXDesktop
 
Loading...
Searching...
No Matches
downdockwidget.h
1#ifndef DOWNDOCKWIDGET_H
2#define DOWNDOCKWIDGET_H
3
4#include <QWidget>
5
6namespace Ui {
8}
10class AppWidget;
11
16class DownDockWidget : public QWidget {
17 Q_OBJECT
18 static constexpr unsigned short DOCK_MAX_APP_CNT = 4;
19
20public:
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
51 void on_app_dispatched(const AppWidget* app);
52
53private:
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
The AppWidget class represents an application widget placed on the desktop.
Definition appwidget.h:19
DesktopMainWindow is the main frontend window of the application. For beginners, this is the starting...
Definition desktopmainwindow.h:33
The DownDockWidget class holdings the down dock sessions it supports the dynamic sorted according fre...
Definition downdockwidget.h:16
~DownDockWidget()
Destroy the Down Dock Widget object.
Definition downdockwidget.cpp:84
void set_dock_apps(const QList< AppWidget * > &apps)
set_dock_apps set the dock apps waiting for shows
Definition downdockwidget.cpp:40
void on_app_dispatched(const AppWidget *app)
on_app_dispatched hooks the success app
Definition downdockwidget.cpp:88
void set_parent_window(DesktopMainWindow *parent_window)
Set the parent window object.
Definition downdockwidget.h:38