Changeset View
Changeset View
Standalone View
Standalone View
virtualkeyboard.h
Show All 19 Lines | |||||
20 | #ifndef KWIN_VIRTUAL_KEYBOARD_H | 20 | #ifndef KWIN_VIRTUAL_KEYBOARD_H | ||
21 | #define KWIN_VIRTUAL_KEYBOARD_H | 21 | #define KWIN_VIRTUAL_KEYBOARD_H | ||
22 | 22 | | |||
23 | #include <QObject> | 23 | #include <QObject> | ||
24 | 24 | | |||
25 | #include <kwinglobals.h> | 25 | #include <kwinglobals.h> | ||
26 | #include <kwin_export.h> | 26 | #include <kwin_export.h> | ||
27 | 27 | | |||
28 | #include <abstract_client.h> | ||||
29 | | ||||
30 | #include <KWayland/Server/surface_interface.h> | ||||
romangg: Necessary? | |||||
31 | #include <KWayland/Server/subcompositor_interface.h> | ||||
32 | | ||||
28 | class QQuickView; | 33 | class QQuickView; | ||
29 | class QWindow; | 34 | class QWindow; | ||
30 | class KStatusNotifierItem; | 35 | class KStatusNotifierItem; | ||
31 | 36 | | |||
32 | namespace KWin | 37 | namespace KWin | ||
33 | { | 38 | { | ||
34 | 39 | | |||
35 | class KWIN_EXPORT VirtualKeyboard : public QObject | 40 | class KWIN_EXPORT VirtualKeyboard : public QObject | ||
Show All 12 Lines | |||||
48 | Q_SIGNALS: | 53 | Q_SIGNALS: | ||
49 | void enabledChanged(bool enabled); | 54 | void enabledChanged(bool enabled); | ||
50 | 55 | | |||
51 | private: | 56 | private: | ||
52 | void show(); | 57 | void show(); | ||
53 | void hide(); | 58 | void hide(); | ||
54 | void setEnabled(bool enable); | 59 | void setEnabled(bool enable); | ||
55 | void updateSni(); | 60 | void updateSni(); | ||
61 | void updateInputPanelState(); | ||||
56 | 62 | | |||
57 | bool m_enabled = false; | 63 | bool m_enabled = false; | ||
58 | KStatusNotifierItem *m_sni = nullptr; | 64 | KStatusNotifierItem *m_sni = nullptr; | ||
59 | QScopedPointer<QQuickView> m_inputWindow; | 65 | QScopedPointer<QQuickView> m_inputWindow; | ||
66 | QPointer<AbstractClient> m_trackedClient; | ||||
67 | | ||||
60 | QMetaObject::Connection m_waylandShowConnection; | 68 | QMetaObject::Connection m_waylandShowConnection; | ||
61 | QMetaObject::Connection m_waylandHideConnection; | 69 | QMetaObject::Connection m_waylandHideConnection; | ||
62 | QMetaObject::Connection m_waylandHintsConnection; | 70 | QMetaObject::Connection m_waylandHintsConnection; | ||
63 | QMetaObject::Connection m_waylandSurroundingTextConnection; | 71 | QMetaObject::Connection m_waylandSurroundingTextConnection; | ||
64 | QMetaObject::Connection m_waylandResetConnection; | 72 | QMetaObject::Connection m_waylandResetConnection; | ||
65 | QMetaObject::Connection m_waylandEnabledConnection; | 73 | QMetaObject::Connection m_waylandEnabledConnection; | ||
66 | KWIN_SINGLETON(VirtualKeyboard) | 74 | KWIN_SINGLETON(VirtualKeyboard) | ||
67 | }; | 75 | }; | ||
68 | 76 | | |||
69 | } | 77 | } | ||
70 | 78 | | |||
71 | #endif | 79 | #endif |
Necessary?