Changeset View
Changeset View
Standalone View
Standalone View
kcms/keyboard/xkb_rules.h
Show First 20 Lines • Show All 110 Lines • ▼ Show 20 Line(s) | 105 | } | |||
---|---|---|---|---|---|
111 | const OptionGroupInfo* getOptionGroupInfo(const QString& optionGroupName) const { | 111 | const OptionGroupInfo* getOptionGroupInfo(const QString& optionGroupName) const { | ||
112 | return findByName(optionGroupInfos, optionGroupName); | 112 | return findByName(optionGroupInfos, optionGroupName); | ||
113 | } | 113 | } | ||
114 | 114 | | |||
115 | static Rules* readRules(ExtrasFlag extrasFlag); | 115 | static Rules* readRules(ExtrasFlag extrasFlag); | ||
116 | static Rules* readRules(Rules* rules, const QString& filename, bool fromExtras); | 116 | static Rules* readRules(Rules* rules, const QString& filename, bool fromExtras); | ||
117 | static QString getRulesName(); | 117 | static QString getRulesName(); | ||
118 | static QString findXkbDir(); | 118 | static QString findXkbDir(); | ||
119 | | ||||
120 | #ifdef NEW_GEOMETRY | | |||
121 | class GeometryId { | | |||
122 | public: | | |||
123 | QString fileName; | | |||
124 | QString geoName; | | |||
125 | | ||||
126 | GeometryId(const GeometryId& other) { | | |||
127 | operator=(other); | | |||
128 | } | | |||
129 | GeometryId(const QString& fileName_, const QString& geoName_): | | |||
130 | fileName(fileName_), | | |||
131 | geoName(geoName_) {} | | |||
132 | | ||||
133 | GeometryId& operator=(const GeometryId& geoId) { | | |||
134 | fileName = geoId.fileName; | | |||
135 | geoName = geoId.geoName; | | |||
136 | return *this; | | |||
137 | } | | |||
138 | }; | | |||
139 | | ||||
140 | static GeometryId getGeometryId(const QString& model); | | |||
141 | #endif | | |||
142 | | ||||
143 | }; | 119 | }; | ||
144 | 120 | | |||
145 | #endif /* XKB_RULES_H_ */ | 121 | #endif /* XKB_RULES_H_ */ |