summaryrefslogtreecommitdiff
path: root/libopie2/opiecore/device/odevice_mypal.cpp
authorkorovkin <korovkin>2006-12-13 19:31:16 (UTC)
committer korovkin <korovkin>2006-12-13 19:31:16 (UTC)
commit5a0012fb3b75ff41437b0685386731d1367e4e7b (patch) (side-by-side diff)
tree39aaca04066159ed4c97a4ffae521d938d013780 /libopie2/opiecore/device/odevice_mypal.cpp
parenta691909050b60b94f5525093062c23d0fab11d1b (diff)
downloadopie-5a0012fb3b75ff41437b0685386731d1367e4e7b.zip
opie-5a0012fb3b75ff41437b0685386731d1367e4e7b.tar.gz
opie-5a0012fb3b75ff41437b0685386731d1367e4e7b.tar.bz2
Committed patch provided by Paul Solkolovsky which combines all
the 2.6 based PDAs togeter. Thank you Paul!
Diffstat (limited to 'libopie2/opiecore/device/odevice_mypal.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--libopie2/opiecore/device/odevice_mypal.cpp17
1 files changed, 10 insertions, 7 deletions
diff --git a/libopie2/opiecore/device/odevice_mypal.cpp b/libopie2/opiecore/device/odevice_mypal.cpp
index 7eb8d1d..208be46 100644
--- a/libopie2/opiecore/device/odevice_mypal.cpp
+++ b/libopie2/opiecore/device/odevice_mypal.cpp
@@ -60,29 +60,32 @@
using namespace Opie::Core;
using namespace Opie::Core::Internal;
+#define Model_Keyboardless_2_6 (Model_MyPal_716)
+
struct m_button mypal_buttons [] = {
- { Model_MyPal_716,
+ // Common button map for all keyboardless devices with 2.6 kernel
+ { Model_Keyboardless_2_6,
Qt::Key_F9, QT_TRANSLATE_NOOP("Button", "Calendar Button"),
"devicebuttons/ipaq_calendar",
"datebook", "nextView()",
"today", "raise()" },
- { Model_MyPal_716,
+ { Model_Keyboardless_2_6,
Qt::Key_F10, QT_TRANSLATE_NOOP("Button", "Contacts Button"),
"devicebuttons/ipaq_contact",
"addressbook", "raise()",
"addressbook", "beamBusinessCard()" },
- { Model_MyPal_716,
- Qt::Key_F8, QT_TRANSLATE_NOOP("Button", "Mail Button"),
+ { Model_Keyboardless_2_6,
+ Qt::Key_F11, QT_TRANSLATE_NOOP("Button", "Mail Button"),
"devicebuttons/ipaq_mail",
"opiemail", "raise()",
"opiemail", "newMail()" },
- { Model_MyPal_716,
+ { Model_Keyboardless_2_6,
Qt::Key_F12, QT_TRANSLATE_NOOP("Button", "Home Button"),
"devicebuttons/ipaq_home",
"QPE/Launcher", "home()",
"buttonsettings", "raise()" },
- { Model_MyPal_716,
- Qt::Key_F7, QT_TRANSLATE_NOOP("Button", "Record Button"),
+ { Model_Keyboardless_2_6,
+ Qt::Key_F24, QT_TRANSLATE_NOOP("Button", "Record Button"),
"devicebuttons/ipaq_record",
"QPE/VMemo", "toggleRecord()",
"sound", "raise()" },