VirtualBox

source: vbox/trunk/src/VBox/Frontends/VirtualBox/src/extensions/QIWizard.h@ 35740

Last change on this file since 35740 was 35234, checked in by vboxsync, 13 years ago

FE/Qt4: make sure the finish button is disabled on start of processing (fix
strange errors if the user hit the button multiple times)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Date Revision Author Id
File size: 1.6 KB
Line 
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 */
29class QTextEdit;
30
31class QIWizard : public QIWithRetranslateUI<QWizard>
32{
33 Q_OBJECT;
34
35public:
36
37 QIWizard(QWidget *pParent);
38
39protected:
40
41 void resizeToGoldenRatio();
42 void assignWatermark(const QString &strWaterMark);
43 void assignBackground(const QString &strBg);
44
45 void retranslateAllPages();
46
47private:
48
49 void resizeAccordingLabelWidth(int iLabelWidth);
50};
51
52class QIWizardPage : public QIWithRetranslateUI<QWizardPage>
53{
54 Q_OBJECT;
55
56 friend class QIWizard;
57
58public:
59
60 QIWizardPage();
61
62 QSize minimumSizeHint() const;
63 void setMinimumSizeHint(const QSize &minimumSizeHint);
64
65protected:
66
67 static void setSummaryFieldLinesNumber(QTextEdit *pSummaryField, int iNumber);
68
69 QString standardHelpText() const;
70
71 void startProcessing();
72 void endProcessing();
73
74private:
75
76 QSize m_MinimumSizeHint;
77};
78
79#endif // __QIWizard_h__
80
Note: See TracBrowser for help on using the repository browser.

© 2023 Oracle
ContactPrivacy policyTerms of Use