-rw-r--r-- | core/launcher/desktop.cpp | 58 | ||||
-rw-r--r-- | core/launcher/main.cpp | 13 | ||||
-rw-r--r-- | core/launcher/taskbar.cpp | 47 | ||||
-rw-r--r-- | core/launcher/taskbar.h | 4 |
4 files changed, 53 insertions, 69 deletions
diff --git a/core/launcher/desktop.cpp b/core/launcher/desktop.cpp index ab4f14a..7662e48 100644 --- a/core/launcher/desktop.cpp +++ b/core/launcher/desktop.cpp | |||
@@ -34,24 +34,26 @@ | |||
34 | #include <qpe/mimetype.h> | 34 | #include <qpe/mimetype.h> |
35 | #include <qpe/password.h> | 35 | #include <qpe/password.h> |
36 | #include <qpe/config.h> | 36 | #include <qpe/config.h> |
37 | #include <qpe/power.h> | 37 | #include <qpe/power.h> |
38 | #include <qpe/timeconversion.h> | 38 | #include <qpe/timeconversion.h> |
39 | #include <qpe/qcopenvelope_qws.h> | 39 | #include <qpe/qcopenvelope_qws.h> |
40 | #include <qpe/global.h> | 40 | #include <qpe/global.h> |
41 | 41 | ||
42 | #if defined( QT_QWS_CUSTOM ) || defined( QT_QWS_IPAQ ) | 42 | #if defined( QT_QWS_CUSTOM ) || defined( QT_QWS_IPAQ ) |
43 | #include <qpe/custom.h> | 43 | #include <qpe/custom.h> |
44 | #endif | 44 | #endif |
45 | 45 | ||
46 | #include <opie/odevice.h> | ||
47 | |||
46 | #include <qgfx_qws.h> | 48 | #include <qgfx_qws.h> |
47 | #include <qmainwindow.h> | 49 | #include <qmainwindow.h> |
48 | #include <qmessagebox.h> | 50 | #include <qmessagebox.h> |
49 | #include <qtimer.h> | 51 | #include <qtimer.h> |
50 | #include <qwindowsystem_qws.h> | 52 | #include <qwindowsystem_qws.h> |
51 | 53 | ||
52 | #include <qvaluelist.h> | 54 | #include <qvaluelist.h> |
53 | 55 | ||
54 | #include <stdlib.h> | 56 | #include <stdlib.h> |
55 | #include <unistd.h> | 57 | #include <unistd.h> |
56 | 58 | ||
57 | class QCopKeyRegister | 59 | class QCopKeyRegister |
@@ -258,25 +260,25 @@ bool DesktopApplication::qwsEventFilter( QWSEvent *e ) | |||
258 | return TRUE; | 260 | return TRUE; |
259 | } | 261 | } |
260 | if ( ke->simpleData.keycode == Key_F31 && !ke->simpleData.modifiers ) { | 262 | if ( ke->simpleData.keycode == Key_F31 && !ke->simpleData.modifiers ) { |
261 | if ( press ) emit symbol(); | 263 | if ( press ) emit symbol(); |
262 | return TRUE; | 264 | return TRUE; |
263 | } | 265 | } |
264 | if ( ke->simpleData.keycode == Key_NumLock ) { | 266 | if ( ke->simpleData.keycode == Key_NumLock ) { |
265 | if ( press ) emit numLockStateToggle(); | 267 | if ( press ) emit numLockStateToggle(); |
266 | } | 268 | } |
267 | if ( ke->simpleData.keycode == Key_CapsLock ) { | 269 | if ( ke->simpleData.keycode == Key_CapsLock ) { |
268 | if ( press ) emit capsLockStateToggle(); | 270 | if ( press ) emit capsLockStateToggle(); |
269 | } | 271 | } |
270 | if ( press ) | 272 | if (( press && !autoRepeat ) || ( !press && autoRepeat )) |
271 | qpedesktop->keyClick(); | 273 | qpedesktop->keyClick(); |
272 | } else { | 274 | } else { |
273 | if ( e->type == QWSEvent::Mouse ) { | 275 | if ( e->type == QWSEvent::Mouse ) { |
274 | QWSMouseEvent *me = (QWSMouseEvent *)e; | 276 | QWSMouseEvent *me = (QWSMouseEvent *)e; |
275 | static bool up = TRUE; | 277 | static bool up = TRUE; |
276 | if ( me->simpleData.state&LeftButton ) { | 278 | if ( me->simpleData.state&LeftButton ) { |
277 | if ( up ) { | 279 | if ( up ) { |
278 | up = FALSE; | 280 | up = FALSE; |
279 | qpedesktop->screenClick(); | 281 | qpedesktop->screenClick(); |
280 | } | 282 | } |
281 | } else { | 283 | } else { |
282 | up = TRUE; | 284 | up = TRUE; |
@@ -318,40 +320,32 @@ void DesktopApplication::sendCard() | |||
318 | 320 | ||
319 | if ( QFile::exists( card ) ) { | 321 | if ( QFile::exists( card ) ) { |
320 | QCopEnvelope e("QPE/Obex", "send(QString,QString,QString)"); | 322 | QCopEnvelope e("QPE/Obex", "send(QString,QString,QString)"); |
321 | QString mimetype = "text/x-vCard"; | 323 | QString mimetype = "text/x-vCard"; |
322 | e << tr("business card") << card << mimetype; | 324 | e << tr("business card") << card << mimetype; |
323 | } | 325 | } |
324 | } | 326 | } |
325 | 327 | ||
326 | #if defined(QPE_HAVE_MEMALERTER) | 328 | #if defined(QPE_HAVE_MEMALERTER) |
327 | QPE_MEMALERTER_IMPL | 329 | QPE_MEMALERTER_IMPL |
328 | #endif | 330 | #endif |
329 | 331 | ||
330 | #if defined(CUSTOM_SOUND_IMPL) | ||
331 | CUSTOM_SOUND_IMPL | ||
332 | #endif | ||
333 | |||
334 | //=========================================================================== | 332 | //=========================================================================== |
335 | 333 | ||
336 | Desktop::Desktop() : | 334 | Desktop::Desktop() : |
337 | QWidget( 0, 0, WStyle_Tool | WStyle_Customize ), | 335 | QWidget( 0, 0, WStyle_Tool | WStyle_Customize ), |
338 | qcopBridge( 0 ), | 336 | qcopBridge( 0 ), |
339 | transferServer( 0 ), | 337 | transferServer( 0 ), |
340 | packageSlave( 0 ) | 338 | packageSlave( 0 ) |
341 | { | 339 | { |
342 | #ifdef CUSTOM_SOUND_INIT | ||
343 | CUSTOM_SOUND_INIT; | ||
344 | #endif | ||
345 | |||
346 | qpedesktop = this; | 340 | qpedesktop = this; |
347 | 341 | ||
348 | // bg = new Info( this ); | 342 | // bg = new Info( this ); |
349 | tb = new TaskBar; | 343 | tb = new TaskBar; |
350 | 344 | ||
351 | launcher = new Launcher( 0, 0, WStyle_Customize | QWidget::WGroupLeader ); | 345 | launcher = new Launcher( 0, 0, WStyle_Customize | QWidget::WGroupLeader ); |
352 | 346 | ||
353 | connect(launcher, SIGNAL(busy()), tb, SLOT(startWait())); | 347 | connect(launcher, SIGNAL(busy()), tb, SLOT(startWait())); |
354 | connect(launcher, SIGNAL(notBusy(const QString&)), tb, SLOT(stopWait(const QString&))); | 348 | connect(launcher, SIGNAL(notBusy(const QString&)), tb, SLOT(stopWait(const QString&))); |
355 | 349 | ||
356 | int displayw = qApp->desktop()->width(); | 350 | int displayw = qApp->desktop()->width(); |
357 | int displayh = qApp->desktop()->height(); | 351 | int displayh = qApp->desktop()->height(); |
@@ -747,50 +741,44 @@ void Desktop::rereadVolumes() | |||
747 | cfg.setGroup("Volume"); | 741 | cfg.setGroup("Volume"); |
748 | touchclick = cfg.readBoolEntry("TouchSound"); | 742 | touchclick = cfg.readBoolEntry("TouchSound"); |
749 | keyclick = cfg.readBoolEntry("KeySound"); | 743 | keyclick = cfg.readBoolEntry("KeySound"); |
750 | alarmsound = cfg.readBoolEntry("AlarmSound"); | 744 | alarmsound = cfg.readBoolEntry("AlarmSound"); |
751 | // Config cfg("Sound"); | 745 | // Config cfg("Sound"); |
752 | // cfg.setGroup("System"); | 746 | // cfg.setGroup("System"); |
753 | // touchclick = cfg.readBoolEntry("Touch"); | 747 | // touchclick = cfg.readBoolEntry("Touch"); |
754 | // keyclick = cfg.readBoolEntry("Key"); | 748 | // keyclick = cfg.readBoolEntry("Key"); |
755 | } | 749 | } |
756 | 750 | ||
757 | void Desktop::keyClick() | 751 | void Desktop::keyClick() |
758 | { | 752 | { |
759 | #ifdef CUSTOM_SOUND_KEYCLICK | 753 | if ( keyclick ) |
760 | if ( keyclick ) | 754 | ODevice::inst ( )-> keySound ( ); |
761 | CUSTOM_SOUND_KEYCLICK; | ||
762 | #endif | ||
763 | } | 755 | } |
764 | 756 | ||
765 | void Desktop::screenClick() | 757 | void Desktop::screenClick() |
766 | { | 758 | { |
767 | #ifdef CUSTOM_SOUND_TOUCH | 759 | if ( touchclick ) |
768 | if ( touchclick ) | 760 | ODevice::inst ( )-> touchSound ( ); |
769 | CUSTOM_SOUND_TOUCH; | ||
770 | #endif | ||
771 | } | 761 | } |
772 | 762 | ||
773 | void Desktop::soundAlarm() | 763 | void Desktop::soundAlarm() |
774 | { | 764 | { |
775 | #ifdef CUSTOM_SOUND_ALARM | 765 | if ( qpedesktop-> alarmsound ) |
776 | if (qpedesktop->alarmsound) | 766 | ODevice::inst ( )-> alarmSound ( ); |
777 | CUSTOM_SOUND_ALARM; | ||
778 | #endif | ||
779 | } | 767 | } |
780 | 768 | ||
781 | bool Desktop::eventFilter( QObject *w, QEvent *ev ) | 769 | bool Desktop::eventFilter( QObject *, QEvent *ev ) |
782 | { | 770 | { |
783 | if ( ev->type() == QEvent::KeyPress ) { | 771 | if ( ev-> type ( ) == QEvent::KeyPress ) { |
784 | QKeyEvent *ke = (QKeyEvent *)ev; | 772 | QKeyEvent *ke = (QKeyEvent *) ev; |
785 | if ( ke->key() == Qt::Key_F11 ) { // menu key | 773 | if ( ke-> key ( ) == Qt::Key_F11 ) { // menu key |
786 | QWidget *active = qApp->activeWindow(); | 774 | QWidget *active = qApp-> activeWindow ( ); |
787 | if ( active && active->isPopup() ) { | 775 | |
788 | active->close(); | 776 | if ( active && active-> isPopup ( )) |
789 | } | 777 | active->close(); |
790 | raiseMenu(); | ||
791 | return TRUE; | ||
792 | } | ||
793 | } | ||
794 | return FALSE; | ||
795 | } | ||
796 | 778 | ||
779 | raiseMenu ( ); | ||
780 | return true; | ||
781 | } | ||
782 | } | ||
783 | return false; | ||
784 | } | ||
diff --git a/core/launcher/main.cpp b/core/launcher/main.cpp index 347eee9..b3c331b 100644 --- a/core/launcher/main.cpp +++ b/core/launcher/main.cpp | |||
@@ -20,31 +20,31 @@ | |||
20 | 20 | ||
21 | #include "desktop.h" | 21 | #include "desktop.h" |
22 | #include "taskbar.h" | 22 | #include "taskbar.h" |
23 | #include "stabmon.h" | 23 | #include "stabmon.h" |
24 | 24 | ||
25 | #include <qpe/qpeapplication.h> | 25 | #include <qpe/qpeapplication.h> |
26 | #include <qpe/network.h> | 26 | #include <qpe/network.h> |
27 | #include <qpe/config.h> | 27 | #include <qpe/config.h> |
28 | #if defined( QT_QWS_CUSTOM ) || defined( QT_QWS_IPAQ ) | 28 | #if defined( QT_QWS_CUSTOM ) || defined( QT_QWS_IPAQ ) |
29 | #include <qpe/custom.h> | 29 | #include <qpe/custom.h> |
30 | #endif | 30 | #endif |
31 | 31 | ||
32 | #include <opie/odevice.h> | ||
33 | |||
32 | #include <qfile.h> | 34 | #include <qfile.h> |
33 | #include <qwindowsystem_qws.h> | 35 | #include <qwindowsystem_qws.h> |
34 | #include <qpe/qcopenvelope_qws.h> | 36 | #include <qpe/qcopenvelope_qws.h> |
35 | #include <qpe/alarmserver.h> | 37 | #include <qpe/alarmserver.h> |
36 | 38 | ||
37 | #include <opie/ohwinfo.h> | ||
38 | |||
39 | #include <stdlib.h> | 39 | #include <stdlib.h> |
40 | #include <stdio.h> | 40 | #include <stdio.h> |
41 | #include <signal.h> | 41 | #include <signal.h> |
42 | #include <unistd.h> | 42 | #include <unistd.h> |
43 | 43 | ||
44 | #if defined(QT_QWS_CASSIOPEIA) || defined(QT_QWS_IPAQ) || defined(QT_QWS_EBX) | 44 | #if defined(QT_QWS_CASSIOPEIA) || defined(QT_QWS_IPAQ) || defined(QT_QWS_EBX) |
45 | #include "../calibrate/calibrate.h" | 45 | #include "../calibrate/calibrate.h" |
46 | #endif | 46 | #endif |
47 | 47 | ||
48 | #ifdef QT_QWS_LOGIN | 48 | #ifdef QT_QWS_LOGIN |
49 | #include "../login/qdmdialogimpl.h" | 49 | #include "../login/qdmdialogimpl.h" |
50 | #endif | 50 | #endif |
@@ -184,40 +184,40 @@ static void initBacklight() | |||
184 | QCopEnvelope e("QPE/System", "setBacklight(int)" ); | 184 | QCopEnvelope e("QPE/System", "setBacklight(int)" ); |
185 | e << -3; // Forced on | 185 | e << -3; // Forced on |
186 | } | 186 | } |
187 | 187 | ||
188 | 188 | ||
189 | class ModelKeyFilter : public QObject, public QWSServer::KeyboardFilter | 189 | class ModelKeyFilter : public QObject, public QWSServer::KeyboardFilter |
190 | { | 190 | { |
191 | public: | 191 | public: |
192 | ModelKeyFilter ( ) : QObject ( 0, "MODEL_KEY_FILTER" ) | 192 | ModelKeyFilter ( ) : QObject ( 0, "MODEL_KEY_FILTER" ) |
193 | { | 193 | { |
194 | bool doinst = false; | 194 | bool doinst = false; |
195 | 195 | ||
196 | m_model = OHwInfo::inst ( )-> model ( ); | 196 | m_model = ODevice::inst ( )-> model ( ); |
197 | m_power_timer = 0; | 197 | m_power_timer = 0; |
198 | 198 | ||
199 | switch ( m_model ) { | 199 | switch ( m_model ) { |
200 | case OMODEL_iPAQ_H31xx: | 200 | case OMODEL_iPAQ_H31xx: |
201 | case OMODEL_iPAQ_H36xx: | 201 | case OMODEL_iPAQ_H36xx: |
202 | case OMODEL_iPAQ_H37xx: | 202 | case OMODEL_iPAQ_H37xx: |
203 | case OMODEL_iPAQ_H38xx: doinst = true; | 203 | case OMODEL_iPAQ_H38xx: doinst = true; |
204 | break; | 204 | break; |
205 | default : break; | 205 | default : break; |
206 | } | 206 | } |
207 | if ( doinst ) | 207 | if ( doinst ) |
208 | QWSServer::setKeyboardFilter ( this ); | 208 | QWSServer::setKeyboardFilter ( this ); |
209 | } | 209 | } |
210 | 210 | ||
211 | virtual bool filter ( int unicode, int keycode, int modifiers, bool isPress, bool autoRepeat ) | 211 | virtual bool filter ( int /*unicode*/, int keycode, int modifiers, bool isPress, bool autoRepeat ) |
212 | { | 212 | { |
213 | bool kill = false; | 213 | bool kill = false; |
214 | 214 | ||
215 | // Rotate cursor keys 180° | 215 | // Rotate cursor keys 180° |
216 | switch ( m_model ) { | 216 | switch ( m_model ) { |
217 | case OMODEL_iPAQ_H31xx: | 217 | case OMODEL_iPAQ_H31xx: |
218 | case OMODEL_iPAQ_H38xx: { | 218 | case OMODEL_iPAQ_H38xx: { |
219 | int newkeycode = keycode; | 219 | int newkeycode = keycode; |
220 | 220 | ||
221 | switch ( keycode ) { | 221 | switch ( keycode ) { |
222 | case Key_Left : newkeycode = Key_Right; break; | 222 | case Key_Left : newkeycode = Key_Right; break; |
223 | case Key_Right: newkeycode = Key_Left; break; | 223 | case Key_Right: newkeycode = Key_Left; break; |
@@ -258,27 +258,26 @@ public: | |||
258 | return kill; | 258 | return kill; |
259 | } | 259 | } |
260 | 260 | ||
261 | virtual void timerEvent ( QTimerEvent * ) | 261 | virtual void timerEvent ( QTimerEvent * ) |
262 | { | 262 | { |
263 | killTimer ( m_power_timer ); | 263 | killTimer ( m_power_timer ); |
264 | m_power_timer = 0; | 264 | m_power_timer = 0; |
265 | QWSServer::sendKeyEvent ( -1, Key_F35, 0, true, false ); | 265 | QWSServer::sendKeyEvent ( -1, Key_F35, 0, true, false ); |
266 | QWSServer::sendKeyEvent ( -1, Key_F35, 0, false, false ); | 266 | QWSServer::sendKeyEvent ( -1, Key_F35, 0, false, false ); |
267 | } | 267 | } |
268 | 268 | ||
269 | private: | 269 | private: |
270 | OHwModel m_model; | 270 | OModel m_model; |
271 | bool m_power_press; | 271 | int m_power_timer; |
272 | int m_power_timer; | ||
273 | }; | 272 | }; |
274 | 273 | ||
275 | 274 | ||
276 | 275 | ||
277 | int initApplication( int argc, char ** argv ) | 276 | int initApplication( int argc, char ** argv ) |
278 | { | 277 | { |
279 | #ifdef QT_QWS_CASSIOPEIA | 278 | #ifdef QT_QWS_CASSIOPEIA |
280 | initCassiopeia(); | 279 | initCassiopeia(); |
281 | #endif | 280 | #endif |
282 | 281 | ||
283 | #ifdef QPE_OWNAPM | 282 | #ifdef QPE_OWNAPM |
284 | initAPM(); | 283 | initAPM(); |
diff --git a/core/launcher/taskbar.cpp b/core/launcher/taskbar.cpp index 5e95c99..e38b9fe 100644 --- a/core/launcher/taskbar.cpp +++ b/core/launcher/taskbar.cpp | |||
@@ -28,24 +28,26 @@ | |||
28 | 28 | ||
29 | #include "taskbar.h" | 29 | #include "taskbar.h" |
30 | #include "desktop.h" | 30 | #include "desktop.h" |
31 | 31 | ||
32 | #include <qpe/qpeapplication.h> | 32 | #include <qpe/qpeapplication.h> |
33 | #include <qpe/qcopenvelope_qws.h> | 33 | #include <qpe/qcopenvelope_qws.h> |
34 | #include <qpe/global.h> | 34 | #include <qpe/global.h> |
35 | 35 | ||
36 | #if defined( QT_QWS_CUSTOM ) || defined( QT_QWS_IPAQ ) | 36 | #if defined( QT_QWS_CUSTOM ) || defined( QT_QWS_IPAQ ) |
37 | #include <qpe/custom.h> | 37 | #include <qpe/custom.h> |
38 | #endif | 38 | #endif |
39 | 39 | ||
40 | #include <opie/odevice.h> | ||
41 | |||
40 | #include <qlabel.h> | 42 | #include <qlabel.h> |
41 | #include <qlayout.h> | 43 | #include <qlayout.h> |
42 | #include <qtimer.h> | 44 | #include <qtimer.h> |
43 | #include <qwindowsystem_qws.h> | 45 | #include <qwindowsystem_qws.h> |
44 | #include <qwidgetstack.h> | 46 | #include <qwidgetstack.h> |
45 | 47 | ||
46 | #if defined( Q_WS_QWS ) | 48 | #if defined( Q_WS_QWS ) |
47 | #include <qwsdisplay_qws.h> | 49 | #include <qwsdisplay_qws.h> |
48 | #include <qgfx_qws.h> | 50 | #include <qgfx_qws.h> |
49 | #endif | 51 | #endif |
50 | 52 | ||
51 | 53 | ||
@@ -244,47 +246,46 @@ void TaskBar::calcMaxWindowRect() | |||
244 | #if QT_VERSION < 300 | 246 | #if QT_VERSION < 300 |
245 | QWSServer::setMaxWindowRect( qt_screen->mapToDevice(wr, | 247 | QWSServer::setMaxWindowRect( qt_screen->mapToDevice(wr, |
246 | QSize(qt_screen->width(),qt_screen->height())) | 248 | QSize(qt_screen->width(),qt_screen->height())) |
247 | ); | 249 | ); |
248 | #else | 250 | #else |
249 | QWSServer::setMaxWindowRect( wr ); | 251 | QWSServer::setMaxWindowRect( wr ); |
250 | #endif | 252 | #endif |
251 | #endif | 253 | #endif |
252 | } | 254 | } |
253 | 255 | ||
254 | void TaskBar::receive( const QCString &msg, const QByteArray &data ) | 256 | void TaskBar::receive( const QCString &msg, const QByteArray &data ) |
255 | { | 257 | { |
256 | QDataStream stream( data, IO_ReadOnly ); | 258 | QDataStream stream( data, IO_ReadOnly ); |
257 | if ( msg == "message(QString)" ) { | 259 | if ( msg == "message(QString)" ) { |
258 | QString text; | 260 | QString text; |
259 | stream >> text; | 261 | stream >> text; |
260 | setStatusMessage( text ); | 262 | setStatusMessage( text ); |
261 | } else if ( msg == "hideInputMethod()" ) { | 263 | } else if ( msg == "hideInputMethod()" ) { |
262 | inputMethods->hideInputMethod(); | 264 | inputMethods->hideInputMethod(); |
263 | } else if ( msg == "showInputMethod()" ) { | 265 | } else if ( msg == "showInputMethod()" ) { |
264 | inputMethods->showInputMethod(); | 266 | inputMethods->showInputMethod(); |
265 | } else if ( msg == "reloadInputMethods()" ) { | 267 | } else if ( msg == "reloadInputMethods()" ) { |
266 | inputMethods->loadInputMethods(); | 268 | inputMethods->loadInputMethods(); |
267 | } else if ( msg == "reloadApplets()" ) { | 269 | } else if ( msg == "reloadApplets()" ) { |
268 | sysTray->loadApplets(); | 270 | sysTray->loadApplets(); |
269 | } else if ( msg == "soundAlarm()" ) { | 271 | } else if ( msg == "soundAlarm()" ) { |
270 | Desktop::soundAlarm(); | 272 | Desktop::soundAlarm(); |
271 | } | 273 | } |
272 | #ifdef CUSTOM_LEDS | 274 | else if ( msg == "setLed(int,bool)" ) { |
273 | else if ( msg == "setLed(int,bool)" ) { | 275 | int led, status; |
274 | int led, status; | 276 | stream >> led >> status; |
275 | stream >> led >> status; | 277 | |
276 | CUSTOM_LEDS( led, status ); | 278 | ODevice::inst ( )-> setLed ( led, status ? OLED_BlinkSlow : OLED_Off ); |
277 | } | 279 | } |
278 | #endif | ||
279 | } | 280 | } |
280 | 281 | ||
281 | QWidget *TaskBar::calibrate(bool) | 282 | QWidget *TaskBar::calibrate(bool) |
282 | { | 283 | { |
283 | #ifdef Q_WS_QWS | 284 | #ifdef Q_WS_QWS |
284 | Calibrate *c = new Calibrate; | 285 | Calibrate *c = new Calibrate; |
285 | c->show(); | 286 | c->show(); |
286 | return c; | 287 | return c; |
287 | #else | 288 | #else |
288 | return 0; | 289 | return 0; |
289 | #endif | 290 | #endif |
290 | } | 291 | } |
diff --git a/core/launcher/taskbar.h b/core/launcher/taskbar.h index 78c4722..40983af 100644 --- a/core/launcher/taskbar.h +++ b/core/launcher/taskbar.h | |||
@@ -12,28 +12,24 @@ | |||
12 | ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. | 12 | ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. |
13 | ** | 13 | ** |
14 | ** See http://www.trolltech.com/gpl/ for GPL licensing information. | 14 | ** See http://www.trolltech.com/gpl/ for GPL licensing information. |
15 | ** | 15 | ** |
16 | ** Contact info@trolltech.com if any conditions of this licensing are | 16 | ** Contact info@trolltech.com if any conditions of this licensing are |
17 | ** not clear to you. | 17 | ** not clear to you. |
18 | ** | 18 | ** |
19 | **********************************************************************/ | 19 | **********************************************************************/ |
20 | 20 | ||
21 | #ifndef __TASKBAR_H__ | 21 | #ifndef __TASKBAR_H__ |
22 | #define __TASKBAR_H__ | 22 | #define __TASKBAR_H__ |
23 | 23 | ||
24 | #if defined( QT_QWS_CUSTOM ) || defined( QT_QWS_IPAQ ) | ||
25 | #include <qpe/custom.h> | ||
26 | #endif | ||
27 | |||
28 | #include <qhbox.h> | 24 | #include <qhbox.h> |
29 | 25 | ||
30 | class QLabel; | 26 | class QLabel; |
31 | class QTimer; | 27 | class QTimer; |
32 | class InputMethods; | 28 | class InputMethods; |
33 | class Wait; | 29 | class Wait; |
34 | class SysTray; | 30 | class SysTray; |
35 | class MRUList; | 31 | class MRUList; |
36 | class QWidgetStack; | 32 | class QWidgetStack; |
37 | class QTimer; | 33 | class QTimer; |
38 | class QLabel; | 34 | class QLabel; |
39 | class StartMenu; | 35 | class StartMenu; |