VirtualBox

Ignore:
Timestamp:
Feb 3, 2021 3:22:37 PM (4 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
142598
Message:

FE/Qt: bugref:9515. Renaming page3 as page2.

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

Legend:

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

    r87570 r87571  
    654654        src/wizards/newvm/UIWizardNewVM.h \
    655655        src/wizards/newvm/UIWizardNewVMPageBasic1.h \
    656         src/wizards/newvm/UIWizardNewVMPageBasic3.h \
     656        src/wizards/newvm/UIWizardNewVMPageBasic2.h \
    657657        src/wizards/newvm/UIWizardNewVMPageBasic4.h \
    658658        src/wizards/newvm/UIWizardNewVMPageBasic5.h \
     
    11361136        src/wizards/newvm/UIWizardNewVM.cpp \
    11371137        src/wizards/newvm/UIWizardNewVMPageBasic1.cpp \
    1138         src/wizards/newvm/UIWizardNewVMPageBasic3.cpp \
     1138        src/wizards/newvm/UIWizardNewVMPageBasic2.cpp \
    11391139        src/wizards/newvm/UIWizardNewVMPageBasic4.cpp \
    11401140        src/wizards/newvm/UIWizardNewVMPageBasic5.cpp \
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVM.cpp

    r87570 r87571  
    2424#include "UIWizardNewVM.h"
    2525#include "UIWizardNewVMPageBasic1.h"
    26 #include "UIWizardNewVMPageBasic3.h"
     26#include "UIWizardNewVMPageBasic2.h"
    2727#include "UIWizardNewVMPageBasic4.h"
    2828#include "UIWizardNewVMPageBasic5.h"
     
    8181        {
    8282            setPage(Page1, new UIWizardNewVMPageBasic1(m_strGroup));
    83             setPage(Page3, new UIWizardNewVMPageBasic3);
     83            setPage(Page2, new UIWizardNewVMPageBasic2);
    8484            setPage(Page4, new UIWizardNewVMPageBasic4);
    8585            setPage(Page5, new UIWizardNewVMPageBasic5);
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVM.h

    r87570 r87571  
    6161    {
    6262        Page1,
    63         Page3,
     63        Page2,
    6464        Page4,
    6565        Page5,
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVMPageBasic1.cpp

    r87570 r87571  
    496496{
    497497    if (isUnattendedEnabled())
    498         return UIWizardNewVM::Page3;
     498        return UIWizardNewVM::Page2;
    499499    return UIWizardNewVM::Page4;
    500500}
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVMPageBasic2.cpp

    r87570 r87571  
    11/* $Id$ */
    22/** @file
    3  * VBox Qt GUI - UIWizardNewVMPageBasic3 class implementation.
     3 * VBox Qt GUI - UIWizardNewVMPageBasic2 class implementation.
    44 */
    55
     
    3131#include "UIIconPool.h"
    3232#include "UIUserNamePasswordEditor.h"
    33 #include "UIWizardNewVMPageBasic3.h"
     33#include "UIWizardNewVMPageBasic2.h"
    3434#include "UIWizardNewVM.h"
    3535
     
    3939#include "CUnattended.h"
    4040
    41 UIWizardNewVMPage3::UIWizardNewVMPage3()
     41UIWizardNewVMPage2::UIWizardNewVMPage2()
    4242    : m_pUserNameContainer(0)
    4343    , m_pAdditionalOptionsContainer(0)
     
    5656}
    5757
    58 QString UIWizardNewVMPage3::userName() const
     58QString UIWizardNewVMPage2::userName() const
    5959{
    6060    if (m_pUserNamePasswordEditor)
     
    6363}
    6464
    65 void UIWizardNewVMPage3::setUserName(const QString &strName)
     65void UIWizardNewVMPage2::setUserName(const QString &strName)
    6666{
    6767    if (m_pUserNamePasswordEditor)
     
    6969}
    7070
    71 QString UIWizardNewVMPage3::password() const
     71QString UIWizardNewVMPage2::password() const
    7272{
    7373    if (m_pUserNamePasswordEditor)
     
    7676}
    7777
    78 void UIWizardNewVMPage3::setPassword(const QString &strPassword)
     78void UIWizardNewVMPage2::setPassword(const QString &strPassword)
    7979{
    8080    if (m_pUserNamePasswordEditor)
     
    8282}
    8383
    84 QString UIWizardNewVMPage3::hostname() const
     84QString UIWizardNewVMPage2::hostname() const
    8585{
    8686    if (m_pHostnameLineEdit)
     
    8989}
    9090
    91 void UIWizardNewVMPage3::setHostname(const QString &strHostName)
     91void UIWizardNewVMPage2::setHostname(const QString &strHostName)
    9292{
    9393    if (m_pHostnameLineEdit)
     
    9595}
    9696
    97 bool UIWizardNewVMPage3::installGuestAdditions() const
     97bool UIWizardNewVMPage2::installGuestAdditions() const
    9898{
    9999    if (!m_pGAInstallCheckBox)
     
    102102}
    103103
    104 void UIWizardNewVMPage3::setInstallGuestAdditions(bool fInstallGA)
     104void UIWizardNewVMPage2::setInstallGuestAdditions(bool fInstallGA)
    105105{
    106106    if (m_pGAInstallCheckBox)
     
    108108}
    109109
    110 QString UIWizardNewVMPage3::guestAdditionsISOPath() const
     110QString UIWizardNewVMPage2::guestAdditionsISOPath() const
    111111{
    112112    if (!m_pGAISOFilePathSelector)
     
    115115}
    116116
    117 void UIWizardNewVMPage3::setGuestAdditionsISOPath(const QString &strISOPath)
     117void UIWizardNewVMPage2::setGuestAdditionsISOPath(const QString &strISOPath)
    118118{
    119119    if (m_pGAISOFilePathSelector)
     
    121121}
    122122
    123 QString UIWizardNewVMPage3::productKey() const
     123QString UIWizardNewVMPage2::productKey() const
    124124{
    125125    if (!m_pProductKeyLineEdit || !m_pProductKeyLineEdit->hasAcceptableInput())
     
    128128}
    129129
    130 QWidget *UIWizardNewVMPage3::createGAInstallWidgets()
     130QWidget *UIWizardNewVMPage2::createGAInstallWidgets()
    131131{
    132132    if (m_pGAInstallationISOContainer)
     
    154154}
    155155
    156 bool UIWizardNewVMPage3::checkGAISOFile() const
     156bool UIWizardNewVMPage2::checkGAISOFile() const
    157157{
    158158    if (!m_pGAISOFilePathSelector)
     
    168168}
    169169
    170 void UIWizardNewVMPage3::markWidgets() const
     170void UIWizardNewVMPage2::markWidgets() const
    171171{
    172172    if (installGuestAdditions())
     
    174174}
    175175
    176 void UIWizardNewVMPage3::retranslateWidgets()
     176void UIWizardNewVMPage2::retranslateWidgets()
    177177{
    178178    if (m_pHostnameLabel)
     
    201201}
    202202
    203 void UIWizardNewVMPage3::disableEnableGAWidgets(bool fEnabled)
     203void UIWizardNewVMPage2::disableEnableGAWidgets(bool fEnabled)
    204204{
    205205    if (m_pGAISOPathLabel)
     
    209209}
    210210
    211 void UIWizardNewVMPage3::disableEnableProductKeyWidgets(bool fEnabled)
     211void UIWizardNewVMPage2::disableEnableProductKeyWidgets(bool fEnabled)
    212212{
    213213    if (m_pProductKeyLabel)
     
    217217}
    218218
    219 bool UIWizardNewVMPage3::startHeadless() const
     219bool UIWizardNewVMPage2::startHeadless() const
    220220{
    221221    if (!m_pStartHeadlessCheckBox)
     
    224224}
    225225
    226 QWidget *UIWizardNewVMPage3::createUserNameWidgets()
     226QWidget *UIWizardNewVMPage2::createUserNameWidgets()
    227227{
    228228    if (m_pUserNameContainer)
     
    240240}
    241241
    242 QWidget *UIWizardNewVMPage3::createAdditionalOptionsWidgets()
     242QWidget *UIWizardNewVMPage2::createAdditionalOptionsWidgets()
    243243{
    244244    if (m_pAdditionalOptionsContainer)
     
    280280}
    281281
    282 bool UIWizardNewVMPage3::isGAInstallEnabled() const
     282bool UIWizardNewVMPage2::isGAInstallEnabled() const
    283283{
    284284    if (m_pGAInstallCheckBox && m_pGAInstallCheckBox->isChecked())
     
    287287}
    288288
    289 UIWizardNewVMPageBasic3::UIWizardNewVMPageBasic3()
     289UIWizardNewVMPageBasic2::UIWizardNewVMPageBasic2()
    290290    : m_pLabel(0)
    291291{
     
    293293}
    294294
    295 void UIWizardNewVMPageBasic3::prepare()
     295void UIWizardNewVMPageBasic2::prepare()
    296296{
    297297    QGridLayout *pMainLayout = new QGridLayout(this);
     
    319319}
    320320
    321 void UIWizardNewVMPageBasic3::createConnections()
     321void UIWizardNewVMPageBasic2::createConnections()
    322322{
    323323    if (m_pUserNamePasswordEditor)
    324324        connect(m_pUserNamePasswordEditor, &UIUserNamePasswordEditor::sigSomeTextChanged,
    325                 this, &UIWizardNewVMPageBasic3::completeChanged);
     325                this, &UIWizardNewVMPageBasic2::completeChanged);
    326326    if (m_pGAISOFilePathSelector)
    327327        connect(m_pGAISOFilePathSelector, &UIFilePathSelector::pathChanged,
    328                 this, &UIWizardNewVMPageBasic3::sltGAISOPathChanged);
     328                this, &UIWizardNewVMPageBasic2::sltGAISOPathChanged);
    329329    if (m_pGAISOFilePathSelector)
    330330        connect(m_pGAInstallCheckBox, &QCheckBox::toggled,
    331                 this, &UIWizardNewVMPageBasic3::sltInstallGACheckBoxToggle);
    332 }
    333 
    334 
    335 void UIWizardNewVMPageBasic3::retranslateUi()
     331                this, &UIWizardNewVMPageBasic2::sltInstallGACheckBoxToggle);
     332}
     333
     334
     335void UIWizardNewVMPageBasic2::retranslateUi()
    336336{
    337337    setTitle(UIWizardNewVM::tr("Unattended Guest OS Install Setup"));
     
    343343}
    344344
    345 void UIWizardNewVMPageBasic3::initializePage()
     345void UIWizardNewVMPageBasic2::initializePage()
    346346{
    347347    disableEnableProductKeyWidgets(isProductKeyWidgetEnabled());
     
    350350}
    351351
    352 bool UIWizardNewVMPageBasic3::isComplete() const
     352bool UIWizardNewVMPageBasic2::isComplete() const
    353353{
    354354    markWidgets();
     
    371371}
    372372
    373 void UIWizardNewVMPageBasic3::cleanupPage()
    374 {
    375 }
    376 
    377 void UIWizardNewVMPageBasic3::showEvent(QShowEvent *pEvent)
     373void UIWizardNewVMPageBasic2::cleanupPage()
     374{
     375}
     376
     377void UIWizardNewVMPageBasic2::showEvent(QShowEvent *pEvent)
    378378{
    379379    // if (m_pToolBox)
     
    382382}
    383383
    384 void UIWizardNewVMPageBasic3::sltInstallGACheckBoxToggle(bool fEnabled)
     384void UIWizardNewVMPageBasic2::sltInstallGACheckBoxToggle(bool fEnabled)
    385385{
    386386    disableEnableGAWidgets(fEnabled);
     
    388388}
    389389
    390 void UIWizardNewVMPageBasic3::sltGAISOPathChanged(const QString &strPath)
     390void UIWizardNewVMPageBasic2::sltGAISOPathChanged(const QString &strPath)
    391391{
    392392    Q_UNUSED(strPath);
     
    394394}
    395395
    396 bool UIWizardNewVMPageBasic3::isProductKeyWidgetEnabled() const
     396bool UIWizardNewVMPageBasic2::isProductKeyWidgetEnabled() const
    397397{
    398398    UIWizardNewVM *pWizard = qobject_cast<UIWizardNewVM*>(wizard());
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVMPageBasic2.h

    r87570 r87571  
    11/* $Id$ */
    22/** @file
    3  * VBox Qt GUI - UIWizardNewVMPageBasic3 class declaration.
     3 * VBox Qt GUI - UIWizardNewVMPageBasic2 class declaration.
    44 */
    55
     
    1616 */
    1717
    18 #ifndef FEQT_INCLUDED_SRC_wizards_newvm_UIWizardNewVMPageBasic3_h
    19 #define FEQT_INCLUDED_SRC_wizards_newvm_UIWizardNewVMPageBasic3_h
     18#ifndef FEQT_INCLUDED_SRC_wizards_newvm_UIWizardNewVMPageBasic2_h
     19#define FEQT_INCLUDED_SRC_wizards_newvm_UIWizardNewVMPageBasic2_h
    2020#ifndef RT_WITHOUT_PRAGMA_ONCE
    2121# pragma once
     
    3939
    4040
    41 class UIWizardNewVMPage3 : public UIWizardPageBase
     41class UIWizardNewVMPage2 : public UIWizardPageBase
    4242{
    4343public:
    4444
    45     UIWizardNewVMPage3();
     45    UIWizardNewVMPage2();
    4646
    4747    /** @name Property getters/setters
     
    106106};
    107107
    108 class UIWizardNewVMPageBasic3 : public UIWizardPage, public UIWizardNewVMPage3
     108class UIWizardNewVMPageBasic2 : public UIWizardPage, public UIWizardNewVMPage2
    109109{
    110110    Q_OBJECT;
     
    119119public:
    120120
    121     UIWizardNewVMPageBasic3();
     121    UIWizardNewVMPageBasic2();
    122122
    123123protected:
     
    145145};
    146146
    147 #endif /* !FEQT_INCLUDED_SRC_wizards_newvm_UIWizardNewVMPageBasic3_h */
     147#endif /* !FEQT_INCLUDED_SRC_wizards_newvm_UIWizardNewVMPageBasic2_h */
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVMPageExpert.cpp

    r87570 r87571  
    183183{
    184184    UIWizardNewVMPage1::retranslateWidgets();
    185     UIWizardNewVMPage3::retranslateWidgets();
     185    UIWizardNewVMPage2::retranslateWidgets();
    186186    UIWizardNewVMPage4::retranslateWidgets();
    187187    UIWizardNewVMPage5::retranslateWidgets();
     
    305305{
    306306    UIWizardNewVMPage1::markWidgets();
    307     UIWizardNewVMPage3::markWidgets();
     307    UIWizardNewVMPage2::markWidgets();
    308308}
    309309
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVMPageExpert.h

    r87570 r87571  
    2424/* Local includes: */
    2525#include "UIWizardNewVMPageBasic1.h"
    26 #include "UIWizardNewVMPageBasic3.h"
     26#include "UIWizardNewVMPageBasic2.h"
    2727#include "UIWizardNewVMPageBasic4.h"
    2828#include "UIWizardNewVMPageBasic5.h"
     
    3535class UIWizardNewVMPageExpert : public UIWizardPage,
    3636                                public UIWizardNewVMPage1,
    37                                 public UIWizardNewVMPage3,
     37                                public UIWizardNewVMPage2,
    3838                                public UIWizardNewVMPage4,
    3939                                public UIWizardNewVMPage5
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