]> pilppa.org Git - familiar-h63xx-build.git/blob - org.handhelds.familiar/packages/libopie/libopie2/hx4700-keys.patch
libopie2: add initial support for cal, contacts, mail, home and record buttons on...
[familiar-h63xx-build.git] / org.handhelds.familiar / packages / libopie / libopie2 / hx4700-keys.patch
1 --- libopie2/opiecore/device/odevice_ipaq.cpp.fam-0.8.4-rc3     2006-07-27 16:18:55.804898062 -0700
2 +++ libopie2/opiecore/device/odevice_ipaq.cpp   2006-07-27 16:15:28.425537618 -0700
3 @@ -85,12 +85,12 @@
4  #define FLITE_ON  OD_IOW( 'f', 7, FLITE_IN )
5  
6  struct i_button ipaq_buttons [] = {
7 -    { Model_iPAQ_H31xx | Model_iPAQ_H36xx | Model_iPAQ_H37xx | Model_iPAQ_H38xx | Model_iPAQ_H39xx | Model_iPAQ_H5xxx | Model_iPAQ_H191x | Model_iPAQ_H22xx,
8 +    { Model_iPAQ_H31xx | Model_iPAQ_H36xx | Model_iPAQ_H37xx | Model_iPAQ_H38xx | Model_iPAQ_H39xx | Model_iPAQ_H5xxx | Model_iPAQ_H191x | Model_iPAQ_H22xx | Model_iPAQ_HX4700,
9      Qt::Key_F9, QT_TRANSLATE_NOOP("Button", "Calendar Button"),
10      "devicebuttons/ipaq_calendar",
11      "datebook", "nextView()",
12      "today", "raise()" },
13 -    { Model_iPAQ_H31xx | Model_iPAQ_H36xx | Model_iPAQ_H37xx | Model_iPAQ_H38xx | Model_iPAQ_H39xx | Model_iPAQ_H5xxx | Model_iPAQ_H191x | Model_iPAQ_H22xx,
14 +    { Model_iPAQ_H31xx | Model_iPAQ_H36xx | Model_iPAQ_H37xx | Model_iPAQ_H38xx | Model_iPAQ_H39xx | Model_iPAQ_H5xxx | Model_iPAQ_H191x | Model_iPAQ_H22xx | Model_iPAQ_HX4700,
15      Qt::Key_F10, QT_TRANSLATE_NOOP("Button", "Contacts Button"),
16      "devicebuttons/ipaq_contact",
17      "addressbook", "raise()",
18 @@ -138,6 +138,22 @@
19      "devicebuttons/ipaq_menu",
20      "QPE/TaskBar", "toggleMenu()",
21      "QPE/TaskBar", "toggleStartMenu()" },
22 +    // and hx4700 has different button mapping still
23 +    { Model_iPAQ_HX4700,
24 +    Qt::Key_F11, QT_TRANSLATE_NOOP("Button", "Mail Button"),
25 +    "devicebuttons/ipaq_mail",
26 +    "opiemail", "raise()",
27 +    "opiemail", "newMail()" },
28 +    { Model_iPAQ_HX4700,
29 +    Qt::Key_F12, QT_TRANSLATE_NOOP("Button", "Record Button"),
30 +    "devicebuttons/ipaq_record",
31 +    "QPE/VMemo", "toggleRecord()",
32 +    "sound", "raise()" },
33 +    { Model_iPAQ_HX4700,
34 +    Qt::Key_Home, QT_TRANSLATE_NOOP("Button", "Home Button"),
35 +    "devicebuttons/ipaq_home",
36 +    "QPE/Launcher", "home()",
37 +    "buttonsettings", "raise()" },
38  
39  };
40