- Timestamp:
- Jul 6, 2021 4:47:36 PM (4 years ago)
- svn:sync-xref-src-repo-rev:
- 145567
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVM.cpp
r90070 r90072 66 66 , m_iCPUCount(1) 67 67 , m_iMemorySize(0) 68 68 , m_iUnattendedInstallPageIndex(-1) 69 69 { 70 70 #ifndef VBOX_WS_MAC … … 88 88 { 89 89 addPage(new UIWizardNewVMNameOSTypePageBasic); 90 addPage(new UIWizardNewVMUnattendedPageBasic); 90 m_iUnattendedInstallPageIndex = addPage(new UIWizardNewVMUnattendedPageBasic); 91 setUnattendedPageVisible(false); 91 92 addPage(new UIWizardNewVMHardwarePageBasic); 92 93 addPage(new UIWizardNewVMDiskPageBasic); … … 699 700 { 700 701 m_fSkipUnattendedInstall = fSkipUnattendedInstall; 702 /* We hide/show unattended install page depending on the value of isUnattendedEnabled: */ 703 setUnattendedPageVisible(isUnattendedEnabled()); 701 704 } 702 705 … … 709 712 { 710 713 m_strISOFilePath = strISOFilePath; 714 /* We hide/show unattended install page depending on the value of isUnattendedEnabled: */ 715 setUnattendedPageVisible(isUnattendedEnabled()); 711 716 } 712 717 … … 817 822 return m_strGuestOSFamilyId.contains("windows", Qt::CaseInsensitive); 818 823 } 824 825 void UIWizardNewVM::setUnattendedPageVisible(bool fVisible) 826 { 827 if (m_iUnattendedInstallPageIndex != -1) 828 setPageVisible(m_iUnattendedInstallPageIndex, fVisible); 829 } -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVM.h
r90070 r90072 87 87 const UIUnattendedInstallData &unattendedInstallData() const; 88 88 bool isGuestOSTypeWindows() const; 89 89 90 CMedium &virtualDisk(); 90 91 void setVirtualDisk(const CMedium &medium); … … 165 166 QString getNextControllerName(KStorageBus type); 166 167 void setFieldsFromDefaultUnttendedInstallData(); 168 void setUnattendedPageVisible(bool fVisible); 167 169 168 170 /** @name Variables … … 213 215 int m_iCPUCount; 214 216 int m_iMemorySize; 217 int m_iUnattendedInstallPageIndex; 215 218 }; 216 219 -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVMNameOSTypePageBasic.cpp
r90070 r90072 321 321 } 322 322 323 // bool UIWizardNewVMNameOSTypePage::skipUnattendedInstall() const324 // {325 // return m_pSkipUnattendedCheckBox && m_pSkipUnattendedCheckBox->isChecked();326 // }327 328 323 bool UIWizardNewVMNameOSTypePage::checkISOFile(UINameAndSystemEditor *pNameAndSystemEditor) 329 324 { … … 387 382 connect(m_pNameAndSystemEditor, &UINameAndSystemEditor::sigOSFamilyChanged, this, &UIWizardNewVMNameOSTypePageBasic::sltGuestOSFamilyChanged); 388 383 } 384 if (m_pSkipUnattendedCheckBox) 385 connect(m_pSkipUnattendedCheckBox, &QCheckBox::toggled, this, &UIWizardNewVMNameOSTypePageBasic::sltSkipUnattendedInstallChanged); 389 386 } 390 387 … … 486 483 { 487 484 newVMWizardPropertySet(GuestOSFamilyId, strGuestOSFamilyId); 485 } 486 487 void UIWizardNewVMNameOSTypePageBasic::sltSkipUnattendedInstallChanged(bool fSkip) 488 { 489 newVMWizardPropertySet(SkipUnattendedInstall, fSkip); 488 490 } 489 491 -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVMNameOSTypePageBasic.h
r90070 r90072 53 53 /** Return false if ISO path is not empty but points to an missing or unreadable file. */ 54 54 bool checkISOFile(UINameAndSystemEditor *pNameAndSystemEditor); 55 56 // QString guestOSFamiyId() const;57 // const QString &detectedOSTypeId() const;58 // bool skipUnattendedInstall() const;59 55 } 60 56 … … 84 80 void sltISOPathChanged(const QString &strPath); 85 81 void sltGuestOSFamilyChanged(const QString &strGuestOSFamilyId); 82 void sltSkipUnattendedInstallChanged(bool fSkip); 86 83 87 84 private:
Note:
See TracChangeset
for help on using the changeset viewer.