summaryrefslogtreecommitdiff
path: root/core/launcher/taskbar.h
Unidiff
Diffstat (limited to 'core/launcher/taskbar.h') (more/less context) (show whitespace changes)
-rw-r--r--core/launcher/taskbar.h86
1 files changed, 86 insertions, 0 deletions
diff --git a/core/launcher/taskbar.h b/core/launcher/taskbar.h
new file mode 100644
index 0000000..cdeb3c7
--- a/dev/null
+++ b/core/launcher/taskbar.h
@@ -0,0 +1,86 @@
1/**********************************************************************
2** Copyright (C) 2000 Trolltech AS. All rights reserved.
3**
4** This file is part of Qtopia Environment.
5**
6** This file may be distributed and/or modified under the terms of the
7** GNU General Public License version 2 as published by the Free Software
8** Foundation and appearing in the file LICENSE.GPL included in the
9** packaging of this file.
10**
11** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
12** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
13**
14** See http://www.trolltech.com/gpl/ for GPL licensing information.
15**
16** Contact info@trolltech.com if any conditions of this licensing are
17** not clear to you.
18**
19**********************************************************************/
20
21#ifndef __TASKBAR_H__
22#define __TASKBAR_H__
23
24#ifdef QT_QWS_CUSTOM
25#include <qpe/custom.h>
26#endif
27
28#include <qhbox.h>
29
30class QLabel;
31class QTimer;
32class InputMethods;
33class Wait;
34class SysTray;
35class MRUList;
36class QWidgetStack;
37class QTimer;
38class QLabel;
39class StartMenu;
40class LockKeyState;
41
42class TaskBar : public QHBox {
43 Q_OBJECT
44public:
45 TaskBar();
46 ~TaskBar();
47
48 static QWidget *calibrate( bool );
49
50 bool recoverMemory();
51
52 StartMenu *startMenu() const { return sm; }
53public slots:
54 void startWait();
55 void stopWait(const QString&);
56 void stopWait();
57 void clearStatusBar();
58 void toggleNumLockState();
59 void toggleCapsLockState();
60 void toggleSymbolInput();
61
62protected:
63 void resizeEvent( QResizeEvent * );
64 void styleChange( QStyle & );
65 void setStatusMessage( const QString &text );
66
67private slots:
68 void calcMaxWindowRect();
69 void receive( const QCString &msg, const QByteArray &data );
70
71private:
72
73 QTimer *waitTimer;
74 Wait *waitIcon;
75 InputMethods *inputMethods;
76 SysTray *sysTray;
77 MRUList *mru;
78 QWidgetStack *stack;
79 QTimer *clearer;
80 QLabel *label;
81 LockKeyState* lockState;
82 StartMenu *sm;
83};
84
85
86#endif // __TASKBAR_H__