Changeset View
Changeset View
Standalone View
Standalone View
src/plasmaquick/dialogshadows_p.h
Show All 18 Lines | |||||
19 | #ifndef PLASMA_DIALOGSHADOWS_H | 19 | #ifndef PLASMA_DIALOGSHADOWS_H | ||
20 | #define PLASMA_DIALOGSHADOWS_H | 20 | #define PLASMA_DIALOGSHADOWS_H | ||
21 | 21 | | |||
22 | #include <QSet> | 22 | #include <QSet> | ||
23 | 23 | | |||
24 | #include "plasma/framesvg.h" | 24 | #include "plasma/framesvg.h" | ||
25 | #include "plasma/svg.h" | 25 | #include "plasma/svg.h" | ||
26 | 26 | | |||
27 | namespace KWayland | | |||
28 | { | | |||
29 | namespace Client | | |||
30 | { | | |||
31 | class PlasmaShell; | | |||
32 | } | | |||
33 | } | | |||
34 | | ||||
35 | class DialogShadows : public Plasma::Svg | 27 | class DialogShadows : public Plasma::Svg | ||
36 | { | 28 | { | ||
37 | Q_OBJECT | 29 | Q_OBJECT | ||
38 | 30 | | |||
39 | public: | 31 | public: | ||
40 | explicit DialogShadows(QObject *parent = nullptr, const QString &prefix = QStringLiteral("dialogs/background")); | 32 | explicit DialogShadows(QObject *parent = nullptr, const QString &prefix = QStringLiteral("dialogs/background")); | ||
41 | ~DialogShadows(); | 33 | ~DialogShadows(); | ||
42 | 34 | | |||
43 | static DialogShadows *self(); | 35 | static DialogShadows *self(); | ||
44 | 36 | | |||
45 | void addWindow(const QWindow *window, Plasma::FrameSvg::EnabledBorders enabledBorders = Plasma::FrameSvg::AllBorders); | 37 | void addWindow(const QWindow *window, Plasma::FrameSvg::EnabledBorders enabledBorders = Plasma::FrameSvg::AllBorders); | ||
46 | void removeWindow(const QWindow *window); | 38 | void removeWindow(const QWindow *window); | ||
47 | 39 | | |||
48 | void setEnabledBorders(const QWindow *window, Plasma::FrameSvg::EnabledBorders enabledBorders = Plasma::FrameSvg::AllBorders); | 40 | void setEnabledBorders(const QWindow *window, Plasma::FrameSvg::EnabledBorders enabledBorders = Plasma::FrameSvg::AllBorders); | ||
49 | 41 | | |||
50 | bool enabled() const; | 42 | bool enabled() const; | ||
51 | 43 | | |||
52 | KWayland::Client::PlasmaShell *waylandPlasmaShellInterface() const; | | |||
53 | | ||||
54 | private: | 44 | private: | ||
55 | class Private; | 45 | class Private; | ||
56 | Private *const d; | 46 | Private *const d; | ||
57 | 47 | | |||
58 | Q_PRIVATE_SLOT(d, void updateShadows()) | 48 | Q_PRIVATE_SLOT(d, void updateShadows()) | ||
59 | Q_PRIVATE_SLOT(d, void windowDestroyed(QObject *deletedObject)) | 49 | Q_PRIVATE_SLOT(d, void windowDestroyed(QObject *deletedObject)) | ||
60 | }; | 50 | }; | ||
61 | 51 | | |||
62 | #endif | 52 | #endif | ||
63 | 53 | |