-rw-r--r-- | core/launcher/taskbar.cpp | 47 |
1 files changed, 24 insertions, 23 deletions
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 | |||
@@ -34,12 +34,14 @@ | |||
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 | ||
@@ -250,35 +252,34 @@ void TaskBar::calcMaxWindowRect() | |||
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; |