Re: Re: cal, contacts, mail, home and record button support for hx4700 in Opie

Rene Wagner <[email protected]>
Newsgroups gmane.comp.handhelds.opie.devel
Message-ID <1154467058.3664.20.camel@localhost>
On Fri, 2006-07-28 at 11:48 -0700, Erik Hovland wrote:
> On Thu, Jul 27, 2006 at 04:34:31PM -0700, Erik Hovland wrote:
> > It would help if I remembered the patch.
> 
> And it would help if I had waited for the changed bb to finish
> compiling.
> 
> The first patch is a fixed patch of the original. The second one is a
> patch to fix my original patch in case any of you already applied it.

For completeness, I've attached the h2200-keys.patch which needs to
be applied before the hx4700-keys.patch will work.

Regards,

Rene
 
-- 
Rene Wagner
rw at handhelds dot org
4F33 7FD7 93B3 166B BADA  D6F8 71A1 FEA8 58B4 36D0

_______________________________________________

http://opie.handhelds.org/cgi-bin/moin.cgi/DeveloperWikiIndex

Opie-devel mailing list
[email protected]
https://handhelds.org/mailman/listinfo/opie-devel
h2200-keys.patch (text/x-patch, 1.7 KB)
--- libopie2/opiecore/device/odevice_ipaq.cpp.orig	2006-07-26 20:26:54.000000000 +0200
+++ libopie2/opiecore/device/odevice_ipaq.cpp	2006-07-27 11:47:04.000000000 +0200
@@ -85,12 +85,12 @@
 #define FLITE_ON  OD_IOW( 'f', 7, FLITE_IN )
 
 struct i_button ipaq_buttons [] = {
-    { Model_iPAQ_H31xx | Model_iPAQ_H36xx | Model_iPAQ_H37xx | Model_iPAQ_H38xx | Model_iPAQ_H39xx | Model_iPAQ_H5xxx | Model_iPAQ_H191x,
+    { Model_iPAQ_H31xx | Model_iPAQ_H36xx | Model_iPAQ_H37xx | Model_iPAQ_H38xx | Model_iPAQ_H39xx | Model_iPAQ_H5xxx | Model_iPAQ_H191x | Model_iPAQ_H22xx,
     Qt::Key_F9, QT_TRANSLATE_NOOP("Button", "Calendar Button"),
     "devicebuttons/ipaq_calendar",
     "datebook", "nextView()",
     "today", "raise()" },
-    { Model_iPAQ_H31xx | Model_iPAQ_H36xx | Model_iPAQ_H37xx | Model_iPAQ_H38xx | Model_iPAQ_H39xx | Model_iPAQ_H5xxx | Model_iPAQ_H191x,
+    { Model_iPAQ_H31xx | Model_iPAQ_H36xx | Model_iPAQ_H37xx | Model_iPAQ_H38xx | Model_iPAQ_H39xx | Model_iPAQ_H5xxx | Model_iPAQ_H191x | Model_iPAQ_H22xx,
     Qt::Key_F10, QT_TRANSLATE_NOOP("Button", "Contacts Button"),
     "devicebuttons/ipaq_contact",
     "addressbook", "raise()",
@@ -127,6 +127,18 @@
     "QPE/VMemo", "toggleRecord()",
     "sound", "raise()" },
 
+    //h2200 has different button mapping
+    { Model_iPAQ_H22xx,
+    Qt::Key_NumLock, QT_TRANSLATE_NOOP("Button", "Mail Button"),
+    "devicebuttons/ipaq_mail",
+    "opiemail", "raise()",
+    "opiemail", "newMail()" },
+    { Model_iPAQ_H22xx,
+    Qt::Key_ScrollLock, QT_TRANSLATE_NOOP("Button", "Menu Button"),
+    "devicebuttons/ipaq_menu",
+    "QPE/TaskBar", "toggleMenu()",
+    "QPE/TaskBar", "toggleStartMenu()" },
+
 };
 
 void iPAQ::init(const QString& model)
signature.asc (application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)

iD8DBQBEz8TycaH+qFi0NtARAkM+AJ0e9x5G7eNh1Kwus1qRts0e/eD70gCfRZ1Y
RSUsuTBTil1ztn/rB+4+6CY=
=m+IS
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.