Changeset 94182 in vbox for trunk/src/VBox/Frontends/VirtualBox
- Timestamp:
- Mar 11, 2022 5:25:06 PM (3 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/wizards
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/wizards/UINativeWizard.cpp
r94069 r94182 109 109 bool UINativeWizard::handleNotificationProgressNow(UINotificationProgress *pProgress) 110 110 { 111 return m_pNotificationCenter->handleNow(pProgress); 111 wizardButton(WizardButtonType_Expert)->setEnabled(false); 112 const bool fResult = m_pNotificationCenter->handleNow(pProgress); 113 wizardButton(WizardButtonType_Expert)->setEnabled(true); 114 return fResult; 115 } 116 117 QPushButton *UINativeWizard::wizardButton(const WizardButtonType &enmType) const 118 { 119 return m_buttons.value(enmType); 112 120 } 113 121 … … 119 127 /* Call to base-class: */ 120 128 return QIWithRetranslateUI<QDialog>::exec(); 121 }122 123 QPushButton *UINativeWizard::wizardButton(const WizardButtonType &enmType) const124 {125 return m_buttons.value(enmType);126 129 } 127 130 -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/UINativeWizard.h
r93990 r94182 95 95 bool handleNotificationProgressNow(UINotificationProgress *pProgress); 96 96 97 /** Returns wizard button of specified @a enmType. */ 98 QPushButton *wizardButton(const WizardButtonType &enmType) const; 99 97 100 public slots: 98 101 … … 107 110 /** Returns wizard mode. */ 108 111 WizardMode mode() const { return m_enmMode; } 109 110 /** Returns wizard button of specified @a enmType. */111 QPushButton *wizardButton(const WizardButtonType &enmType) const;112 112 /** Defines @a strName for wizard button of specified @a enmType. */ 113 113 void setWizardButtonName(const WizardButtonType &enmType, const QString &strName); -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/addcloudvm/UIWizardAddCloudVMPageExpert.cpp
r94166 r94182 20 20 #include <QHeaderView> 21 21 #include <QListWidget> 22 #include <QPushButton> 22 23 #include <QTableWidget> 23 24 #include <QVBoxLayout> … … 243 244 244 245 /* Update profile instances: */ 246 wizard()->wizardButton(WizardButtonType_Expert)->setEnabled(false); 245 247 populateProfileInstances(m_pSourceInstanceList, wizard()->notificationCenter(), wizard()->client()); 248 wizard()->wizardButton(WizardButtonType_Expert)->setEnabled(true); 246 249 sltHandleSourceInstanceChange(); 247 250 -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/addcloudvm/UIWizardAddCloudVMPageSource.cpp
r94166 r94182 21 21 #include <QLabel> 22 22 #include <QListWidget> 23 #include <QPushButton> 23 24 #include <QVBoxLayout> 24 25 … … 478 479 479 480 /* Update profile instances: */ 481 wizard()->wizardButton(WizardButtonType_Expert)->setEnabled(false); 480 482 populateProfileInstances(m_pSourceInstanceList, wizard()->notificationCenter(), wizard()->client()); 483 wizard()->wizardButton(WizardButtonType_Expert)->setEnabled(true); 481 484 sltHandleSourceInstanceChange(); 482 485 -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/exportappliance/UIWizardExportAppPageExpert.cpp
r93115 r94182 25 25 #include <QLineEdit> 26 26 #include <QListWidget> 27 #include <QPushButton> 27 28 #include <QRadioButton> 28 29 #include <QStackedWidget> … … 805 806 CVirtualSystemDescription comDescription; 806 807 CVirtualSystemDescriptionForm comForm; 808 wizard()->wizardButton(WizardButtonType_Expert)->setEnabled(false); 807 809 refreshCloudStuff(comAppliance, 808 810 comClient, … … 814 816 wizard()->uri(), 815 817 wizard()->cloudExportMode()); 818 wizard()->wizardButton(WizardButtonType_Expert)->setEnabled(true); 816 819 wizard()->setCloudAppliance(comAppliance); 817 820 wizard()->setCloudClient(comClient); -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/exportappliance/UIWizardExportAppPageFormat.cpp
r93115 r94182 22 22 #include <QGridLayout> 23 23 #include <QLabel> 24 #include <QPushButton> 24 25 #include <QRadioButton> 25 26 #include <QStackedWidget> … … 1151 1152 CVirtualSystemDescription comDescription; 1152 1153 CVirtualSystemDescriptionForm comForm; 1154 wizard()->wizardButton(WizardButtonType_Expert)->setEnabled(false); 1153 1155 refreshCloudStuff(comAppliance, 1154 1156 comClient, … … 1160 1162 wizard()->uri(), 1161 1163 wizard()->cloudExportMode()); 1164 wizard()->wizardButton(WizardButtonType_Expert)->setEnabled(true); 1162 1165 wizard()->setCloudAppliance(comAppliance); 1163 1166 wizard()->setCloudClient(comClient); -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/importappliance/UIWizardImportAppPageExpert.cpp
r93998 r94182 23 23 #include <QLabel> 24 24 #include <QListWidget> 25 #include <QPushButton> 25 26 #include <QStackedWidget> 26 27 #include <QTableWidget> … … 570 571 { 571 572 /* Refresh profile instances: */ 573 wizard()->wizardButton(WizardButtonType_Expert)->setEnabled(false); 572 574 refreshCloudProfileInstances(m_pProfileInstanceList, 573 575 wizard()->notificationCenter(), … … 575 577 profileName(m_pProfileComboBox), 576 578 wizard()->isSourceCloudOne()); 579 wizard()->wizardButton(WizardButtonType_Expert)->setEnabled(true); 577 580 sltHandleInstanceListChange(); 578 581 … … 593 596 CAppliance comAppliance; 594 597 CVirtualSystemDescriptionForm comForm; 598 wizard()->wizardButton(WizardButtonType_Expert)->setEnabled(false); 595 599 refreshCloudStuff(comAppliance, 596 600 comForm, … … 600 604 profileName(m_pProfileComboBox), 601 605 wizard()->isSourceCloudOne()); 606 wizard()->wizardButton(WizardButtonType_Expert)->setEnabled(true); 602 607 wizard()->setCloudAppliance(comAppliance); 603 608 wizard()->setVsdImportForm(comForm); -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/importappliance/UIWizardImportAppPageSource.cpp
r93998 r94182 20 20 #include <QLabel> 21 21 #include <QListWidget> 22 #include <QPushButton> 22 23 #include <QStackedWidget> 23 24 … … 788 789 { 789 790 /* Refresh required settings: */ 791 wizard()->wizardButton(WizardButtonType_Expert)->setEnabled(false); 790 792 refreshCloudProfileInstances(m_pProfileInstanceList, 791 793 wizard()->notificationCenter(), … … 793 795 profileName(m_pProfileComboBox), 794 796 wizard()->isSourceCloudOne()); 797 wizard()->wizardButton(WizardButtonType_Expert)->setEnabled(true); 795 798 796 799 /* Notify about changes: */ … … 816 819 CAppliance comAppliance; 817 820 CVirtualSystemDescriptionForm comForm; 821 wizard()->wizardButton(WizardButtonType_Expert)->setEnabled(false); 818 822 refreshCloudStuff(comAppliance, 819 823 comForm, … … 823 827 profileName(m_pProfileComboBox), 824 828 wizard()->isSourceCloudOne()); 829 wizard()->wizardButton(WizardButtonType_Expert)->setEnabled(true); 825 830 wizard()->setCloudAppliance(comAppliance); 826 831 wizard()->setVsdImportForm(comForm); -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newcloudvm/UIWizardNewCloudVMPageExpert.cpp
r94167 r94182 19 19 #include <QHeaderView> 20 20 #include <QListWidget> 21 #include <QPushButton> 21 22 #include <QTabBar> 22 23 #include <QVBoxLayout> … … 332 333 { 333 334 /* Update source type: */ 335 wizard()->wizardButton(WizardButtonType_Expert)->setEnabled(false); 334 336 populateSourceImages(m_pSourceImageList, m_pSourceTabBar, wizard()->notificationCenter(), wizard()->client()); 337 wizard()->wizardButton(WizardButtonType_Expert)->setEnabled(true); 335 338 sltHandleSourceImageChange(); 336 339 -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newcloudvm/UIWizardNewCloudVMPageSource.cpp
r93998 r94182 20 20 #include <QLabel> 21 21 #include <QListWidget> 22 #include <QPushButton> 22 23 #include <QTabBar> 23 24 #include <QVBoxLayout> … … 566 567 { 567 568 /* Update source type: */ 569 wizard()->wizardButton(WizardButtonType_Expert)->setEnabled(false); 568 570 populateSourceImages(m_pSourceImageList, m_pSourceTabBar, wizard()->notificationCenter(), wizard()->client()); 571 wizard()->wizardButton(WizardButtonType_Expert)->setEnabled(true); 569 572 sltHandleSourceImageChange(); 570 573
Note:
See TracChangeset
for help on using the changeset viewer.