Changeset View
Changeset View
Standalone View
Standalone View
keyboard_layout_switching.h
Show First 20 Lines • Show All 106 Lines • ▼ Show 20 Line(s) | |||||
107 | protected: | 107 | protected: | ||
108 | void clearCache() override; | 108 | void clearCache() override; | ||
109 | void layoutChanged() override; | 109 | void layoutChanged() override; | ||
110 | 110 | | |||
111 | private: | 111 | private: | ||
112 | QHash<AbstractClient*, quint32> m_layouts; | 112 | QHash<AbstractClient*, quint32> m_layouts; | ||
113 | }; | 113 | }; | ||
114 | 114 | | |||
115 | class ApplicationPolicy : public Policy | ||||
116 | { | ||||
117 | Q_OBJECT | ||||
118 | public: | ||||
119 | explicit ApplicationPolicy(Xkb *xkb, KeyboardLayout *layout); | ||||
120 | ~ApplicationPolicy() override; | ||||
121 | | ||||
122 | QString name() const override { | ||||
123 | return QStringLiteral("WinClass"); | ||||
124 | } | ||||
125 | | ||||
126 | protected: | ||||
127 | void clearCache() override; | ||||
128 | void layoutChanged() override; | ||||
129 | | ||||
130 | private: | ||||
131 | void clientActivated(AbstractClient *c); | ||||
132 | QHash<AbstractClient*, quint32> m_layouts; | ||||
133 | }; | ||||
134 | | ||||
115 | } | 135 | } | ||
116 | } | 136 | } | ||
117 | 137 | | |||
118 | #endif | 138 | #endif |