Changeset 88014 in vbox
- Timestamp:
- Mar 8, 2021 12:52:42 PM (4 years 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/UIWizardNewVM.cpp
r88001 r88014 630 630 void UIWizardNewVM::setVirtualDisk(const CMedium &medium) 631 631 { 632 m_virtualDisk = =medium;632 m_virtualDisk = medium; 633 633 } 634 634 -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVMPageBasic4.cpp
r88001 r88014 65 65 void UIWizardNewVMPage4::getWithFileOpenDialog() 66 66 { 67 /* Get opened medium id: */68 67 QUuid uMediumId; 69 70 68 int returnCode = uiCommon().openMediumSelectorDialog(thisImp(), UIMediumDeviceType_HardDisk, 71 69 uMediumId, … … 74 72 fieldImp("type").value<CGuestOSType>().GetId(), 75 73 false /* don't show/enable the create action: */); 76 77 74 if (returnCode == static_cast<int>(UIMediumSelector::ReturnCode_Accepted) && !uMediumId.isNull()) 78 75 { … … 277 274 void UIWizardNewVMPageBasic4::sltGetWithFileOpenDialog() 278 275 { 279 /* Call to base-class: */280 276 getWithFileOpenDialog(); 281 277 } -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVMPageExpert.cpp
r88001 r88014 103 103 registerField("selectedDiskSource", this, "selectedDiskSource"); 104 104 registerField("mediumVariant", this, "mediumVariant"); 105 106 disableEnableUnattendedRelatedWidgets(isUnattendedEnabled());107 setEnableDiskSelectionWidgets(m_enmSelectedDiskSource == SelectedDiskSource_Existing);108 setEnableNewDiskWidgets(m_enmSelectedDiskSource == SelectedDiskSource_New);109 105 } 110 106 … … 134 130 } 135 131 136 void UIWizardNewVMPageExpert::sltVirtualDiskSourceChanged()137 {138 /* Broadcast complete-change: */139 emit completeChanged();140 }141 132 142 133 void UIWizardNewVMPageExpert::sltGetWithFileOpenDialog() 143 134 { 135 getWithFileOpenDialog(); 144 136 } 145 137 … … 244 236 this, &UIWizardNewVMPageExpert::sltInstallGACheckBoxToggle); 245 237 246 if (m_pDiskEmpty)247 {248 connect(m_pDiskEmpty, &QRadioButton::toggled,249 this, &UIWizardNewVMPageExpert::sltVirtualDiskSourceChanged);250 connect(m_pDiskEmpty, &QRadioButton::toggled,251 this, &UIWizardNewVMPageExpert::sltValueModified);252 }253 if (m_pDiskNew)254 {255 connect(m_pDiskNew, &QRadioButton::toggled,256 this, &UIWizardNewVMPageExpert::sltVirtualDiskSourceChanged);257 connect(m_pDiskNew, &QRadioButton::toggled,258 this, &UIWizardNewVMPageExpert::sltValueModified);259 }260 if (m_pDiskExisting)261 {262 connect(m_pDiskExisting, &QRadioButton::toggled,263 this, &UIWizardNewVMPageExpert::sltVirtualDiskSourceChanged);264 connect(m_pDiskExisting, &QRadioButton::toggled,265 this, &UIWizardNewVMPageExpert::sltValueModified);266 }267 if (m_pDiskSelector)268 connect(m_pDiskSelector, static_cast<void(UIMediaComboBox::*)(int)>(&UIMediaComboBox::currentIndexChanged),269 this, &UIWizardNewVMPageExpert::sltVirtualDiskSourceChanged);270 238 if (m_pDiskSelectionButton) 271 239 connect(m_pDiskSelectionButton, &QIToolButton::clicked, 272 240 this, &UIWizardNewVMPageExpert::sltGetWithFileOpenDialog); 241 273 242 if (m_pBaseMemoryEditor) 274 243 connect(m_pBaseMemoryEditor, &UIBaseMemoryEditor::sigValueChanged, … … 290 259 291 260 if (m_pDiskSourceButtonGroup) 261 { 292 262 connect(m_pDiskSourceButtonGroup, static_cast<void(QButtonGroup::*)(QAbstractButton *)>(&QButtonGroup::buttonClicked), 293 263 this, &UIWizardNewVMPageExpert::sltSelectedDiskSourceChanged); 264 connect(m_pDiskSourceButtonGroup, static_cast<void(QButtonGroup::*)(QAbstractButton *)>(&QButtonGroup::buttonClicked), 265 this, &UIWizardNewVMPageExpert::sltValueModified); 266 } 294 267 } 295 268 … … 360 333 void UIWizardNewVMPageExpert::initializePage() 361 334 { 362 /* Translate page: */ 363 retranslateUi(); 335 disableEnableUnattendedRelatedWidgets(isUnattendedEnabled()); 336 setEnableDiskSelectionWidgets(m_enmSelectedDiskSource == SelectedDiskSource_Existing); 337 setEnableNewDiskWidgets(m_enmSelectedDiskSource == SelectedDiskSource_New); 364 338 setOSTypeDependedValues(); 365 339 disableEnableUnattendedRelatedWidgets(isUnattendedEnabled()); 366 340 updateVirtualDiskPathFromMachinePathName(); 367 341 updateWidgetAterMediumFormatChange(); 342 retranslateUi(); 368 343 } 369 344 -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVMPageExpert.h
r88001 r88014 91 91 void sltPathChanged(const QString &strNewPath); 92 92 void sltOsTypeChanged(); 93 void slt VirtualDiskSourceChanged();93 void sltMediaComboBoxIndexChanged(); 94 94 void sltGetWithFileOpenDialog(); 95 95 void sltISOPathChanged(const QString &strPath); … … 100 100 void sltMediumFormatChanged(); 101 101 void sltMediumSizeChanged(); 102 void sltMediaComboBoxIndexChanged();103 102 void sltSelectedDiskSourceChanged(); 104 103
Note:
See TracChangeset
for help on using the changeset viewer.