author | mickeyl <mickeyl> | 2003-05-30 16:12:14 (UTC) |
---|---|---|
committer | mickeyl <mickeyl> | 2003-05-30 16:12:14 (UTC) |
commit | 5c9e869c42ce14ff87a02450da09c2a35ee799e1 (patch) (unidiff) | |
tree | b61b3a02f1a6edeb0ecddf778e8b44fd49bdb757 /libopie | |
parent | cc06c984e13d5a452da3a5636cac77e001c80ad6 (diff) | |
download | opie-5c9e869c42ce14ff87a02450da09c2a35ee799e1.zip opie-5c9e869c42ce14ff87a02450da09c2a35ee799e1.tar.gz opie-5c9e869c42ce14ff87a02450da09c2a35ee799e1.tar.bz2 |
add support for the SIMpad virtual switches
-rw-r--r-- | libopie/odevice.cpp | 49 |
1 files changed, 45 insertions, 4 deletions
diff --git a/libopie/odevice.cpp b/libopie/odevice.cpp index 2873407..01932c9 100644 --- a/libopie/odevice.cpp +++ b/libopie/odevice.cpp | |||
@@ -268,15 +268,56 @@ struct s_button { | |||
268 | char *fheldaction; | 268 | char *fheldaction; |
269 | } simpad_buttons [] = { | 269 | } simpad_buttons [] = { |
270 | { Model_SIMpad_CL4 | Model_SIMpad_SL4 | Model_SIMpad_SLC | Model_SIMpad_TSinus, | 270 | { Model_SIMpad_CL4 | Model_SIMpad_SL4 | Model_SIMpad_SLC | Model_SIMpad_TSinus, |
271 | Qt::Key_F11, QT_TRANSLATE_NOOP("Button", "Menu Button"), | 271 | Qt::Key_F9, QT_TRANSLATE_NOOP("Button", "Lower+Up"), |
272 | "devicebuttons/simpad_menu", | 272 | "devicebuttons/simpad_lower_up", |
273 | "datebook", "nextView()", | ||
274 | "today", "raise()" }, | ||
275 | { Model_SIMpad_CL4 | Model_SIMpad_SL4 | Model_SIMpad_SLC | Model_SIMpad_TSinus, | ||
276 | Qt::Key_F10, QT_TRANSLATE_NOOP("Button", "Lower+Down"), | ||
277 | "devicebuttons/simpad_lower_down", | ||
278 | "addressbook", "raise()", | ||
279 | "addressbook", "beamBusinessCard()" }, | ||
280 | { Model_SIMpad_CL4 | Model_SIMpad_SL4 | Model_SIMpad_SLC | Model_SIMpad_TSinus, | ||
281 | Qt::Key_F11, QT_TRANSLATE_NOOP("Button", "Lower+Right"), | ||
282 | "devicebuttons/simpad_lower_right", | ||
273 | "QPE/TaskBar", "toggleMenu()", | 283 | "QPE/TaskBar", "toggleMenu()", |
274 | "QPE/TaskBar", "toggleStartMenu()" }, | 284 | "QPE/TaskBar", "toggleStartMenu()" }, |
275 | { Model_SIMpad_CL4 | Model_SIMpad_SL4 | Model_SIMpad_SLC | Model_SIMpad_TSinus, | 285 | { Model_SIMpad_CL4 | Model_SIMpad_SL4 | Model_SIMpad_SLC | Model_SIMpad_TSinus, |
276 | Qt::Key_F12, QT_TRANSLATE_NOOP("Button", "Home Button"), | 286 | Qt::Key_F12, QT_TRANSLATE_NOOP("Button", "Lower+Upper"), |
277 | "devicebuttons/ipaq_home", | 287 | "devicebuttons/simpad_lower_upper", |
278 | "QPE/Launcher", "home()", | 288 | "QPE/Launcher", "home()", |
279 | "buttonsettings", "raise()" }, | 289 | "buttonsettings", "raise()" }, |
290 | { Model_SIMpad_CL4 | Model_SIMpad_SL4 | Model_SIMpad_SLC | Model_SIMpad_TSinus, | ||
291 | Qt::Key_F13, QT_TRANSLATE_NOOP("Button", "Lower+Left"), | ||
292 | "devicebuttons/simpad_lower_left", | ||
293 | "mail", "raise()", | ||
294 | "mail", "newMail()" }, | ||
295 | |||
296 | { Model_SIMpad_CL4 | Model_SIMpad_SL4 | Model_SIMpad_SLC | Model_SIMpad_TSinus, | ||
297 | Qt::Key_F5, QT_TRANSLATE_NOOP("Button", "Upper+Up"), | ||
298 | "devicebuttons/simpad_upper_up", | ||
299 | "datebook", "nextView()", | ||
300 | "today", "raise()" }, | ||
301 | { Model_SIMpad_CL4 | Model_SIMpad_SL4 | Model_SIMpad_SLC | Model_SIMpad_TSinus, | ||
302 | Qt::Key_F6, QT_TRANSLATE_NOOP("Button", "Upper+Down"), | ||
303 | "devicebuttons/simpad_upper_down", | ||
304 | "addressbook", "raise()", | ||
305 | "addressbook", "beamBusinessCard()" }, | ||
306 | { Model_SIMpad_CL4 | Model_SIMpad_SL4 | Model_SIMpad_SLC | Model_SIMpad_TSinus, | ||
307 | Qt::Key_F7, QT_TRANSLATE_NOOP("Button", "Upper+Right"), | ||
308 | "devicebuttons/simpad_upper_right", | ||
309 | "QPE/TaskBar", "toggleMenu()", | ||
310 | "QPE/TaskBar", "toggleStartMenu()" }, | ||
311 | /*{ Model_SIMpad_CL4 | Model_SIMpad_SL4 | Model_SIMpad_SLC | Model_SIMpad_TSinus, | ||
312 | Qt::Key_F12, QT_TRANSLATE_NOOP("Button", "Lower+Upper"), | ||
313 | "devicebuttons/simpad_lower_upper", | ||
314 | "QPE/Launcher", "home()", | ||
315 | "buttonsettings", "raise()" },*/ | ||
316 | { Model_SIMpad_CL4 | Model_SIMpad_SL4 | Model_SIMpad_SLC | Model_SIMpad_TSinus, | ||
317 | Qt::Key_F13, QT_TRANSLATE_NOOP("Button", "Upper+Left"), | ||
318 | "devicebuttons/simpad_upper_left", | ||
319 | "mail", "raise()", | ||
320 | "mail", "newMail()" }, | ||
280 | }; | 321 | }; |
281 | 322 | ||
282 | static QCString makeChannel ( const char *str ) | 323 | static QCString makeChannel ( const char *str ) |