From 6f82a7bad0746d37ff1545717be3fe67e2eed17c Mon Sep 17 00:00:00 2001 From: sandman Date: Mon, 23 Dec 2002 00:07:32 +0000 Subject: - ported the device button handling to the new ODevice based framework - removed the key re-grabbing in runningsappbar (not necessary anymore) - added a few new QCops to make all "special" launcher functions available via qcop - added the devicebuttons to the opie-taskbar ipk --- (limited to 'core/launcher/taskbar.cpp') diff --git a/core/launcher/taskbar.cpp b/core/launcher/taskbar.cpp index b4b7df6..77035a3 100644 --- a/core/launcher/taskbar.cpp +++ b/core/launcher/taskbar.cpp @@ -280,7 +280,7 @@ void TaskBar::receive( const QCString &msg, const QByteArray &data ) sysTray->addApplets(); sm->reloadApplets(); } else if ( msg == "soundAlarm()" ) { - Desktop::soundAlarm(); + DesktopApplication::soundAlarm ( ); } else if ( msg == "setLed(int,bool)" ) { int led, status; @@ -294,6 +294,16 @@ void TaskBar::receive( const QCString &msg, const QByteArray &data ) ODevice::inst ( )-> setLedState ( l, status ? ( canblink ? Led_BlinkSlow : Led_On ) : Led_Off ); } } + else if ( msg == "toggleMenu()" ) { + if ( sm-> launchMenu-> isVisible ( )) + sm-> launch ( ); + else { + QCopEnvelope e ( "QPE/System", "toggleApplicationMenu()" ); + } + } + else if ( msg == "toggleStartMenu()" ) { + sm-> launch ( ); + } } QWidget *TaskBar::calibrate(bool) -- cgit v0.9.0.2