Changeset 107889 in vbox
- Timestamp:
- Jan 22, 2025 11:31:39 AM (2 weeks ago)
- 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
r107119 r107889 59 59 , m_pSizeAndLocationGroup(0) 60 60 , m_pNameAndSystemEditor(0) 61 , m_p SkipUnattendedCheckBox(0)61 , m_pUnattendedCheckBox(0) 62 62 , m_pNameAndSystemLayout(0) 63 63 , m_pHardwareWidgetContainer(0) … … 219 219 void UIWizardNewVMExpertPage::sltRetranslateUI() 220 220 { 221 if (m_pSkipUnattendedCheckBox) 222 { 223 m_pSkipUnattendedCheckBox->setText(UIWizardNewVM::tr("&Skip Unattended Installation")); 224 m_pSkipUnattendedCheckBox->setToolTip(UIWizardNewVM::tr("When checked, the unattended install is disabled and the selected ISO " 225 "is mounted on the vm.")); 221 if (m_pUnattendedCheckBox) 222 { 223 m_pUnattendedCheckBox->setText(UIWizardNewVM::tr("&Proceed with Unattended Installation")); 224 m_pUnattendedCheckBox->setToolTip(UIWizardNewVM::tr("When checked, the unattended install is enabled.")); 226 225 } 227 226 … … 312 311 this, &UIWizardNewVMExpertPage::sltSelectedDiskSourceChanged); 313 312 314 if (m_p SkipUnattendedCheckBox)315 connect(m_p SkipUnattendedCheckBox, &QCheckBox::toggled,313 if (m_pUnattendedCheckBox) 314 connect(m_pUnattendedCheckBox, &QCheckBox::toggled, 316 315 this, &UIWizardNewVMExpertPage::sltSkipUnattendedCheckBoxChecked); 317 316 … … 728 727 { 729 728 AssertReturnVoid(wizardWindow<UIWizardNewVM>()); 730 m_userModifiedParameters << " SkipUnattendedInstall";731 wizardWindow<UIWizardNewVM>()->setSkipUnattendedInstall( fSkip);729 m_userModifiedParameters << "UnattendedInstall"; 730 wizardWindow<UIWizardNewVM>()->setSkipUnattendedInstall(!fSkip); 732 731 disableEnableUnattendedRelatedWidgets(isUnattendedEnabled()); 733 732 emit completeChanged(); … … 981 980 if (m_pNameAndSystemEditor) 982 981 m_pNameAndSystemLayout->addWidget(m_pNameAndSystemEditor, 0, 0, 1, 2); 983 m_pSkipUnattendedCheckBox = new QCheckBox; 984 if (m_pSkipUnattendedCheckBox) 985 m_pNameAndSystemLayout->addWidget(m_pSkipUnattendedCheckBox, 1, 1); 982 m_pUnattendedCheckBox = new QCheckBox; 983 if (m_pUnattendedCheckBox) 984 { 985 m_pNameAndSystemLayout->addWidget(m_pUnattendedCheckBox, 1, 1); 986 m_pUnattendedCheckBox->setChecked(true); 987 } 986 988 return pContainerWidget; 987 989 } … … 989 991 void UIWizardNewVMExpertPage::setSkipCheckBoxEnable() 990 992 { 991 AssertReturnVoid(m_p SkipUnattendedCheckBox && m_pNameAndSystemEditor);993 AssertReturnVoid(m_pUnattendedCheckBox && m_pNameAndSystemEditor); 992 994 const QString &strPath = m_pNameAndSystemEditor->ISOImagePath(); 993 995 if (strPath.isEmpty()) 994 996 { 995 m_p SkipUnattendedCheckBox->setEnabled(false);997 m_pUnattendedCheckBox->setEnabled(false); 996 998 return; 997 999 } 998 1000 if (!isUnattendedInstallSupported()) 999 1001 { 1000 m_p SkipUnattendedCheckBox->setEnabled(false);1002 m_pUnattendedCheckBox->setEnabled(false); 1001 1003 return; 1002 1004 } 1003 1005 1004 m_p SkipUnattendedCheckBox->setEnabled(UIWizardNewVMNameOSTypeCommon::checkISOFile(m_pNameAndSystemEditor));1006 m_pUnattendedCheckBox->setEnabled(UIWizardNewVMNameOSTypeCommon::checkISOFile(m_pNameAndSystemEditor)); 1005 1007 } 1006 1008 -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVMExpertPage.h
r106061 r107889 145 145 UIMediumSizeAndPathGroupBox *m_pSizeAndLocationGroup; 146 146 UINameAndSystemEditor *m_pNameAndSystemEditor; 147 QCheckBox *m_p SkipUnattendedCheckBox;147 QCheckBox *m_pUnattendedCheckBox; 148 148 QGridLayout *m_pNameAndSystemLayout; 149 149 UINewVMHardwareContainer *m_pHardwareWidgetContainer; -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVMNameOSTypePage.cpp
r107852 r107889 477 477 , m_pNameAndSystemLayout(0) 478 478 , m_pNameAndSystemEditor(0) 479 , m_p SkipUnattendedCheckBox(0)479 , m_pUnattendedCheckBox(0) 480 480 , m_pNameOSTypeLabel(0) 481 481 , m_pInfoLabel(0) … … 520 520 connect(m_pNameAndSystemEditor, &UINameAndSystemEditor::sigEditionChanged, this, &UIWizardNewVMNameOSTypePage::sltSelectedEditionChanged); 521 521 } 522 if (m_p SkipUnattendedCheckBox)523 connect(m_p SkipUnattendedCheckBox, &QCheckBox::toggled, this, &UIWizardNewVMNameOSTypePage::sltSkipUnattendedInstallChanged);522 if (m_pUnattendedCheckBox) 523 connect(m_pUnattendedCheckBox, &QCheckBox::toggled, this, &UIWizardNewVMNameOSTypePage::sltSkipUnattendedInstallChanged); 524 524 } 525 525 … … 575 575 "may be used to install the guest operating system.")); 576 576 577 if (m_pSkipUnattendedCheckBox) 578 { 579 m_pSkipUnattendedCheckBox->setText(UIWizardNewVM::tr("&Skip Unattended Installation")); 580 m_pSkipUnattendedCheckBox->setToolTip(UIWizardNewVM::tr("When checked, the unattended install is disabled and the selected ISO " 581 "is mounted on the vm.")); 577 if (m_pUnattendedCheckBox) 578 { 579 m_pUnattendedCheckBox->setText(UIWizardNewVM::tr("&Proceed with Unattended Installation")); 580 m_pUnattendedCheckBox->setToolTip(UIWizardNewVM::tr("When checked, the unattended install is enabled.")); 582 581 } 583 582 … … 729 728 AssertReturnVoid(wizardWindow<UIWizardNewVM>()); 730 729 m_userModifiedParameters << "SkipUnattendedInstall"; 731 wizardWindow<UIWizardNewVM>()->setSkipUnattendedInstall( fSkip);730 wizardWindow<UIWizardNewVM>()->setSkipUnattendedInstall(!fSkip); 732 731 setEditionSelectorEnabled(); 733 732 updateInfoLabel(); … … 756 755 m_pNameAndSystemLayout->addWidget(m_pNameAndSystemEditor, 0, 0, 1, 2); 757 756 758 /* Prepare Skip Unattended checkbox: */ 759 m_pSkipUnattendedCheckBox = new QCheckBox; 760 if (m_pSkipUnattendedCheckBox) 761 m_pNameAndSystemLayout->addWidget(m_pSkipUnattendedCheckBox, 1, 1); 757 /* Prepare Unattended checkbox: */ 758 m_pUnattendedCheckBox = new QCheckBox; 759 if (m_pUnattendedCheckBox) 760 { 761 m_pNameAndSystemLayout->addWidget(m_pUnattendedCheckBox, 1, 1); 762 m_pUnattendedCheckBox->setChecked(true); 763 } 762 764 m_pInfoLabel = new QIRichTextLabel(pContainerWidget); 763 765 if (m_pInfoLabel) … … 786 788 void UIWizardNewVMNameOSTypePage::setSkipCheckBoxEnable() 787 789 { 788 AssertReturnVoid(m_p SkipUnattendedCheckBox && m_pNameAndSystemEditor);790 AssertReturnVoid(m_pUnattendedCheckBox && m_pNameAndSystemEditor); 789 791 const QString &strPath = m_pNameAndSystemEditor->ISOImagePath(); 790 792 if (strPath.isEmpty()) 791 793 { 792 m_p SkipUnattendedCheckBox->setEnabled(false);794 m_pUnattendedCheckBox->setEnabled(false); 793 795 return; 794 796 } 795 797 if (!isUnattendedInstallSupported()) 796 798 { 797 m_p SkipUnattendedCheckBox->setEnabled(false);799 m_pUnattendedCheckBox->setEnabled(false); 798 800 return; 799 801 } 800 802 801 m_p SkipUnattendedCheckBox->setEnabled(UIWizardNewVMNameOSTypeCommon::checkISOFile(m_pNameAndSystemEditor));803 m_pUnattendedCheckBox->setEnabled(UIWizardNewVMNameOSTypeCommon::checkISOFile(m_pNameAndSystemEditor)); 802 804 } 803 805 … … 819 821 void UIWizardNewVMNameOSTypePage::setEditionSelectorEnabled() 820 822 { 821 if (!m_pNameAndSystemEditor || !m_p SkipUnattendedCheckBox)823 if (!m_pNameAndSystemEditor || !m_pUnattendedCheckBox) 822 824 return; 823 825 m_pNameAndSystemEditor->setEditionSelectorEnabled( !m_pNameAndSystemEditor->isEditionsSelectorEmpty() 824 && !m_p SkipUnattendedCheckBox->isChecked());825 } 826 && !m_pUnattendedCheckBox->isChecked()); 827 } -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVMNameOSTypePage.h
r107002 r107889 107 107 QGridLayout *m_pNameAndSystemLayout; 108 108 UINameAndSystemEditor *m_pNameAndSystemEditor; 109 QCheckBox *m_p SkipUnattendedCheckBox;109 QCheckBox *m_pUnattendedCheckBox; 110 110 QIRichTextLabel *m_pNameOSTypeLabel; 111 111 QIRichTextLabel *m_pInfoLabel;
Note:
See TracChangeset
for help on using the changeset viewer.