summaryrefslogtreecommitdiff
path: root/libopie2
authormickeyl <mickeyl>2005-07-22 22:56:18 (UTC)
committer mickeyl <mickeyl>2005-07-22 22:56:18 (UTC)
commitb74ea9f8de39d355e2d16b4b685e9de54e2f0b0d (patch) (side-by-side diff)
treea52111e0b1dccdd97d03ea1fe79d6ca14459a3a2 /libopie2
parent312b42400a1ea39f3537664fe610e2f42f3097d1 (diff)
downloadopie-b74ea9f8de39d355e2d16b4b685e9de54e2f0b0d.zip
opie-b74ea9f8de39d355e2d16b4b685e9de54e2f0b0d.tar.gz
opie-b74ea9f8de39d355e2d16b4b685e9de54e2f0b0d.tar.bz2
odevice: fix SL6000 rotation + record button mapping
Diffstat (limited to 'libopie2') (more/less context) (ignore whitespace changes)
-rw-r--r--libopie2/opiecore/device/odevice_zaurus.cpp39
1 files changed, 37 insertions, 2 deletions
diff --git a/libopie2/opiecore/device/odevice_zaurus.cpp b/libopie2/opiecore/device/odevice_zaurus.cpp
index 8369f54..7302d2c 100644
--- a/libopie2/opiecore/device/odevice_zaurus.cpp
+++ b/libopie2/opiecore/device/odevice_zaurus.cpp
@@ -116,2 +116,33 @@ struct z_button z_buttons_c700 [] = {
+struct z_button z_buttons_6000 [] = {
+ { Qt::Key_F9, QT_TRANSLATE_NOOP("Button", "Calendar Button"),
+ "devicebuttons/z_calendar",
+ "datebook", "nextView()",
+ "today", "raise()" },
+ { Qt::Key_F10, QT_TRANSLATE_NOOP("Button", "Contacts Button"),
+ "devicebuttons/z_contact",
+ "addressbook", "raise()",
+ "addressbook", "beamBusinessCard()" },
+ { Qt::Key_F12, QT_TRANSLATE_NOOP("Button", "Home Button"),
+ "devicebuttons/z_home",
+ "QPE/Launcher", "home()",
+ "buttonsettings", "raise()" },
+ { Qt::Key_F11, QT_TRANSLATE_NOOP("Button", "Menu Button"),
+ "devicebuttons/z_menu",
+ "QPE/TaskBar", "toggleMenu()",
+ "QPE/TaskBar", "toggleStartMenu()" },
+ { Qt::Key_F13, QT_TRANSLATE_NOOP("Button", "Mail Button"),
+ "devicebuttons/z_mail",
+ "opiemail", "raise()",
+ "opiemail", "newMail()" },
+ { Qt::Key_F15, QT_TRANSLATE_NOOP("Button", "Rotate Button"),
+ "devicebuttons/z_rotate",
+ 0,
+ "QPE/Rotation", "rotateDefault()" },
+ { Qt::Key_F24, QT_TRANSLATE_NOOP("Button", "Record Button"),
+ "devicebuttons/z_hinge3",
+ "QPE/VMemo", "toggleRecord()",
+ "sound", "raise()" },
+};
+
// FIXME This gets unnecessary complicated. We should think about splitting the Zaurus
@@ -257,3 +288,2 @@ void Zaurus::initButtons()
-
d->m_buttons = new QValueList <ODeviceButton>;
@@ -262,3 +292,8 @@ void Zaurus::initButtons()
int buttoncount;
- switch ( d->m_model ) {
+ switch ( d->m_model )
+ {
+ case Model_Zaurus_SL6000:
+ pz_buttons = z_buttons_6000;
+ buttoncount = ARRAY_SIZE(z_buttons_6000);
+ break;
case Model_Zaurus_SLC3000: // fallthrough