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

Erik Hovland <[email protected]>
Newsgroups gmane.comp.handhelds.opie.devel,gmane.comp.handhelds.linux.familiar.devel
Message-ID <[email protected]>
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.

E

-- 
Erik Hovland
mail: erik AT hovland DOT org
web: http://hovland.org/
PGP/GPG public key available on request

_______________________________________________

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

Opie-devel mailing list
[email protected]
https://handhelds.org/mailman/listinfo/opie-devel
hx4700-keys-for-opie-fixed.patch (text/plain, 2.8 KB)
diff --git a/org.handhelds.familiar/packages/libopie/libopie2/hx4700-keys.patch b/org.handhelds.familiar/packages/libopie/libopie2/hx4700-keys.patch
new file mode 100644
index 0000000..1ce04c8
--- /dev/null
+++ b/org.handhelds.familiar/packages/libopie/libopie2/hx4700-keys.patch
@@ -0,0 +1,40 @@
+--- opiecore/device/odevice_ipaq.cpp.fam-0.8.4-rc3	2006-07-27 16:18:55.804898062 -0700
++++ opiecore/device/odevice_ipaq.cpp	2006-07-27 16:15:28.425537618 -0700
+@@ -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_H22xx,
++    { 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,
+     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_H22xx,
++    { 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,
+     Qt::Key_F10, QT_TRANSLATE_NOOP("Button", "Contacts Button"),
+     "devicebuttons/ipaq_contact",
+     "addressbook", "raise()",
+@@ -138,6 +138,22 @@
+     "devicebuttons/ipaq_menu",
+     "QPE/TaskBar", "toggleMenu()",
+     "QPE/TaskBar", "toggleStartMenu()" },
++    // and hx4700 has different button mapping still
++    { Model_iPAQ_HX4700,
++    Qt::Key_F11, QT_TRANSLATE_NOOP("Button", "Mail Button"),
++    "devicebuttons/ipaq_mail",
++    "opiemail", "raise()",
++    "opiemail", "newMail()" },
++    { Model_iPAQ_HX4700,
++    Qt::Key_F12, QT_TRANSLATE_NOOP("Button", "Record Button"),
++    "devicebuttons/ipaq_record",
++    "QPE/VMemo", "toggleRecord()",
++    "sound", "raise()" },
++    { Model_iPAQ_HX4700,
++    Qt::Key_Home, QT_TRANSLATE_NOOP("Button", "Home Button"),
++    "devicebuttons/ipaq_home",
++    "QPE/Launcher", "home()",
++    "buttonsettings", "raise()" },
+ 
+ };
+ 
diff --git a/org.handhelds.familiar/packages/libopie/libopie2_1.2.1.bb b/org.handhelds.familiar/packages/libopie/libopie2_1.2.1.bb
index c5533ed..57266ed 100644
--- a/org.handhelds.familiar/packages/libopie/libopie2_1.2.1.bb
+++ b/org.handhelds.familiar/packages/libopie/libopie2_1.2.1.bb
@@ -7,4 +7,5 @@ SRC_URI = "${HANDHELDS_CVS};tag=${TAG};m
 	   file://prelim-h191x-hx4700-supp.patch;patch=1;pnum=2 \
 	   file://ipaq-2.6-sys-class-backlight-support.patch;patch=1 \
 	   file://h2200-keys.patch;patch=1 \
+	   file://hx4700-keys.patch;patch=1;pnum=0 \
            file://include.pro"
hx4700-inbetween.patch (text/plain, 1.3 KB)
diff --git a/org.handhelds.familiar/packages/libopie/libopie2/hx4700-keys.patch b/org.handhelds.familiar/packages/libopie/libopie2/hx4700-keys.patch
index 81dda3e..1ce04c8 100644
--- a/org.handhelds.familiar/packages/libopie/libopie2/hx4700-keys.patch
+++ b/org.handhelds.familiar/packages/libopie/libopie2/hx4700-keys.patch
@@ -31,7 +31,7 @@
 +    "QPE/VMemo", "toggleRecord()",
 +    "sound", "raise()" },
 +    { Model_iPAQ_HX4700,
-+    Qt::Key_HOME, QT_TRANSLATE_NOOP("Button", "Home Button"),
++    Qt::Key_Home, QT_TRANSLATE_NOOP("Button", "Home Button"),
 +    "devicebuttons/ipaq_home",
 +    "QPE/Launcher", "home()",
 +    "buttonsettings", "raise()" },
diff --git a/org.handhelds.familiar/packages/libopie/libopie2_1.2.1.bb b/org.handhelds.familiar/packages/libopie/libopie2_1.2.1.bb
index c97f78f..57266ed 100644
--- a/org.handhelds.familiar/packages/libopie/libopie2_1.2.1.bb
+++ b/org.handhelds.familiar/packages/libopie/libopie2_1.2.1.bb
@@ -7,5 +7,5 @@ SRC_URI = "${HANDHELDS_CVS};tag=${TAG};m
 	   file://prelim-h191x-hx4700-supp.patch;patch=1;pnum=2 \
 	   file://ipaq-2.6-sys-class-backlight-support.patch;patch=1 \
 	   file://h2200-keys.patch;patch=1 \
-	   file://hx4700-keys.patch;patch=1 \
+	   file://hx4700-keys.patch;patch=1;pnum=0 \
            file://include.pro"
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.