- Timestamp:
- Apr 25, 2018 1:47:29 PM (7 years ago)
- svn:sync-xref-src-repo-rev:
- 122279
- Location:
- trunk/src/VBox/Frontends/VirtualBox
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/Makefile.kmk
r72009 r72018 568 568 src/widgets/graphics/UIGraphicsToolBar.h \ 569 569 src/widgets/graphics/UIGraphicsTextPane.h \ 570 src/wizards/UIWizardPage.h \571 570 src/wizards/newvm/UIWizardNewVM.h \ 572 571 src/wizards/newvm/UIWizardNewVMPageBasic1.h \ … … 675 674 src/selector/UIVirtualBoxEventHandler.h \ 676 675 src/wizards/UIWizard.h \ 676 src/wizards/UIWizardPage.h \ 677 677 src/widgets/UIBootTable.h \ 678 678 src/widgets/UIFilePathSelector.h \ … … 775 775 src/selector/UIVirtualBoxEventHandler.h \ 776 776 src/wizards/UIWizard.h \ 777 src/wizards/UIWizardPage.h \ 777 778 src/widgets/UIBootTable.h \ 778 779 src/widgets/UIFilePathSelector.h \ … … 1068 1069 src/widgets/graphics/UIGraphicsToolBar.cpp \ 1069 1070 src/widgets/graphics/UIGraphicsTextPane.cpp \ 1070 src/wizards/UIWizardPage.cpp \1071 1071 src/wizards/newvm/UIWizardNewVM.cpp \ 1072 1072 src/wizards/newvm/UIWizardNewVMPageBasic1.cpp \ … … 1214 1214 src/settings/UISettingsDefs.cpp \ 1215 1215 src/wizards/UIWizard.cpp \ 1216 src/wizards/UIWizardPage.cpp \ 1216 1217 src/widgets/UIBootTable.cpp \ 1217 1218 src/widgets/UIFilePathSelector.cpp \ … … 1340 1341 src/settings/UISettingsDefs.cpp \ 1341 1342 src/wizards/UIWizard.cpp \ 1343 src/wizards/UIWizardPage.cpp \ 1342 1344 src/widgets/UIBootTable.cpp \ 1343 1345 src/widgets/UIFilePathSelector.cpp \ -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/UIWizardPage.cpp
r71027 r72018 5 5 6 6 /* 7 * Copyright (C) 2009-201 7Oracle Corporation7 * Copyright (C) 2009-2018 Oracle Corporation 8 8 * 9 9 * This file is part of VirtualBox Open Source Edition (OSE), as … … 20 20 #else /* !VBOX_WITH_PRECOMPILED_HEADERS */ 21 21 22 /* Globalincludes: */22 /* Qt includes: */ 23 23 # include <QAbstractButton> 24 24 25 /* Local includes: */ 25 /* GUI includes: */ 26 # include "VBoxGlobal.h" 27 # include "UIWizard.h" 26 28 # include "UIWizardPage.h" 27 # include "UIWizard.h"28 # include "VBoxGlobal.h"29 29 30 30 #endif /* !VBOX_WITH_PRECOMPILED_HEADERS */ 31 31 32 32 33 UIWizard* UIWizardPageBase::wizardImp() 33 /********************************************************************************************************************************* 34 * Class UIWizardPageBase implementation. * 35 *********************************************************************************************************************************/ 36 37 UIWizard *UIWizardPageBase::wizardImp() 34 38 { 35 39 /* Should be reimplemented in sub-class to enable access to wizard! */ … … 38 42 } 39 43 40 UIWizardPage *UIWizardPageBase::thisImp()44 UIWizardPage *UIWizardPageBase::thisImp() 41 45 { 42 46 /* Should be reimplemented in sub-class to enable access to wizard page! */ … … 51 55 return QVariant(); 52 56 } 57 58 59 /********************************************************************************************************************************* 60 * Class UIWizardPage implementation. * 61 *********************************************************************************************************************************/ 53 62 54 63 UIWizardPage::UIWizardPage() … … 70 79 } 71 80 72 UIWizard *UIWizardPage::wizard() const81 UIWizard *UIWizardPage::wizard() const 73 82 { 74 83 return qobject_cast<UIWizard*>(QWizardPage::wizard()); … … 86 95 wizard()->button(QWizard::FinishButton)->setEnabled(true); 87 96 } 88 -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/UIWizardPage.h
r71027 r72018 5 5 6 6 /* 7 * Copyright (C) 2009-201 7Oracle Corporation7 * Copyright (C) 2009-2018 Oracle Corporation 8 8 * 9 9 * This file is part of VirtualBox Open Source Edition (OSE), as … … 19 19 #define ___UIWizardPage_h___ 20 20 21 /* Globalincludes: */21 /* Qt includes: */ 22 22 #include <QVariant> 23 23 #include <QWizardPage> 24 24 25 /* Localincludes: */25 /* GUI includes: */ 26 26 #include "QIWithRetranslateUI.h" 27 #include "UILibraryDefs.h" 27 28 28 29 /* Forward declarations: */ … … 30 31 class UIWizardPage; 31 32 32 /* One of interfaces for wizard page, 33 * providing API for basic/expert pages. */ 34 class UIWizardPageBase 33 34 /** One of two interfaces for wizard page. 35 * This is page-BASE providing access API for basic/expert pages. */ 36 class SHARED_LIBRARY_STUFF UIWizardPageBase 35 37 { 36 38 public: 39 40 /** Destructs wizard page-base. */ 37 41 virtual ~UIWizardPageBase() { /* Makes MSC happy. */ } 38 42 39 43 protected: 40 44 41 /* Helpers: */ 42 virtual UIWizard* wizardImp(); 43 virtual UIWizardPage* thisImp(); 45 /** Returns wizard this page-base belongs to. */ 46 virtual UIWizard *wizardImp(); 47 48 /** Returns wizard page this page-base belongs to. */ 49 virtual UIWizardPage *thisImp(); 50 51 /** Returns page field with certain @a strFieldName. */ 44 52 virtual QVariant fieldImp(const QString &strFieldName) const; 45 53 }; 46 54 47 /* One of interfaces for wizard page, 48 * QWizardPage class reimplementation with extended funtionality. */ 49 class UIWizardPage : public QIWithRetranslateUI<QWizardPage> 55 56 /** One of two interfaces for wizard page. 57 * This is page-BODY based on QWizardPage with advanced functionality. */ 58 class SHARED_LIBRARY_STUFF UIWizardPage : public QIWithRetranslateUI<QWizardPage> 50 59 { 51 60 Q_OBJECT; … … 53 62 public: 54 63 55 /* Constructor:*/64 /** Constructs wizard page. */ 56 65 UIWizardPage(); 57 66 58 /* Translation stuff:*/67 /** Redirects the translation call to actual handler. */ 59 68 void retranslate() { retranslateUi(); } 60 69 61 /* Prepare stuff:*/70 /** Marks page ready. */ 62 71 void markReady(); 63 72 64 /* Title stuff:*/73 /** Defines page @a strTitle. */ 65 74 void setTitle(const QString &strTitle); 66 75 67 76 protected: 68 77 69 /* Helpers: */ 70 UIWizard* wizard() const; 78 /** Returns wizard this page belongs to. */ 79 UIWizard *wizard() const; 80 81 /** Starts page processing. */ 71 82 void startProcessing(); 83 /** Ends page processing. */ 72 84 void endProcessing(); 73 85 74 /* Variables:*/86 /** Holds whether page is ready. */ 75 87 bool m_fReady; 88 /** Holds the page title. */ 76 89 QString m_strTitle; 77 90 }; 78 91 92 79 93 #endif 80
Note:
See TracChangeset
for help on using the changeset viewer.