summaryrefslogtreecommitdiff
path: root/core/launcher/firstuse.h
Unidiff
Diffstat (limited to 'core/launcher/firstuse.h') (more/less context) (ignore whitespace changes)
-rw-r--r--core/launcher/firstuse.h84
1 files changed, 84 insertions, 0 deletions
diff --git a/core/launcher/firstuse.h b/core/launcher/firstuse.h
new file mode 100644
index 0000000..44a95a8
--- a/dev/null
+++ b/core/launcher/firstuse.h
@@ -0,0 +1,84 @@
1/**********************************************************************
2** Copyright (C) 2000-2002 Trolltech AS. All rights reserved.
3**
4** This file is part of the 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#include <qdialog.h>
22#include <qpixmap.h>
23
24class InputMethods;
25class QCString;
26class QPushButton;
27class QTranslator;
28class AppLauncher;
29class DocumentList;
30
31class FirstUse : public QDialog
32{
33 Q_OBJECT
34public:
35 FirstUse(QWidget* parent=0, const char * name=0, WFlags=0);
36 ~FirstUse();
37
38 bool restartNeeded() const { return needRestart; }
39
40private slots:
41 void message(const QCString &, const QByteArray &);
42 void calcMaxWindowRect();
43
44 void nextDialog();
45 void previousDialog();
46 void terminated( int, const QString & );
47 void newQcopChannel(const QString & );
48
49private:
50 void paintEvent( QPaintEvent * );
51 void mouseReleaseEvent( QMouseEvent * );
52 void keyPressEvent( QKeyEvent *e );
53
54 void loadPixmaps();
55
56 void reloadLanguages();
57 void drawText(QPainter &p, const QString &text);
58 void updateButtons();
59
60private:
61 QPixmap splash;
62 QPixmap buttons;
63
64 InputMethods *inputMethods;
65 QPushButton *back;
66 QPushButton *next;
67 int controlHeight;
68
69 QString lang;
70 QTranslator *transApp;
71 QTranslator *transLib;
72
73 bool needCalibrate;
74 DocumentList *docList;
75 AppLauncher *appLauncher;
76 QWidget *taskBar;
77
78 int currApp;
79 int waitForExit;
80 bool waitingForLaunch;
81 bool needRestart;
82
83 QFont defaultFont;
84};