Changeset View
Changeset View
Standalone View
Standalone View
src/platformtheme/kwaylandintegration.h
Show All 24 Lines | |||||
25 | 25 | | |||
26 | class QWindow; | 26 | class QWindow; | ||
27 | 27 | | |||
28 | namespace KWayland | 28 | namespace KWayland | ||
29 | { | 29 | { | ||
30 | namespace Client | 30 | namespace Client | ||
31 | { | 31 | { | ||
32 | class ServerSideDecorationManager; | 32 | class ServerSideDecorationManager; | ||
33 | class ServerSideDecorationPaletteManager; | ||||
33 | class AppMenuManager; | 34 | class AppMenuManager; | ||
35 | class Registry; | ||||
34 | } | 36 | } | ||
35 | } | 37 | } | ||
36 | 38 | | |||
37 | class KWaylandIntegration : public QObject | 39 | class KWaylandIntegration : public QObject | ||
38 | { | 40 | { | ||
39 | Q_OBJECT | 41 | Q_OBJECT | ||
40 | public: | 42 | public: | ||
41 | explicit KWaylandIntegration(); | 43 | explicit KWaylandIntegration(); | ||
42 | virtual ~KWaylandIntegration(); | 44 | virtual ~KWaylandIntegration(); | ||
43 | void init(); | 45 | void init(); | ||
44 | 46 | | |||
45 | void setAppMenu(QWindow *window, const QString &serviceName, const QString &objectPath); | 47 | void setAppMenu(QWindow *window, const QString &serviceName, const QString &objectPath); | ||
48 | void setPalette(QWindow *window, const QString &paletteName); | ||||
46 | 49 | | |||
47 | bool eventFilter(QObject *watched, QEvent *event) override; | 50 | bool eventFilter(QObject *watched, QEvent *event) override; | ||
48 | 51 | | |||
49 | private: | 52 | private: | ||
50 | void shellSurfaceCreated(QWindow *w); | 53 | void shellSurfaceCreated(QWindow *w); | ||
51 | void shellSurfaceDestroyed(QWindow *w); | 54 | void shellSurfaceDestroyed(QWindow *w); | ||
52 | 55 | | |||
53 | void installColorScheme(QWindow *w); | 56 | void installColorScheme(QWindow *w); | ||
54 | KWayland::Client::ServerSideDecorationManager *m_decoration = nullptr; | 57 | KWayland::Client::ServerSideDecorationManager *m_decoration = nullptr; | ||
55 | KWayland::Client::AppMenuManager *m_appMenuManager = nullptr; | 58 | KWayland::Client::AppMenuManager *m_appMenuManager = nullptr; | ||
59 | KWayland::Client::ServerSideDecorationPaletteManager *m_paletteManager = nullptr; | ||||
60 | KWayland::Client::Registry* m_registry = nullptr; | ||||
56 | 61 | | |||
57 | struct WindowInfo { | 62 | struct WindowInfo { | ||
58 | QString appMenuServiceName; | 63 | QString appMenuServiceName; | ||
59 | QString appMenuObjectPath; | 64 | QString appMenuObjectPath; | ||
60 | }; | 65 | }; | ||
61 | QHash<QWindow*, WindowInfo> m_windowInfo; | 66 | QHash<QWindow*, WindowInfo> m_windowInfo; | ||
62 | }; | 67 | }; | ||
63 | 68 | | |||
64 | #endif | 69 | #endif |