TDE 0.1.0
 
Loading...
Searching...
No Matches
dock.hpp
Go to the documentation of this file.
1
12#pragma once
13
14#include <qlist.h>
15#include <qwidget.h>
16
17#include "tde/app/info.hpp"
18#include "tde/common.hpp"
20
21namespace tde::widgets {
22
27class TDE_PUBLIC Dock : public QWidget
28{
29 Q_OBJECT
30
31private:
32 QList<AppItem*> _dock_apps;
33
34public:
40 Dock(QWidget* parent = nullptr);
41 ~Dock() override = default;
42
43private:
48 void _init();
49
54 void _init_ui();
55
61 void _create_app(const app::Info& app);
62
67 void _clear_apps();
68
69signals:
75 void request_launch_app(const app::Info& app);
76
77public slots:
83 void on_dock_apps_changed(const QList<app::Info>& apps);
84};
85
86}
Application item widget.
Dock widget.
Definition dock.hpp:28
void request_launch_app(const app::Info &app)
Emitted when the app is requested to be launched.
Some utility macros.
Application information.
Application information.
Definition info.hpp:23