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
"
19
#include "
tde/widgets/appitem.hpp
"
20
21
namespace
tde::widgets {
22
27
class
TDE_PUBLIC
Dock
:
public
QWidget
28
{
29
Q_OBJECT
30
31
private
:
32
QList<AppItem*> _dock_apps;
33
34
public
:
40
Dock
(QWidget* parent =
nullptr
);
41
~Dock
()
override
=
default
;
42
43
private
:
48
void
_init();
49
54
void
_init_ui();
55
61
void
_create_app(
const
app::Info
& app);
62
67
void
_clear_apps();
68
69
signals:
75
void
request_launch_app
(
const
app::Info
& app);
76
77
public
slots:
83
void
on_dock_apps_changed(
const
QList<app::Info>& apps);
84
};
85
86
}
appitem.hpp
Application item widget.
tde::widgets::Dock
Dock widget.
Definition
dock.hpp:28
tde::widgets::Dock::request_launch_app
void request_launch_app(const app::Info &app)
Emitted when the app is requested to be launched.
common.hpp
Some utility macros.
info.hpp
Application information.
tde::app::Info
Application information.
Definition
info.hpp:23
include
tde
widgets
dock.hpp
Generated by
1.9.8