-rw-r--r-- | inputmethods/pickboard/pickboardpicks.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/inputmethods/pickboard/pickboardpicks.cpp b/inputmethods/pickboard/pickboardpicks.cpp index b9d9928..bad1d24 100644 --- a/inputmethods/pickboard/pickboardpicks.cpp +++ b/inputmethods/pickboard/pickboardpicks.cpp | |||
@@ -168,193 +168,193 @@ static const char *Up_xpm[] = { | |||
168 | "..aaa..", | 168 | "..aaa..", |
169 | ".a.a.a.", | 169 | ".a.a.a.", |
170 | "a..a..a", | 170 | "a..a..a", |
171 | "...a...", | 171 | "...a...", |
172 | "...a...", | 172 | "...a...", |
173 | "...a..." | 173 | "...a..." |
174 | }; | 174 | }; |
175 | static const char *Left_xpm[] = { | 175 | static const char *Left_xpm[] = { |
176 | "7 7 2 1", | 176 | "7 7 2 1", |
177 | "a c #000000", | 177 | "a c #000000", |
178 | ". c None", | 178 | ". c None", |
179 | "...a...", | 179 | "...a...", |
180 | "..a....", | 180 | "..a....", |
181 | ".a.....", | 181 | ".a.....", |
182 | "aaaaaaa", | 182 | "aaaaaaa", |
183 | ".a.....", | 183 | ".a.....", |
184 | "..a....", | 184 | "..a....", |
185 | "...a..." | 185 | "...a..." |
186 | }; | 186 | }; |
187 | static const char *Down_xpm[] = { | 187 | static const char *Down_xpm[] = { |
188 | "7 7 2 1", | 188 | "7 7 2 1", |
189 | "a c #000000", | 189 | "a c #000000", |
190 | ". c None", | 190 | ". c None", |
191 | "...a...", | 191 | "...a...", |
192 | "...a...", | 192 | "...a...", |
193 | "...a...", | 193 | "...a...", |
194 | "a..a..a", | 194 | "a..a..a", |
195 | ".a.a.a.", | 195 | ".a.a.a.", |
196 | "..aaa..", | 196 | "..aaa..", |
197 | "...a..." | 197 | "...a..." |
198 | }; | 198 | }; |
199 | static const char *Right_xpm[] = { | 199 | static const char *Right_xpm[] = { |
200 | "7 7 2 1", | 200 | "7 7 2 1", |
201 | "a c #000000", | 201 | "a c #000000", |
202 | ". c None", | 202 | ". c None", |
203 | "...a...", | 203 | "...a...", |
204 | "....a..", | 204 | "....a..", |
205 | ".....a.", | 205 | ".....a.", |
206 | "aaaaaaa", | 206 | "aaaaaaa", |
207 | ".....a.", | 207 | ".....a.", |
208 | "....a..", | 208 | "....a..", |
209 | "...a..." | 209 | "...a..." |
210 | }; | 210 | }; |
211 | static const char *BackTab_xpm[] = { | 211 | static const char *BackTab_xpm[] = { |
212 | "8 7 2 1", | 212 | "8 7 2 1", |
213 | "a c #000000", | 213 | "a c #000000", |
214 | ". c None", | 214 | ". c None", |
215 | "a.......", | 215 | "a.......", |
216 | "a..a....", | 216 | "a..a....", |
217 | "a.aa....", | 217 | "a.aa....", |
218 | "aaaaaaaa", | 218 | "aaaaaaaa", |
219 | "a.aa....", | 219 | "a.aa....", |
220 | "a..a....", | 220 | "a..a....", |
221 | "a......." | 221 | "a......." |
222 | }; | 222 | }; |
223 | static const char *Tab_xpm[] = { | 223 | static const char *Tab_xpm[] = { |
224 | "8 7 2 1", | 224 | "8 7 2 1", |
225 | "a c #000000", | 225 | "a c #000000", |
226 | ". c None", | 226 | ". c None", |
227 | ".......a", | 227 | ".......a", |
228 | "....a..a", | 228 | "....a..a", |
229 | "....aa.a", | 229 | "....aa.a", |
230 | "aaaaaaaa", | 230 | "aaaaaaaa", |
231 | "....aa.a", | 231 | "....aa.a", |
232 | "....a..a", | 232 | "....a..a", |
233 | ".......a" | 233 | ".......a" |
234 | }; | 234 | }; |
235 | static const char *Space_xpm[] = { | 235 | static const char *Space_xpm[] = { |
236 | "9 9 2 1", | 236 | "9 9 2 1", |
237 | "a c #000000", | 237 | "a c #000000", |
238 | ". c None", | 238 | ". c None", |
239 | "aaaaaaaaa", | 239 | "aaaaaaaaa", |
240 | "a.......a", | 240 | "a.......a", |
241 | "a.......a", | 241 | "a.......a", |
242 | "a.......a", | 242 | "a.......a", |
243 | "a.......a", | 243 | "a.......a", |
244 | "a.......a", | 244 | "a.......a", |
245 | "a.......a", | 245 | "a.......a", |
246 | "a.......a", | 246 | "a.......a", |
247 | "aaaaaaaaa" | 247 | "aaaaaaaaa" |
248 | }; | 248 | }; |
249 | 249 | ||
250 | PickboardPicks::PickboardPicks(QWidget* parent, const char* name, WFlags f ) : | 250 | PickboardPicks::PickboardPicks(QWidget* parent, const char* name, WFlags f ) : |
251 | QFrame(parent,name,f) | 251 | QFrame(parent,name,f) |
252 | { | 252 | { |
253 | configs.setAutoDelete( TRUE ); | 253 | configs.setAutoDelete( TRUE ); |
254 | } | 254 | } |
255 | 255 | ||
256 | void PickboardPicks::initialise(void) | 256 | void PickboardPicks::initialise(void) |
257 | { | 257 | { |
258 | setSizePolicy(QSizePolicy(QSizePolicy::Expanding,QSizePolicy::Fixed)); | 258 | setSizePolicy(QSizePolicy(QSizePolicy::Expanding,QSizePolicy::Fixed)); |
259 | mode = 0; | 259 | mode = 0; |
260 | 260 | ||
261 | DictFilterConfig* dc = new DictFilterConfig(this); | 261 | DictFilterConfig* dc = new DictFilterConfig(this); |
262 | QStringList sets_a = QStringList::split(' ',tr("ABC DEF GHI JKL MNO PQR STU VWX YZ-'")); | 262 | QStringList sets_a = QStringList::split(' ',tr("ABC DEF GHI JKL MNO PQR STU VWX YZ-'")); |
263 | QStringList sets = QStringList::split(' ', | 263 | QStringList sets = QStringList::split(' ', |
264 | tr("ABC%/1iso8859-15 DEF%/1iso8859-15 GHI%/1iso8859-15 JKL MNO%/1iso8859-15 PQR%/1iso8859-15 STU%/1iso8859-15 VWX YZ-'%/1iso8859-15")); | 264 | tr("ABC DEF GHI JKL MNO PQR STU VWX YZ-'")); |
265 | for (QStringList::ConstIterator it = sets.begin(), it_a = sets_a.begin(); it!=sets.end(); ++it,++it_a) | 265 | for (QStringList::ConstIterator it = sets.begin(), it_a = sets_a.begin(); it!=sets.end(); ++it,++it_a) |
266 | dc->addSet(*it_a,*it); | 266 | dc->addSet(*it_a,*it); |
267 | dc->addMode("123"); | 267 | dc->addMode("123"); |
268 | dc->addMode("@*!?"); | 268 | dc->addMode("@*!?"); |
269 | dc->addMode(tr("KEY")); | 269 | dc->addMode(tr("KEY")); |
270 | dc->addMode(tr("Space")); | 270 | dc->addMode(tr("Space")); |
271 | dc->addMode(tr("Back")); | 271 | dc->addMode(tr("Back")); |
272 | dc->addMode(tr("Enter")); | 272 | dc->addMode(tr("Enter")); |
273 | dc->addMode(tr("Shift")); | 273 | dc->addMode(tr("Shift")); |
274 | configs.append(dc); | 274 | configs.append(dc); |
275 | 275 | ||
276 | CharStringConfig* number = new CharStringConfig(this); | 276 | CharStringConfig* number = new CharStringConfig(this); |
277 | number->addChar("0"); | 277 | number->addChar("0"); |
278 | number->addChar("1"); | 278 | number->addChar("1"); |
279 | number->addChar("2"); | 279 | number->addChar("2"); |
280 | number->addChar("3"); | 280 | number->addChar("3"); |
281 | number->addChar("4"); | 281 | number->addChar("4"); |
282 | number->addChar("5"); | 282 | number->addChar("5"); |
283 | number->addChar("6"); | 283 | number->addChar("6"); |
284 | number->addChar("7"); | 284 | number->addChar("7"); |
285 | number->addChar("8"); | 285 | number->addChar("8"); |
286 | number->addChar("9"); | 286 | number->addChar("9"); |
287 | number->addChar("."); // #### or "," in some locales | 287 | number->addChar("."); // #### or "," in some locales |
288 | configs.append(number); | 288 | configs.append(number); |
289 | 289 | ||
290 | CharConfig* punc = new CharConfig(this); | 290 | CharConfig* punc = new CharConfig(this); |
291 | 291 | ||
292 | punc->addChar(0,"\""); | 292 | punc->addChar(0,"\""); |
293 | punc->addChar(0,"`"); | 293 | punc->addChar(0,"`"); |
294 | punc->addChar(0,"'"); | 294 | punc->addChar(0,"'"); |
295 | punc->addChar(0,"\253"); | 295 | punc->addChar(0,"\253"); |
296 | punc->addChar(0,"\273"); | 296 | punc->addChar(0,"\273"); |
297 | punc->addChar(0,"\277"); | 297 | punc->addChar(0,"\277"); |
298 | punc->addChar(1,"("); | 298 | punc->addChar(1,"("); |
299 | punc->addChar(1,")"); | 299 | punc->addChar(1,")"); |
300 | punc->addChar(1,"["); | 300 | punc->addChar(1,"["); |
301 | punc->addChar(1,"]"); | 301 | punc->addChar(1,"]"); |
302 | punc->addChar(1,"{"); | 302 | punc->addChar(1,"{"); |
303 | punc->addChar(1,"}"); | 303 | punc->addChar(1,"}"); |
304 | 304 | ||
305 | punc->addChar(0,"+"); | 305 | punc->addChar(0,"+"); |
306 | punc->addChar(0,"-"); | 306 | punc->addChar(0,"-"); |
307 | punc->addChar(0,"*"); | 307 | punc->addChar(0,"*"); |
308 | punc->addChar(0,"/"); | 308 | punc->addChar(0,"/"); |
309 | punc->addChar(0,"="); | 309 | punc->addChar(0,"="); |
310 | punc->addChar(0,"_"); | 310 | punc->addChar(0,"_"); |
311 | punc->addChar(0,"$"); | 311 | punc->addChar(0,"$"); |
312 | punc->addChar(0,"&"); | 312 | punc->addChar(0,"&"); |
313 | punc->addChar(1,"|"); | 313 | punc->addChar(1,"|"); |
314 | punc->addChar(1,"@"); | 314 | punc->addChar(1,"@"); |
315 | punc->addChar(1,"\\"); | 315 | punc->addChar(1,"\\"); |
316 | punc->addChar(1,"#"); | 316 | punc->addChar(1,"#"); |
317 | punc->addChar(1,"^"); | 317 | punc->addChar(1,"^"); |
318 | punc->addChar(1,"~"); | 318 | punc->addChar(1,"~"); |
319 | punc->addChar(1,"<"); | 319 | punc->addChar(1,"<"); |
320 | punc->addChar(1,">"); | 320 | punc->addChar(1,">"); |
321 | 321 | ||
322 | punc->addChar(0,"."); | 322 | punc->addChar(0,"."); |
323 | punc->addChar(0,"?"); | 323 | punc->addChar(0,"?"); |
324 | punc->addChar(0,"!"); | 324 | punc->addChar(0,"!"); |
325 | punc->addChar(0,","); | 325 | punc->addChar(0,","); |
326 | punc->addChar(0,";"); | 326 | punc->addChar(0,";"); |
327 | punc->addChar(1,":"); | 327 | punc->addChar(1,":"); |
328 | punc->addChar(1,"\267"); | 328 | punc->addChar(1,"\267"); |
329 | punc->addChar(1,"\277"); | 329 | punc->addChar(1,"\277"); |
330 | punc->addChar(1,"\241"); | 330 | punc->addChar(1,"\241"); |
331 | punc->addChar(1,"\367"); | 331 | punc->addChar(1,"\367"); |
332 | 332 | ||
333 | punc->addChar(0,"$"); | 333 | punc->addChar(0,"$"); |
334 | punc->addChar(0,"\242"); | 334 | punc->addChar(0,"\242"); |
335 | punc->addChar(0,"\245"); | 335 | punc->addChar(0,"\245"); |
336 | punc->addChar(1,"\243"); | 336 | punc->addChar(1,"\243"); |
337 | punc->addChar(1,"\244"); | 337 | punc->addChar(1,"\244"); |
338 | punc->addChar(1,"\260"); | 338 | punc->addChar(1,"\260"); |
339 | 339 | ||
340 | configs.append(punc); | 340 | configs.append(punc); |
341 | 341 | ||
342 | KeycodeConfig* keys = new KeycodeConfig(this); | 342 | KeycodeConfig* keys = new KeycodeConfig(this); |
343 | keys->addKey(0,QPixmap(Esc_xpm),Key_Escape); | 343 | keys->addKey(0,QPixmap(Esc_xpm),Key_Escape); |
344 | keys->addKey(0,QPixmap(BS_xpm),Key_Backspace); | 344 | keys->addKey(0,QPixmap(BS_xpm),Key_Backspace); |
345 | keys->addGap(0,10); | 345 | keys->addGap(0,10); |
346 | 346 | ||
347 | keys->addKey(0,QPixmap(Ins_xpm),Key_Insert); | 347 | keys->addKey(0,QPixmap(Ins_xpm),Key_Insert); |
348 | keys->addKey(0,QPixmap(Home_xpm),Key_Home); | 348 | keys->addKey(0,QPixmap(Home_xpm),Key_Home); |
349 | keys->addKey(0,QPixmap(PgUp_xpm),Key_PageUp); | 349 | keys->addKey(0,QPixmap(PgUp_xpm),Key_PageUp); |
350 | 350 | ||
351 | keys->addGap(0,25); | 351 | keys->addGap(0,25); |
352 | keys->addKey(0,QPixmap(Up_xpm),Key_Up); | 352 | keys->addKey(0,QPixmap(Up_xpm),Key_Up); |
353 | keys->addGap(0,15); | 353 | keys->addGap(0,15); |
354 | 354 | ||
355 | keys->addKey(1,QPixmap(BackTab_xpm),Key_Tab); | 355 | keys->addKey(1,QPixmap(BackTab_xpm),Key_Tab); |
356 | keys->addGap(1,3); | 356 | keys->addGap(1,3); |
357 | keys->addKey(1,QPixmap(Tab_xpm),Key_Tab); | 357 | keys->addKey(1,QPixmap(Tab_xpm),Key_Tab); |
358 | keys->addGap(1,10); | 358 | keys->addGap(1,10); |
359 | 359 | ||
360 | keys->addKey(1,QPixmap(Del_xpm),Key_Delete); | 360 | keys->addKey(1,QPixmap(Del_xpm),Key_Delete); |