Changeset 107915 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- Jan 23, 2025 3:16:27 PM (3 months ago)
- svn:sync-xref-src-repo-rev:
- 167146
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVMExpertPage.cpp
r107889 r107915 180 180 /* Populate the editions selector: */ 181 181 if (m_pNameAndSystemEditor) 182 { 182 183 m_pNameAndSystemEditor->setEditionNameAndIndices(pWizard->detectedWindowsImageNames(), 183 184 pWizard->detectedWindowsImageIndices()); 185 } 184 186 setSkipCheckBoxEnable(); 185 disableEnableUnattendedRelatedWidgets( isUnattendedEnabled());187 disableEnableUnattendedRelatedWidgets(); 186 188 187 189 /* Redetect the OS type using the name if detection or the step above failed: */ … … 454 456 setOSTypeDependedValues(); 455 457 setSkipCheckBoxEnable(); 456 disableEnableUnattendedRelatedWidgets( isUnattendedEnabled());458 disableEnableUnattendedRelatedWidgets(); 457 459 updateDiskWidgetsAfterMediumFormatChange(); 458 460 sltRetranslateUI(); … … 711 713 } 712 714 713 void UIWizardNewVMExpertPage::disableEnableUnattendedRelatedWidgets(bool fEnabled) 714 { 715 void UIWizardNewVMExpertPage::disableEnableUnattendedRelatedWidgets() 716 { 717 bool fUnattendedEnabled = isUnattendedEnabled(); 715 718 if (m_pUserNamePasswordGroupBox) 716 m_pUserNamePasswordGroupBox->setEnabled(f Enabled);719 m_pUserNamePasswordGroupBox->setEnabled(fUnattendedEnabled); 717 720 if (m_pAdditionalOptionsContainer) 718 m_pAdditionalOptionsContainer->setEnabled(f Enabled);721 m_pAdditionalOptionsContainer->setEnabled(fUnattendedEnabled); 719 722 if (m_pGAInstallationISOContainer) 720 m_pGAInstallationISOContainer->setEnabled(f Enabled);723 m_pGAInstallationISOContainer->setEnabled(fUnattendedEnabled); 721 724 if (m_pNameAndSystemEditor) 722 m_pNameAndSystemEditor->setEditionSelectorEnabled(f Enabled && !m_pNameAndSystemEditor->isEditionsSelectorEmpty());725 m_pNameAndSystemEditor->setEditionSelectorEnabled(fUnattendedEnabled && !m_pNameAndSystemEditor->isEditionsSelectorEmpty()); 723 726 m_pAdditionalOptionsContainer->disableEnableProductKeyWidgets(isProductKeyWidgetEnabled()); 727 m_pNameAndSystemEditor->setOSTypeStuffEnabled(!fUnattendedEnabled || m_pNameAndSystemEditor->isEditionsSelectorEmpty()); 724 728 } 725 729 … … 729 733 m_userModifiedParameters << "UnattendedInstall"; 730 734 wizardWindow<UIWizardNewVM>()->setSkipUnattendedInstall(!fSkip); 731 disableEnableUnattendedRelatedWidgets( isUnattendedEnabled());735 disableEnableUnattendedRelatedWidgets(); 732 736 emit completeChanged(); 733 737 } -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVMExpertPage.h
r107889 r107915 122 122 123 123 bool isProductKeyWidgetEnabled() const; 124 void disableEnableUnattendedRelatedWidgets( bool fEnabled);124 void disableEnableUnattendedRelatedWidgets(); 125 125 void markWidgets() const; 126 126 QWidget *createUnattendedWidgets(); -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVMNameOSTypePage.cpp
r107890 r107915 625 625 .arg(UIWizardNewVM::tr("This OS type can be installed unattendedly. " 626 626 "The install will start after this wizard is closed.")); 627 628 629 627 630 } 628 631 … … 646 649 { 647 650 m_pNameAndSystemEditor->setFocus(); 648 setEdition SelectorEnabled();651 setEditionAndOSTypeSelectorsEnabled(); 649 652 } 650 653 setSkipCheckBoxEnable(); … … 693 696 694 697 setSkipCheckBoxEnable(); 695 setEdition SelectorEnabled();698 setEditionAndOSTypeSelectorsEnabled(); 696 699 updateInfoLabel(); 697 700 … … 699 702 if (m_pNameAndSystemEditor) 700 703 { 701 m_pNameAndSystemEditor->setOSTypeStuffEnabled(!fOsTypeFixed); 704 702 705 703 706 /* Redetect the OS type using the name if detection or the step above failed: */ … … 729 732 m_userModifiedParameters << "SkipUnattendedInstall"; 730 733 wizardWindow<UIWizardNewVM>()->setSkipUnattendedInstall(!fSkip); 731 setEdition SelectorEnabled();734 setEditionAndOSTypeSelectorsEnabled(); 732 735 updateInfoLabel(); 733 736 } … … 819 822 820 823 821 void UIWizardNewVMNameOSTypePage::setEditionSelectorEnabled() 822 { 824 void UIWizardNewVMNameOSTypePage::setEditionAndOSTypeSelectorsEnabled() 825 { 826 UIWizardNewVM *pWizard = wizardWindow<UIWizardNewVM>(); 827 AssertReturnVoid(pWizard); 823 828 if (!m_pNameAndSystemEditor || !m_pUnattendedCheckBox) 824 829 return; 825 830 m_pNameAndSystemEditor->setEditionSelectorEnabled( !m_pNameAndSystemEditor->isEditionsSelectorEmpty() 826 831 && m_pUnattendedCheckBox->isChecked()); 827 } 832 /* Disable OS type, version, subtype selectors if unattended is enabled and edition list is not empty: */ 833 if (pWizard->isUnattendedEnabled() && !m_pNameAndSystemEditor->isEditionsSelectorEmpty()) 834 m_pNameAndSystemEditor->setOSTypeStuffEnabled(false); 835 else 836 m_pNameAndSystemEditor->setOSTypeStuffEnabled(true); 837 838 } -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVMNameOSTypePage.h
r107889 r107915 100 100 bool isUnattendedEnabled() const; 101 101 bool isUnattendedInstallSupported() const; 102 void setEdition SelectorEnabled();102 void setEditionAndOSTypeSelectorsEnabled(); 103 103 void updateInfoLabel(); 104 104
Note:
See TracChangeset
for help on using the changeset viewer.