1 | /** @file
|
---|
2 | *
|
---|
3 | * VBox frontends: Qt4 GUI ("VirtualBox"):
|
---|
4 | * QIWizard class declaration
|
---|
5 | */
|
---|
6 |
|
---|
7 | /*
|
---|
8 | * Copyright (C) 2009-2010 Oracle Corporation
|
---|
9 | *
|
---|
10 | * This file is part of VirtualBox Open Source Edition (OSE), as
|
---|
11 | * available from http://www.virtualbox.org. This file is free software;
|
---|
12 | * you can redistribute it and/or modify it under the terms of the GNU
|
---|
13 | * General Public License (GPL) as published by the Free Software
|
---|
14 | * Foundation, in version 2 as it comes in the "COPYING" file of the
|
---|
15 | * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
|
---|
16 | * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
|
---|
17 | */
|
---|
18 |
|
---|
19 | #ifndef __QIWizard_h__
|
---|
20 | #define __QIWizard_h__
|
---|
21 |
|
---|
22 | /* Global includes */
|
---|
23 | #include <QWizard>
|
---|
24 |
|
---|
25 | /* Local includes */
|
---|
26 | #include "QIWithRetranslateUI.h"
|
---|
27 |
|
---|
28 | /* Global forwards */
|
---|
29 | class QTextEdit;
|
---|
30 |
|
---|
31 | class QIWizard : public QIWithRetranslateUI<QWizard>
|
---|
32 | {
|
---|
33 | Q_OBJECT;
|
---|
34 |
|
---|
35 | public:
|
---|
36 |
|
---|
37 | QIWizard(QWidget *pParent);
|
---|
38 |
|
---|
39 | protected:
|
---|
40 |
|
---|
41 | void resizeToGoldenRatio();
|
---|
42 | void assignWatermark(const QString &strWaterMark);
|
---|
43 | void assignBackground(const QString &strBg);
|
---|
44 |
|
---|
45 | void retranslateAllPages();
|
---|
46 |
|
---|
47 | private:
|
---|
48 |
|
---|
49 | void resizeAccordingLabelWidth(int iLabelWidth);
|
---|
50 | };
|
---|
51 |
|
---|
52 | class QIWizardPage : public QIWithRetranslateUI<QWizardPage>
|
---|
53 | {
|
---|
54 | Q_OBJECT;
|
---|
55 |
|
---|
56 | friend class QIWizard;
|
---|
57 |
|
---|
58 | public:
|
---|
59 |
|
---|
60 | QIWizardPage();
|
---|
61 |
|
---|
62 | QSize minimumSizeHint() const;
|
---|
63 | void setMinimumSizeHint(const QSize &minimumSizeHint);
|
---|
64 |
|
---|
65 | protected:
|
---|
66 |
|
---|
67 | static void setSummaryFieldLinesNumber(QTextEdit *pSummaryField, int iNumber);
|
---|
68 |
|
---|
69 | QString standardHelpText() const;
|
---|
70 |
|
---|
71 | void startProcessing();
|
---|
72 | void endProcessing();
|
---|
73 |
|
---|
74 | private:
|
---|
75 |
|
---|
76 | QSize m_MinimumSizeHint;
|
---|
77 | };
|
---|
78 |
|
---|
79 | #endif // __QIWizard_h__
|
---|
80 |
|
---|