Changeset View
Changeset View
Standalone View
Standalone View
virtualkeyboard.h
Show First 20 Lines • Show All 51 Lines • ▼ Show 20 Line(s) | 51 | Q_SIGNALS: | |||
---|---|---|---|---|---|
52 | void enabledChanged(bool enabled); | 52 | void enabledChanged(bool enabled); | ||
53 | 53 | | |||
54 | private: | 54 | private: | ||
55 | void show(); | 55 | void show(); | ||
56 | void hide(); | 56 | void hide(); | ||
57 | void setEnabled(bool enable); | 57 | void setEnabled(bool enable); | ||
58 | void updateSni(); | 58 | void updateSni(); | ||
59 | void updateInputPanelState(); | 59 | void updateInputPanelState(); | ||
60 | void adoptInputMethodContext(); | ||||
60 | 61 | | |||
61 | bool m_enabled = false; | 62 | bool m_enabled = false; | ||
62 | KStatusNotifierItem *m_sni = nullptr; | 63 | KStatusNotifierItem *m_sni = nullptr; | ||
63 | QScopedPointer<QQuickView> m_inputWindow; | 64 | QScopedPointer<QQuickView> m_inputWindow; | ||
65 | QPointer<AbstractClient> m_inputSurface; | ||||
64 | QPointer<AbstractClient> m_trackedClient; | 66 | QPointer<AbstractClient> m_trackedClient; | ||
65 | // If a surface loses focus immediately after being resized by the keyboard, don't react to it to avoid resize loops | 67 | // If a surface loses focus immediately after being resized by the keyboard, don't react to it to avoid resize loops | ||
66 | QTimer *m_floodTimer; | 68 | QTimer *m_floodTimer; | ||
67 | 69 | | |||
68 | QMetaObject::Connection m_waylandShowConnection; | 70 | QMetaObject::Connection m_waylandShowConnection; | ||
69 | QMetaObject::Connection m_waylandHideConnection; | 71 | QMetaObject::Connection m_waylandHideConnection; | ||
70 | QMetaObject::Connection m_waylandHintsConnection; | 72 | QMetaObject::Connection m_waylandHintsConnection; | ||
71 | QMetaObject::Connection m_waylandSurroundingTextConnection; | 73 | QMetaObject::Connection m_waylandSurroundingTextConnection; | ||
72 | QMetaObject::Connection m_waylandResetConnection; | 74 | QMetaObject::Connection m_waylandResetConnection; | ||
73 | QMetaObject::Connection m_waylandEnabledConnection; | 75 | QMetaObject::Connection m_waylandEnabledConnection; | ||
74 | KWIN_SINGLETON(VirtualKeyboard) | 76 | KWIN_SINGLETON(VirtualKeyboard) | ||
75 | }; | 77 | }; | ||
76 | 78 | | |||
77 | } | 79 | } | ||
78 | 80 | | |||
79 | #endif | 81 | #endif |