VirtualBox

Changeset 91240 in vbox


Ignore:
Timestamp:
Sep 15, 2021 9:07:48 AM (3 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:9996: Rename New/Add Cloud VM wizard pages accordingly.

Location:
trunk/src/VBox/Frontends/VirtualBox
Files:
5 edited
6 moved

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/Makefile.kmk

    r91152 r91240  
    649649        src/widgets/graphics/UIGraphicsTextPane.h \
    650650        src/wizards/addcloudvm/UIWizardAddCloudVM.h \
    651         src/wizards/addcloudvm/UIWizardAddCloudVMPageBasic1.h \
    652651        src/wizards/addcloudvm/UIWizardAddCloudVMPageExpert.h \
     652        src/wizards/addcloudvm/UIWizardAddCloudVMPageSource.h \
    653653        src/wizards/editors/UIHostnameDomainNameEditor.h \
    654654        src/wizards/editors/UIUserNamePasswordEditor.h \
     
    656656        src/wizards/editors/UIWizardNewVMEditors.h \
    657657        src/wizards/newcloudvm/UIWizardNewCloudVM.h \
    658         src/wizards/newcloudvm/UIWizardNewCloudVMPageBasic1.h \
    659         src/wizards/newcloudvm/UIWizardNewCloudVMPageBasic2.h \
    660658        src/wizards/newcloudvm/UIWizardNewCloudVMPageExpert.h \
     659        src/wizards/newcloudvm/UIWizardNewCloudVMPageProperties.h \
     660        src/wizards/newcloudvm/UIWizardNewCloudVMPageSource.h \
    661661        src/wizards/newvm/UIWizardNewVM.h \
    662662        src/wizards/newvm/UIWizardNewVMNameOSTypePage.h \
     
    11581158        src/widgets/graphics/UIGraphicsTextPane.cpp \
    11591159        src/wizards/addcloudvm/UIWizardAddCloudVM.cpp \
    1160         src/wizards/addcloudvm/UIWizardAddCloudVMPageBasic1.cpp \
    11611160        src/wizards/addcloudvm/UIWizardAddCloudVMPageExpert.cpp \
     1161        src/wizards/addcloudvm/UIWizardAddCloudVMPageSource.cpp \
    11621162        src/wizards/editors/UIHostnameDomainNameEditor.cpp \
    11631163        src/wizards/editors/UIUserNamePasswordEditor.cpp \
     
    11651165        src/wizards/editors/UIWizardNewVMEditors.cpp \
    11661166        src/wizards/newcloudvm/UIWizardNewCloudVM.cpp \
    1167         src/wizards/newcloudvm/UIWizardNewCloudVMPageBasic1.cpp \
    1168         src/wizards/newcloudvm/UIWizardNewCloudVMPageBasic2.cpp \
    11691167        src/wizards/newcloudvm/UIWizardNewCloudVMPageExpert.cpp \
     1168        src/wizards/newcloudvm/UIWizardNewCloudVMPageProperties.cpp \
     1169        src/wizards/newcloudvm/UIWizardNewCloudVMPageSource.cpp \
    11701170        src/wizards/newvm/UIWizardNewVM.cpp \
    11711171        src/wizards/newvm/UIWizardNewVMNameOSTypePage.cpp \
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/addcloudvm/UIWizardAddCloudVM.cpp

    r90564 r91240  
    2121#include "UINotificationCenter.h"
    2222#include "UIWizardAddCloudVM.h"
    23 #include "UIWizardAddCloudVMPageBasic1.h"
    2423#include "UIWizardAddCloudVMPageExpert.h"
     24#include "UIWizardAddCloudVMPageSource.h"
    2525
    2626/* COM includes: */
     
    8484        case WizardMode_Basic:
    8585        {
    86             addPage(new UIWizardAddCloudVMPageBasic1);
     86            addPage(new UIWizardAddCloudVMPageSource);
    8787            break;
    8888        }
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/addcloudvm/UIWizardAddCloudVMPageExpert.h

    r90375 r91240  
    2323
    2424/* GUI includes: */
    25 #include "UIWizardAddCloudVMPageBasic1.h"
     25#include "UIWizardAddCloudVMPageSource.h"
    2626
    2727/* Forward declarations: */
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/addcloudvm/UIWizardAddCloudVMPageSource.cpp

    r91239 r91240  
    11/* $Id$ */
    22/** @file
    3  * VBox Qt GUI - UIWizardAddCloudVMPageBasic1 class implementation.
     3 * VBox Qt GUI - UIWizardAddCloudVMPageSource class implementation.
    44 */
    55
     
    3333#include "UIVirtualBoxManager.h"
    3434#include "UIWizardAddCloudVM.h"
    35 #include "UIWizardAddCloudVMPageBasic1.h"
     35#include "UIWizardAddCloudVMPageSource.h"
    3636
    3737/* COM includes: */
     
    232232
    233233/*********************************************************************************************************************************
    234 *   Class UIWizardAddCloudVMPageBasic1 implementation.                                                                           *
     234*   Class UIWizardAddCloudVMPageSource implementation.                                                                           *
    235235*********************************************************************************************************************************/
    236236
    237 UIWizardAddCloudVMPageBasic1::UIWizardAddCloudVMPageBasic1()
     237UIWizardAddCloudVMPageSource::UIWizardAddCloudVMPageSource()
    238238    : m_pLabelMain(0)
    239239    , m_pProviderLayout(0)
     
    361361    /* Setup connections: */
    362362    connect(gVBoxEvents, &UIVirtualBoxEventHandler::sigCloudProfileRegistered,
    363             this, &UIWizardAddCloudVMPageBasic1::sltHandleProviderComboChange);
     363            this, &UIWizardAddCloudVMPageSource::sltHandleProviderComboChange);
    364364    connect(gVBoxEvents, &UIVirtualBoxEventHandler::sigCloudProfileChanged,
    365             this, &UIWizardAddCloudVMPageBasic1::sltHandleProviderComboChange);
     365            this, &UIWizardAddCloudVMPageSource::sltHandleProviderComboChange);
    366366    connect(m_pProviderComboBox, static_cast<void(QIComboBox::*)(int)>(&QIComboBox::activated),
    367             this, &UIWizardAddCloudVMPageBasic1::sltHandleProviderComboChange);
     367            this, &UIWizardAddCloudVMPageSource::sltHandleProviderComboChange);
    368368    connect(m_pProfileComboBox, static_cast<void(QIComboBox::*)(int)>(&QIComboBox::currentIndexChanged),
    369             this, &UIWizardAddCloudVMPageBasic1::sltHandleProfileComboChange);
     369            this, &UIWizardAddCloudVMPageSource::sltHandleProfileComboChange);
    370370    connect(m_pProfileToolButton, &QIToolButton::clicked,
    371             this, &UIWizardAddCloudVMPageBasic1::sltHandleProfileButtonClick);
     371            this, &UIWizardAddCloudVMPageSource::sltHandleProfileButtonClick);
    372372    connect(m_pSourceInstanceList, &QListWidget::currentRowChanged,
    373             this, &UIWizardAddCloudVMPageBasic1::sltHandleSourceInstanceChange);
    374 }
    375 
    376 void UIWizardAddCloudVMPageBasic1::retranslateUi()
     373            this, &UIWizardAddCloudVMPageSource::sltHandleSourceInstanceChange);
     374}
     375
     376void UIWizardAddCloudVMPageSource::retranslateUi()
    377377{
    378378    /* Translate page: */
     
    419419}
    420420
    421 void UIWizardAddCloudVMPageBasic1::initializePage()
     421void UIWizardAddCloudVMPageSource::initializePage()
    422422{
    423423    /* Populate providers: */
     
    431431}
    432432
    433 bool UIWizardAddCloudVMPageBasic1::isComplete() const
     433bool UIWizardAddCloudVMPageSource::isComplete() const
    434434{
    435435    /* Initial result: */
     
    445445}
    446446
    447 bool UIWizardAddCloudVMPageBasic1::validatePage()
     447bool UIWizardAddCloudVMPageSource::validatePage()
    448448{
    449449    /* Initial result: */
     
    457457}
    458458
    459 void UIWizardAddCloudVMPageBasic1::sltHandleProviderComboChange()
     459void UIWizardAddCloudVMPageSource::sltHandleProviderComboChange()
    460460{
    461461    updateProvider();
     
    463463}
    464464
    465 void UIWizardAddCloudVMPageBasic1::sltHandleProfileComboChange()
     465void UIWizardAddCloudVMPageSource::sltHandleProfileComboChange()
    466466{
    467467    updateProfile();
     
    469469}
    470470
    471 void UIWizardAddCloudVMPageBasic1::sltHandleProfileButtonClick()
     471void UIWizardAddCloudVMPageSource::sltHandleProfileButtonClick()
    472472{
    473473    if (gpManager)
     
    475475}
    476476
    477 void UIWizardAddCloudVMPageBasic1::sltHandleSourceInstanceChange()
     477void UIWizardAddCloudVMPageSource::sltHandleSourceInstanceChange()
    478478{
    479479    updateSourceInstance();
     
    481481}
    482482
    483 void UIWizardAddCloudVMPageBasic1::setShortProviderName(const QString &strProviderShortName)
     483void UIWizardAddCloudVMPageSource::setShortProviderName(const QString &strProviderShortName)
    484484{
    485485    qobject_cast<UIWizardAddCloudVM*>(wizard())->setShortProviderName(strProviderShortName);
    486486}
    487487
    488 QString UIWizardAddCloudVMPageBasic1::shortProviderName() const
     488QString UIWizardAddCloudVMPageSource::shortProviderName() const
    489489{
    490490    return qobject_cast<UIWizardAddCloudVM*>(wizard())->shortProviderName();
    491491}
    492492
    493 void UIWizardAddCloudVMPageBasic1::setProfileName(const QString &strProfileName)
     493void UIWizardAddCloudVMPageSource::setProfileName(const QString &strProfileName)
    494494{
    495495    qobject_cast<UIWizardAddCloudVM*>(wizard())->setProfileName(strProfileName);
    496496}
    497497
    498 QString UIWizardAddCloudVMPageBasic1::profileName() const
     498QString UIWizardAddCloudVMPageSource::profileName() const
    499499{
    500500    return qobject_cast<UIWizardAddCloudVM*>(wizard())->profileName();
    501501}
    502502
    503 void UIWizardAddCloudVMPageBasic1::setClient(const CCloudClient &comClient)
     503void UIWizardAddCloudVMPageSource::setClient(const CCloudClient &comClient)
    504504{
    505505    qobject_cast<UIWizardAddCloudVM*>(wizard())->setClient(comClient);
    506506}
    507507
    508 CCloudClient UIWizardAddCloudVMPageBasic1::client() const
     508CCloudClient UIWizardAddCloudVMPageSource::client() const
    509509{
    510510    return qobject_cast<UIWizardAddCloudVM*>(wizard())->client();
    511511}
    512512
    513 void UIWizardAddCloudVMPageBasic1::setInstanceIds(const QStringList &instanceIds)
     513void UIWizardAddCloudVMPageSource::setInstanceIds(const QStringList &instanceIds)
    514514{
    515515    qobject_cast<UIWizardAddCloudVM*>(wizard())->setInstanceIds(instanceIds);
    516516}
    517517
    518 QStringList UIWizardAddCloudVMPageBasic1::instanceIds() const
     518QStringList UIWizardAddCloudVMPageSource::instanceIds() const
    519519{
    520520    return qobject_cast<UIWizardAddCloudVM*>(wizard())->instanceIds();
    521521}
    522522
    523 void UIWizardAddCloudVMPageBasic1::updateProvider()
     523void UIWizardAddCloudVMPageSource::updateProvider()
    524524{
    525525    updateComboToolTip(m_pProviderComboBox);
     
    530530}
    531531
    532 void UIWizardAddCloudVMPageBasic1::updateProfile()
     532void UIWizardAddCloudVMPageSource::updateProfile()
    533533{
    534534    setProfileName(m_pProfileComboBox->currentData(ProfileData_Name).toString());
     
    538538}
    539539
    540 void UIWizardAddCloudVMPageBasic1::updateSourceInstance()
     540void UIWizardAddCloudVMPageSource::updateSourceInstance()
    541541{
    542542    setInstanceIds(currentListWidgetData(m_pSourceInstanceList));
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/addcloudvm/UIWizardAddCloudVMPageSource.h

    r91239 r91240  
    11/* $Id$ */
    22/** @file
    3  * VBox Qt GUI - UIWizardAddCloudVMPageBasic1 class declaration.
     3 * VBox Qt GUI - UIWizardAddCloudVMPageSource class declaration.
    44 */
    55
     
    1616 */
    1717
    18 #ifndef FEQT_INCLUDED_SRC_wizards_addcloudvm_UIWizardAddCloudVMPageBasic1_h
    19 #define FEQT_INCLUDED_SRC_wizards_addcloudvm_UIWizardAddCloudVMPageBasic1_h
     18#ifndef FEQT_INCLUDED_SRC_wizards_addcloudvm_UIWizardAddCloudVMPageSource_h
     19#define FEQT_INCLUDED_SRC_wizards_addcloudvm_UIWizardAddCloudVMPageSource_h
    2020#ifndef RT_WITHOUT_PRAGMA_ONCE
    2121# pragma once
     
    5050};
    5151
    52 /** Namespace for 1st page of the Add Cloud VM wizard. */
     52/** Namespace for Source page of the Add Cloud VM wizard. */
    5353namespace UIWizardAddCloudVMPage1
    5454{
     
    6767}
    6868
    69 /** UINativeWizardPage extension for 1st page of the Add Cloud VM wizard,
     69/** UINativeWizardPage extension for Source page of the Add Cloud VM wizard,
    7070  * based on UIWizardAddCloudVMPage1 namespace functions. */
    71 class UIWizardAddCloudVMPageBasic1 : public UINativeWizardPage
     71class UIWizardAddCloudVMPageSource : public UINativeWizardPage
    7272{
    7373    Q_OBJECT;
     
    7575public:
    7676
    77     /** Constructs 1st basic page. */
    78     UIWizardAddCloudVMPageBasic1();
     77    /** Constructs Source page. */
     78    UIWizardAddCloudVMPageSource();
    7979
    8080protected:
     
    161161};
    162162
    163 #endif /* !FEQT_INCLUDED_SRC_wizards_addcloudvm_UIWizardAddCloudVMPageBasic1_h */
     163#endif /* !FEQT_INCLUDED_SRC_wizards_addcloudvm_UIWizardAddCloudVMPageSource_h */
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/newcloudvm/UIWizardNewCloudVM.cpp

    r90747 r91240  
    2525#include "UIProgressObject.h"
    2626#include "UIWizardNewCloudVM.h"
    27 #include "UIWizardNewCloudVMPageBasic1.h"
    28 #include "UIWizardNewCloudVMPageBasic2.h"
     27#include "UIWizardNewCloudVMPageSource.h"
     28#include "UIWizardNewCloudVMPageProperties.h"
    2929#include "UIWizardNewCloudVMPageExpert.h"
    3030
     
    168168        {
    169169            if (m_fFullWizard)
    170                 addPage(new UIWizardNewCloudVMPageBasic1);
    171             addPage(new UIWizardNewCloudVMPageBasic2);
     170                addPage(new UIWizardNewCloudVMPageSource);
     171            addPage(new UIWizardNewCloudVMPageProperties);
    172172            break;
    173173        }
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/newcloudvm/UIWizardNewCloudVMPageExpert.h

    r90375 r91240  
    2323
    2424/* GUI includes: */
    25 #include "UIWizardNewCloudVMPageBasic1.h"
    26 #include "UIWizardNewCloudVMPageBasic2.h"
     25#include "UIWizardNewCloudVMPageSource.h"
     26#include "UIWizardNewCloudVMPageProperties.h"
    2727
    2828/* Forward declarations: */
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/newcloudvm/UIWizardNewCloudVMPageProperties.cpp

    r91239 r91240  
    11/* $Id$ */
    22/** @file
    3  * VBox Qt GUI - UIWizardNewCloudVMPageBasic2 class implementation.
     3 * VBox Qt GUI - UIWizardNewCloudVMPageProperties class implementation.
    44 */
    55
     
    2424#include "UIMessageCenter.h"
    2525#include "UIWizardNewCloudVM.h"
    26 #include "UIWizardNewCloudVMPageBasic2.h"
     26#include "UIWizardNewCloudVMPageProperties.h"
    2727
    2828/* Namespaces: */
     
    4747
    4848/*********************************************************************************************************************************
    49 *   Class UIWizardNewCloudVMPageBasic2 implementation.                                                                           *
     49*   Class UIWizardNewCloudVMPageProperties implementation.                                                                       *
    5050*********************************************************************************************************************************/
    5151
    52 UIWizardNewCloudVMPageBasic2::UIWizardNewCloudVMPageBasic2()
     52UIWizardNewCloudVMPageProperties::UIWizardNewCloudVMPageProperties()
    5353{
    5454    /* Prepare main layout: */
     
    7373            /* Setup connections: */
    7474            connect(m_pFormEditor, &UIFormEditorWidget::sigProgressStarted,
    75                     this, &UIWizardNewCloudVMPageBasic2::sigProgressStarted);
     75                    this, &UIWizardNewCloudVMPageProperties::sigProgressStarted);
    7676            connect(m_pFormEditor, &UIFormEditorWidget::sigProgressChange,
    77                     this, &UIWizardNewCloudVMPageBasic2::sigProgressChange);
     77                    this, &UIWizardNewCloudVMPageProperties::sigProgressChange);
    7878            connect(m_pFormEditor, &UIFormEditorWidget::sigProgressFinished,
    79                     this, &UIWizardNewCloudVMPageBasic2::sigProgressFinished);
     79                    this, &UIWizardNewCloudVMPageProperties::sigProgressFinished);
    8080
    8181            /* Add into layout: */
     
    8585}
    8686
    87 void UIWizardNewCloudVMPageBasic2::retranslateUi()
     87void UIWizardNewCloudVMPageProperties::retranslateUi()
    8888{
    8989    /* Translate page: */
     
    9797}
    9898
    99 void UIWizardNewCloudVMPageBasic2::initializePage()
     99void UIWizardNewCloudVMPageProperties::initializePage()
    100100{
    101101    /* Generate VSD form, asynchronously: */
     
    103103}
    104104
    105 bool UIWizardNewCloudVMPageBasic2::isComplete() const
     105bool UIWizardNewCloudVMPageProperties::isComplete() const
    106106{
    107107    /* Initial result: */
     
    116116}
    117117
    118 bool UIWizardNewCloudVMPageBasic2::validatePage()
     118bool UIWizardNewCloudVMPageProperties::validatePage()
    119119{
    120120    /* Initial result: */
     
    153153}
    154154
    155 void UIWizardNewCloudVMPageBasic2::sltInitShortWizardForm()
     155void UIWizardNewCloudVMPageProperties::sltInitShortWizardForm()
    156156{
    157157    /* Create Virtual System Description Form: */
     
    164164}
    165165
    166 CCloudClient UIWizardNewCloudVMPageBasic2::client() const
     166CCloudClient UIWizardNewCloudVMPageProperties::client() const
    167167{
    168168    return qobject_cast<UIWizardNewCloudVM*>(wizard())->client();
    169169}
    170170
    171 CVirtualSystemDescription UIWizardNewCloudVMPageBasic2::vsd() const
     171CVirtualSystemDescription UIWizardNewCloudVMPageProperties::vsd() const
    172172{
    173173    return qobject_cast<UIWizardNewCloudVM*>(wizard())->vsd();
    174174}
    175175
    176 void UIWizardNewCloudVMPageBasic2::setVSDForm(const CVirtualSystemDescriptionForm &comForm)
     176void UIWizardNewCloudVMPageProperties::setVSDForm(const CVirtualSystemDescriptionForm &comForm)
    177177{
    178178    qobject_cast<UIWizardNewCloudVM*>(wizard())->setVSDForm(comForm);
    179179}
    180180
    181 CVirtualSystemDescriptionForm UIWizardNewCloudVMPageBasic2::vsdForm() const
     181CVirtualSystemDescriptionForm UIWizardNewCloudVMPageProperties::vsdForm() const
    182182{
    183183    return qobject_cast<UIWizardNewCloudVM*>(wizard())->vsdForm();
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/newcloudvm/UIWizardNewCloudVMPageProperties.h

    r91239 r91240  
    11/* $Id$ */
    22/** @file
    3  * VBox Qt GUI - UIWizardNewCloudVMPageBasic2 class declaration.
     3 * VBox Qt GUI - UIWizardNewCloudVMPageProperties class declaration.
    44 */
    55
     
    1616 */
    1717
    18 #ifndef FEQT_INCLUDED_SRC_wizards_newcloudvm_UIWizardNewCloudVMPageBasic2_h
    19 #define FEQT_INCLUDED_SRC_wizards_newcloudvm_UIWizardNewCloudVMPageBasic2_h
     18#ifndef FEQT_INCLUDED_SRC_wizards_newcloudvm_UIWizardNewCloudVMPageProperties_h
     19#define FEQT_INCLUDED_SRC_wizards_newcloudvm_UIWizardNewCloudVMPageProperties_h
    2020#ifndef RT_WITHOUT_PRAGMA_ONCE
    2121# pragma once
     
    4444/** UINativeWizardPage extension for 2nd page of the New Cloud VM wizard,
    4545  * based on UIWizardNewCloudVMPage2 namespace functions. */
    46 class UIWizardNewCloudVMPageBasic2 : public UINativeWizardPage
     46class UIWizardNewCloudVMPageProperties : public UINativeWizardPage
    4747{
    4848    Q_OBJECT;
     
    5151
    5252    /** Constructs 2nd basic page. */
    53     UIWizardNewCloudVMPageBasic2();
     53    UIWizardNewCloudVMPageProperties();
    5454
    5555protected:
     
    9191};
    9292
    93 #endif /* !FEQT_INCLUDED_SRC_wizards_newcloudvm_UIWizardNewCloudVMPageBasic2_h */
     93#endif /* !FEQT_INCLUDED_SRC_wizards_newcloudvm_UIWizardNewCloudVMPageProperties_h */
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/newcloudvm/UIWizardNewCloudVMPageSource.cpp

    r91239 r91240  
    11/* $Id$ */
    22/** @file
    3  * VBox Qt GUI - UIWizardNewCloudVMPageBasic1 class implementation.
     3 * VBox Qt GUI - UIWizardNewCloudVMPageSource class implementation.
    44 */
    55
     
    3535#include "UIVirtualBoxManager.h"
    3636#include "UIWizardNewCloudVM.h"
    37 #include "UIWizardNewCloudVMPageBasic1.h"
     37#include "UIWizardNewCloudVMPageSource.h"
    3838
    3939/* COM includes: */
     
    266266
    267267/*********************************************************************************************************************************
    268 *   Class UIWizardNewCloudVMPageBasic1 implementation.                                                                           *
     268*   Class UIWizardNewCloudVMPageSource implementation.                                                                           *
    269269*********************************************************************************************************************************/
    270270
    271 UIWizardNewCloudVMPageBasic1::UIWizardNewCloudVMPageBasic1()
     271UIWizardNewCloudVMPageSource::UIWizardNewCloudVMPageSource()
    272272    : m_pLabelMain(0)
    273273    , m_pProviderLayout(0)
     
    419419    /* Setup connections: */
    420420    connect(gVBoxEvents, &UIVirtualBoxEventHandler::sigCloudProfileRegistered,
    421             this, &UIWizardNewCloudVMPageBasic1::sltHandleProviderComboChange);
     421            this, &UIWizardNewCloudVMPageSource::sltHandleProviderComboChange);
    422422    connect(gVBoxEvents, &UIVirtualBoxEventHandler::sigCloudProfileChanged,
    423             this, &UIWizardNewCloudVMPageBasic1::sltHandleProviderComboChange);
     423            this, &UIWizardNewCloudVMPageSource::sltHandleProviderComboChange);
    424424    connect(m_pProviderComboBox, static_cast<void(QIComboBox::*)(int)>(&QIComboBox::activated),
    425             this, &UIWizardNewCloudVMPageBasic1::sltHandleProviderComboChange);
     425            this, &UIWizardNewCloudVMPageSource::sltHandleProviderComboChange);
    426426    connect(m_pProfileComboBox, static_cast<void(QIComboBox::*)(int)>(&QIComboBox::currentIndexChanged),
    427             this, &UIWizardNewCloudVMPageBasic1::sltHandleProfileComboChange);
     427            this, &UIWizardNewCloudVMPageSource::sltHandleProfileComboChange);
    428428    connect(m_pProfileToolButton, &QIToolButton::clicked,
    429             this, &UIWizardNewCloudVMPageBasic1::sltHandleProfileButtonClick);
     429            this, &UIWizardNewCloudVMPageSource::sltHandleProfileButtonClick);
    430430    connect(m_pSourceTabBar, &QTabBar::currentChanged,
    431             this, &UIWizardNewCloudVMPageBasic1::sltHandleSourceChange);
     431            this, &UIWizardNewCloudVMPageSource::sltHandleSourceChange);
    432432    connect(m_pSourceImageList, &QListWidget::currentRowChanged,
    433             this, &UIWizardNewCloudVMPageBasic1::sltHandleSourceImageChange);
    434 }
    435 
    436 void UIWizardNewCloudVMPageBasic1::retranslateUi()
     433            this, &UIWizardNewCloudVMPageSource::sltHandleSourceImageChange);
     434}
     435
     436void UIWizardNewCloudVMPageSource::retranslateUi()
    437437{
    438438    /* Translate page: */
     
    483483}
    484484
    485 void UIWizardNewCloudVMPageBasic1::initializePage()
     485void UIWizardNewCloudVMPageSource::initializePage()
    486486{
    487487    /* Populate providers: */
     
    495495}
    496496
    497 bool UIWizardNewCloudVMPageBasic1::isComplete() const
     497bool UIWizardNewCloudVMPageSource::isComplete() const
    498498{
    499499    /* Initial result: */
     
    508508}
    509509
    510 bool UIWizardNewCloudVMPageBasic1::validatePage()
     510bool UIWizardNewCloudVMPageSource::validatePage()
    511511{
    512512    /* Initial result: */
     
    526526}
    527527
    528 void UIWizardNewCloudVMPageBasic1::sltHandleProviderComboChange()
     528void UIWizardNewCloudVMPageSource::sltHandleProviderComboChange()
    529529{
    530530    updateProvider();
     
    532532}
    533533
    534 void UIWizardNewCloudVMPageBasic1::sltHandleProfileComboChange()
     534void UIWizardNewCloudVMPageSource::sltHandleProfileComboChange()
    535535{
    536536    updateProfile();
     
    538538}
    539539
    540 void UIWizardNewCloudVMPageBasic1::sltHandleProfileButtonClick()
     540void UIWizardNewCloudVMPageSource::sltHandleProfileButtonClick()
    541541{
    542542    if (gpManager)
     
    544544}
    545545
    546 void UIWizardNewCloudVMPageBasic1::sltHandleSourceChange()
     546void UIWizardNewCloudVMPageSource::sltHandleSourceChange()
    547547{
    548548    updateSource();
     
    550550}
    551551
    552 void UIWizardNewCloudVMPageBasic1::sltHandleSourceImageChange()
     552void UIWizardNewCloudVMPageSource::sltHandleSourceImageChange()
    553553{
    554554    updateSourceImage();
     
    556556}
    557557
    558 void UIWizardNewCloudVMPageBasic1::setShortProviderName(const QString &strProviderShortName)
     558void UIWizardNewCloudVMPageSource::setShortProviderName(const QString &strProviderShortName)
    559559{
    560560    qobject_cast<UIWizardNewCloudVM*>(wizard())->setShortProviderName(strProviderShortName);
    561561}
    562562
    563 QString UIWizardNewCloudVMPageBasic1::shortProviderName() const
     563QString UIWizardNewCloudVMPageSource::shortProviderName() const
    564564{
    565565    return qobject_cast<UIWizardNewCloudVM*>(wizard())->shortProviderName();
    566566}
    567567
    568 void UIWizardNewCloudVMPageBasic1::setProfileName(const QString &strProfileName)
     568void UIWizardNewCloudVMPageSource::setProfileName(const QString &strProfileName)
    569569{
    570570    qobject_cast<UIWizardNewCloudVM*>(wizard())->setProfileName(strProfileName);
    571571}
    572572
    573 QString UIWizardNewCloudVMPageBasic1::profileName() const
     573QString UIWizardNewCloudVMPageSource::profileName() const
    574574{
    575575    return qobject_cast<UIWizardNewCloudVM*>(wizard())->profileName();
    576576}
    577577
    578 void UIWizardNewCloudVMPageBasic1::setClient(const CCloudClient &comClient)
     578void UIWizardNewCloudVMPageSource::setClient(const CCloudClient &comClient)
    579579{
    580580    qobject_cast<UIWizardNewCloudVM*>(wizard())->setClient(comClient);
    581581}
    582582
    583 CCloudClient UIWizardNewCloudVMPageBasic1::client() const
     583CCloudClient UIWizardNewCloudVMPageSource::client() const
    584584{
    585585    return qobject_cast<UIWizardNewCloudVM*>(wizard())->client();
    586586}
    587587
    588 void UIWizardNewCloudVMPageBasic1::setVSD(const CVirtualSystemDescription &comDescription)
     588void UIWizardNewCloudVMPageSource::setVSD(const CVirtualSystemDescription &comDescription)
    589589{
    590590    qobject_cast<UIWizardNewCloudVM*>(wizard())->setVSD(comDescription);
    591591}
    592592
    593 CVirtualSystemDescription UIWizardNewCloudVMPageBasic1::vsd() const
     593CVirtualSystemDescription UIWizardNewCloudVMPageSource::vsd() const
    594594{
    595595    return qobject_cast<UIWizardNewCloudVM*>(wizard())->vsd();
    596596}
    597597
    598 CVirtualSystemDescriptionForm UIWizardNewCloudVMPageBasic1::vsdForm() const
     598CVirtualSystemDescriptionForm UIWizardNewCloudVMPageSource::vsdForm() const
    599599{
    600600    return qobject_cast<UIWizardNewCloudVM*>(wizard())->vsdForm();
    601601}
    602602
    603 void UIWizardNewCloudVMPageBasic1::updateProvider()
     603void UIWizardNewCloudVMPageSource::updateProvider()
    604604{
    605605    updateComboToolTip(m_pProviderComboBox);
     
    610610}
    611611
    612 void UIWizardNewCloudVMPageBasic1::updateProfile()
     612void UIWizardNewCloudVMPageSource::updateProfile()
    613613{
    614614    setProfileName(m_pProfileComboBox->currentData(ProfileData_Name).toString());
     
    617617}
    618618
    619 void UIWizardNewCloudVMPageBasic1::updateSource()
     619void UIWizardNewCloudVMPageSource::updateSource()
    620620{
    621621    populateSourceImages(m_pSourceImageList, m_pSourceTabBar, client());
     
    623623}
    624624
    625 void UIWizardNewCloudVMPageBasic1::updateSourceImage()
     625void UIWizardNewCloudVMPageSource::updateSourceImage()
    626626{
    627627    m_strSourceImageId = currentListWidgetData(m_pSourceImageList);
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/newcloudvm/UIWizardNewCloudVMPageSource.h

    r91239 r91240  
    11/* $Id$ */
    22/** @file
    3  * VBox Qt GUI - UIWizardNewCloudVMPageBasic1 class declaration.
     3 * VBox Qt GUI - UIWizardNewCloudVMPageSource class declaration.
    44 */
    55
     
    1616 */
    1717
    18 #ifndef FEQT_INCLUDED_SRC_wizards_newcloudvm_UIWizardNewCloudVMPageBasic1_h
    19 #define FEQT_INCLUDED_SRC_wizards_newcloudvm_UIWizardNewCloudVMPageBasic1_h
     18#ifndef FEQT_INCLUDED_SRC_wizards_newcloudvm_UIWizardNewCloudVMPageSource_h
     19#define FEQT_INCLUDED_SRC_wizards_newcloudvm_UIWizardNewCloudVMPageSource_h
    2020#ifndef RT_WITHOUT_PRAGMA_ONCE
    2121# pragma once
     
    7575/** UINativeWizardPage extension for 1st page of the New Cloud VM wizard,
    7676  * based on UIWizardNewCloudVMPage1 namespace functions. */
    77 class UIWizardNewCloudVMPageBasic1 : public UINativeWizardPage
     77class UIWizardNewCloudVMPageSource : public UINativeWizardPage
    7878{
    7979    Q_OBJECT;
     
    8282
    8383    /** Constructs 1st basic page. */
    84     UIWizardNewCloudVMPageBasic1();
     84    UIWizardNewCloudVMPageSource();
    8585
    8686protected:
     
    180180};
    181181
    182 #endif /* !FEQT_INCLUDED_SRC_wizards_newcloudvm_UIWizardNewCloudVMPageBasic1_h */
     182#endif /* !FEQT_INCLUDED_SRC_wizards_newcloudvm_UIWizardNewCloudVMPageSource_h */
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