-rw-r--r-- | libopie2/opiecore/device/odevice.h | 1 | ||||
-rw-r--r-- | libopie2/opiecore/device/odevice_ipaq.cpp | 47 |
2 files changed, 42 insertions, 6 deletions
diff --git a/libopie2/opiecore/device/odevice.h b/libopie2/opiecore/device/odevice.h index c2fa411..a8362cd 100644 --- a/libopie2/opiecore/device/odevice.h +++ b/libopie2/opiecore/device/odevice.h | |||
@@ -73,2 +73,3 @@ enum OModel { | |||
73 | Model_iPAQ_HX4700 = ( Model_iPAQ | 0x000A ), | 73 | Model_iPAQ_HX4700 = ( Model_iPAQ | 0x000A ), |
74 | Model_iPAQ_H4xxx = ( Model_iPAQ | 0x000b ), | ||
74 | Model_Jornada = ( 6 << 16 ), | 75 | Model_Jornada = ( 6 << 16 ), |
diff --git a/libopie2/opiecore/device/odevice_ipaq.cpp b/libopie2/opiecore/device/odevice_ipaq.cpp index 63b60a7..00939bf 100644 --- a/libopie2/opiecore/device/odevice_ipaq.cpp +++ b/libopie2/opiecore/device/odevice_ipaq.cpp | |||
@@ -87,3 +87,3 @@ typedef struct { | |||
87 | struct i_button ipaq_buttons [] = { | 87 | struct i_button ipaq_buttons [] = { |
88 | { Model_iPAQ_H31xx | Model_iPAQ_H36xx | Model_iPAQ_H37xx | Model_iPAQ_H38xx | Model_iPAQ_H39xx | Model_iPAQ_H5xxx | Model_iPAQ_H191x, | 88 | { 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 | Model_iPAQ_H4xxx, |
89 | Qt::Key_F9, QT_TRANSLATE_NOOP("Button", "Calendar Button"), | 89 | Qt::Key_F9, QT_TRANSLATE_NOOP("Button", "Calendar Button"), |
@@ -92,3 +92,3 @@ struct i_button ipaq_buttons [] = { | |||
92 | "today", "raise()" }, | 92 | "today", "raise()" }, |
93 | { Model_iPAQ_H31xx | Model_iPAQ_H36xx | Model_iPAQ_H37xx | Model_iPAQ_H38xx | Model_iPAQ_H39xx | Model_iPAQ_H5xxx | Model_iPAQ_H191x, | 93 | { 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 | Model_iPAQ_H4xxx, |
94 | Qt::Key_F10, QT_TRANSLATE_NOOP("Button", "Contacts Button"), | 94 | Qt::Key_F10, QT_TRANSLATE_NOOP("Button", "Contacts Button"), |
@@ -107,3 +107,3 @@ struct i_button ipaq_buttons [] = { | |||
107 | "opiemail", "newMail()" }, | 107 | "opiemail", "newMail()" }, |
108 | { Model_iPAQ_H31xx | Model_iPAQ_H36xx | Model_iPAQ_H37xx | Model_iPAQ_H38xx | Model_iPAQ_H39xx | Model_iPAQ_H5xxx | Model_iPAQ_H191x, | 108 | { Model_iPAQ_H31xx | Model_iPAQ_H36xx | Model_iPAQ_H37xx | Model_iPAQ_H38xx | Model_iPAQ_H39xx | Model_iPAQ_H5xxx | Model_iPAQ_H191x | Model_iPAQ_H4xxx, |
109 | Qt::Key_F12, QT_TRANSLATE_NOOP("Button", "Home Button"), | 109 | Qt::Key_F12, QT_TRANSLATE_NOOP("Button", "Home Button"), |
@@ -118,3 +118,3 @@ struct i_button ipaq_buttons [] = { | |||
118 | 118 | ||
119 | { Model_iPAQ_H191x, | 119 | { Model_iPAQ_H191x | Model_iPAQ_H4xxx, |
120 | Qt::Key_F8, QT_TRANSLATE_NOOP("Button", "Mail Button"), | 120 | Qt::Key_F8, QT_TRANSLATE_NOOP("Button", "Mail Button"), |
@@ -123,3 +123,3 @@ struct i_button ipaq_buttons [] = { | |||
123 | "opiemail", "newMail()" }, | 123 | "opiemail", "newMail()" }, |
124 | { Model_iPAQ_H191x, | 124 | { Model_iPAQ_H191x | Model_iPAQ_H4xxx, |
125 | Qt::Key_F7, QT_TRANSLATE_NOOP("Button", "Record Button"), | 125 | Qt::Key_F7, QT_TRANSLATE_NOOP("Button", "Record Button"), |
@@ -129,2 +129,30 @@ struct i_button ipaq_buttons [] = { | |||
129 | 129 | ||
130 | //h2200 has different button mapping | ||
131 | { Model_iPAQ_H22xx, | ||
132 | Qt::Key_NumLock, QT_TRANSLATE_NOOP("Button", "Mail Button"), | ||
133 | "devicebuttons/ipaq_mail", | ||
134 | "opiemail", "raise()", | ||
135 | "opiemail", "newMail()" }, | ||
136 | { Model_iPAQ_H22xx, | ||
137 | Qt::Key_ScrollLock, QT_TRANSLATE_NOOP("Button", "Menu Button"), | ||
138 | "devicebuttons/ipaq_menu", | ||
139 | "QPE/TaskBar", "toggleMenu()", | ||
140 | "QPE/TaskBar", "toggleStartMenu()" }, | ||
141 | // and hx4700 has different button mapping still | ||
142 | { Model_iPAQ_HX4700, | ||
143 | Qt::Key_F11, QT_TRANSLATE_NOOP("Button", "Mail Button"), | ||
144 | "devicebuttons/ipaq_mail", | ||
145 | "opiemail", "raise()", | ||
146 | "opiemail", "newMail()" }, | ||
147 | { Model_iPAQ_HX4700, | ||
148 | Qt::Key_F12, QT_TRANSLATE_NOOP("Button", "Record Button"), | ||
149 | "devicebuttons/ipaq_record", | ||
150 | "QPE/VMemo", "toggleRecord()", | ||
151 | "sound", "raise()" }, | ||
152 | { Model_iPAQ_HX4700, | ||
153 | Qt::Key_Home, QT_TRANSLATE_NOOP("Button", "Home Button"), | ||
154 | "devicebuttons/ipaq_home", | ||
155 | "QPE/Launcher", "home()", | ||
156 | "buttonsettings", "raise()" }, | ||
157 | |||
130 | }; | 158 | }; |
@@ -158,2 +186,4 @@ void iPAQ::init(const QString& model) | |||
158 | d->m_model = Model_iPAQ_HX4700; | 186 | d->m_model = Model_iPAQ_HX4700; |
187 | else if ( d->m_modelstr == "H4000" ) | ||
188 | d->m_model = Model_iPAQ_H4xxx; | ||
159 | 189 | ||
@@ -172,2 +202,3 @@ void iPAQ::init(const QString& model) | |||
172 | case Model_iPAQ_HX4700: | 202 | case Model_iPAQ_HX4700: |
203 | case Model_iPAQ_H4xxx: | ||
173 | d->m_rotation = Rot0; | 204 | d->m_rotation = Rot0; |
@@ -311,2 +342,3 @@ bool iPAQ::filter ( int /*unicode*/, int keycode, int modifiers, bool isPress, b | |||
311 | ( d->m_model == Model_iPAQ_H191x ) || | 342 | ( d->m_model == Model_iPAQ_H191x ) || |
343 | ( d->m_model == Model_iPAQ_H4xxx ) || | ||
312 | ( d->m_model == Model_iPAQ_H1940 )) | 344 | ( d->m_model == Model_iPAQ_H1940 )) |
@@ -318,3 +350,3 @@ bool iPAQ::filter ( int /*unicode*/, int keycode, int modifiers, bool isPress, b | |||
318 | case Key_F6: | 350 | case Key_F6: |
319 | if ( d->m_model != Model_iPAQ_H191x ) | 351 | if ( d->m_model != Model_iPAQ_H191x && d->m_model != Model_iPAQ_H4xxx ) |
320 | break; | 352 | break; |
@@ -382,2 +414,3 @@ bool iPAQ::setDisplayBrightness ( int bright ) | |||
382 | case Model_iPAQ_H191x: | 414 | case Model_iPAQ_H191x: |
415 | case Model_iPAQ_H4xxx: | ||
383 | { | 416 | { |
@@ -441,2 +474,3 @@ int iPAQ::displayBrightnessResolution() const | |||
441 | case Model_iPAQ_HX4700: | 474 | case Model_iPAQ_HX4700: |
475 | case Model_iPAQ_H4xxx: | ||
442 | return 255; | 476 | return 255; |
@@ -485,2 +519,3 @@ bool iPAQ::hasLightSensor() const | |||
485 | case Model_iPAQ_H191x: | 519 | case Model_iPAQ_H191x: |
520 | case Model_iPAQ_H4xxx: | ||
486 | return false; | 521 | return false; |