VirtualBox

Changeset 91334 in vbox


Ignore:
Timestamp:
Sep 22, 2021 7:37:27 PM (4 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
147001
Message:

FE/Qt: bugref:9996: A bit of refactoring for Add/New Cloud VM wizards; Renaming short provider name to provider short name for consistency.

Location:
trunk/src/VBox/Frontends/VirtualBox/src/wizards
Files:
12 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified trunk/src/VBox/Frontends/VirtualBox/src/wizards/addcloudvm/UIWizardAddCloudVM.cpp

    r91241 r91334  
    6262                                                                                                         comMachine,
    6363                                                                                                         strInstanceName,
    64                                                                                                          shortProviderName(),
     64                                                                                                         providerShortName(),
    6565                                                                                                         profileName());
    6666        connect(pNotification, &UINotificationProgressCloudMachineAdd::sigCloudMachineAdded,
  • TabularUnified trunk/src/VBox/Frontends/VirtualBox/src/wizards/addcloudvm/UIWizardAddCloudVM.h

    r91241 r91334  
    4444
    4545    /** Defines @a strProviderShortName. */
    46     void setShortProviderName(const QString &strProviderShortName) { m_strProviderShortName = strProviderShortName; }
    47     /** Returns short provider name. */
    48     QString shortProviderName() const { return m_strProviderShortName; }
     46    void setProviderShortName(const QString &strProviderShortName) { m_strProviderShortName = strProviderShortName; }
     47    /** Returns provider short name. */
     48    QString providerShortName() const { return m_strProviderShortName; }
    4949
    5050    /** Defines @a strProfileName. */
  • TabularUnified trunk/src/VBox/Frontends/VirtualBox/src/wizards/addcloudvm/UIWizardAddCloudVMPageExpert.cpp

    r90375 r91334  
    225225}
    226226
    227 void UIWizardAddCloudVMPageExpert::setShortProviderName(const QString &strProviderShortName)
    228 {
    229     qobject_cast<UIWizardAddCloudVM*>(wizard())->setShortProviderName(strProviderShortName);
    230 }
    231 
    232 QString UIWizardAddCloudVMPageExpert::shortProviderName() const
    233 {
    234     return qobject_cast<UIWizardAddCloudVM*>(wizard())->shortProviderName();
     227void UIWizardAddCloudVMPageExpert::setProviderShortName(const QString &strProviderShortName)
     228{
     229    qobject_cast<UIWizardAddCloudVM*>(wizard())->setProviderShortName(strProviderShortName);
     230}
     231
     232QString UIWizardAddCloudVMPageExpert::providerShortName() const
     233{
     234    return qobject_cast<UIWizardAddCloudVM*>(wizard())->providerShortName();
    235235}
    236236
     
    268268{
    269269    updateComboToolTip(m_pProviderComboBox);
    270     setShortProviderName(m_pProviderComboBox->currentData(ProviderData_ShortName).toString());
    271     CCloudProvider comCloudProvider = cloudProviderByShortName(shortProviderName(), wizard());
     270    setProviderShortName(m_pProviderComboBox->currentData(ProviderData_ShortName).toString());
     271    CCloudProvider comCloudProvider = cloudProviderByShortName(providerShortName(), wizard());
    272272    populateProfiles(m_pProfileComboBox, comCloudProvider);
    273273    updateProfile();
     
    277277{
    278278    setProfileName(m_pProfileComboBox->currentData(ProfileData_Name).toString());
    279     setClient(cloudClientByName(shortProviderName(), profileName(), wizard()));
     279    setClient(cloudClientByName(providerShortName(), profileName(), wizard()));
    280280    populateProfileInstances(m_pSourceInstanceList, client());
    281281    updateSourceInstance();
  • TabularUnified trunk/src/VBox/Frontends/VirtualBox/src/wizards/addcloudvm/UIWizardAddCloudVMPageExpert.h

    r91240 r91334  
    6868private:
    6969
    70     /** Defines short provider name. */
    71     void setShortProviderName(const QString &strProviderShortName);
    72     /** Returns profile name. */
    73     QString shortProviderName() const;
     70    /** Defines provider short name. */
     71    void setProviderShortName(const QString &strProviderShortName);
     72    /** Returns provider short name. */
     73    QString providerShortName() const;
    7474
    7575    /** Defines profile name. */
  • TabularUnified trunk/src/VBox/Frontends/VirtualBox/src/wizards/addcloudvm/UIWizardAddCloudVMPageSource.cpp

    r91240 r91334  
    481481}
    482482
    483 void UIWizardAddCloudVMPageSource::setShortProviderName(const QString &strProviderShortName)
    484 {
    485     qobject_cast<UIWizardAddCloudVM*>(wizard())->setShortProviderName(strProviderShortName);
    486 }
    487 
    488 QString UIWizardAddCloudVMPageSource::shortProviderName() const
    489 {
    490     return qobject_cast<UIWizardAddCloudVM*>(wizard())->shortProviderName();
     483void UIWizardAddCloudVMPageSource::setProviderShortName(const QString &strProviderShortName)
     484{
     485    qobject_cast<UIWizardAddCloudVM*>(wizard())->setProviderShortName(strProviderShortName);
     486}
     487
     488QString UIWizardAddCloudVMPageSource::providerShortName() const
     489{
     490    return qobject_cast<UIWizardAddCloudVM*>(wizard())->providerShortName();
    491491}
    492492
     
    524524{
    525525    updateComboToolTip(m_pProviderComboBox);
    526     setShortProviderName(m_pProviderComboBox->currentData(ProviderData_ShortName).toString());
    527     CCloudProvider comCloudProvider = cloudProviderByShortName(shortProviderName(), wizard());
     526    setProviderShortName(m_pProviderComboBox->currentData(ProviderData_ShortName).toString());
     527    CCloudProvider comCloudProvider = cloudProviderByShortName(providerShortName(), wizard());
    528528    populateProfiles(m_pProfileComboBox, comCloudProvider);
    529529    updateProfile();
     
    533533{
    534534    setProfileName(m_pProfileComboBox->currentData(ProfileData_Name).toString());
    535     setClient(cloudClientByName(shortProviderName(), profileName(), wizard()));
     535    setClient(cloudClientByName(providerShortName(), profileName(), wizard()));
    536536    populateProfileInstances(m_pSourceInstanceList, client());
    537537    updateSourceInstance();
  • TabularUnified trunk/src/VBox/Frontends/VirtualBox/src/wizards/addcloudvm/UIWizardAddCloudVMPageSource.h

    r91240 r91334  
    107107private:
    108108
    109     /** Defines short provider name. */
    110     void setShortProviderName(const QString &strProviderShortName);
    111     /** Returns profile name. */
    112     QString shortProviderName() const;
     109    /** Defines provider short name. */
     110    void setProviderShortName(const QString &strProviderShortName);
     111    /** Returns provider short name. */
     112    QString providerShortName() const;
    113113
    114114    /** Defines profile name. */
  • TabularUnified trunk/src/VBox/Frontends/VirtualBox/src/wizards/newcloudvm/UIWizardNewCloudVM.cpp

    r91240 r91334  
    142142                                                                                                           comMachine,
    143143                                                                                                           comVSD,
    144                                                                                                            shortProviderName(),
     144                                                                                                           providerShortName(),
    145145                                                                                                           profileName());
    146146    connect(pNotification, &UINotificationProgressCloudMachineCreate::sigCloudMachineCreated,
  • TabularUnified trunk/src/VBox/Frontends/VirtualBox/src/wizards/newcloudvm/UIWizardNewCloudVM.h

    r90375 r91334  
    5555
    5656    /** Defines @a strProviderShortName. */
    57     void setShortProviderName(const QString &strProviderShortName) { m_strProviderShortName = strProviderShortName; }
    58     /** Returns short provider name. */
    59     QString shortProviderName() const { return m_strProviderShortName; }
     57    void setProviderShortName(const QString &strProviderShortName) { m_strProviderShortName = strProviderShortName; }
     58    /** Returns provider short name. */
     59    QString providerShortName() const { return m_strProviderShortName; }
    6060
    6161    /** Defines @a strProfileName. */
  • TabularUnified trunk/src/VBox/Frontends/VirtualBox/src/wizards/newcloudvm/UIWizardNewCloudVMPageExpert.cpp

    r90729 r91334  
    356356}
    357357
    358 void UIWizardNewCloudVMPageExpert::setShortProviderName(const QString &strProviderShortName)
    359 {
    360     qobject_cast<UIWizardNewCloudVM*>(wizard())->setShortProviderName(strProviderShortName);
    361 }
    362 
    363 QString UIWizardNewCloudVMPageExpert::shortProviderName() const
    364 {
    365     return qobject_cast<UIWizardNewCloudVM*>(wizard())->shortProviderName();
     358void UIWizardNewCloudVMPageExpert::setProviderShortName(const QString &strProviderShortName)
     359{
     360    qobject_cast<UIWizardNewCloudVM*>(wizard())->setProviderShortName(strProviderShortName);
     361}
     362
     363QString UIWizardNewCloudVMPageExpert::providerShortName() const
     364{
     365    return qobject_cast<UIWizardNewCloudVM*>(wizard())->providerShortName();
    366366}
    367367
     
    409409{
    410410    updateComboToolTip(m_pProviderComboBox);
    411     setShortProviderName(m_pProviderComboBox->currentData(ProviderData_ShortName).toString());
    412     CCloudProvider comCloudProvider = cloudProviderByShortName(shortProviderName(), wizard());
     411    setProviderShortName(m_pProviderComboBox->currentData(ProviderData_ShortName).toString());
     412    CCloudProvider comCloudProvider = cloudProviderByShortName(providerShortName(), wizard());
    413413    populateProfiles(m_pProfileComboBox, comCloudProvider);
    414414    updateProfile();
     
    418418{
    419419    setProfileName(m_pProfileComboBox->currentData(ProfileData_Name).toString());
    420     setClient(cloudClientByName(shortProviderName(), profileName(), wizard()));
     420    setClient(cloudClientByName(providerShortName(), profileName(), wizard()));
    421421    updateSource();
    422422}
  • TabularUnified trunk/src/VBox/Frontends/VirtualBox/src/wizards/newcloudvm/UIWizardNewCloudVMPageExpert.h

    r91240 r91334  
    7575private:
    7676
    77     /** Defines short provider name. */
    78     void setShortProviderName(const QString &strProviderShortName);
    79     /** Returns profile name. */
    80     QString shortProviderName() const;
     77    /** Defines provider short name. */
     78    void setProviderShortName(const QString &strProviderShortName);
     79    /** Returns provider short name. */
     80    QString providerShortName() const;
    8181
    8282    /** Defines profile name. */
  • TabularUnified trunk/src/VBox/Frontends/VirtualBox/src/wizards/newcloudvm/UIWizardNewCloudVMPageSource.cpp

    r91240 r91334  
    556556}
    557557
    558 void UIWizardNewCloudVMPageSource::setShortProviderName(const QString &strProviderShortName)
    559 {
    560     qobject_cast<UIWizardNewCloudVM*>(wizard())->setShortProviderName(strProviderShortName);
    561 }
    562 
    563 QString UIWizardNewCloudVMPageSource::shortProviderName() const
    564 {
    565     return qobject_cast<UIWizardNewCloudVM*>(wizard())->shortProviderName();
     558void UIWizardNewCloudVMPageSource::setProviderShortName(const QString &strProviderShortName)
     559{
     560    qobject_cast<UIWizardNewCloudVM*>(wizard())->setProviderShortName(strProviderShortName);
     561}
     562
     563QString UIWizardNewCloudVMPageSource::providerShortName() const
     564{
     565    return qobject_cast<UIWizardNewCloudVM*>(wizard())->providerShortName();
    566566}
    567567
     
    604604{
    605605    updateComboToolTip(m_pProviderComboBox);
    606     setShortProviderName(m_pProviderComboBox->currentData(ProviderData_ShortName).toString());
    607     CCloudProvider comCloudProvider = cloudProviderByShortName(shortProviderName(), wizard());
     606    setProviderShortName(m_pProviderComboBox->currentData(ProviderData_ShortName).toString());
     607    CCloudProvider comCloudProvider = cloudProviderByShortName(providerShortName(), wizard());
    608608    populateProfiles(m_pProfileComboBox, comCloudProvider);
    609609    updateProfile();
     
    613613{
    614614    setProfileName(m_pProfileComboBox->currentData(ProfileData_Name).toString());
    615     setClient(cloudClientByName(shortProviderName(), profileName(), wizard()));
     615    setClient(cloudClientByName(providerShortName(), profileName(), wizard()));
    616616    updateSource();
    617617}
  • TabularUnified trunk/src/VBox/Frontends/VirtualBox/src/wizards/newcloudvm/UIWizardNewCloudVMPageSource.h

    r91240 r91334  
    116116private:
    117117
    118     /** Defines short provider name. */
    119     void setShortProviderName(const QString &strProviderShortName);
    120     /** Returns profile name. */
    121     QString shortProviderName() const;
     118    /** Defines provider short name. */
     119    void setProviderShortName(const QString &strProviderShortName);
     120    /** Returns provider short name. */
     121    QString providerShortName() const;
    122122
    123123    /** Defines profile name. */
Note: See TracChangeset for help on using the changeset viewer.

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