1 | /**************************************************************************** |
2 | ** |
3 | ** Copyright (C) 2005-2009 Ralf Habacker. All rights reserved. |
4 | ** |
5 | ** This file is part of the KDE installer for windows |
6 | ** |
7 | ** This file may be used under the terms of the GNU General Public |
8 | ** License version 2.0 as published by the Free Software Foundation |
9 | ** and appearing in the file LICENSE.GPL included in the packaging of |
10 | ** this file. Please review the following information to ensure GNU |
11 | ** General Public Licensing requirements will be met: |
12 | ** http://www.trolltech.com/products/qt/opensource.html |
13 | ** |
14 | ** If you are unsure which license is appropriate for your use, please |
15 | ** review the following information: |
16 | ** http://www.trolltech.com/products/qt/licensing.html or contact the |
17 | ** sales department at sales@trolltech.com. |
18 | ** |
19 | ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE |
20 | ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. |
21 | ** |
22 | ****************************************************************************/ |
23 | |
24 | #ifndef INSTALLWIZARDPAGE_H |
25 | #define INSTALLWIZARDPAGE_H |
26 | |
27 | #include <QObject> |
28 | #include <QWizard> |
29 | |
30 | class QLabel; |
31 | |
32 | #include <QAbstractButton> |
33 | #include <QWizardPage> |
34 | |
35 | class InstallWizardPage : public QWizardPage |
36 | { |
37 | Q_OBJECT |
38 | |
39 | public: |
40 | InstallWizardPage(QWidget *parent = 0); |
41 | |
42 | /// setup page before it is displayed |
43 | virtual void initializePage(); |
44 | /// return next page id, called when pressed next (not used) |
45 | virtual int nextId() const; |
46 | /// check if page is complete |
47 | virtual bool isComplete(); |
48 | /// cancel wizard |
49 | virtual void cancel(); |
50 | /// enable/disable settings button (deprecated ) |
51 | void setSettingsButtonVisible(bool mode); |
52 | |
53 | public Q_SLOTS: |
54 | /// set status label |
55 | void setStatus(const QString &text); |
56 | /// slot for performing page action after page is displayed |
57 | virtual void performAction(); |
58 | |
59 | protected: |
60 | QLabel *topLabel; |
61 | QLabel *statusLabel; |
62 | |
63 | protected slots: |
64 | void slotClearStatus(); |
65 | }; |
66 | |
67 | #endif |
68 | |