summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--core/apps/calibrate/main.cpp20
-rw-r--r--core/apps/calibrate/opie-calibrate.control8
-rw-r--r--core/launcher/desktop.cpp2
-rw-r--r--core/launcher/launcher.pro4
-rw-r--r--core/launcher/main.cpp15
-rw-r--r--core/launcher/opie-taskbar.control4
-rw-r--r--core/launcher/taskbar.cpp17
-rw-r--r--core/launcher/taskbar.h2
8 files changed, 32 insertions, 40 deletions
diff --git a/core/apps/calibrate/main.cpp b/core/apps/calibrate/main.cpp
index d1ad083..1c295eb 100644
--- a/core/apps/calibrate/main.cpp
+++ b/core/apps/calibrate/main.cpp
@@ -14,29 +14,33 @@
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#include "calibrate.h" 21#include "calibrate.h"
22 22
23#include <qfile.h> 23#include <qfile.h>
24#include <qpe/qpeapplication.h> 24#include <qpe/qpeapplication.h>
25 25
26#ifdef QWS
27#include <qwindowsystem_qws.h>
28#endif
29
26int main( int argc, char ** argv ) 30int main( int argc, char ** argv )
27{ 31{
28 QPEApplication a( argc, argv ); 32 QPEApplication a( argc, argv );
29 int retval = 0; 33 int retval = 0;
30 34
31#if defined(QT_QWS_CASSIOPEIA) || defined(QT_QWS_IPAQ) || defined(QT_QWS_SL5XXX) 35#ifdef QWS
32 if ( !QFile::exists( "/etc/pointercal" ) ) { 36 if ( QWSServer::mouseHandler() ->inherits("QCalibratedMouseHandler") ) {
37#endif
33 // Make sure calibration widget starts on top. 38 // Make sure calibration widget starts on top.
34 Calibrate *cal = new Calibrate; 39 Calibrate cal;
35 a.setMainWidget(cal); 40 a.setMainWidget(&cal);
36 a.showMainWidget(cal); 41 a.showMainWidget(&cal);
37 retval = a.exec(); 42 return a.exec();
38 delete cal; 43#ifdef QWS
39 } 44 }
40#endif 45#endif
41 return retval;
42} 46}
diff --git a/core/apps/calibrate/opie-calibrate.control b/core/apps/calibrate/opie-calibrate.control
new file mode 100644
index 0000000..6eafb94
--- a/dev/null
+++ b/core/apps/calibrate/opie-calibrate.control
@@ -0,0 +1,8 @@
1Files: bin/calibrate apps/Settings/Calibrate.desktop
2Priority: required
3Section: opie/system
4Maintainer: Project Opie <opie@handhelds.org>
5Architecture: arm
6Version: $QPE_VERSION-$SUB_VERSION.3
7Depends: libqpe1, libqt2-emb
8Description: Opie calibration tool
diff --git a/core/launcher/desktop.cpp b/core/launcher/desktop.cpp
index 6def126..ef0bf4c 100644
--- a/core/launcher/desktop.cpp
+++ b/core/launcher/desktop.cpp
@@ -89,25 +89,24 @@ private:
89 int keyCode; 89 int keyCode;
90 QCString channel, message; 90 QCString channel, message;
91}; 91};
92 92
93typedef QValueList<QCopKeyRegister> KeyRegisterList; 93typedef QValueList<QCopKeyRegister> KeyRegisterList;
94KeyRegisterList keyRegisterList; 94KeyRegisterList keyRegisterList;
95 95
96static Desktop* qpedesktop = 0; 96static Desktop* qpedesktop = 0;
97static int loggedin = 0; 97static int loggedin = 0;
98static void login( bool at_poweron ) 98static void login( bool at_poweron )
99{ 99{
100 if ( !loggedin ) { 100 if ( !loggedin ) {
101 Global::terminateBuiltin( "calibrate" );
102 Password::authenticate( at_poweron ); 101 Password::authenticate( at_poweron );
103 loggedin = 1; 102 loggedin = 1;
104 QCopEnvelope e( "QPE/Desktop", "unlocked()" ); 103 QCopEnvelope e( "QPE/Desktop", "unlocked()" );
105 } 104 }
106} 105}
107 106
108bool Desktop::screenLocked() 107bool Desktop::screenLocked()
109{ 108{
110 return loggedin == 0; 109 return loggedin == 0;
111} 110}
112 111
113/* 112/*
@@ -613,25 +612,24 @@ static bool hasVisibleWindow( const QString& clientname )
613 return TRUE; 612 return TRUE;
614 } 613 }
615#endif 614#endif
616 return FALSE; 615 return FALSE;
617} 616}
618 617
619 618
620void Desktop::executeOrModify( const QString& appLnkFile ) 619void Desktop::executeOrModify( const QString& appLnkFile )
621{ 620{
622 AppLnk lnk( MimeType::appsFolderName() + "/" + appLnkFile ); 621 AppLnk lnk( MimeType::appsFolderName() + "/" + appLnkFile );
623 if ( lnk.isValid() ) { 622 if ( lnk.isValid() ) {
624 QCString app = lnk.exec().utf8(); 623 QCString app = lnk.exec().utf8();
625 Global::terminateBuiltin( "calibrate" );
626 if ( QCopChannel::isRegistered( "QPE/Application/" + app ) ) { 624 if ( QCopChannel::isRegistered( "QPE/Application/" + app ) ) {
627 // MRUList::addTask( &lnk ); 625 // MRUList::addTask( &lnk );
628 if ( hasVisibleWindow( app ) ) 626 if ( hasVisibleWindow( app ) )
629 QCopChannel::send( "QPE/Application/" + app, "nextView()" ); 627 QCopChannel::send( "QPE/Application/" + app, "nextView()" );
630 else 628 else
631 QCopChannel::send( "QPE/Application/" + app, "raise()" ); 629 QCopChannel::send( "QPE/Application/" + app, "raise()" );
632 } 630 }
633 else { 631 else {
634 lnk.execute(); 632 lnk.execute();
635 } 633 }
636 } 634 }
637} 635}
diff --git a/core/launcher/launcher.pro b/core/launcher/launcher.pro
index d0a573b..007e48c 100644
--- a/core/launcher/launcher.pro
+++ b/core/launcher/launcher.pro
@@ -8,25 +8,24 @@ HEADERS = background.h \
8 info.h \ 8 info.h \
9 appicons.h \ 9 appicons.h \
10 taskbar.h \ 10 taskbar.h \
11 sidething.h \ 11 sidething.h \
12 runningappbar.h \ 12 runningappbar.h \
13 stabmon.h \ 13 stabmon.h \
14 inputmethods.h \ 14 inputmethods.h \
15 systray.h \ 15 systray.h \
16 wait.h \ 16 wait.h \
17 shutdownimpl.h \ 17 shutdownimpl.h \
18 launcher.h \ 18 launcher.h \
19 launcherview.h \ 19 launcherview.h \
20 ../../core/apps/calibrate/calibrate.h \
21 startmenu.h \ 20 startmenu.h \
22 transferserver.h \ 21 transferserver.h \
23 qcopbridge.h \ 22 qcopbridge.h \
24 packageslave.h \ 23 packageslave.h \
25 irserver.h \ 24 irserver.h \
26 ../../rsync/buf.h \ 25 ../../rsync/buf.h \
27 ../../rsync/checksum.h \ 26 ../../rsync/checksum.h \
28 ../../rsync/command.h \ 27 ../../rsync/command.h \
29 ../../rsync/emit.h \ 28 ../../rsync/emit.h \
30 ../../rsync/job.h \ 29 ../../rsync/job.h \
31 ../../rsync/netint.h \ 30 ../../rsync/netint.h \
32 ../../rsync/protocol.h \ 31 ../../rsync/protocol.h \
@@ -49,25 +48,24 @@ SOURCES = background.cpp \
49 info.cpp \ 48 info.cpp \
50 appicons.cpp \ 49 appicons.cpp \
51 taskbar.cpp \ 50 taskbar.cpp \
52 sidething.cpp \ 51 sidething.cpp \
53 runningappbar.cpp \ 52 runningappbar.cpp \
54 stabmon.cpp \ 53 stabmon.cpp \
55 inputmethods.cpp \ 54 inputmethods.cpp \
56 systray.cpp \ 55 systray.cpp \
57 wait.cpp \ 56 wait.cpp \
58 shutdownimpl.cpp \ 57 shutdownimpl.cpp \
59 launcher.cpp \ 58 launcher.cpp \
60 launcherview.cpp \ 59 launcherview.cpp \
61 ../../core/apps/calibrate/calibrate.cpp \
62 transferserver.cpp \ 60 transferserver.cpp \
63 packageslave.cpp \ 61 packageslave.cpp \
64 irserver.cpp \ 62 irserver.cpp \
65 qcopbridge.cpp \ 63 qcopbridge.cpp \
66 startmenu.cpp \ 64 startmenu.cpp \
67 main.cpp \ 65 main.cpp \
68 ../../rsync/base64.c \ 66 ../../rsync/base64.c \
69 ../../rsync/buf.c \ 67 ../../rsync/buf.c \
70 ../../rsync/checksum.c \ 68 ../../rsync/checksum.c \
71 ../../rsync/command.c \ 69 ../../rsync/command.c \
72 ../../rsync/delta.c \ 70 ../../rsync/delta.c \
73 ../../rsync/emit.c \ 71 ../../rsync/emit.c \
@@ -85,26 +83,24 @@ SOURCES = background.cpp \
85 ../../rsync/stats.c \ 83 ../../rsync/stats.c \
86 ../../rsync/stream.c \ 84 ../../rsync/stream.c \
87 ../../rsync/sumset.c \ 85 ../../rsync/sumset.c \
88 ../../rsync/trace.c \ 86 ../../rsync/trace.c \
89 ../../rsync/tube.c \ 87 ../../rsync/tube.c \
90 ../../rsync/util.c \ 88 ../../rsync/util.c \
91 ../../rsync/version.c \ 89 ../../rsync/version.c \
92 ../../rsync/whole.c \ 90 ../../rsync/whole.c \
93 ../../rsync/qrsync.cpp 91 ../../rsync/qrsync.cpp
94 INTERFACES= syncdialog.ui 92 INTERFACES= syncdialog.ui
95INCLUDEPATH += ../../include 93INCLUDEPATH += ../../include
96 DEPENDPATH+= ../../include . 94 DEPENDPATH+= ../../include .
97INCLUDEPATH += ../../core/apps/calibrate
98 DEPENDPATH+= ../../core/apps/calibrate
99INCLUDEPATH += ../../rsync 95INCLUDEPATH += ../../rsync
100 DEPENDPATH+= ../../rsync 96 DEPENDPATH+= ../../rsync
101 TARGET = qpe 97 TARGET = qpe
102 LIBS += -lqpe -lcrypt -lopie 98 LIBS += -lqpe -lcrypt -lopie
103 99
104TRANSLATIONS = ../../i18n/de/qpe.ts \ 100TRANSLATIONS = ../../i18n/de/qpe.ts \
105 ../../i18n/xx/qpe.ts \ 101 ../../i18n/xx/qpe.ts \
106 ../../i18n/en/qpe.ts \ 102 ../../i18n/en/qpe.ts \
107 ../../i18n/es/qpe.ts \ 103 ../../i18n/es/qpe.ts \
108 ../../i18n/fr/qpe.ts \ 104 ../../i18n/fr/qpe.ts \
109 ../../i18n/hu/qpe.ts \ 105 ../../i18n/hu/qpe.ts \
110 ../../i18n/ja/qpe.ts \ 106 ../../i18n/ja/qpe.ts \
diff --git a/core/launcher/main.cpp b/core/launcher/main.cpp
index 20a1ecd..e96eeae 100644
--- a/core/launcher/main.cpp
+++ b/core/launcher/main.cpp
@@ -21,40 +21,39 @@
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_SL5XXX ) || defined( QT_QWS_IPAQ ) 28#if defined( QT_QWS_SL5XXX ) || 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> 32#include <opie/odevice.h>
33#include <opie/oprocess.h>
33 34
34#include <qmessagebox.h> 35#include <qmessagebox.h>
35#include <qfile.h> 36#include <qfile.h>
36#include <qimage.h> 37#include <qimage.h>
37#include <qwindowsystem_qws.h> 38#include <qwindowsystem_qws.h>
38#include <qwsmouse_qws.h> 39#include <qwsmouse_qws.h>
39#include <qpe/qcopenvelope_qws.h> 40#include <qpe/qcopenvelope_qws.h>
40#include <qpe/alarmserver.h> 41#include <qpe/alarmserver.h>
41 42
42#include <stdlib.h> 43#include <stdlib.h>
43#include <stdio.h> 44#include <stdio.h>
44#include <signal.h> 45#include <signal.h>
45#include <unistd.h> 46#include <unistd.h>
46 47
47#include "../calibrate/calibrate.h"
48
49using namespace Opie; 48using namespace Opie;
50 49
51void initEnvironment() 50void initEnvironment()
52{ 51{
53 int rot; 52 int rot;
54 Config config("locale"); 53 Config config("locale");
55 54
56 config.setGroup( "Location" ); 55 config.setGroup( "Location" );
57 QString tz = config.readEntry( "Timezone", getenv("TZ") ); 56 QString tz = config.readEntry( "Timezone", getenv("TZ") );
58 57
59 // if not timezone set, pick New York 58 // if not timezone set, pick New York
60 if (tz.isNull()) 59 if (tz.isNull())
@@ -109,28 +108,32 @@ int initApplication( int argc, char ** argv )
109 QObject::connect( &a, SIGNAL(power()), d, SLOT(togglePower()) ); 108 QObject::connect( &a, SIGNAL(power()), d, SLOT(togglePower()) );
110 QObject::connect( &a, SIGNAL(backlight()), d, SLOT(toggleLight()) ); 109 QObject::connect( &a, SIGNAL(backlight()), d, SLOT(toggleLight()) );
111 QObject::connect( &a, SIGNAL(symbol()), d, SLOT(toggleSymbolInput()) ); 110 QObject::connect( &a, SIGNAL(symbol()), d, SLOT(toggleSymbolInput()) );
112 QObject::connect( &a, SIGNAL(numLockStateToggle()), d, SLOT(toggleNumLockState()) ); 111 QObject::connect( &a, SIGNAL(numLockStateToggle()), d, SLOT(toggleNumLockState()) );
113 QObject::connect( &a, SIGNAL(capsLockStateToggle()), d, SLOT(toggleCapsLockState()) ); 112 QObject::connect( &a, SIGNAL(capsLockStateToggle()), d, SLOT(toggleCapsLockState()) );
114 QObject::connect( &a, SIGNAL(prepareForRestart()), d, SLOT(terminateServers()) ); 113 QObject::connect( &a, SIGNAL(prepareForRestart()), d, SLOT(terminateServers()) );
115 114
116 (void)new SysFileMonitor(d); 115 (void)new SysFileMonitor(d);
117 Network::createServer(d); 116 Network::createServer(d);
118 117
119 if ( QWSServer::mouseHandler() ->inherits("QCalibratedMouseHandler") ) { 118 if ( QWSServer::mouseHandler() ->inherits("QCalibratedMouseHandler") ) {
120 if ( !QFile::exists( "/etc/pointercal" ) ) { 119 if ( !QFile::exists( "/etc/pointercal" ) ) {
121 // Make sure calibration widget starts on top. 120 OProcess cal;
122 Calibrate *cal = new Calibrate; 121 cal << "calibrate";
123 cal->exec(); 122
124 delete cal; 123 if ( ! cal.start(OProcess::Block, OProcess::NoCommunication) ) {
124 QMessageBox::warning( 0, "Unable to calibrate",
125 "Failed to start the calibration tool.\n"
126 );
127 }
125 } 128 }
126 } 129 }
127 130
128 d->show(); 131 d->show();
129 132
130 if ( QDate::currentDate ( ). year ( ) < 2000 ) { 133 if ( QDate::currentDate ( ). year ( ) < 2000 ) {
131 if ( QMessageBox::information ( 0, DesktopApplication::tr( "Information" ), DesktopApplication::tr( "<p>The system date doesn't seem to be valid.\n(%1)</p><p>Do you want to correct the clock ?</p>" ). arg( TimeString::dateString ( QDate::currentDate ( ))), QMessageBox::Yes, QMessageBox::No ) == QMessageBox::Yes ) { 134 if ( QMessageBox::information ( 0, DesktopApplication::tr( "Information" ), DesktopApplication::tr( "<p>The system date doesn't seem to be valid.\n(%1)</p><p>Do you want to correct the clock ?</p>" ). arg( TimeString::dateString ( QDate::currentDate ( ))), QMessageBox::Yes, QMessageBox::No ) == QMessageBox::Yes ) {
132 QCopEnvelope e ( "QPE/Application/systemtime", "setDocument(QString)" ); 135 QCopEnvelope e ( "QPE/Application/systemtime", "setDocument(QString)" );
133 e << QString ( ); 136 e << QString ( );
134 } 137 }
135 } 138 }
136 139
diff --git a/core/launcher/opie-taskbar.control b/core/launcher/opie-taskbar.control
index c0430b7..db66a05 100644
--- a/core/launcher/opie-taskbar.control
+++ b/core/launcher/opie-taskbar.control
@@ -1,9 +1,9 @@
1Files: bin/qpe apps/Settings/Calibrate.desktop pics/launcher pics/devicebuttons/*.png plugins/applets/libsuspendapplet.so* plugins/applets/libhomeapplet.so* plugins/applets/liblogoutapplet.so* plugins/applets/librotateapplet.so* root/etc/init.d/opie 1Files: bin/qpe pics/launcher pics/devicebuttons/*.png plugins/applets/libsuspendapplet.so* plugins/applets/libhomeapplet.so* plugins/applets/liblogoutapplet.so* plugins/applets/librotateapplet.so* root/etc/init.d/opie
2Priority: required 2Priority: required
3Section: opie/system 3Section: opie/system
4Maintainer: Project Opie <opie@handhelds.org> 4Maintainer: Project Opie <opie@handhelds.org>
5Architecture: arm 5Architecture: arm
6Version: $QPE_VERSION-$SUB_VERSION.3 6Version: $QPE_VERSION-$SUB_VERSION.3
7Depends: opie-base 7Depends: opie-base, opie-calibrate
8Replaces: opie-rotation 8Replaces: opie-rotation
9Description: Launcher for Opie 9Description: Launcher for Opie
diff --git a/core/launcher/taskbar.cpp b/core/launcher/taskbar.cpp
index 8af568d..8158128 100644
--- a/core/launcher/taskbar.cpp
+++ b/core/launcher/taskbar.cpp
@@ -13,25 +13,24 @@
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#include "startmenu.h" 21#include "startmenu.h"
22#include "inputmethods.h" 22#include "inputmethods.h"
23#include "runningappbar.h" 23#include "runningappbar.h"
24#include "systray.h" 24#include "systray.h"
25#include "calibrate.h"
26#include "wait.h" 25#include "wait.h"
27#include "appicons.h" 26#include "appicons.h"
28 27
29#include "taskbar.h" 28#include "taskbar.h"
30#include "desktop.h" 29#include "desktop.h"
31 30
32#include <qpe/qpeapplication.h> 31#include <qpe/qpeapplication.h>
33#include <qpe/qcopenvelope_qws.h> 32#include <qpe/qcopenvelope_qws.h>
34#include <qpe/global.h> 33#include <qpe/global.h>
35 34
36#if defined( QT_QWS_SL5XXX ) || defined( QT_QWS_IPAQ ) 35#if defined( QT_QWS_SL5XXX ) || defined( QT_QWS_IPAQ )
37#include <qpe/custom.h> 36#include <qpe/custom.h>
@@ -73,33 +72,30 @@ using namespace Opie;
73#include "../launcher/apps.h" 72#include "../launcher/apps.h"
74#undef APP 73#undef APP
75#endif // SINGLE_APP 74#endif // SINGLE_APP
76 75
77static Global::Command builtins[] = { 76static Global::Command builtins[] = {
78 77
79#ifdef SINGLE_APP 78#ifdef SINGLE_APP
80#define APP(a,b,c,d) { a, new##b, c }, 79#define APP(a,b,c,d) { a, new##b, c },
81#include "../launcher/apps.h" 80#include "../launcher/apps.h"
82#undef APP 81#undef APP
83#endif 82#endif
84 83
85#if defined(QT_QWS_IPAQ) || defined(QT_QWS_CASSIOPEIA) || defined(QT_QWS_SL5XXX)
86 { "calibrate", TaskBar::calibrate, 1, 0 },
87#endif
88#if !defined(QT_QWS_CASSIOPEIA) 84#if !defined(QT_QWS_CASSIOPEIA)
89 { "shutdown", Global::shutdown, 1, 0 }, 85 { "shutdown", Global::shutdown, 1, 0 },
90// { "run", run, 1, 0 }, 86// { "run", run, 1, 0 },
91#endif 87#endif
92 88
93 { 0, TaskBar::calibrate, 0, 0 }, 89 { 0, 0, 0, 0 },
94}; 90};
95 91
96static bool initNumLock() 92static bool initNumLock()
97{ 93{
98#ifdef QPE_INITIAL_NUMLOCK_STATE 94#ifdef QPE_INITIAL_NUMLOCK_STATE
99 QPE_INITIAL_NUMLOCK_STATE 95 QPE_INITIAL_NUMLOCK_STATE
100#endif 96#endif
101 return FALSE; 97 return FALSE;
102} 98}
103 99
104class LockKeyState : public QWidget 100class LockKeyState : public QWidget
105{ 101{
@@ -297,35 +293,24 @@ void TaskBar::receive( const QCString &msg, const QByteArray &data )
297 else if ( msg == "toggleMenu()" ) { 293 else if ( msg == "toggleMenu()" ) {
298 if ( sm-> launchMenu-> isVisible ( )) 294 if ( sm-> launchMenu-> isVisible ( ))
299 sm-> launch ( ); 295 sm-> launch ( );
300 else { 296 else {
301 QCopEnvelope e ( "QPE/System", "toggleApplicationMenu()" ); 297 QCopEnvelope e ( "QPE/System", "toggleApplicationMenu()" );
302 } 298 }
303 } 299 }
304 else if ( msg == "toggleStartMenu()" ) { 300 else if ( msg == "toggleStartMenu()" ) {
305 sm-> launch ( ); 301 sm-> launch ( );
306 } 302 }
307} 303}
308 304
309QWidget *TaskBar::calibrate(bool)
310{
311#ifdef Q_WS_QWS
312 Calibrate *c = new Calibrate;
313 c->show();
314 return c;
315#else
316 return 0;
317#endif
318}
319
320void TaskBar::toggleNumLockState() 305void TaskBar::toggleNumLockState()
321{ 306{
322 if ( lockState ) lockState->toggleNumLockState(); 307 if ( lockState ) lockState->toggleNumLockState();
323} 308}
324 309
325void TaskBar::toggleCapsLockState() 310void TaskBar::toggleCapsLockState()
326{ 311{
327 if ( lockState ) lockState->toggleCapsLockState(); 312 if ( lockState ) lockState->toggleCapsLockState();
328} 313}
329 314
330void TaskBar::toggleSymbolInput() 315void TaskBar::toggleSymbolInput()
331{ 316{
diff --git a/core/launcher/taskbar.h b/core/launcher/taskbar.h
index a0bf395..575a8c9 100644
--- a/core/launcher/taskbar.h
+++ b/core/launcher/taskbar.h
@@ -33,26 +33,24 @@ class RunningAppBar;
33class QWidgetStack; 33class QWidgetStack;
34class QTimer; 34class QTimer;
35class QLabel; 35class QLabel;
36class StartMenu; 36class StartMenu;
37class LockKeyState; 37class LockKeyState;
38 38
39class TaskBar : public QHBox { 39class TaskBar : public QHBox {
40 Q_OBJECT 40 Q_OBJECT
41public: 41public:
42 TaskBar(); 42 TaskBar();
43 ~TaskBar(); 43 ~TaskBar();
44 44
45 static QWidget *calibrate( bool );
46
47 bool recoverMemory(); 45 bool recoverMemory();
48 46
49 StartMenu *startMenu() const { return sm; } 47 StartMenu *startMenu() const { return sm; }
50public slots: 48public slots:
51 void startWait(); 49 void startWait();
52 void stopWait(const QString&); 50 void stopWait(const QString&);
53 void stopWait(); 51 void stopWait();
54 void clearStatusBar(); 52 void clearStatusBar();
55 void toggleNumLockState(); 53 void toggleNumLockState();
56 void toggleCapsLockState(); 54 void toggleCapsLockState();
57 void toggleSymbolInput(); 55 void toggleSymbolInput();
58 56