VirtualBox

Changeset 79587 in vbox for trunk/src/VBox/Frontends


Ignore:
Timestamp:
Jul 8, 2019 10:01:12 AM (6 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:9495: New Cloud VM wizard: 2nd basic and expert pages: Adjusting validation.

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  
    4444    if (comForm.isNotNull())
    4545        m_pFormEditor->setVirtualSystemDescriptionForm(comForm);
     46}
     47
     48CCloudClient UIWizardNewCloudVMPage2::client() const
     49{
     50    return qobject_cast<UIWizardNewCloudVM*>(wizardImp())->client();
     51}
     52
     53CVirtualSystemDescription UIWizardNewCloudVMPage2::vsd() const
     54{
     55    return qobject_cast<UIWizardNewCloudVM*>(wizardImp())->vsd();
    4656}
    4757
     
    113123}
    114124
     125bool 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
    115139bool UIWizardNewCloudVMPageBasic2::validatePage()
    116140{
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/newcloudvm/UIWizardNewCloudVMPageBasic2.h

    r79580 r79587  
    2626#include "UIWizardPage.h"
    2727
     28/* COM includes: */
     29#include "COMEnums.h"
     30#include "CCloudClient.h"
     31#include "CVirtualSystemDescription.h"
     32#include "CVirtualSystemDescriptionForm.h"
     33
    2834/* Forward declarations: */
    2935class QIRichTextLabel;
     
    4046    void refreshFormPropertiesTable();
    4147
     48    /** Returns Cloud Client object. */
     49    CCloudClient client() const;
     50    /** Returns Virtual System Description object. */
     51    CVirtualSystemDescription vsd() const;
    4252    /** Returns Virtual System Description Form object. */
    4353    CVirtualSystemDescriptionForm vsdForm() const;
     
    7383    virtual void initializePage() /* override */;
    7484
     85    /** Returns whether page is complete. */
     86    virtual bool isComplete() const /* override */;
     87
    7588    /** Performs page validation. */
    7689    virtual bool validatePage() /* override */;
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/newcloudvm/UIWizardNewCloudVMPageExpert.cpp

    r79580 r79587  
    252252
    253253    /* Check cloud settings: */
    254     fResult =    client().isNotNull()
    255               && !imageId().isNull()
    256               && vsd().isNotNull()
     254    fResult =    UIWizardNewCloudVMPage1::client().isNotNull()
     255              && UIWizardNewCloudVMPage1::vsd().isNotNull()
    257256              && UIWizardNewCloudVMPage1::vsdForm().isNotNull();
    258257
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette