]> pilppa.org Git - familiar-h63xx-build.git/blob - org.handhelds.familiar/packages/libopie/libopie2/h2200-keys.patch
libopie2: remove remove duplicate code from h2200-keys.patch.
[familiar-h63xx-build.git] / org.handhelds.familiar / packages / libopie / libopie2 / h2200-keys.patch
1 --- libopie2/opiecore/device/odevice_ipaq.cpp.orig      2006-07-26 20:26:54.000000000 +0200
2 +++ libopie2/opiecore/device/odevice_ipaq.cpp   2006-07-27 11:47:04.000000000 +0200
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,
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,
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,
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,
15      Qt::Key_F10, QT_TRANSLATE_NOOP("Button", "Contacts Button"),
16      "devicebuttons/ipaq_contact",
17      "addressbook", "raise()",
18 @@ -127,6 +127,18 @@
19      "QPE/VMemo", "toggleRecord()",
20      "sound", "raise()" },
21  
22 +    //h2200 has different button mapping
23 +    { Model_iPAQ_H22xx,
24 +    Qt::Key_NumLock, QT_TRANSLATE_NOOP("Button", "Mail Button"),
25 +    "devicebuttons/ipaq_mail",
26 +    "opiemail", "raise()",
27 +    "opiemail", "newMail()" },
28 +    { Model_iPAQ_H22xx,
29 +    Qt::Key_ScrollLock, QT_TRANSLATE_NOOP("Button", "Menu Button"),
30 +    "devicebuttons/ipaq_menu",
31 +    "QPE/TaskBar", "toggleMenu()",
32 +    "QPE/TaskBar", "toggleStartMenu()" },
33 +
34  };
35  
36  void iPAQ::init(const QString& model)