Changeset 79587 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- Jul 8, 2019 10:01:12 AM (6 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/wizards/newcloudvm
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newcloudvm/UIWizardNewCloudVMPageBasic2.cpp
r79580 r79587 44 44 if (comForm.isNotNull()) 45 45 m_pFormEditor->setVirtualSystemDescriptionForm(comForm); 46 } 47 48 CCloudClient UIWizardNewCloudVMPage2::client() const 49 { 50 return qobject_cast<UIWizardNewCloudVM*>(wizardImp())->client(); 51 } 52 53 CVirtualSystemDescription UIWizardNewCloudVMPage2::vsd() const 54 { 55 return qobject_cast<UIWizardNewCloudVM*>(wizardImp())->vsd(); 46 56 } 47 57 … … 113 123 } 114 124 125 bool UIWizardNewCloudVMPageBasic2::isComplete() const 126 { 127 /* Initial result: */ 128 bool fResult = true; 129 130 /* Check cloud settings: */ 131 fResult = client().isNotNull() 132 && vsd().isNotNull() 133 && vsdForm().isNotNull(); 134 135 /* Return result: */ 136 return fResult; 137 } 138 115 139 bool UIWizardNewCloudVMPageBasic2::validatePage() 116 140 { -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newcloudvm/UIWizardNewCloudVMPageBasic2.h
r79580 r79587 26 26 #include "UIWizardPage.h" 27 27 28 /* COM includes: */ 29 #include "COMEnums.h" 30 #include "CCloudClient.h" 31 #include "CVirtualSystemDescription.h" 32 #include "CVirtualSystemDescriptionForm.h" 33 28 34 /* Forward declarations: */ 29 35 class QIRichTextLabel; … … 40 46 void refreshFormPropertiesTable(); 41 47 48 /** Returns Cloud Client object. */ 49 CCloudClient client() const; 50 /** Returns Virtual System Description object. */ 51 CVirtualSystemDescription vsd() const; 42 52 /** Returns Virtual System Description Form object. */ 43 53 CVirtualSystemDescriptionForm vsdForm() const; … … 73 83 virtual void initializePage() /* override */; 74 84 85 /** Returns whether page is complete. */ 86 virtual bool isComplete() const /* override */; 87 75 88 /** Performs page validation. */ 76 89 virtual bool validatePage() /* override */; -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newcloudvm/UIWizardNewCloudVMPageExpert.cpp
r79580 r79587 252 252 253 253 /* Check cloud settings: */ 254 fResult = client().isNotNull() 255 && !imageId().isNull() 256 && vsd().isNotNull() 254 fResult = UIWizardNewCloudVMPage1::client().isNotNull() 255 && UIWizardNewCloudVMPage1::vsd().isNotNull() 257 256 && UIWizardNewCloudVMPage1::vsdForm().isNotNull(); 258 257
Note:
See TracChangeset
for help on using the changeset viewer.