Changeset 91059 in vbox
- Timestamp:
- Sep 1, 2021 1:48:12 PM (3 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox
- Files:
-
- 4 edited
- 10 moved
-
Makefile.kmk (modified) (2 diffs)
-
src/wizards/editors/UIWizardDiskEditors.cpp (modified) (1 diff)
-
src/wizards/editors/UIWizardNewVMEditors.cpp (modified) (3 diffs)
-
src/wizards/newvm/UIWizardNewVM.cpp (modified) (4 diffs)
-
src/wizards/newvm/UIWizardNewVMDiskPage.cpp (moved) (moved from trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVMDiskPageBasic.cpp ) (21 diffs)
-
src/wizards/newvm/UIWizardNewVMDiskPage.h (moved) (moved from trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVMDiskPageBasic.h ) (6 diffs)
-
src/wizards/newvm/UIWizardNewVMExpertPage.cpp (moved) (moved from trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVMPageExpert.cpp ) (55 diffs)
-
src/wizards/newvm/UIWizardNewVMExpertPage.h (moved) (moved from trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVMPageExpert.h ) (6 diffs)
-
src/wizards/newvm/UIWizardNewVMHardwarePage.cpp (moved) (moved from trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVMHardwarePageBasic.cpp ) (8 diffs)
-
src/wizards/newvm/UIWizardNewVMHardwarePage.h (moved) (moved from trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVMHardwarePageBasic.h ) (5 diffs)
-
src/wizards/newvm/UIWizardNewVMNameOSTypePage.cpp (moved) (moved from trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVMNameOSTypePageBasic.cpp ) (19 diffs)
-
src/wizards/newvm/UIWizardNewVMNameOSTypePage.h (moved) (moved from trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVMNameOSTypePageBasic.h ) (6 diffs)
-
src/wizards/newvm/UIWizardNewVMUnattendedPage.cpp (moved) (moved from trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVMUnattendedPageBasic.cpp ) (18 diffs)
-
src/wizards/newvm/UIWizardNewVMUnattendedPage.h (moved) (moved from trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVMUnattendedPageBasic.h ) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/Makefile.kmk
r91057 r91059 660 660 src/wizards/newcloudvm/UIWizardNewCloudVMPageExpert.h \ 661 661 src/wizards/newvm/UIWizardNewVM.h \ 662 src/wizards/newvm/UIWizardNewVMNameOSTypePage Basic.h \663 src/wizards/newvm/UIWizardNewVMUnattendedPage Basic.h \664 src/wizards/newvm/UIWizardNewVMHardwarePage Basic.h \665 src/wizards/newvm/UIWizardNewVMDiskPage Basic.h \666 src/wizards/newvm/UIWizardNewVM PageExpert.h \662 src/wizards/newvm/UIWizardNewVMNameOSTypePage.h \ 663 src/wizards/newvm/UIWizardNewVMUnattendedPage.h \ 664 src/wizards/newvm/UIWizardNewVMHardwarePage.h \ 665 src/wizards/newvm/UIWizardNewVMDiskPage.h \ 666 src/wizards/newvm/UIWizardNewVMExpertPage.h \ 667 667 src/wizards/clonevm/UIWizardCloneVM.h \ 668 668 src/wizards/clonevm/UIWizardCloneVMNamePathPageBasic.h \ … … 1168 1168 src/wizards/newcloudvm/UIWizardNewCloudVMPageExpert.cpp \ 1169 1169 src/wizards/newvm/UIWizardNewVM.cpp \ 1170 src/wizards/newvm/UIWizardNewVMNameOSTypePage Basic.cpp \1171 src/wizards/newvm/UIWizardNewVMUnattendedPage Basic.cpp \1172 src/wizards/newvm/UIWizardNewVMHardwarePage Basic.cpp \1173 src/wizards/newvm/UIWizardNewVMDiskPage Basic.cpp \1174 src/wizards/newvm/UIWizardNewVM PageExpert.cpp \1170 src/wizards/newvm/UIWizardNewVMNameOSTypePage.cpp \ 1171 src/wizards/newvm/UIWizardNewVMUnattendedPage.cpp \ 1172 src/wizards/newvm/UIWizardNewVMHardwarePage.cpp \ 1173 src/wizards/newvm/UIWizardNewVMDiskPage.cpp \ 1174 src/wizards/newvm/UIWizardNewVMExpertPage.cpp \ 1175 1175 src/wizards/clonevm/UIWizardCloneVM.cpp \ 1176 1176 src/wizards/clonevm/UIWizardCloneVMNamePathPageBasic.cpp \ -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/editors/UIWizardDiskEditors.cpp
r90886 r91059 38 38 #include "UIWizardDiskEditors.h" 39 39 #include "UIWizardNewVM.h" 40 #include "UIWizardNewVMDiskPage Basic.h"40 #include "UIWizardNewVMDiskPage.h" 41 41 42 42 /* Other VBox includes: */ -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/editors/UIWizardNewVMEditors.cpp
r90328 r91059 31 31 #include "UIWizardNewVM.h" 32 32 #include "UIWizardNewVMEditors.h" 33 #include "UIWizardNewVMUnattendedPage Basic.h"33 #include "UIWizardNewVMUnattendedPage.h" 34 34 35 35 /* Other VBox includes: */ … … 181 181 void UIGAInstallationGroupBox::mark() 182 182 { 183 bool fError = !UIWizardNewVMUnattended Page::checkGAISOFile(path());183 bool fError = !UIWizardNewVMUnattendedCommon::checkGAISOFile(path()); 184 184 if (m_pGAISOFilePathSelector) 185 185 m_pGAISOFilePathSelector->mark(fError, tr("Invalid Guest Additions installation media")); … … 190 190 if (!isChecked()) 191 191 return true; 192 return UIWizardNewVMUnattended Page::checkGAISOFile(path());192 return UIWizardNewVMUnattendedCommon::checkGAISOFile(path()); 193 193 } 194 194 -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVM.cpp
r91031 r91059 24 24 #include "UIProgressObject.h" 25 25 #include "UIWizardNewVM.h" 26 #include "UIWizardNewVMNameOSTypePage Basic.h"27 #include "UIWizardNewVMUnattendedPage Basic.h"28 #include "UIWizardNewVMHardwarePage Basic.h"29 #include "UIWizardNewVMDiskPage Basic.h"30 #include "UIWizardNewVM PageExpert.h"26 #include "UIWizardNewVMNameOSTypePage.h" 27 #include "UIWizardNewVMUnattendedPage.h" 28 #include "UIWizardNewVMHardwarePage.h" 29 #include "UIWizardNewVMDiskPage.h" 30 #include "UIWizardNewVMExpertPage.h" 31 31 #include "UIMessageCenter.h" 32 32 #include "UIMedium.h" … … 89 89 case WizardMode_Basic: 90 90 { 91 addPage(new UIWizardNewVMNameOSTypePage Basic);92 m_iUnattendedInstallPageIndex = addPage(new UIWizardNewVMUnattendedPage Basic);91 addPage(new UIWizardNewVMNameOSTypePage); 92 m_iUnattendedInstallPageIndex = addPage(new UIWizardNewVMUnattendedPage); 93 93 setUnattendedPageVisible(false); 94 addPage(new UIWizardNewVMHardwarePage Basic);95 addPage(new UIWizardNewVMDiskPage Basic);94 addPage(new UIWizardNewVMHardwarePage); 95 addPage(new UIWizardNewVMDiskPage); 96 96 break; 97 97 } 98 98 case WizardMode_Expert: 99 99 { 100 addPage(new UIWizardNewVM PageExpert);100 addPage(new UIWizardNewVMExpertPage); 101 101 break; 102 102 } … … 111 111 void UIWizardNewVM::wizardClean() 112 112 { 113 UIWizardNewVMNameOSType Page::cleanupMachineFolder(this, true);113 UIWizardNewVMNameOSTypeCommon::cleanupMachineFolder(this, true); 114 114 } 115 115 … … 546 546 void UIWizardNewVM::sltHandleWizardCancel() 547 547 { 548 UIWizardNewVMNameOSType Page::cleanupMachineFolder(this, true);548 UIWizardNewVMNameOSTypeCommon::cleanupMachineFolder(this, true); 549 549 } 550 550 -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVMDiskPage.cpp
r91058 r91059 1 1 /* $Id$ */ 2 2 /** @file 3 * VBox Qt GUI - UIWizardNewVMDiskPage Basicclass implementation.3 * VBox Qt GUI - UIWizardNewVMDiskPage class implementation. 4 4 */ 5 5 … … 32 32 #include "UIMessageCenter.h" 33 33 #include "UICommon.h" 34 #include "UIWizardNewVMDiskPage Basic.h"34 #include "UIWizardNewVMDiskPage.h" 35 35 #include "UIWizardDiskEditors.h" 36 36 #include "UIWizardNewVM.h" … … 41 41 #include "CSystemProperties.h" 42 42 43 QUuid UIWizardNewVMDisk Page::getWithFileOpenDialog(const QString &strOSTypeID,44 const QString &strMachineFolder,45 const QString &strMachineBaseName,46 QWidget *pCaller)43 QUuid UIWizardNewVMDiskCommon::getWithFileOpenDialog(const QString &strOSTypeID, 44 const QString &strMachineFolder, 45 const QString &strMachineBaseName, 46 QWidget *pCaller) 47 47 { 48 48 QUuid uMediumId; … … 58 58 } 59 59 60 UIWizardNewVMDiskPage Basic::UIWizardNewVMDiskPageBasic()60 UIWizardNewVMDiskPage::UIWizardNewVMDiskPage() 61 61 : m_pDiskSourceButtonGroup(0) 62 62 , m_pDiskEmpty(0) … … 82 82 83 83 84 void UIWizardNewVMDiskPage Basic::prepare()84 void UIWizardNewVMDiskPage::prepare() 85 85 { 86 86 QVBoxLayout *pMainLayout = new QVBoxLayout(this); … … 97 97 } 98 98 99 QWidget *UIWizardNewVMDiskPage Basic::createNewDiskWidgets()99 QWidget *UIWizardNewVMDiskPage::createNewDiskWidgets() 100 100 { 101 101 QWidget *pWidget = new QWidget; … … 137 137 } 138 138 139 void UIWizardNewVMDiskPage Basic::createConnections()139 void UIWizardNewVMDiskPage::createConnections() 140 140 { 141 141 if (m_pDiskSourceButtonGroup) 142 142 connect(m_pDiskSourceButtonGroup, static_cast<void(QButtonGroup::*)(QAbstractButton *)>(&QButtonGroup::buttonClicked), 143 this, &UIWizardNewVMDiskPage Basic::sltSelectedDiskSourceChanged);143 this, &UIWizardNewVMDiskPage::sltSelectedDiskSourceChanged); 144 144 if (m_pDiskSelector) 145 145 connect(m_pDiskSelector, static_cast<void(UIMediaComboBox::*)(int)>(&UIMediaComboBox::currentIndexChanged), 146 this, &UIWizardNewVMDiskPage Basic::sltMediaComboBoxIndexChanged);146 this, &UIWizardNewVMDiskPage::sltMediaComboBoxIndexChanged); 147 147 if (m_pDiskSelectionButton) 148 148 connect(m_pDiskSelectionButton, &QIToolButton::clicked, 149 this, &UIWizardNewVMDiskPage Basic::sltGetWithFileOpenDialog);149 this, &UIWizardNewVMDiskPage::sltGetWithFileOpenDialog); 150 150 if (m_pMediumSizeEditor) 151 151 connect(m_pMediumSizeEditor, &UIMediumSizeEditor::sigSizeChanged, 152 this, &UIWizardNewVMDiskPage Basic::sltHandleSizeEditorChange);152 this, &UIWizardNewVMDiskPage::sltHandleSizeEditorChange); 153 153 if (m_pFixedCheckBox) 154 154 connect(m_pFixedCheckBox, &QCheckBox::toggled, 155 this, &UIWizardNewVMDiskPage Basic::sltFixedCheckBoxToggled);156 } 157 158 void UIWizardNewVMDiskPage Basic::sltSelectedDiskSourceChanged()155 this, &UIWizardNewVMDiskPage::sltFixedCheckBoxToggled); 156 } 157 158 void UIWizardNewVMDiskPage::sltSelectedDiskSourceChanged() 159 159 { 160 160 UIWizardNewVM *pWizard = wizardWindow<UIWizardNewVM>(); … … 177 177 } 178 178 179 void UIWizardNewVMDiskPage Basic::sltMediaComboBoxIndexChanged()179 void UIWizardNewVMDiskPage::sltMediaComboBoxIndexChanged() 180 180 { 181 181 AssertReturnVoid(m_pDiskSelector && wizardWindow<UIWizardNewVM>()); … … 185 185 } 186 186 187 void UIWizardNewVMDiskPage Basic::sltGetWithFileOpenDialog()187 void UIWizardNewVMDiskPage::sltGetWithFileOpenDialog() 188 188 { 189 189 UIWizardNewVM *pWizard = wizardWindow<UIWizardNewVM>(); … … 191 191 const CGuestOSType &comOSType = pWizard->guestOSType(); 192 192 AssertReturnVoid(!comOSType.isNull()); 193 QUuid uMediumId = UIWizardNewVMDisk Page::getWithFileOpenDialog(comOSType.GetId(),194 pWizard->machineFolder(),195 pWizard->machineBaseName(),196 this);193 QUuid uMediumId = UIWizardNewVMDiskCommon::getWithFileOpenDialog(comOSType.GetId(), 194 pWizard->machineFolder(), 195 pWizard->machineBaseName(), 196 this); 197 197 if (!uMediumId.isNull()) 198 198 { … … 202 202 } 203 203 204 void UIWizardNewVMDiskPage Basic::retranslateUi()204 void UIWizardNewVMDiskPage::retranslateUi() 205 205 { 206 206 setTitle(UIWizardNewVM::tr("Virtual Hard disk")); … … 243 243 } 244 244 245 void UIWizardNewVMDiskPage Basic::initializePage()245 void UIWizardNewVMDiskPage::initializePage() 246 246 { 247 247 retranslateUi(); … … 333 333 } 334 334 335 bool UIWizardNewVMDiskPage Basic::isComplete() const335 bool UIWizardNewVMDiskPage::isComplete() const 336 336 { 337 337 UIWizardNewVM *pWizard = wizardWindow<UIWizardNewVM>(); … … 348 348 } 349 349 350 bool UIWizardNewVMDiskPage Basic::validatePage()350 bool UIWizardNewVMDiskPage::validatePage() 351 351 { 352 352 bool fResult = true; … … 405 405 } 406 406 407 void UIWizardNewVMDiskPage Basic::sltHandleSizeEditorChange(qulonglong uSize)407 void UIWizardNewVMDiskPage::sltHandleSizeEditorChange(qulonglong uSize) 408 408 { 409 409 AssertReturnVoid(wizardWindow<UIWizardNewVM>()); … … 413 413 } 414 414 415 void UIWizardNewVMDiskPage Basic::sltFixedCheckBoxToggled(bool fChecked)415 void UIWizardNewVMDiskPage::sltFixedCheckBoxToggled(bool fChecked) 416 416 { 417 417 AssertReturnVoid(wizardWindow<UIWizardNewVM>()); … … 425 425 } 426 426 427 void UIWizardNewVMDiskPage Basic::setEnableNewDiskWidgets(bool fEnable)427 void UIWizardNewVMDiskPage::setEnableNewDiskWidgets(bool fEnable) 428 428 { 429 429 if (m_pMediumSizeEditor) … … 435 435 } 436 436 437 QWidget *UIWizardNewVMDiskPage Basic::createDiskWidgets()437 QWidget *UIWizardNewVMDiskPage::createDiskWidgets() 438 438 { 439 439 QWidget *pDiskContainer = new QWidget; … … 470 470 } 471 471 472 QWidget *UIWizardNewVMDiskPage Basic::createMediumVariantWidgets(bool fWithLabels)472 QWidget *UIWizardNewVMDiskPage::createMediumVariantWidgets(bool fWithLabels) 473 473 { 474 474 QWidget *pContainerWidget = new QWidget; … … 499 499 } 500 500 501 void UIWizardNewVMDiskPage Basic::setEnableDiskSelectionWidgets(bool fEnabled)501 void UIWizardNewVMDiskPage::setEnableDiskSelectionWidgets(bool fEnabled) 502 502 { 503 503 if (!m_pDiskSelector || !m_pDiskSelectionButton) … … 508 508 } 509 509 510 void UIWizardNewVMDiskPage Basic::setWidgetVisibility(const CMediumFormat &mediumFormat)510 void UIWizardNewVMDiskPage::setWidgetVisibility(const CMediumFormat &mediumFormat) 511 511 { 512 512 ULONG uCapabilities = 0; -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVMDiskPage.h
r91058 r91059 1 1 /* $Id$ */ 2 2 /** @file 3 * VBox Qt GUI - UIWizardNewVMDiskPage Basicclass declaration.3 * VBox Qt GUI - UIWizardNewVMDiskPage class declaration. 4 4 */ 5 5 … … 16 16 */ 17 17 18 #ifndef FEQT_INCLUDED_SRC_wizards_newvm_UIWizardNewVMDiskPage Basic_h19 #define FEQT_INCLUDED_SRC_wizards_newvm_UIWizardNewVMDiskPage Basic_h18 #ifndef FEQT_INCLUDED_SRC_wizards_newvm_UIWizardNewVMDiskPage_h 19 #define FEQT_INCLUDED_SRC_wizards_newvm_UIWizardNewVMDiskPage_h 20 20 #ifndef RT_WITHOUT_PRAGMA_ONCE 21 21 # pragma once … … 51 51 }; 52 52 53 namespace UIWizardNewVMDisk Page53 namespace UIWizardNewVMDiskCommon 54 54 { 55 55 QUuid getWithFileOpenDialog(const QString &strOSTypeID, … … 60 60 61 61 62 class UIWizardNewVMDiskPage Basic: public UINativeWizardPage62 class UIWizardNewVMDiskPage : public UINativeWizardPage 63 63 { 64 64 Q_OBJECT; … … 66 66 public: 67 67 68 UIWizardNewVMDiskPage Basic();68 UIWizardNewVMDiskPage(); 69 69 70 70 protected: … … 124 124 }; 125 125 126 #endif /* !FEQT_INCLUDED_SRC_wizards_newvm_UIWizardNewVMDiskPage Basic_h */126 #endif /* !FEQT_INCLUDED_SRC_wizards_newvm_UIWizardNewVMDiskPage_h */ -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVMExpertPage.cpp
r91058 r91059 1 1 /* $Id$ */ 2 2 /** @file 3 * VBox Qt GUI - UIWizardNewVM PageExpertclass implementation.3 * VBox Qt GUI - UIWizardNewVMExpertPage class implementation. 4 4 */ 5 5 … … 34 34 #include "UIWizardDiskEditors.h" 35 35 #include "UIWizardNewVMEditors.h" 36 #include "UIWizardNewVM PageExpert.h"37 #include "UIWizardNewVMNameOSTypePage Basic.h"36 #include "UIWizardNewVMExpertPage.h" 37 #include "UIWizardNewVMNameOSTypePage.h" 38 38 39 39 /* COM includes: */ 40 40 #include "CSystemProperties.h" 41 41 42 UIWizardNewVM PageExpert::UIWizardNewVMPageExpert()42 UIWizardNewVMExpertPage::UIWizardNewVMExpertPage() 43 43 : m_pToolBox(0) 44 44 , m_pDiskVariantGroupBox(0) … … 82 82 } 83 83 84 void UIWizardNewVM PageExpert::sltNameChanged(const QString &strNewName)84 void UIWizardNewVMExpertPage::sltNameChanged(const QString &strNewName) 85 85 { 86 86 AssertReturnVoid(wizardWindow<UIWizardNewVM>()); … … 88 88 { 89 89 m_pNameAndSystemEditor->blockSignals(true); 90 if (UIWizardNewVMNameOSType Page::guessOSTypeFromName(m_pNameAndSystemEditor, strNewName))90 if (UIWizardNewVMNameOSTypeCommon::guessOSTypeFromName(m_pNameAndSystemEditor, strNewName)) 91 91 { 92 92 wizardWindow<UIWizardNewVM>()->setGuestOSType(m_pNameAndSystemEditor->type()); … … 96 96 m_pNameAndSystemEditor->blockSignals(false); 97 97 } 98 UIWizardNewVMNameOSType Page::composeMachineFilePath(m_pNameAndSystemEditor, wizardWindow<UIWizardNewVM>());98 UIWizardNewVMNameOSTypeCommon::composeMachineFilePath(m_pNameAndSystemEditor, wizardWindow<UIWizardNewVM>()); 99 99 if (!m_userModifiedParameters.contains("MediumPath")) 100 100 updateVirtualMediumPathFromMachinePathName(); … … 104 104 } 105 105 106 void UIWizardNewVM PageExpert::sltPathChanged(const QString &strNewPath)106 void UIWizardNewVMExpertPage::sltPathChanged(const QString &strNewPath) 107 107 { 108 108 Q_UNUSED(strNewPath); 109 UIWizardNewVMNameOSType Page::composeMachineFilePath(m_pNameAndSystemEditor, wizardWindow<UIWizardNewVM>());109 UIWizardNewVMNameOSTypeCommon::composeMachineFilePath(m_pNameAndSystemEditor, wizardWindow<UIWizardNewVM>()); 110 110 if (!m_userModifiedParameters.contains("MediumPath")) 111 111 updateVirtualMediumPathFromMachinePathName(); 112 112 } 113 113 114 void UIWizardNewVM PageExpert::sltOsTypeChanged()114 void UIWizardNewVMExpertPage::sltOsTypeChanged() 115 115 { 116 116 AssertReturnVoid(wizardWindow<UIWizardNewVM>()); … … 121 121 } 122 122 123 void UIWizardNewVM PageExpert::sltGetWithFileOpenDialog()123 void UIWizardNewVMExpertPage::sltGetWithFileOpenDialog() 124 124 { 125 125 UIWizardNewVM *pWizard = wizardWindow<UIWizardNewVM>(); … … 127 127 const CGuestOSType &comOSType = pWizard->guestOSType(); 128 128 AssertReturnVoid(!comOSType.isNull()); 129 QUuid uMediumId = UIWizardNewVMDisk Page::getWithFileOpenDialog(comOSType.GetId(),130 pWizard->machineFolder(),131 pWizard->machineBaseName(),132 this);129 QUuid uMediumId = UIWizardNewVMDiskCommon::getWithFileOpenDialog(comOSType.GetId(), 130 pWizard->machineFolder(), 131 pWizard->machineBaseName(), 132 this); 133 133 if (!uMediumId.isNull()) 134 134 { … … 138 138 } 139 139 140 void UIWizardNewVM PageExpert::sltISOPathChanged(const QString &strISOPath)140 void UIWizardNewVMExpertPage::sltISOPathChanged(const QString &strISOPath) 141 141 { 142 142 UIWizardNewVM *pWizard = wizardWindow<UIWizardNewVM>(); 143 143 AssertReturnVoid(pWizard); 144 144 145 UIWizardNewVMNameOSType Page::determineOSType(strISOPath, pWizard);145 UIWizardNewVMNameOSTypeCommon::determineOSType(strISOPath, pWizard); 146 146 147 147 if (!pWizard->detectedOSTypeId().isEmpty() && !m_userModifiedParameters.contains("GuestOSType")) 148 UIWizardNewVMNameOSType Page::guessOSTypeFromName(m_pNameAndSystemEditor, pWizard->detectedOSTypeId());148 UIWizardNewVMNameOSTypeCommon::guessOSTypeFromName(m_pNameAndSystemEditor, pWizard->detectedOSTypeId()); 149 149 pWizard->setISOFilePath(strISOPath); 150 150 … … 158 158 } 159 159 160 void UIWizardNewVM PageExpert::sltGAISOPathChanged(const QString &strPath)160 void UIWizardNewVMExpertPage::sltGAISOPathChanged(const QString &strPath) 161 161 { 162 162 AssertReturnVoid(wizardWindow<UIWizardNewVM>()); … … 166 166 } 167 167 168 void UIWizardNewVM PageExpert::sltInstallGACheckBoxToggle(bool fEnabled)168 void UIWizardNewVMExpertPage::sltInstallGACheckBoxToggle(bool fEnabled) 169 169 { 170 170 AssertReturnVoid(wizardWindow<UIWizardNewVM>()); … … 174 174 } 175 175 176 void UIWizardNewVM PageExpert::sltOSFamilyTypeChanged(const QString &strGuestOSFamilyType)176 void UIWizardNewVMExpertPage::sltOSFamilyTypeChanged(const QString &strGuestOSFamilyType) 177 177 { 178 178 AssertReturnVoid(wizardWindow<UIWizardNewVM>()); … … 183 183 } 184 184 185 void UIWizardNewVM PageExpert::retranslateUi()185 void UIWizardNewVMExpertPage::retranslateUi() 186 186 { 187 187 if (m_pSkipUnattendedCheckBox) … … 214 214 } 215 215 216 void UIWizardNewVM PageExpert::createConnections()216 void UIWizardNewVMExpertPage::createConnections() 217 217 { 218 218 /* Connections for Name, OS Type, and unattended install stuff: */ … … 220 220 { 221 221 connect(m_pNameAndSystemEditor, &UINameAndSystemEditor::sigNameChanged, 222 this, &UIWizardNewVM PageExpert::sltNameChanged);222 this, &UIWizardNewVMExpertPage::sltNameChanged); 223 223 connect(m_pNameAndSystemEditor, &UINameAndSystemEditor::sigPathChanged, 224 this, &UIWizardNewVM PageExpert::sltPathChanged);224 this, &UIWizardNewVMExpertPage::sltPathChanged); 225 225 connect(m_pNameAndSystemEditor, &UINameAndSystemEditor::sigOsTypeChanged, 226 this, &UIWizardNewVM PageExpert::sltOsTypeChanged);226 this, &UIWizardNewVMExpertPage::sltOsTypeChanged); 227 227 connect(m_pNameAndSystemEditor, &UINameAndSystemEditor::sigOSFamilyChanged, 228 this, &UIWizardNewVM PageExpert::sltOSFamilyTypeChanged);228 this, &UIWizardNewVMExpertPage::sltOSFamilyTypeChanged); 229 229 connect(m_pNameAndSystemEditor, &UINameAndSystemEditor::sigImageChanged, 230 this, &UIWizardNewVM PageExpert::sltISOPathChanged);230 this, &UIWizardNewVMExpertPage::sltISOPathChanged); 231 231 } 232 232 … … 234 234 { 235 235 connect(m_pHardwareWidgetContainer, &UINewVMHardwareContainer::sigMemorySizeChanged, 236 this, &UIWizardNewVM PageExpert::sltMemorySizeChanged);236 this, &UIWizardNewVMExpertPage::sltMemorySizeChanged); 237 237 connect(m_pHardwareWidgetContainer, &UINewVMHardwareContainer::sigCPUCountChanged, 238 this, &UIWizardNewVM PageExpert::sltCPUCountChanged);238 this, &UIWizardNewVMExpertPage::sltCPUCountChanged); 239 239 connect(m_pHardwareWidgetContainer, &UINewVMHardwareContainer::sigEFIEnabledChanged, 240 this, &UIWizardNewVM PageExpert::sltEFIEnabledChanged);240 this, &UIWizardNewVMExpertPage::sltEFIEnabledChanged); 241 241 } 242 242 /* Connections for username, password, and hostname, etc: */ … … 244 244 { 245 245 connect(m_pGAInstallationISOContainer, &UIGAInstallationGroupBox::sigPathChanged, 246 this, &UIWizardNewVM PageExpert::sltGAISOPathChanged);246 this, &UIWizardNewVMExpertPage::sltGAISOPathChanged); 247 247 connect(m_pGAInstallationISOContainer, &UIGAInstallationGroupBox::toggled, 248 this, &UIWizardNewVM PageExpert::sltInstallGACheckBoxToggle);248 this, &UIWizardNewVMExpertPage::sltInstallGACheckBoxToggle); 249 249 } 250 250 … … 252 252 { 253 253 connect(m_pUserNamePasswordGroupBox, &UIUserNamePasswordGroupBox::sigPasswordChanged, 254 this, &UIWizardNewVM PageExpert::sltPasswordChanged);254 this, &UIWizardNewVMExpertPage::sltPasswordChanged); 255 255 connect(m_pUserNamePasswordGroupBox, &UIUserNamePasswordGroupBox::sigUserNameChanged, 256 this, &UIWizardNewVM PageExpert::sltUserNameChanged);256 this, &UIWizardNewVMExpertPage::sltUserNameChanged); 257 257 } 258 258 … … 260 260 { 261 261 connect(m_pAdditionalOptionsContainer, &UIAdditionalUnattendedOptions::sigHostnameDomainNameChanged, 262 this, &UIWizardNewVM PageExpert::sltHostnameDomainNameChanged);262 this, &UIWizardNewVMExpertPage::sltHostnameDomainNameChanged); 263 263 connect(m_pAdditionalOptionsContainer, &UIAdditionalUnattendedOptions::sigProductKeyChanged, 264 this, &UIWizardNewVM PageExpert::sltProductKeyChanged);264 this, &UIWizardNewVMExpertPage::sltProductKeyChanged); 265 265 connect(m_pAdditionalOptionsContainer, &UIAdditionalUnattendedOptions::sigStartHeadlessChanged, 266 this, &UIWizardNewVM PageExpert::sltStartHeadlessChanged);266 this, &UIWizardNewVMExpertPage::sltStartHeadlessChanged); 267 267 } 268 268 … … 270 270 if (m_pDiskSourceButtonGroup) 271 271 connect(m_pDiskSourceButtonGroup, static_cast<void(QButtonGroup::*)(QAbstractButton *)>(&QButtonGroup::buttonClicked), 272 this, &UIWizardNewVM PageExpert::sltSelectedDiskSourceChanged);272 this, &UIWizardNewVMExpertPage::sltSelectedDiskSourceChanged); 273 273 274 274 if (m_pSkipUnattendedCheckBox) 275 275 connect(m_pSkipUnattendedCheckBox, &QCheckBox::toggled, 276 this, &UIWizardNewVM PageExpert::sltSkipUnattendedCheckBoxChecked);276 this, &UIWizardNewVMExpertPage::sltSkipUnattendedCheckBoxChecked); 277 277 278 278 if (m_pSizeAndLocationGroup) 279 279 { 280 280 connect(m_pSizeAndLocationGroup, &UIMediumSizeAndPathGroupBox::sigMediumSizeChanged, 281 this, &UIWizardNewVM PageExpert::sltMediumSizeChanged);281 this, &UIWizardNewVMExpertPage::sltMediumSizeChanged); 282 282 connect(m_pSizeAndLocationGroup, &UIMediumSizeAndPathGroupBox::sigMediumPathChanged, 283 this, &UIWizardNewVM PageExpert::sltMediumPathChanged);283 this, &UIWizardNewVMExpertPage::sltMediumPathChanged); 284 284 connect(m_pSizeAndLocationGroup, &UIMediumSizeAndPathGroupBox::sigMediumLocationButtonClicked, 285 this, &UIWizardNewVM PageExpert::sltMediumLocationButtonClicked);285 this, &UIWizardNewVMExpertPage::sltMediumLocationButtonClicked); 286 286 } 287 287 288 288 if (m_pDiskSelectionButton) 289 289 connect(m_pDiskSelectionButton, &QIToolButton::clicked, 290 this, &UIWizardNewVM PageExpert::sltGetWithFileOpenDialog);290 this, &UIWizardNewVMExpertPage::sltGetWithFileOpenDialog); 291 291 292 292 if (m_pDiskSelector) 293 293 connect(m_pDiskSelector, static_cast<void(UIMediaComboBox::*)(int)>(&UIMediaComboBox::currentIndexChanged), 294 this, &UIWizardNewVM PageExpert::sltMediaComboBoxIndexChanged);294 this, &UIWizardNewVMExpertPage::sltMediaComboBoxIndexChanged); 295 295 296 296 connect(m_pFormatButtonGroup, &UIDiskFormatsGroupBox::sigMediumFormatChanged, 297 this, &UIWizardNewVM PageExpert::sltMediumFormatChanged);297 this, &UIWizardNewVMExpertPage::sltMediumFormatChanged); 298 298 299 299 connect(m_pDiskVariantGroupBox, &UIDiskVariantGroupBox::sigMediumVariantChanged, 300 this, &UIWizardNewVM PageExpert::sltMediumVariantChanged);301 } 302 303 void UIWizardNewVM PageExpert::setOSTypeDependedValues()300 this, &UIWizardNewVMExpertPage::sltMediumVariantChanged); 301 } 302 303 void UIWizardNewVMExpertPage::setOSTypeDependedValues() 304 304 { 305 305 UIWizardNewVM *pWizard = wizardWindow<UIWizardNewVM>(); … … 356 356 } 357 357 358 void UIWizardNewVM PageExpert::initializePage()358 void UIWizardNewVMExpertPage::initializePage() 359 359 { 360 360 /* We need not to check existence of parameter within m_userModifiedParameters since initializePage() runs … … 402 402 } 403 403 404 void UIWizardNewVM PageExpert::markWidgets() const404 void UIWizardNewVMExpertPage::markWidgets() const 405 405 { 406 406 if (m_pNameAndSystemEditor) 407 407 { 408 408 m_pNameAndSystemEditor->markNameEditor(m_pNameAndSystemEditor->name().isEmpty()); 409 m_pNameAndSystemEditor->markImageEditor(!UIWizardNewVMNameOSType Page::checkISOFile(m_pNameAndSystemEditor),409 m_pNameAndSystemEditor->markImageEditor(!UIWizardNewVMNameOSTypeCommon::checkISOFile(m_pNameAndSystemEditor), 410 410 UIWizardNewVM::tr("Invalid file path or unreadable file")); 411 411 } … … 417 417 } 418 418 419 QWidget *UIWizardNewVM PageExpert::createUnattendedWidgets()419 QWidget *UIWizardNewVMExpertPage::createUnattendedWidgets() 420 420 { 421 421 QWidget *pContainerWidget = new QWidget; … … 441 441 } 442 442 443 QWidget *UIWizardNewVM PageExpert::createNewDiskWidgets()443 QWidget *UIWizardNewVMExpertPage::createNewDiskWidgets() 444 444 { 445 445 QWidget *pNewDiskContainerWidget = new QWidget; … … 456 456 } 457 457 458 QWidget *UIWizardNewVM PageExpert::createDiskWidgets()458 QWidget *UIWizardNewVMExpertPage::createDiskWidgets() 459 459 { 460 460 QWidget *pDiskContainer = new QWidget; … … 491 491 } 492 492 493 bool UIWizardNewVM PageExpert::isComplete() const493 bool UIWizardNewVMExpertPage::isComplete() const 494 494 { 495 495 markWidgets(); … … 507 507 { 508 508 /* Check the installation medium: */ 509 if (!UIWizardNewVMNameOSType Page::checkISOFile(m_pNameAndSystemEditor))509 if (!UIWizardNewVMNameOSTypeCommon::checkISOFile(m_pNameAndSystemEditor)) 510 510 { 511 511 m_pToolBox->setPageTitleIcon(ExpertToolboxItems_NameAndOSType, … … 554 554 fIsComplete = false; 555 555 } 556 if (!UIWizardNewVMNameOSType Page::checkISOFile(m_pNameAndSystemEditor))556 if (!UIWizardNewVMNameOSTypeCommon::checkISOFile(m_pNameAndSystemEditor)) 557 557 { 558 558 m_pToolBox->setPageTitleIcon(ExpertToolboxItems_NameAndOSType, … … 583 583 } 584 584 585 bool UIWizardNewVM PageExpert::validatePage()585 bool UIWizardNewVMExpertPage::validatePage() 586 586 { 587 587 UIWizardNewVM *pWizard = wizardWindow<UIWizardNewVM>(); … … 627 627 } 628 628 629 bool UIWizardNewVM PageExpert::isProductKeyWidgetEnabled() const629 bool UIWizardNewVMExpertPage::isProductKeyWidgetEnabled() const 630 630 { 631 631 UIWizardNewVM *pWizard = wizardWindow<UIWizardNewVM>(); … … 635 635 } 636 636 637 void UIWizardNewVM PageExpert::disableEnableUnattendedRelatedWidgets(bool fEnabled)637 void UIWizardNewVMExpertPage::disableEnableUnattendedRelatedWidgets(bool fEnabled) 638 638 { 639 639 if (m_pUserNamePasswordGroupBox) … … 646 646 } 647 647 648 void UIWizardNewVM PageExpert::sltSkipUnattendedCheckBoxChecked(bool fSkip)648 void UIWizardNewVMExpertPage::sltSkipUnattendedCheckBoxChecked(bool fSkip) 649 649 { 650 650 AssertReturnVoid(wizardWindow<UIWizardNewVM>()); … … 655 655 } 656 656 657 void UIWizardNewVM PageExpert::sltMediumFormatChanged()657 void UIWizardNewVMExpertPage::sltMediumFormatChanged() 658 658 { 659 659 AssertReturnVoid(wizardWindow<UIWizardNewVM>()); … … 667 667 } 668 668 669 void UIWizardNewVM PageExpert::sltMediumSizeChanged(qulonglong uSize)669 void UIWizardNewVMExpertPage::sltMediumSizeChanged(qulonglong uSize) 670 670 { 671 671 AssertReturnVoid(wizardWindow<UIWizardNewVM>()); … … 675 675 } 676 676 677 void UIWizardNewVM PageExpert::sltMediumPathChanged(const QString &strPath)677 void UIWizardNewVMExpertPage::sltMediumPathChanged(const QString &strPath) 678 678 { 679 679 AssertReturnVoid(wizardWindow<UIWizardNewVM>()); … … 683 683 } 684 684 685 void UIWizardNewVM PageExpert::sltMediumLocationButtonClicked()685 void UIWizardNewVMExpertPage::sltMediumLocationButtonClicked() 686 686 { 687 687 UIWizardNewVM *pWizard = wizardWindow<UIWizardNewVM>(); … … 699 699 } 700 700 701 void UIWizardNewVM PageExpert::sltMediumVariantChanged(qulonglong uVariant)701 void UIWizardNewVMExpertPage::sltMediumVariantChanged(qulonglong uVariant) 702 702 { 703 703 AssertReturnVoid(wizardWindow<UIWizardNewVM>()); … … 706 706 } 707 707 708 void UIWizardNewVM PageExpert::sltMediaComboBoxIndexChanged()708 void UIWizardNewVMExpertPage::sltMediaComboBoxIndexChanged() 709 709 { 710 710 AssertReturnVoid(wizardWindow<UIWizardNewVM>()); … … 715 715 } 716 716 717 void UIWizardNewVM PageExpert::sltSelectedDiskSourceChanged()717 void UIWizardNewVMExpertPage::sltSelectedDiskSourceChanged() 718 718 { 719 719 AssertReturnVoid(m_pDiskSelector && m_pDiskSourceButtonGroup); … … 736 736 } 737 737 738 void UIWizardNewVM PageExpert::sltMemorySizeChanged(int iValue)738 void UIWizardNewVMExpertPage::sltMemorySizeChanged(int iValue) 739 739 { 740 740 AssertReturnVoid(wizardWindow<UIWizardNewVM>()); … … 743 743 } 744 744 745 void UIWizardNewVM PageExpert::sltCPUCountChanged(int iCount)745 void UIWizardNewVMExpertPage::sltCPUCountChanged(int iCount) 746 746 { 747 747 AssertReturnVoid(wizardWindow<UIWizardNewVM>()); … … 749 749 } 750 750 751 void UIWizardNewVM PageExpert::sltEFIEnabledChanged(bool fEnabled)751 void UIWizardNewVMExpertPage::sltEFIEnabledChanged(bool fEnabled) 752 752 { 753 753 AssertReturnVoid(wizardWindow<UIWizardNewVM>()); … … 756 756 } 757 757 758 void UIWizardNewVM PageExpert::sltPasswordChanged(const QString &strPassword)758 void UIWizardNewVMExpertPage::sltPasswordChanged(const QString &strPassword) 759 759 { 760 760 AssertReturnVoid(wizardWindow<UIWizardNewVM>()); … … 764 764 } 765 765 766 void UIWizardNewVM PageExpert::sltUserNameChanged(const QString &strUserName)766 void UIWizardNewVMExpertPage::sltUserNameChanged(const QString &strUserName) 767 767 { 768 768 AssertReturnVoid(wizardWindow<UIWizardNewVM>()); … … 772 772 } 773 773 774 void UIWizardNewVM PageExpert::sltHostnameDomainNameChanged(const QString &strHostnameDomainName)774 void UIWizardNewVMExpertPage::sltHostnameDomainNameChanged(const QString &strHostnameDomainName) 775 775 { 776 776 AssertReturnVoid(wizardWindow<UIWizardNewVM>()); … … 780 780 } 781 781 782 void UIWizardNewVM PageExpert::sltProductKeyChanged(const QString &strProductKey)782 void UIWizardNewVMExpertPage::sltProductKeyChanged(const QString &strProductKey) 783 783 { 784 784 AssertReturnVoid(wizardWindow<UIWizardNewVM>()); … … 787 787 } 788 788 789 void UIWizardNewVM PageExpert::sltStartHeadlessChanged(bool fStartHeadless)789 void UIWizardNewVMExpertPage::sltStartHeadlessChanged(bool fStartHeadless) 790 790 { 791 791 AssertReturnVoid(wizardWindow<UIWizardNewVM>()); … … 794 794 } 795 795 796 void UIWizardNewVM PageExpert::updateVirtualMediumPathFromMachinePathName()796 void UIWizardNewVMExpertPage::updateVirtualMediumPathFromMachinePathName() 797 797 { 798 798 UIWizardNewVM *pWizard = wizardWindow<UIWizardNewVM>(); … … 820 820 } 821 821 822 void UIWizardNewVM PageExpert::updateDiskWidgetsAfterMediumFormatChange()822 void UIWizardNewVMExpertPage::updateDiskWidgetsAfterMediumFormatChange() 823 823 { 824 824 UIWizardNewVM *pWizard = wizardWindow<UIWizardNewVM>(); … … 840 840 } 841 841 842 void UIWizardNewVM PageExpert::setEnableNewDiskWidgets(bool fEnable)842 void UIWizardNewVMExpertPage::setEnableNewDiskWidgets(bool fEnable) 843 843 { 844 844 if (m_pSizeAndLocationGroup) … … 850 850 } 851 851 852 QWidget *UIWizardNewVM PageExpert::createNameOSTypeWidgets()852 QWidget *UIWizardNewVMExpertPage::createNameOSTypeWidgets() 853 853 { 854 854 QWidget *pContainerWidget = new QWidget; … … 870 870 } 871 871 872 void UIWizardNewVM PageExpert::setSkipCheckBoxEnable()872 void UIWizardNewVMExpertPage::setSkipCheckBoxEnable() 873 873 { 874 874 AssertReturnVoid(m_pSkipUnattendedCheckBox && m_pNameAndSystemEditor); … … 879 879 return; 880 880 } 881 m_pSkipUnattendedCheckBox->setEnabled(UIWizardNewVMNameOSType Page::checkISOFile(m_pNameAndSystemEditor));882 } 883 884 void UIWizardNewVM PageExpert::updateHostnameDomainNameFromMachineName()881 m_pSkipUnattendedCheckBox->setEnabled(UIWizardNewVMNameOSTypeCommon::checkISOFile(m_pNameAndSystemEditor)); 882 } 883 884 void UIWizardNewVMExpertPage::updateHostnameDomainNameFromMachineName() 885 885 { 886 886 if (!m_pAdditionalOptionsContainer) … … 898 898 } 899 899 900 bool UIWizardNewVM PageExpert::isUnattendedEnabled() const900 bool UIWizardNewVMExpertPage::isUnattendedEnabled() const 901 901 { 902 902 UIWizardNewVM *pWizard = wizardWindow<UIWizardNewVM>(); … … 905 905 } 906 906 907 void UIWizardNewVM PageExpert::setEnableDiskSelectionWidgets(bool fEnabled)907 void UIWizardNewVMExpertPage::setEnableDiskSelectionWidgets(bool fEnabled) 908 908 { 909 909 if (!m_pDiskSelector || !m_pDiskSelectionButton) -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVMExpertPage.h
r91058 r91059 1 1 /* $Id$ */ 2 2 /** @file 3 * VBox Qt GUI - UIWizardNewVM PageExpertclass declaration.3 * VBox Qt GUI - UIWizardNewVMExpertPage class declaration. 4 4 */ 5 5 … … 16 16 */ 17 17 18 #ifndef FEQT_INCLUDED_SRC_wizards_newvm_UIWizardNewVM PageExpert_h19 #define FEQT_INCLUDED_SRC_wizards_newvm_UIWizardNewVM PageExpert_h18 #ifndef FEQT_INCLUDED_SRC_wizards_newvm_UIWizardNewVMExpertPage_h 19 #define FEQT_INCLUDED_SRC_wizards_newvm_UIWizardNewVMExpertPage_h 20 20 #ifndef RT_WITHOUT_PRAGMA_ONCE 21 21 # pragma once … … 27 27 /* GUI includes: */ 28 28 #include "UINativeWizardPage.h" 29 #include "UIWizardNewVMDiskPage Basic.h"29 #include "UIWizardNewVMDiskPage.h" 30 30 31 31 /* Forward declarations: */ … … 47 47 48 48 /** Expert page of the New Virtual Machine wizard. */ 49 class UIWizardNewVM PageExpert: public UINativeWizardPage49 class UIWizardNewVMExpertPage : public UINativeWizardPage 50 50 { 51 51 Q_OBJECT; … … 53 53 public: 54 54 55 UIWizardNewVM PageExpert();55 UIWizardNewVMExpertPage(); 56 56 57 57 private slots: … … 151 151 }; 152 152 153 #endif /* !FEQT_INCLUDED_SRC_wizards_newvm_UIWizardNewVM PageExpert_h */153 #endif /* !FEQT_INCLUDED_SRC_wizards_newvm_UIWizardNewVMExpertPage_h */ -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVMHardwarePage.cpp
r91058 r91059 1 1 /* $Id$ */ 2 2 /** @file 3 * VBox Qt GUI - UIWizardNewVMHardwarePage Basicclass implementation.3 * VBox Qt GUI - UIWizardNewVMHardwarePage class implementation. 4 4 */ 5 5 … … 25 25 #include "UIWizardNewVM.h" 26 26 #include "UIWizardNewVMEditors.h" 27 #include "UIWizardNewVMHardwarePage Basic.h"27 #include "UIWizardNewVMHardwarePage.h" 28 28 29 29 /* COM includes: */ 30 30 #include "CGuestOSType.h" 31 31 32 UIWizardNewVMHardwarePage Basic::UIWizardNewVMHardwarePageBasic()32 UIWizardNewVMHardwarePage::UIWizardNewVMHardwarePage() 33 33 : m_pLabel(0) 34 34 , m_pHardwareWidgetContainer(0) … … 38 38 } 39 39 40 void UIWizardNewVMHardwarePage Basic::prepare()40 void UIWizardNewVMHardwarePage::prepare() 41 41 { 42 42 QVBoxLayout *pMainLayout = new QVBoxLayout(this); … … 52 52 } 53 53 54 void UIWizardNewVMHardwarePage Basic::createConnections()54 void UIWizardNewVMHardwarePage::createConnections() 55 55 { 56 56 if (m_pHardwareWidgetContainer) 57 57 { 58 58 connect(m_pHardwareWidgetContainer, &UINewVMHardwareContainer::sigMemorySizeChanged, 59 this, &UIWizardNewVMHardwarePage Basic::sltMemorySizeChanged);59 this, &UIWizardNewVMHardwarePage::sltMemorySizeChanged); 60 60 connect(m_pHardwareWidgetContainer, &UINewVMHardwareContainer::sigCPUCountChanged, 61 this, &UIWizardNewVMHardwarePage Basic::sltCPUCountChanged);61 this, &UIWizardNewVMHardwarePage::sltCPUCountChanged); 62 62 connect(m_pHardwareWidgetContainer, &UINewVMHardwareContainer::sigEFIEnabledChanged, 63 this, &UIWizardNewVMHardwarePage Basic::sltEFIEnabledChanged);63 this, &UIWizardNewVMHardwarePage::sltEFIEnabledChanged); 64 64 } 65 65 } 66 66 67 void UIWizardNewVMHardwarePage Basic::retranslateUi()67 void UIWizardNewVMHardwarePage::retranslateUi() 68 68 { 69 69 setTitle(UIWizardNewVM::tr("Hardware")); … … 74 74 } 75 75 76 void UIWizardNewVMHardwarePage Basic::initializePage()76 void UIWizardNewVMHardwarePage::initializePage() 77 77 { 78 78 retranslateUi(); … … 98 98 } 99 99 100 bool UIWizardNewVMHardwarePage Basic::isComplete() const100 bool UIWizardNewVMHardwarePage::isComplete() const 101 101 { 102 102 return true; 103 103 } 104 104 105 void UIWizardNewVMHardwarePage Basic::sltMemorySizeChanged(int iValue)105 void UIWizardNewVMHardwarePage::sltMemorySizeChanged(int iValue) 106 106 { 107 107 AssertReturnVoid(wizardWindow<UIWizardNewVM>()); … … 110 110 } 111 111 112 void UIWizardNewVMHardwarePage Basic::sltCPUCountChanged(int iCount)112 void UIWizardNewVMHardwarePage::sltCPUCountChanged(int iCount) 113 113 { 114 114 AssertReturnVoid(wizardWindow<UIWizardNewVM>()); … … 116 116 } 117 117 118 void UIWizardNewVMHardwarePage Basic::sltEFIEnabledChanged(bool fEnabled)118 void UIWizardNewVMHardwarePage::sltEFIEnabledChanged(bool fEnabled) 119 119 { 120 120 AssertReturnVoid(wizardWindow<UIWizardNewVM>()); -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVMHardwarePage.h
r91058 r91059 1 1 /* $Id$ */ 2 2 /** @file 3 * VBox Qt GUI - UIWizardNewVMHardwarePage Basicclass declaration.3 * VBox Qt GUI - UIWizardNewVMHardwarePage class declaration. 4 4 */ 5 5 … … 16 16 */ 17 17 18 #ifndef FEQT_INCLUDED_SRC_wizards_newvm_UIWizardNewVMHardwarePage Basic_h19 #define FEQT_INCLUDED_SRC_wizards_newvm_UIWizardNewVMHardwarePage Basic_h18 #ifndef FEQT_INCLUDED_SRC_wizards_newvm_UIWizardNewVMHardwarePage_h 19 #define FEQT_INCLUDED_SRC_wizards_newvm_UIWizardNewVMHardwarePage_h 20 20 #ifndef RT_WITHOUT_PRAGMA_ONCE 21 21 # pragma once … … 32 32 class UINewVMHardwareContainer; 33 33 34 class UIWizardNewVMHardwarePage Basic: public UINativeWizardPage34 class UIWizardNewVMHardwarePage : public UINativeWizardPage 35 35 { 36 36 Q_OBJECT; … … 38 38 public: 39 39 40 UIWizardNewVMHardwarePage Basic();40 UIWizardNewVMHardwarePage(); 41 41 42 42 private slots: … … 66 66 }; 67 67 68 #endif /* !FEQT_INCLUDED_SRC_wizards_newvm_UIWizardNewVMHardwarePage Basic_h */68 #endif /* !FEQT_INCLUDED_SRC_wizards_newvm_UIWizardNewVMHardwarePage_h */ -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVMNameOSTypePage.cpp
r91058 r91059 26 26 #include "UIMessageCenter.h" 27 27 #include "UINameAndSystemEditor.h" 28 #include "UIWizardNewVMNameOSTypePage Basic.h"28 #include "UIWizardNewVMNameOSTypePage.h" 29 29 #include "UIWizardNewVM.h" 30 30 … … 173 173 }; 174 174 175 bool UIWizardNewVMNameOSType Page::guessOSTypeFromName(UINameAndSystemEditor *pNameAndSystemEditor, QString strNewName)175 bool UIWizardNewVMNameOSTypeCommon::guessOSTypeFromName(UINameAndSystemEditor *pNameAndSystemEditor, QString strNewName) 176 176 { 177 177 CHost host = uiCommon().host(); … … 196 196 } 197 197 198 void UIWizardNewVMNameOSType Page::composeMachineFilePath(UINameAndSystemEditor *pNameAndSystemEditor,198 void UIWizardNewVMNameOSTypeCommon::composeMachineFilePath(UINameAndSystemEditor *pNameAndSystemEditor, 199 199 UIWizardNewVM *pWizard) 200 200 { … … 217 217 } 218 218 219 bool UIWizardNewVMNameOSType Page::createMachineFolder(UINameAndSystemEditor *pNameAndSystemEditor,219 bool UIWizardNewVMNameOSTypeCommon::createMachineFolder(UINameAndSystemEditor *pNameAndSystemEditor, 220 220 UINativeWizardPage *pCaller, 221 221 UIWizardNewVM *pWizard) … … 258 258 } 259 259 260 bool UIWizardNewVMNameOSType Page::cleanupMachineFolder(UIWizardNewVM *pWizard, bool fWizardCancel /* = false */)260 bool UIWizardNewVMNameOSTypeCommon::cleanupMachineFolder(UIWizardNewVM *pWizard, bool fWizardCancel /* = false */) 261 261 { 262 262 if (!pWizard) … … 281 281 } 282 282 283 void UIWizardNewVMNameOSType Page::determineOSType(const QString &strISOPath, UIWizardNewVM *pWizard)283 void UIWizardNewVMNameOSTypeCommon::determineOSType(const QString &strISOPath, UIWizardNewVM *pWizard) 284 284 { 285 285 if (!pWizard) … … 299 299 } 300 300 301 bool UIWizardNewVMNameOSType Page::checkISOFile(UINameAndSystemEditor *pNameAndSystemEditor)301 bool UIWizardNewVMNameOSTypeCommon::checkISOFile(UINameAndSystemEditor *pNameAndSystemEditor) 302 302 { 303 303 if (!pNameAndSystemEditor) … … 312 312 } 313 313 314 UIWizardNewVMNameOSTypePage Basic::UIWizardNewVMNameOSTypePageBasic()314 UIWizardNewVMNameOSTypePage::UIWizardNewVMNameOSTypePage() 315 315 : m_pNameAndSystemLayout(0) 316 316 , m_pNameAndSystemEditor(0) … … 321 321 } 322 322 323 void UIWizardNewVMNameOSTypePage Basic::prepare()323 void UIWizardNewVMNameOSTypePage::prepare() 324 324 { 325 325 QVBoxLayout *pPageLayout = new QVBoxLayout(this); … … 339 339 } 340 340 341 void UIWizardNewVMNameOSTypePage Basic::createConnections()341 void UIWizardNewVMNameOSTypePage::createConnections() 342 342 { 343 343 if (m_pNameAndSystemEditor) 344 344 { 345 connect(m_pNameAndSystemEditor, &UINameAndSystemEditor::sigNameChanged, this, &UIWizardNewVMNameOSTypePage Basic::sltNameChanged);346 connect(m_pNameAndSystemEditor, &UINameAndSystemEditor::sigPathChanged, this, &UIWizardNewVMNameOSTypePage Basic::sltPathChanged);347 connect(m_pNameAndSystemEditor, &UINameAndSystemEditor::sigOsTypeChanged, this, &UIWizardNewVMNameOSTypePage Basic::sltOsTypeChanged);348 connect(m_pNameAndSystemEditor, &UINameAndSystemEditor::sigImageChanged, this, &UIWizardNewVMNameOSTypePage Basic::sltISOPathChanged);349 connect(m_pNameAndSystemEditor, &UINameAndSystemEditor::sigOSFamilyChanged, this, &UIWizardNewVMNameOSTypePage Basic::sltGuestOSFamilyChanged);345 connect(m_pNameAndSystemEditor, &UINameAndSystemEditor::sigNameChanged, this, &UIWizardNewVMNameOSTypePage::sltNameChanged); 346 connect(m_pNameAndSystemEditor, &UINameAndSystemEditor::sigPathChanged, this, &UIWizardNewVMNameOSTypePage::sltPathChanged); 347 connect(m_pNameAndSystemEditor, &UINameAndSystemEditor::sigOsTypeChanged, this, &UIWizardNewVMNameOSTypePage::sltOsTypeChanged); 348 connect(m_pNameAndSystemEditor, &UINameAndSystemEditor::sigImageChanged, this, &UIWizardNewVMNameOSTypePage::sltISOPathChanged); 349 connect(m_pNameAndSystemEditor, &UINameAndSystemEditor::sigOSFamilyChanged, this, &UIWizardNewVMNameOSTypePage::sltGuestOSFamilyChanged); 350 350 } 351 351 if (m_pSkipUnattendedCheckBox) 352 connect(m_pSkipUnattendedCheckBox, &QCheckBox::toggled, this, &UIWizardNewVMNameOSTypePage Basic::sltSkipUnattendedInstallChanged);353 } 354 355 bool UIWizardNewVMNameOSTypePage Basic::isComplete() const352 connect(m_pSkipUnattendedCheckBox, &QCheckBox::toggled, this, &UIWizardNewVMNameOSTypePage::sltSkipUnattendedInstallChanged); 353 } 354 355 bool UIWizardNewVMNameOSTypePage::isComplete() const 356 356 { 357 357 markWidgets(); 358 358 if (m_pNameAndSystemEditor->name().isEmpty()) 359 359 return false; 360 return UIWizardNewVMNameOSType Page::checkISOFile(m_pNameAndSystemEditor);361 } 362 363 void UIWizardNewVMNameOSTypePage Basic::sltNameChanged(const QString &strNewName)360 return UIWizardNewVMNameOSTypeCommon::checkISOFile(m_pNameAndSystemEditor); 361 } 362 363 void UIWizardNewVMNameOSTypePage::sltNameChanged(const QString &strNewName) 364 364 { 365 365 AssertReturnVoid(wizardWindow<UIWizardNewVM>()); … … 367 367 { 368 368 m_pNameAndSystemEditor->blockSignals(true); 369 if (UIWizardNewVMNameOSType Page::guessOSTypeFromName(m_pNameAndSystemEditor, strNewName))369 if (UIWizardNewVMNameOSTypeCommon::guessOSTypeFromName(m_pNameAndSystemEditor, strNewName)) 370 370 wizardWindow<UIWizardNewVM>()->setGuestOSType(m_pNameAndSystemEditor->type()); 371 371 m_pNameAndSystemEditor->blockSignals(false); 372 372 } 373 UIWizardNewVMNameOSType Page::composeMachineFilePath(m_pNameAndSystemEditor, wizardWindow<UIWizardNewVM>());373 UIWizardNewVMNameOSTypeCommon::composeMachineFilePath(m_pNameAndSystemEditor, wizardWindow<UIWizardNewVM>()); 374 374 emit completeChanged(); 375 375 } 376 376 377 void UIWizardNewVMNameOSTypePage Basic::sltPathChanged(const QString &strNewPath)377 void UIWizardNewVMNameOSTypePage::sltPathChanged(const QString &strNewPath) 378 378 { 379 379 Q_UNUSED(strNewPath); 380 UIWizardNewVMNameOSType Page::composeMachineFilePath(m_pNameAndSystemEditor, wizardWindow<UIWizardNewVM>());381 } 382 383 void UIWizardNewVMNameOSTypePage Basic::sltOsTypeChanged()380 UIWizardNewVMNameOSTypeCommon::composeMachineFilePath(m_pNameAndSystemEditor, wizardWindow<UIWizardNewVM>()); 381 } 382 383 void UIWizardNewVMNameOSTypePage::sltOsTypeChanged() 384 384 { 385 385 AssertReturnVoid(wizardWindow<UIWizardNewVM>()); … … 389 389 } 390 390 391 void UIWizardNewVMNameOSTypePage Basic::retranslateUi()391 void UIWizardNewVMNameOSTypePage::retranslateUi() 392 392 { 393 393 setTitle(UIWizardNewVM::tr("Virtual machine Name and Operating System")); … … 410 410 } 411 411 412 void UIWizardNewVMNameOSTypePage Basic::initializePage()412 void UIWizardNewVMNameOSTypePage::initializePage() 413 413 { 414 414 UIWizardNewVM *pWizard = wizardWindow<UIWizardNewVM>(); … … 438 438 } 439 439 440 bool UIWizardNewVMNameOSTypePage Basic::validatePage()440 bool UIWizardNewVMNameOSTypePage::validatePage() 441 441 { 442 442 /* Try to create machine folder: */ 443 return UIWizardNewVMNameOSType Page::createMachineFolder(m_pNameAndSystemEditor, this, wizardWindow<UIWizardNewVM>());444 } 445 446 void UIWizardNewVMNameOSTypePage Basic::sltISOPathChanged(const QString &strPath)443 return UIWizardNewVMNameOSTypeCommon::createMachineFolder(m_pNameAndSystemEditor, this, wizardWindow<UIWizardNewVM>()); 444 } 445 446 void UIWizardNewVMNameOSTypePage::sltISOPathChanged(const QString &strPath) 447 447 { 448 448 UIWizardNewVM *pWizard = qobject_cast<UIWizardNewVM*>(this->wizard()); 449 449 AssertReturnVoid(pWizard); 450 UIWizardNewVMNameOSType Page::determineOSType(strPath, pWizard);450 UIWizardNewVMNameOSTypeCommon::determineOSType(strPath, pWizard); 451 451 452 452 if (!pWizard->detectedOSTypeId().isEmpty() && !m_userModifiedParameters.contains("GuestOSType")) 453 UIWizardNewVMNameOSType Page::guessOSTypeFromName(m_pNameAndSystemEditor, pWizard->detectedOSTypeId());453 UIWizardNewVMNameOSTypeCommon::guessOSTypeFromName(m_pNameAndSystemEditor, pWizard->detectedOSTypeId()); 454 454 pWizard->setISOFilePath(strPath); 455 455 … … 462 462 } 463 463 464 void UIWizardNewVMNameOSTypePage Basic::sltGuestOSFamilyChanged(const QString &strGuestOSFamilyId)464 void UIWizardNewVMNameOSTypePage::sltGuestOSFamilyChanged(const QString &strGuestOSFamilyId) 465 465 { 466 466 AssertReturnVoid(wizardWindow<UIWizardNewVM>()); … … 468 468 } 469 469 470 void UIWizardNewVMNameOSTypePage Basic::sltSkipUnattendedInstallChanged(bool fSkip)470 void UIWizardNewVMNameOSTypePage::sltSkipUnattendedInstallChanged(bool fSkip) 471 471 { 472 472 AssertReturnVoid(wizardWindow<UIWizardNewVM>()); … … 475 475 } 476 476 477 QWidget *UIWizardNewVMNameOSTypePage Basic::createNameOSTypeWidgets()477 QWidget *UIWizardNewVMNameOSTypePage::createNameOSTypeWidgets() 478 478 { 479 479 /* Prepare container widget: */ … … 507 507 } 508 508 509 void UIWizardNewVMNameOSTypePage Basic::markWidgets() const509 void UIWizardNewVMNameOSTypePage::markWidgets() const 510 510 { 511 511 if (m_pNameAndSystemEditor) 512 512 { 513 513 m_pNameAndSystemEditor->markNameEditor(m_pNameAndSystemEditor->name().isEmpty()); 514 m_pNameAndSystemEditor->markImageEditor(!UIWizardNewVMNameOSType Page::checkISOFile(m_pNameAndSystemEditor),514 m_pNameAndSystemEditor->markImageEditor(!UIWizardNewVMNameOSTypeCommon::checkISOFile(m_pNameAndSystemEditor), 515 515 UIWizardNewVM::tr("Invalid file path or unreadable file")); 516 516 } 517 517 } 518 518 519 void UIWizardNewVMNameOSTypePage Basic::setSkipCheckBoxEnable()519 void UIWizardNewVMNameOSTypePage::setSkipCheckBoxEnable() 520 520 { 521 521 if (!m_pSkipUnattendedCheckBox) … … 528 528 } 529 529 530 bool UIWizardNewVMNameOSTypePage Basic::isUnattendedEnabled() const530 bool UIWizardNewVMNameOSTypePage::isUnattendedEnabled() const 531 531 { 532 532 if (!m_pNameAndSystemEditor) -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVMNameOSTypePage.h
r91058 r91059 1 1 /* $Id$ */ 2 2 /** @file 3 * VBox Qt GUI - UIWizardNewVMNameOSTypePage Basicclass declaration.3 * VBox Qt GUI - UIWizardNewVMNameOSTypePage class declaration. 4 4 */ 5 5 … … 16 16 */ 17 17 18 #ifndef FEQT_INCLUDED_SRC_wizards_newvm_UIWizardNewVMNameOSTypePage Basic_h19 #define FEQT_INCLUDED_SRC_wizards_newvm_UIWizardNewVMNameOSTypePage Basic_h18 #ifndef FEQT_INCLUDED_SRC_wizards_newvm_UIWizardNewVMNameOSTypePage_h 19 #define FEQT_INCLUDED_SRC_wizards_newvm_UIWizardNewVMNameOSTypePage_h 20 20 #ifndef RT_WITHOUT_PRAGMA_ONCE 21 21 # pragma once … … 32 32 class UIWizardNewVM; 33 33 34 namespace UIWizardNewVMNameOSType Page34 namespace UIWizardNewVMNameOSTypeCommon 35 35 { 36 36 bool guessOSTypeFromName(UINameAndSystemEditor *pNameAndSystemEditor, QString strNewName); … … 50 50 51 51 /** 1st page of the New Virtual Machine wizard (basic extension). */ 52 class UIWizardNewVMNameOSTypePage Basic: public UINativeWizardPage52 class UIWizardNewVMNameOSTypePage : public UINativeWizardPage 53 53 { 54 54 Q_OBJECT; … … 57 57 58 58 /** Constructor. */ 59 UIWizardNewVMNameOSTypePage Basic();59 UIWizardNewVMNameOSTypePage(); 60 60 61 61 … … 99 99 }; 100 100 101 #endif /* !FEQT_INCLUDED_SRC_wizards_newvm_UIWizardNewVMNameOSTypePage Basic_h */101 #endif /* !FEQT_INCLUDED_SRC_wizards_newvm_UIWizardNewVMNameOSTypePage_h */ -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVMUnattendedPage.cpp
r91058 r91059 1 1 /* $Id$ */ 2 2 /** @file 3 * VBox Qt GUI - UIWizardNewVMUnattendedPage Basicclass implementation.3 * VBox Qt GUI - UIWizardNewVMUnattendedPage class implementation. 4 4 */ 5 5 … … 23 23 #include "QIRichTextLabel.h" 24 24 #include "UIWizardNewVMEditors.h" 25 #include "UIWizardNewVMUnattendedPage Basic.h"25 #include "UIWizardNewVMUnattendedPage.h" 26 26 #include "UIWizardNewVM.h" 27 27 28 bool UIWizardNewVMUnattended Page::checkGAISOFile(const QString &strPath)28 bool UIWizardNewVMUnattendedCommon::checkGAISOFile(const QString &strPath) 29 29 { 30 30 if (strPath.isNull() || strPath.isEmpty()) … … 36 36 } 37 37 38 UIWizardNewVMUnattendedPage Basic::UIWizardNewVMUnattendedPageBasic()38 UIWizardNewVMUnattendedPage::UIWizardNewVMUnattendedPage() 39 39 : m_pLabel(0) 40 40 , m_pAdditionalOptionsContainer(0) … … 45 45 } 46 46 47 void UIWizardNewVMUnattendedPage Basic::prepare()47 void UIWizardNewVMUnattendedPage::prepare() 48 48 { 49 49 QGridLayout *pMainLayout = new QGridLayout(this); … … 70 70 } 71 71 72 void UIWizardNewVMUnattendedPage Basic::createConnections()72 void UIWizardNewVMUnattendedPage::createConnections() 73 73 { 74 74 if (m_pUserNamePasswordGroupBox) 75 75 { 76 76 connect(m_pUserNamePasswordGroupBox, &UIUserNamePasswordGroupBox::sigPasswordChanged, 77 this, &UIWizardNewVMUnattendedPage Basic::sltPasswordChanged);77 this, &UIWizardNewVMUnattendedPage::sltPasswordChanged); 78 78 connect(m_pUserNamePasswordGroupBox, &UIUserNamePasswordGroupBox::sigUserNameChanged, 79 this, &UIWizardNewVMUnattendedPage Basic::sltUserNameChanged);79 this, &UIWizardNewVMUnattendedPage::sltUserNameChanged); 80 80 } 81 81 if (m_pGAInstallationISOContainer) 82 82 { 83 83 connect(m_pGAInstallationISOContainer, &UIGAInstallationGroupBox::toggled, 84 this, &UIWizardNewVMUnattendedPage Basic::sltInstallGACheckBoxToggle);84 this, &UIWizardNewVMUnattendedPage::sltInstallGACheckBoxToggle); 85 85 connect(m_pGAInstallationISOContainer, &UIGAInstallationGroupBox::sigPathChanged, 86 this, &UIWizardNewVMUnattendedPage Basic::sltGAISOPathChanged);86 this, &UIWizardNewVMUnattendedPage::sltGAISOPathChanged); 87 87 } 88 88 … … 90 90 { 91 91 connect(m_pAdditionalOptionsContainer, &UIAdditionalUnattendedOptions::sigHostnameDomainNameChanged, 92 this, &UIWizardNewVMUnattendedPage Basic::sltHostnameDomainNameChanged);92 this, &UIWizardNewVMUnattendedPage::sltHostnameDomainNameChanged); 93 93 connect(m_pAdditionalOptionsContainer, &UIAdditionalUnattendedOptions::sigProductKeyChanged, 94 this, &UIWizardNewVMUnattendedPage Basic::sltProductKeyChanged);94 this, &UIWizardNewVMUnattendedPage::sltProductKeyChanged); 95 95 connect(m_pAdditionalOptionsContainer, &UIAdditionalUnattendedOptions::sigStartHeadlessChanged, 96 this, &UIWizardNewVMUnattendedPage Basic::sltStartHeadlessChanged);97 } 98 } 99 100 101 void UIWizardNewVMUnattendedPage Basic::retranslateUi()96 this, &UIWizardNewVMUnattendedPage::sltStartHeadlessChanged); 97 } 98 } 99 100 101 void UIWizardNewVMUnattendedPage::retranslateUi() 102 102 { 103 103 setTitle(UIWizardNewVM::tr("Unattended Guest OS Install Setup")); … … 111 111 112 112 113 void UIWizardNewVMUnattendedPage Basic::initializePage()113 void UIWizardNewVMUnattendedPage::initializePage() 114 114 { 115 115 if (m_pAdditionalOptionsContainer) … … 157 157 } 158 158 159 bool UIWizardNewVMUnattendedPage Basic::isComplete() const159 bool UIWizardNewVMUnattendedPage::isComplete() const 160 160 { 161 161 markWidgets(); … … 163 163 if (pWizard && pWizard->installGuestAdditions() && 164 164 m_pGAInstallationISOContainer && 165 !UIWizardNewVMUnattended Page::checkGAISOFile(m_pGAInstallationISOContainer->path()))165 !UIWizardNewVMUnattendedCommon::checkGAISOFile(m_pGAInstallationISOContainer->path())) 166 166 return false; 167 167 if (m_pUserNamePasswordGroupBox && !m_pUserNamePasswordGroupBox->isComplete()) … … 172 172 } 173 173 174 void UIWizardNewVMUnattendedPage Basic::sltInstallGACheckBoxToggle(bool fEnabled)174 void UIWizardNewVMUnattendedPage::sltInstallGACheckBoxToggle(bool fEnabled) 175 175 { 176 176 wizardWindow<UIWizardNewVM>()->setInstallGuestAdditions(fEnabled); … … 179 179 } 180 180 181 void UIWizardNewVMUnattendedPage Basic::sltGAISOPathChanged(const QString &strPath)181 void UIWizardNewVMUnattendedPage::sltGAISOPathChanged(const QString &strPath) 182 182 { 183 183 wizardWindow<UIWizardNewVM>()->setGuestAdditionsISOPath(strPath); … … 186 186 } 187 187 188 void UIWizardNewVMUnattendedPage Basic::sltPasswordChanged(const QString &strPassword)188 void UIWizardNewVMUnattendedPage::sltPasswordChanged(const QString &strPassword) 189 189 { 190 190 wizardWindow<UIWizardNewVM>()->setPassword(strPassword); … … 193 193 } 194 194 195 void UIWizardNewVMUnattendedPage Basic::sltUserNameChanged(const QString &strUserName)195 void UIWizardNewVMUnattendedPage::sltUserNameChanged(const QString &strUserName) 196 196 { 197 197 wizardWindow<UIWizardNewVM>()->setUserName(strUserName); … … 200 200 } 201 201 202 bool UIWizardNewVMUnattendedPage Basic::isProductKeyWidgetEnabled() const202 bool UIWizardNewVMUnattendedPage::isProductKeyWidgetEnabled() const 203 203 { 204 204 UIWizardNewVM *pWizard = wizardWindow<UIWizardNewVM>(); … … 208 208 } 209 209 210 void UIWizardNewVMUnattendedPage Basic::sltHostnameDomainNameChanged(const QString &strHostnameDomainName)210 void UIWizardNewVMUnattendedPage::sltHostnameDomainNameChanged(const QString &strHostnameDomainName) 211 211 { 212 212 AssertReturnVoid(wizardWindow<UIWizardNewVM>()); … … 216 216 } 217 217 218 void UIWizardNewVMUnattendedPage Basic::sltProductKeyChanged(const QString &strProductKey)218 void UIWizardNewVMUnattendedPage::sltProductKeyChanged(const QString &strProductKey) 219 219 { 220 220 AssertReturnVoid(wizardWindow<UIWizardNewVM>()); … … 223 223 } 224 224 225 void UIWizardNewVMUnattendedPage Basic::sltStartHeadlessChanged(bool fStartHeadless)225 void UIWizardNewVMUnattendedPage::sltStartHeadlessChanged(bool fStartHeadless) 226 226 { 227 227 m_userModifiedParameters << "StartHeadless"; … … 229 229 } 230 230 231 void UIWizardNewVMUnattendedPage Basic::markWidgets() const231 void UIWizardNewVMUnattendedPage::markWidgets() const 232 232 { 233 233 AssertReturnVoid(wizardWindow<UIWizardNewVM>()); -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVMUnattendedPage.h
r91058 r91059 1 1 /* $Id$ */ 2 2 /** @file 3 * VBox Qt GUI - UIWizardNewVMUnattendedPage Basicclass declaration.3 * VBox Qt GUI - UIWizardNewVMUnattendedPage class declaration. 4 4 */ 5 5 … … 16 16 */ 17 17 18 #ifndef FEQT_INCLUDED_SRC_wizards_newvm_UIWizardNewVMUnattendedPage Basic_h19 #define FEQT_INCLUDED_SRC_wizards_newvm_UIWizardNewVMUnattendedPage Basic_h18 #ifndef FEQT_INCLUDED_SRC_wizards_newvm_UIWizardNewVMUnattendedPage_h 19 #define FEQT_INCLUDED_SRC_wizards_newvm_UIWizardNewVMUnattendedPage_h 20 20 #ifndef RT_WITHOUT_PRAGMA_ONCE 21 21 # pragma once … … 31 31 class UIUserNamePasswordGroupBox; 32 32 33 namespace UIWizardNewVMUnattended Page33 namespace UIWizardNewVMUnattendedCommon 34 34 { 35 35 /** Returns false if ISO path selector is non empty but has invalid file path. */ … … 37 37 } 38 38 39 class UIWizardNewVMUnattendedPage Basic: public UINativeWizardPage39 class UIWizardNewVMUnattendedPage : public UINativeWizardPage 40 40 { 41 41 Q_OBJECT; … … 43 43 public: 44 44 45 UIWizardNewVMUnattendedPage Basic();45 UIWizardNewVMUnattendedPage(); 46 46 47 47 private slots: … … 77 77 }; 78 78 79 #endif /* !FEQT_INCLUDED_SRC_wizards_newvm_UIWizardNewVMUnattendedPage Basic_h */79 #endif /* !FEQT_INCLUDED_SRC_wizards_newvm_UIWizardNewVMUnattendedPage_h */
Note:
See TracChangeset
for help on using the changeset viewer.

