Changeset View
Changeset View
Standalone View
Standalone View
keyboard_layout.h
Show All 27 Lines | |||||
28 | typedef uint32_t xkb_layout_index_t; | 28 | typedef uint32_t xkb_layout_index_t; | ||
29 | 29 | | |||
30 | class KStatusNotifierItem; | 30 | class KStatusNotifierItem; | ||
31 | class QAction; | 31 | class QAction; | ||
32 | 32 | | |||
33 | namespace KWin | 33 | namespace KWin | ||
34 | { | 34 | { | ||
35 | class Xkb; | 35 | class Xkb; | ||
36 | class KeyboardLayoutDBusInterface; | ||||
36 | 37 | | |||
37 | class KeyboardLayout : public QObject, public InputEventSpy | 38 | class KeyboardLayout : public QObject, public InputEventSpy | ||
38 | { | 39 | { | ||
39 | Q_OBJECT | 40 | Q_OBJECT | ||
40 | public: | 41 | public: | ||
41 | explicit KeyboardLayout(Xkb *xkb); | 42 | explicit KeyboardLayout(Xkb *xkb); | ||
42 | ~KeyboardLayout() override; | 43 | ~KeyboardLayout() override; | ||
43 | 44 | | |||
Show All 25 Lines | 63 | private: | |||
69 | void updateNotifier(); | 70 | void updateNotifier(); | ||
70 | void reinitNotifierMenu(); | 71 | void reinitNotifierMenu(); | ||
71 | void loadShortcuts(); | 72 | void loadShortcuts(); | ||
72 | Xkb *m_xkb; | 73 | Xkb *m_xkb; | ||
73 | xkb_layout_index_t m_layout = 0; | 74 | xkb_layout_index_t m_layout = 0; | ||
74 | KStatusNotifierItem *m_notifierItem; | 75 | KStatusNotifierItem *m_notifierItem; | ||
75 | KSharedConfigPtr m_config; | 76 | KSharedConfigPtr m_config; | ||
76 | QVector<QAction*> m_layoutShortcuts; | 77 | QVector<QAction*> m_layoutShortcuts; | ||
78 | KeyboardLayoutDBusInterface *m_dbusInterface = nullptr; | ||||
77 | }; | 79 | }; | ||
78 | 80 | | |||
79 | class KeyboardLayoutDBusInterface : public QObject | 81 | class KeyboardLayoutDBusInterface : public QObject | ||
80 | { | 82 | { | ||
81 | Q_OBJECT | 83 | Q_OBJECT | ||
82 | Q_CLASSINFO("D-Bus Interface", "org.kde.KeyboardLayouts") | 84 | Q_CLASSINFO("D-Bus Interface", "org.kde.KeyboardLayouts") | ||
83 | 85 | | |||
84 | public: | 86 | public: | ||
Show All 21 Lines |