Changeset 91698 in vbox
- Timestamp:
- Oct 12, 2021 5:59:15 PM (3 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/wizards/newcloudvm
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newcloudvm/UIWizardNewCloudVMPageExpert.cpp
r91640 r91698 311 311 void UIWizardNewCloudVMPageExpert::sltHandleProviderComboChange() 312 312 { 313 updateProvider(); 313 /* Update combo tool-tip: */ 314 updateComboToolTip(m_pProviderComboBox); 315 316 /* Update wizard fields: */ 317 wizard()->setProviderShortName(m_pProviderComboBox->currentData(ProviderData_ShortName).toString()); 318 319 /* Update profiles: */ 320 populateProfiles(m_pProfileComboBox, wizard()->providerShortName(), wizard()->profileName()); 321 sltHandleProfileComboChange(); 322 323 /* Notify about changes: */ 314 324 emit completeChanged(); 315 325 } … … 317 327 void UIWizardNewCloudVMPageExpert::sltHandleProfileComboChange() 318 328 { 319 updateProfile(); 329 /* Update wizard fields: */ 330 wizard()->setProfileName(m_pProfileComboBox->currentData(ProfileData_Name).toString()); 331 wizard()->setClient(cloudClientByName(wizard()->providerShortName(), wizard()->profileName(), wizard())); 332 333 /* Update source: */ 334 sltHandleSourceTabBarChange(); 335 336 /* Notify about changes: */ 320 337 emit completeChanged(); 321 338 } … … 329 346 void UIWizardNewCloudVMPageExpert::sltHandleSourceTabBarChange() 330 347 { 331 updateSource(); 348 /* Update source type: */ 349 populateSourceImages(m_pSourceImageList, m_pSourceTabBar, wizard()->client()); 350 sltHandleSourceImageChange(); 351 352 /* Notify about changes: */ 332 353 emit completeChanged(); 333 354 } … … 335 356 void UIWizardNewCloudVMPageExpert::sltHandleSourceImageChange() 336 357 { 337 updateSourceImage(); 338 emit completeChanged(); 339 } 340 341 void UIWizardNewCloudVMPageExpert::updateProvider() 342 { 343 updateComboToolTip(m_pProviderComboBox); 344 wizard()->setProviderShortName(m_pProviderComboBox->currentData(ProviderData_ShortName).toString()); 345 populateProfiles(m_pProfileComboBox, wizard()->providerShortName(), wizard()->profileName()); 346 updateProfile(); 347 } 348 349 void UIWizardNewCloudVMPageExpert::updateProfile() 350 { 351 wizard()->setProfileName(m_pProfileComboBox->currentData(ProfileData_Name).toString()); 352 wizard()->setClient(cloudClientByName(wizard()->providerShortName(), wizard()->profileName(), wizard())); 353 updateSource(); 354 } 355 356 void UIWizardNewCloudVMPageExpert::updateSource() 357 { 358 populateSourceImages(m_pSourceImageList, m_pSourceTabBar, wizard()->client()); 359 updateSourceImage(); 360 } 361 362 void UIWizardNewCloudVMPageExpert::updateSourceImage() 363 { 358 /* Update source image & VSD form: */ 364 359 m_strSourceImageId = currentListWidgetData(m_pSourceImageList); 365 updateVSDForm();366 }367 368 void UIWizardNewCloudVMPageExpert::updateVSDForm()369 {370 360 wizard()->setVSD(createVirtualSystemDescription(wizard())); 371 361 populateFormProperties(wizard()->vsd(), m_pSourceTabBar, m_strSourceImageId); 372 362 wizard()->createVSDForm(); 373 363 updatePropertiesTable(); 364 365 /* Notify about changes: */ 366 emit completeChanged(); 374 367 } 375 368 -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newcloudvm/UIWizardNewCloudVMPageExpert.h
r91640 r91698 76 76 private: 77 77 78 /** Updates provider. */79 void updateProvider();80 /** Updates profile. */81 void updateProfile();82 /** Updates source. */83 void updateSource();84 /** Updates source image. */85 void updateSourceImage();86 /** Updates VSD form. */87 void updateVSDForm();88 78 /** Updates properties table. */ 89 79 void updatePropertiesTable(); -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newcloudvm/UIWizardNewCloudVMPageSource.cpp
r91640 r91698 530 530 void UIWizardNewCloudVMPageSource::sltHandleProviderComboChange() 531 531 { 532 updateProvider(); 532 /* Update combo tool-tip: */ 533 updateComboToolTip(m_pProviderComboBox); 534 535 /* Update wizard fields: */ 536 wizard()->setProviderShortName(m_pProviderComboBox->currentData(ProviderData_ShortName).toString()); 537 538 /* Update profiles: */ 539 populateProfiles(m_pProfileComboBox, wizard()->providerShortName(), wizard()->profileName()); 540 sltHandleProfileComboChange(); 541 542 /* Notify about changes: */ 533 543 emit completeChanged(); 534 544 } … … 536 546 void UIWizardNewCloudVMPageSource::sltHandleProfileComboChange() 537 547 { 538 updateProfile(); 548 /* Update wizard fields: */ 549 wizard()->setProfileName(m_pProfileComboBox->currentData(ProfileData_Name).toString()); 550 wizard()->setClient(cloudClientByName(wizard()->providerShortName(), wizard()->profileName(), wizard())); 551 552 /* Update source: */ 553 sltHandleSourceTabBarChange(); 554 555 /* Notify about changes: */ 539 556 emit completeChanged(); 540 557 } … … 548 565 void UIWizardNewCloudVMPageSource::sltHandleSourceTabBarChange() 549 566 { 550 updateSource(); 567 /* Update source type: */ 568 populateSourceImages(m_pSourceImageList, m_pSourceTabBar, wizard()->client()); 569 sltHandleSourceImageChange(); 570 571 /* Notify about changes: */ 551 572 emit completeChanged(); 552 573 } … … 554 575 void UIWizardNewCloudVMPageSource::sltHandleSourceImageChange() 555 576 { 556 updateSourceImage(); 577 /* Update source image: */ 578 m_strSourceImageId = currentListWidgetData(m_pSourceImageList); 579 580 /* Notify about changes: */ 557 581 emit completeChanged(); 558 582 } 559 560 void UIWizardNewCloudVMPageSource::updateProvider()561 {562 updateComboToolTip(m_pProviderComboBox);563 wizard()->setProviderShortName(m_pProviderComboBox->currentData(ProviderData_ShortName).toString());564 populateProfiles(m_pProfileComboBox, wizard()->providerShortName(), wizard()->profileName());565 updateProfile();566 }567 568 void UIWizardNewCloudVMPageSource::updateProfile()569 {570 wizard()->setProfileName(m_pProfileComboBox->currentData(ProfileData_Name).toString());571 wizard()->setClient(cloudClientByName(wizard()->providerShortName(), wizard()->profileName(), wizard()));572 updateSource();573 }574 575 void UIWizardNewCloudVMPageSource::updateSource()576 {577 populateSourceImages(m_pSourceImageList, m_pSourceTabBar, wizard()->client());578 updateSourceImage();579 }580 581 void UIWizardNewCloudVMPageSource::updateSourceImage()582 {583 m_strSourceImageId = currentListWidgetData(m_pSourceImageList);584 } -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newcloudvm/UIWizardNewCloudVMPageSource.h
r91640 r91698 121 121 private: 122 122 123 /** Updates provider. */124 void updateProvider();125 /** Updates profile. */126 void updateProfile();127 /** Updates source. */128 void updateSource();129 /** Updates source image. */130 void updateSourceImage();131 132 123 /** Holds the image ID. */ 133 124 QString m_strSourceImageId;
Note:
See TracChangeset
for help on using the changeset viewer.