VirtualBox

Changeset 88576 in vbox


Ignore:
Timestamp:
Apr 19, 2021 1:00:07 PM (4 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:9996. Renaming page 1 and 2 of the new vm wizard

Location:
trunk/src/VBox/Frontends/VirtualBox
Files:
4 edited
4 moved

Legend:

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

    r88444 r88576  
    661661        src/wizards/newcloudvm/UIWizardNewCloudVMPageExpert.h \
    662662        src/wizards/newvm/UIWizardNewVM.h \
    663         src/wizards/newvm/UIWizardNewVMPageBasic1.h \
    664         src/wizards/newvm/UIWizardNewVMPageBasic2.h \
     663        src/wizards/newvm/UIWizardNewVMPageNameOSType.h \
     664        src/wizards/newvm/UIWizardNewVMPageUnattended.h \
    665665        src/wizards/newvm/UIWizardNewVMPageBasic3.h \
    666666        src/wizards/newvm/UIWizardNewVMPageBasic4.h \
     
    11521152        src/wizards/newcloudvm/UIWizardNewCloudVMPageExpert.cpp \
    11531153        src/wizards/newvm/UIWizardNewVM.cpp \
    1154         src/wizards/newvm/UIWizardNewVMPageBasic1.cpp \
    1155         src/wizards/newvm/UIWizardNewVMPageBasic2.cpp \
     1154        src/wizards/newvm/UIWizardNewVMPageNameOSType.cpp \
     1155        src/wizards/newvm/UIWizardNewVMPageUnattended.cpp \
    11561156        src/wizards/newvm/UIWizardNewVMPageBasic3.cpp \
    11571157        src/wizards/newvm/UIWizardNewVMPageBasic4.cpp \
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVM.cpp

    r88246 r88576  
    2323#include "UICommon.h"
    2424#include "UIWizardNewVM.h"
    25 #include "UIWizardNewVMPageBasic1.h"
    26 #include "UIWizardNewVMPageBasic2.h"
     25#include "UIWizardNewVMPageNameOSType.h"
     26#include "UIWizardNewVMPageUnattended.h"
    2727#include "UIWizardNewVMPageBasic3.h"
    2828#include "UIWizardNewVMPageBasic4.h"
     
    8282        case WizardMode_Basic:
    8383        {
    84             setPage(Page1, new UIWizardNewVMPageBasic1(m_strGroup));
    85             setPage(Page2, new UIWizardNewVMPageBasic2);
     84            setPage(Page1, new UIWizardNewVMPageNameOSType(m_strGroup));
     85            setPage(Page2, new UIWizardNewVMPageUnattended);
    8686            setPage(Page3, new UIWizardNewVMPageBasic3);
    8787            setPage(Page4, new UIWizardNewVMPageBasic4);
     
    510510        case WizardMode_Basic:
    511511        {
    512             UIWizardNewVMPageBasic1 *pPage = qobject_cast<UIWizardNewVMPageBasic1*> (page(Page1));
     512            UIWizardNewVMPageNameOSType *pPage = qobject_cast<UIWizardNewVMPageNameOSType*> (page(Page1));
    513513            /* Make sure that we were able to find the page that created the folder. */
    514514            Assert(pPage);
     
    531531void UIWizardNewVM::sltHandleDetectedOSTypeChange()
    532532{
    533     UIWizardNewVMPageBasic1 *pPage = qobject_cast<UIWizardNewVMPageBasic1*>(page(Page1));
     533    UIWizardNewVMPageNameOSType *pPage = qobject_cast<UIWizardNewVMPageNameOSType*>(page(Page1));
    534534    if (!pPage)
    535535        return;
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVMPageExpert.cpp

    r88268 r88576  
    4848
    4949UIWizardNewVMPageExpert::UIWizardNewVMPageExpert(const QString &strGroup)
    50     : UIWizardNewVMPage1(strGroup)
     50    : UIWizardNewVMPageBaseNameOSType(strGroup)
    5151    , m_pToolBox(0)
    5252    , m_pDiskFormatGroupBox(0)
     
    154154void UIWizardNewVMPageExpert::retranslateUi()
    155155{
    156     UIWizardNewVMPage1::retranslateWidgets();
    157     UIWizardNewVMPage2::retranslateWidgets();
     156    UIWizardNewVMPageBaseNameOSType::retranslateWidgets();
     157    UIWizardNewVMPageBaseUnattended::retranslateWidgets();
    158158    UIWizardNewVMPage3::retranslateWidgets();
    159159    UIWizardNewVMPage4::retranslateWidgets();
     
    338338void UIWizardNewVMPageExpert::markWidgets() const
    339339{
    340     UIWizardNewVMPage1::markWidgets();
    341     UIWizardNewVMPage2::markWidgets();
     340    UIWizardNewVMPageBaseNameOSType::markWidgets();
     341    UIWizardNewVMPageBaseUnattended::markWidgets();
    342342}
    343343
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVMPageExpert.h

    r88116 r88576  
    2626
    2727/* Local includes: */
    28 #include "UIWizardNewVMPageBasic1.h"
    29 #include "UIWizardNewVMPageBasic2.h"
     28#include "UIWizardNewVMPageNameOSType.h"
     29#include "UIWizardNewVMPageUnattended.h"
    3030#include "UIWizardNewVMPageBasic3.h"
    3131#include "UIWizardNewVMPageBasic4.h"
     
    3838/** Expert page of the New Virtual Machine wizard. */
    3939class UIWizardNewVMPageExpert : public UIWizardPage,
    40                                 public UIWizardNewVMPage1,
    41                                 public UIWizardNewVMPage2,
     40                                public UIWizardNewVMPageBaseNameOSType,
     41                                public UIWizardNewVMPageBaseUnattended,
    4242                                public UIWizardNewVMPage3,
    4343                                public UIWizardNewVMPage4,
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVMPageNameOSType.cpp

    r88575 r88576  
    11/* $Id$ */
    22/** @file
    3  * VBox Qt GUI - UIWizardNewVMPageBasic1 class implementation.
     3 * VBox Qt GUI - UIWizardNewVMPageBasicNameOSStype class implementation.
    44 */
    55
     
    3131#include "UIMessageCenter.h"
    3232#include "UINameAndSystemEditor.h"
    33 #include "UIWizardNewVMPageBasic1.h"
     33#include "UIWizardNewVMPageNameOSType.h"
    3434#include "UIWizardNewVM.h"
    3535
     
    178178};
    179179
    180 UIWizardNewVMPage1::UIWizardNewVMPage1(const QString &strGroup)
     180UIWizardNewVMPageBaseNameOSType::UIWizardNewVMPageBaseNameOSType(const QString &strGroup)
    181181    : m_pNameAndSystemEditor(0)
    182182    , m_pSkipUnattendedCheckBox(0)
     
    188188}
    189189
    190 void UIWizardNewVMPage1::onNameChanged(QString strNewName)
     190void UIWizardNewVMPageBaseNameOSType::onNameChanged(QString strNewName)
    191191{
    192192    /* Do not forget about achitecture bits, if not yet specified: */
     
    204204}
    205205
    206 void UIWizardNewVMPage1::onOsTypeChanged()
     206void UIWizardNewVMPageBaseNameOSType::onOsTypeChanged()
    207207{
    208208    /* If the user manually edited the OS type, we didn't want our automatic OS type guessing anymore.
     
    212212}
    213213
    214 void UIWizardNewVMPage1::composeMachineFilePath()
     214void UIWizardNewVMPageBaseNameOSType::composeMachineFilePath()
    215215{
    216216    if (!m_pNameAndSystemEditor)
     
    232232}
    233233
    234 QWidget *UIWizardNewVMPage1::createNameOSTypeWidgets()
     234QWidget *UIWizardNewVMPageBaseNameOSType::createNameOSTypeWidgets()
    235235{
    236236    /* Prepare container widget: */
     
    264264}
    265265
    266 bool UIWizardNewVMPage1::createMachineFolder()
     266bool UIWizardNewVMPageBaseNameOSType::createMachineFolder()
    267267{
    268268    if (!m_pNameAndSystemEditor)
     
    302302}
    303303
    304 bool UIWizardNewVMPage1::cleanupMachineFolder(bool fWizardCancel /* = false */)
     304bool UIWizardNewVMPageBaseNameOSType::cleanupMachineFolder(bool fWizardCancel /* = false */)
    305305{
    306306    /* Make sure folder was previosly created: */
     
    321321}
    322322
    323 QString UIWizardNewVMPage1::machineFilePath() const
     323QString UIWizardNewVMPageBaseNameOSType::machineFilePath() const
    324324{
    325325    return m_strMachineFilePath;
    326326}
    327327
    328 void UIWizardNewVMPage1::setMachineFilePath(const QString &strMachineFilePath)
     328void UIWizardNewVMPageBaseNameOSType::setMachineFilePath(const QString &strMachineFilePath)
    329329{
    330330    m_strMachineFilePath = strMachineFilePath;
    331331}
    332332
    333 QString UIWizardNewVMPage1::machineFolder() const
     333QString UIWizardNewVMPageBaseNameOSType::machineFolder() const
    334334{
    335335    return m_strMachineFolder;
    336336}
    337337
    338 void UIWizardNewVMPage1::setMachineFolder(const QString &strMachineFolder)
     338void UIWizardNewVMPageBaseNameOSType::setMachineFolder(const QString &strMachineFolder)
    339339{
    340340    m_strMachineFolder = strMachineFolder;
    341341}
    342342
    343 QString UIWizardNewVMPage1::machineBaseName() const
     343QString UIWizardNewVMPageBaseNameOSType::machineBaseName() const
    344344{
    345345    return m_strMachineBaseName;
    346346}
    347347
    348 void UIWizardNewVMPage1::setMachineBaseName(const QString &strMachineBaseName)
     348void UIWizardNewVMPageBaseNameOSType::setMachineBaseName(const QString &strMachineBaseName)
    349349{
    350350    m_strMachineBaseName = strMachineBaseName;
    351351}
    352352
    353 QString UIWizardNewVMPage1::guestOSFamiyId() const
     353QString UIWizardNewVMPageBaseNameOSType::guestOSFamiyId() const
    354354{
    355355    if (!m_pNameAndSystemEditor)
     
    358358}
    359359
    360 void UIWizardNewVMPage1::markWidgets() const
     360void UIWizardNewVMPageBaseNameOSType::markWidgets() const
    361361{
    362362    if (m_pNameAndSystemEditor)
     
    367367}
    368368
    369 void UIWizardNewVMPage1::retranslateWidgets()
     369void UIWizardNewVMPageBaseNameOSType::retranslateWidgets()
    370370{
    371371    if (m_pSkipUnattendedCheckBox)
     
    378378}
    379379
    380 QString UIWizardNewVMPage1::ISOFilePath() const
     380QString UIWizardNewVMPageBaseNameOSType::ISOFilePath() const
    381381{
    382382    if (!m_pNameAndSystemEditor)
     
    385385}
    386386
    387 bool UIWizardNewVMPage1::isUnattendedEnabled() const
     387bool UIWizardNewVMPageBaseNameOSType::isUnattendedEnabled() const
    388388{
    389389    if (!m_pNameAndSystemEditor)
     
    397397}
    398398
    399 const QString &UIWizardNewVMPage1::detectedOSTypeId() const
     399const QString &UIWizardNewVMPageBaseNameOSType::detectedOSTypeId() const
    400400{
    401401    return m_strDetectedOSTypeId;
    402402}
    403403
    404 bool UIWizardNewVMPage1::determineOSType(const QString &strISOPath)
     404bool UIWizardNewVMPageBaseNameOSType::determineOSType(const QString &strISOPath)
    405405{
    406406    QFileInfo isoFileInfo(strISOPath);
     
    419419}
    420420
    421 bool UIWizardNewVMPage1::skipUnattendedInstall() const
     421bool UIWizardNewVMPageBaseNameOSType::skipUnattendedInstall() const
    422422{
    423423    return m_pSkipUnattendedCheckBox && m_pSkipUnattendedCheckBox->isChecked();
    424424}
    425425
    426 bool UIWizardNewVMPage1::checkISOFile() const
     426bool UIWizardNewVMPageBaseNameOSType::checkISOFile() const
    427427{
    428428    if (!m_pNameAndSystemEditor)
     
    437437}
    438438
    439 void UIWizardNewVMPage1::setSkipCheckBoxEnable()
     439void UIWizardNewVMPageBaseNameOSType::setSkipCheckBoxEnable()
    440440{
    441441    if (!m_pSkipUnattendedCheckBox)
     
    448448}
    449449
    450 void UIWizardNewVMPage1::setTypeByISODetectedOSType(const QString &strDetectedOSType)
     450void UIWizardNewVMPageBaseNameOSType::setTypeByISODetectedOSType(const QString &strDetectedOSType)
    451451{
    452452    Q_UNUSED(strDetectedOSType);
     
    456456
    457457
    458 UIWizardNewVMPageBasic1::UIWizardNewVMPageBasic1(const QString &strGroup)
    459     : UIWizardNewVMPage1(strGroup)
     458UIWizardNewVMPageNameOSType::UIWizardNewVMPageNameOSType(const QString &strGroup)
     459    : UIWizardNewVMPageBaseNameOSType(strGroup)
    460460    , m_pNameOSTypeLabel(0)
    461461{
     
    463463}
    464464
    465 void UIWizardNewVMPageBasic1::prepare()
     465void UIWizardNewVMPageNameOSType::prepare()
    466466{
    467467    /* Prepare page layout: */
     
    494494}
    495495
    496 void UIWizardNewVMPageBasic1::createConnections()
     496void UIWizardNewVMPageNameOSType::createConnections()
    497497{
    498498    if (m_pNameAndSystemEditor)
    499499    {
    500         connect(m_pNameAndSystemEditor, &UINameAndSystemEditor::sigNameChanged, this, &UIWizardNewVMPageBasic1::sltNameChanged);
    501         connect(m_pNameAndSystemEditor, &UINameAndSystemEditor::sigPathChanged, this, &UIWizardNewVMPageBasic1::sltPathChanged);
    502         connect(m_pNameAndSystemEditor, &UINameAndSystemEditor::sigOsTypeChanged, this, &UIWizardNewVMPageBasic1::sltOsTypeChanged);
    503         connect(m_pNameAndSystemEditor, &UINameAndSystemEditor::sigImageChanged, this, &UIWizardNewVMPageBasic1::sltISOPathChanged);
    504     }
    505 }
    506 
    507 bool UIWizardNewVMPageBasic1::isComplete() const
     500        connect(m_pNameAndSystemEditor, &UINameAndSystemEditor::sigNameChanged, this, &UIWizardNewVMPageNameOSType::sltNameChanged);
     501        connect(m_pNameAndSystemEditor, &UINameAndSystemEditor::sigPathChanged, this, &UIWizardNewVMPageNameOSType::sltPathChanged);
     502        connect(m_pNameAndSystemEditor, &UINameAndSystemEditor::sigOsTypeChanged, this, &UIWizardNewVMPageNameOSType::sltOsTypeChanged);
     503        connect(m_pNameAndSystemEditor, &UINameAndSystemEditor::sigImageChanged, this, &UIWizardNewVMPageNameOSType::sltISOPathChanged);
     504    }
     505}
     506
     507bool UIWizardNewVMPageNameOSType::isComplete() const
    508508{
    509509    markWidgets();
     
    513513}
    514514
    515 int UIWizardNewVMPageBasic1::nextId() const
     515int UIWizardNewVMPageNameOSType::nextId() const
    516516{
    517517    if (isUnattendedEnabled())
     
    520520}
    521521
    522 void UIWizardNewVMPageBasic1::sltNameChanged(const QString &strNewName)
     522void UIWizardNewVMPageNameOSType::sltNameChanged(const QString &strNewName)
    523523{
    524524    onNameChanged(strNewName);
     
    526526}
    527527
    528 void UIWizardNewVMPageBasic1::sltPathChanged(const QString &strNewPath)
     528void UIWizardNewVMPageNameOSType::sltPathChanged(const QString &strNewPath)
    529529{
    530530    Q_UNUSED(strNewPath);
     
    532532}
    533533
    534 void UIWizardNewVMPageBasic1::sltOsTypeChanged()
     534void UIWizardNewVMPageNameOSType::sltOsTypeChanged()
    535535{
    536536    /* Call to base-class: */
     
    538538}
    539539
    540 void UIWizardNewVMPageBasic1::retranslateUi()
     540void UIWizardNewVMPageNameOSType::retranslateUi()
    541541{
    542542    retranslateWidgets();
     
    553553}
    554554
    555 void UIWizardNewVMPageBasic1::initializePage()
     555void UIWizardNewVMPageNameOSType::initializePage()
    556556{
    557557    /* Translate page: */
     
    562562}
    563563
    564 void UIWizardNewVMPageBasic1::cleanupPage()
     564void UIWizardNewVMPageNameOSType::cleanupPage()
    565565{
    566566    /* Cleanup: */
     
    570570}
    571571
    572 bool UIWizardNewVMPageBasic1::validatePage()
     572bool UIWizardNewVMPageNameOSType::validatePage()
    573573{
    574574    /* Try to create machine folder: */
     
    576576}
    577577
    578 void UIWizardNewVMPageBasic1::sltISOPathChanged(const QString &strPath)
     578void UIWizardNewVMPageNameOSType::sltISOPathChanged(const QString &strPath)
    579579{
    580580    determineOSType(strPath);
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVMPageNameOSType.h

    r88575 r88576  
    11/* $Id$ */
    22/** @file
    3  * VBox Qt GUI - UIWizardNewVMPageBasic1 class declaration.
     3 * VBox Qt GUI - UIWizardNewVMPageNameOSType class declaration.
    44 */
    55
     
    1616 */
    1717
    18 #ifndef FEQT_INCLUDED_SRC_wizards_newvm_UIWizardNewVMPageBasic1_h
    19 #define FEQT_INCLUDED_SRC_wizards_newvm_UIWizardNewVMPageBasic1_h
     18#ifndef FEQT_INCLUDED_SRC_wizards_newvm_UIWizardNewVMPageNameOSType_h
     19#define FEQT_INCLUDED_SRC_wizards_newvm_UIWizardNewVMPageNameOSType_h
    2020#ifndef RT_WITHOUT_PRAGMA_ONCE
    2121# pragma once
     
    3838
    3939/** 1st page of the New Virtual Machine wizard (base part): */
    40 class UIWizardNewVMPage1 : public UIWizardPageBase
     40class UIWizardNewVMPageBaseNameOSType : public UIWizardPageBase
    4141{
    4242protected:
    4343
    4444    /** Constructor. */
    45     UIWizardNewVMPage1(const QString &strGroup);
     45    UIWizardNewVMPageBaseNameOSType(const QString &strGroup);
    4646
    4747    /** Handlers. */
     
    116116
    117117/** 1st page of the New Virtual Machine wizard (basic extension). */
    118 class UIWizardNewVMPageBasic1 : public UIWizardPage, public UIWizardNewVMPage1
     118class UIWizardNewVMPageNameOSType : public UIWizardPage, public UIWizardNewVMPageBaseNameOSType
    119119{
    120120
     
    131131
    132132    /** Constructor. */
    133     UIWizardNewVMPageBasic1(const QString &strGroup);
     133    UIWizardNewVMPageNameOSType(const QString &strGroup);
    134134    virtual bool isComplete() const; /* override */
    135135    virtual int nextId() const /* override */;
     
    169169};
    170170
    171 #endif /* !FEQT_INCLUDED_SRC_wizards_newvm_UIWizardNewVMPageBasic1_h */
     171#endif /* !FEQT_INCLUDED_SRC_wizards_newvm_UIWizardNewVMPageNameOSType_h */
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVMPageUnattended.cpp

    r88575 r88576  
    11/* $Id$ */
    22/** @file
    3  * VBox Qt GUI - UIWizardNewVMPageBasic2 class implementation.
     3 * VBox Qt GUI - UIWizardNewVMPageUnattended class implementation.
    44 */
    55
     
    3232#include "UIIconPool.h"
    3333#include "UIUserNamePasswordEditor.h"
    34 #include "UIWizardNewVMPageBasic2.h"
     34#include "UIWizardNewVMPageUnattended.h"
    3535#include "UIWizardNewVM.h"
    3636
     
    4040#include "CUnattended.h"
    4141
    42 UIWizardNewVMPage2::UIWizardNewVMPage2()
     42UIWizardNewVMPageBaseUnattended::UIWizardNewVMPageBaseUnattended()
    4343    : m_pUserNameContainer(0)
    4444    , m_pAdditionalOptionsContainer(0)
     
    5656}
    5757
    58 QString UIWizardNewVMPage2::userName() const
     58QString UIWizardNewVMPageBaseUnattended::userName() const
    5959{
    6060    if (m_pUserNamePasswordEditor)
     
    6363}
    6464
    65 void UIWizardNewVMPage2::setUserName(const QString &strName)
     65void UIWizardNewVMPageBaseUnattended::setUserName(const QString &strName)
    6666{
    6767    if (m_pUserNamePasswordEditor)
     
    6969}
    7070
    71 QString UIWizardNewVMPage2::password() const
     71QString UIWizardNewVMPageBaseUnattended::password() const
    7272{
    7373    if (m_pUserNamePasswordEditor)
     
    7676}
    7777
    78 void UIWizardNewVMPage2::setPassword(const QString &strPassword)
     78void UIWizardNewVMPageBaseUnattended::setPassword(const QString &strPassword)
    7979{
    8080    if (m_pUserNamePasswordEditor)
     
    8282}
    8383
    84 QString UIWizardNewVMPage2::hostname() const
     84QString UIWizardNewVMPageBaseUnattended::hostname() const
    8585{
    8686    if (m_pHostnameLineEdit)
     
    8989}
    9090
    91 void UIWizardNewVMPage2::setHostname(const QString &strHostName)
     91void UIWizardNewVMPageBaseUnattended::setHostname(const QString &strHostName)
    9292{
    9393    if (m_pHostnameLineEdit)
     
    9595}
    9696
    97 bool UIWizardNewVMPage2::installGuestAdditions() const
     97bool UIWizardNewVMPageBaseUnattended::installGuestAdditions() const
    9898{
    9999    if (!m_pGAInstallationISOContainer)
     
    102102}
    103103
    104 void UIWizardNewVMPage2::setInstallGuestAdditions(bool fInstallGA)
     104void UIWizardNewVMPageBaseUnattended::setInstallGuestAdditions(bool fInstallGA)
    105105{
    106106    if (m_pGAInstallationISOContainer)
     
    108108}
    109109
    110 QString UIWizardNewVMPage2::guestAdditionsISOPath() const
     110QString UIWizardNewVMPageBaseUnattended::guestAdditionsISOPath() const
    111111{
    112112    if (!m_pGAISOFilePathSelector)
     
    115115}
    116116
    117 void UIWizardNewVMPage2::setGuestAdditionsISOPath(const QString &strISOPath)
     117void UIWizardNewVMPageBaseUnattended::setGuestAdditionsISOPath(const QString &strISOPath)
    118118{
    119119    if (m_pGAISOFilePathSelector)
     
    121121}
    122122
    123 QString UIWizardNewVMPage2::productKey() const
     123QString UIWizardNewVMPageBaseUnattended::productKey() const
    124124{
    125125    if (!m_pProductKeyLineEdit || !m_pProductKeyLineEdit->hasAcceptableInput())
     
    128128}
    129129
    130 QWidget *UIWizardNewVMPage2::createGAInstallWidgets()
     130QWidget *UIWizardNewVMPageBaseUnattended::createGAInstallWidgets()
    131131{
    132132    if (m_pGAInstallationISOContainer)
     
    171171}
    172172
    173 bool UIWizardNewVMPage2::checkGAISOFile() const
     173bool UIWizardNewVMPageBaseUnattended::checkGAISOFile() const
    174174{
    175175    if (!m_pGAISOFilePathSelector)
     
    185185}
    186186
    187 void UIWizardNewVMPage2::markWidgets() const
     187void UIWizardNewVMPageBaseUnattended::markWidgets() const
    188188{
    189189    if (installGuestAdditions())
     
    191191}
    192192
    193 void UIWizardNewVMPage2::retranslateWidgets()
     193void UIWizardNewVMPageBaseUnattended::retranslateWidgets()
    194194{
    195195    if (m_pHostnameLabel)
     
    220220}
    221221
    222 void UIWizardNewVMPage2::disableEnableGAWidgets(bool fEnabled)
     222void UIWizardNewVMPageBaseUnattended::disableEnableGAWidgets(bool fEnabled)
    223223{
    224224    if (m_pGAISOPathLabel)
     
    228228}
    229229
    230 void UIWizardNewVMPage2::disableEnableProductKeyWidgets(bool fEnabled)
     230void UIWizardNewVMPageBaseUnattended::disableEnableProductKeyWidgets(bool fEnabled)
    231231{
    232232    if (m_pProductKeyLabel)
     
    236236}
    237237
    238 bool UIWizardNewVMPage2::startHeadless() const
     238bool UIWizardNewVMPageBaseUnattended::startHeadless() const
    239239{
    240240    if (!m_pStartHeadlessCheckBox)
     
    243243}
    244244
    245 QWidget *UIWizardNewVMPage2::createUserNameWidgets()
     245QWidget *UIWizardNewVMPageBaseUnattended::createUserNameWidgets()
    246246{
    247247    if (m_pUserNameContainer)
     
    259259}
    260260
    261 QWidget *UIWizardNewVMPage2::createAdditionalOptionsWidgets()
     261QWidget *UIWizardNewVMPageBaseUnattended::createAdditionalOptionsWidgets()
    262262{
    263263    if (m_pAdditionalOptionsContainer)
     
    307307}
    308308
    309 bool UIWizardNewVMPage2::isGAInstallEnabled() const
     309bool UIWizardNewVMPageBaseUnattended::isGAInstallEnabled() const
    310310{
    311311    if (m_pGAInstallationISOContainer && m_pGAInstallationISOContainer->isChecked())
     
    314314}
    315315
    316 UIWizardNewVMPageBasic2::UIWizardNewVMPageBasic2()
     316UIWizardNewVMPageUnattended::UIWizardNewVMPageUnattended()
    317317    : m_pLabel(0)
    318318{
     
    320320}
    321321
    322 void UIWizardNewVMPageBasic2::prepare()
     322void UIWizardNewVMPageUnattended::prepare()
    323323{
    324324    QGridLayout *pMainLayout = new QGridLayout(this);
     
    342342}
    343343
    344 void UIWizardNewVMPageBasic2::createConnections()
     344void UIWizardNewVMPageUnattended::createConnections()
    345345{
    346346    if (m_pUserNamePasswordEditor)
    347347        connect(m_pUserNamePasswordEditor, &UIUserNamePasswordEditor::sigSomeTextChanged,
    348                 this, &UIWizardNewVMPageBasic2::completeChanged);
     348                this, &UIWizardNewVMPageUnattended::completeChanged);
    349349    if (m_pGAISOFilePathSelector)
    350350        connect(m_pGAISOFilePathSelector, &UIFilePathSelector::pathChanged,
    351                 this, &UIWizardNewVMPageBasic2::sltGAISOPathChanged);
     351                this, &UIWizardNewVMPageUnattended::sltGAISOPathChanged);
    352352    if (m_pGAISOFilePathSelector)
    353353        connect(m_pGAInstallationISOContainer, &QGroupBox::toggled,
    354                 this, &UIWizardNewVMPageBasic2::sltInstallGACheckBoxToggle);
    355 }
    356 
    357 
    358 void UIWizardNewVMPageBasic2::retranslateUi()
     354                this, &UIWizardNewVMPageUnattended::sltInstallGACheckBoxToggle);
     355}
     356
     357
     358void UIWizardNewVMPageUnattended::retranslateUi()
    359359{
    360360    setTitle(UIWizardNewVM::tr("Unattended Guest OS Install Setup"));
     
    366366}
    367367
    368 void UIWizardNewVMPageBasic2::initializePage()
     368void UIWizardNewVMPageUnattended::initializePage()
    369369{
    370370    disableEnableProductKeyWidgets(isProductKeyWidgetEnabled());
     
    373373}
    374374
    375 bool UIWizardNewVMPageBasic2::isComplete() const
     375bool UIWizardNewVMPageUnattended::isComplete() const
    376376{
    377377    markWidgets();
     
    394394}
    395395
    396 void UIWizardNewVMPageBasic2::cleanupPage()
    397 {
    398 }
    399 
    400 void UIWizardNewVMPageBasic2::showEvent(QShowEvent *pEvent)
     396void UIWizardNewVMPageUnattended::cleanupPage()
     397{
     398}
     399
     400void UIWizardNewVMPageUnattended::showEvent(QShowEvent *pEvent)
    401401{
    402402    // if (m_pToolBox)
     
    405405}
    406406
    407 void UIWizardNewVMPageBasic2::sltInstallGACheckBoxToggle(bool fEnabled)
     407void UIWizardNewVMPageUnattended::sltInstallGACheckBoxToggle(bool fEnabled)
    408408{
    409409    disableEnableGAWidgets(fEnabled);
     
    411411}
    412412
    413 void UIWizardNewVMPageBasic2::sltGAISOPathChanged(const QString &strPath)
     413void UIWizardNewVMPageUnattended::sltGAISOPathChanged(const QString &strPath)
    414414{
    415415    Q_UNUSED(strPath);
     
    417417}
    418418
    419 bool UIWizardNewVMPageBasic2::isProductKeyWidgetEnabled() const
     419bool UIWizardNewVMPageUnattended::isProductKeyWidgetEnabled() const
    420420{
    421421    UIWizardNewVM *pWizard = qobject_cast<UIWizardNewVM*>(wizard());
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVMPageUnattended.h

    r88575 r88576  
    11/* $Id$ */
    22/** @file
    3  * VBox Qt GUI - UIWizardNewVMPageBasic2 class declaration.
     3 * VBox Qt GUI - UIWizardNewVMPageUnattended class declaration.
    44 */
    55
     
    1616 */
    1717
    18 #ifndef FEQT_INCLUDED_SRC_wizards_newvm_UIWizardNewVMPageBasic2_h
    19 #define FEQT_INCLUDED_SRC_wizards_newvm_UIWizardNewVMPageBasic2_h
     18#ifndef FEQT_INCLUDED_SRC_wizards_newvm_UIWizardNewVMPageUnattended_h
     19#define FEQT_INCLUDED_SRC_wizards_newvm_UIWizardNewVMPageUnattended_h
    2020#ifndef RT_WITHOUT_PRAGMA_ONCE
    2121# pragma once
     
    3939
    4040
    41 class UIWizardNewVMPage2 : public UIWizardPageBase
     41class UIWizardNewVMPageBaseUnattended : public UIWizardPageBase
    4242{
    4343public:
    4444
    45     UIWizardNewVMPage2();
     45    UIWizardNewVMPageBaseUnattended();
    4646
    4747    /** @name Property getters/setters
     
    104104};
    105105
    106 class UIWizardNewVMPageBasic2 : public UIWizardPage, public UIWizardNewVMPage2
     106class UIWizardNewVMPageUnattended : public UIWizardPage, public UIWizardNewVMPageBaseUnattended
    107107{
    108108    Q_OBJECT;
     
    117117public:
    118118
    119     UIWizardNewVMPageBasic2();
     119    UIWizardNewVMPageUnattended();
    120120
    121121protected:
     
    143143};
    144144
    145 #endif /* !FEQT_INCLUDED_SRC_wizards_newvm_UIWizardNewVMPageBasic2_h */
     145#endif /* !FEQT_INCLUDED_SRC_wizards_newvm_UIWizardNewVMPageUnattended_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