-rw-r--r-- | core/launcher/taskbar.h | 86 |
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 | |||
30 | class QLabel; | ||
31 | class QTimer; | ||
32 | class InputMethods; | ||
33 | class Wait; | ||
34 | class SysTray; | ||
35 | class MRUList; | ||
36 | class QWidgetStack; | ||
37 | class QTimer; | ||
38 | class QLabel; | ||
39 | class StartMenu; | ||
40 | class LockKeyState; | ||
41 | |||
42 | class TaskBar : public QHBox { | ||
43 | Q_OBJECT | ||
44 | public: | ||
45 | TaskBar(); | ||
46 | ~TaskBar(); | ||
47 | |||
48 | static QWidget *calibrate( bool ); | ||
49 | |||
50 | bool recoverMemory(); | ||
51 | |||
52 | StartMenu *startMenu() const { return sm; } | ||
53 | public 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 | |||
62 | protected: | ||
63 | void resizeEvent( QResizeEvent * ); | ||
64 | void styleChange( QStyle & ); | ||
65 | void setStatusMessage( const QString &text ); | ||
66 | |||
67 | private slots: | ||
68 | void calcMaxWindowRect(); | ||
69 | void receive( const QCString &msg, const QByteArray &data ); | ||
70 | |||
71 | private: | ||
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__ | ||