VirtualBox

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


Ignore:
Timestamp:
Jul 8, 2021 2:51:38 PM (4 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
145601
Message:

FE/Qt: bugref:9996: Disabling expert mode for now

Location:
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVM.cpp

    r90090 r90101  
    8686    switch (mode())
    8787    {
     88        case WizardMode_Expert:
    8889        case WizardMode_Basic:
    8990        {
     
    9596            break;
    9697        }
    97         case WizardMode_Expert:
    98         {
    99             // addPage(new UIWizardNewCloudVMPageExpert(m_fFullWizard));
    100             break;
    101         }
     98        // case WizardMode_Expert:
     99        // {
     100        //     // addPage(new UIWizardNewCloudVMPageExpert(m_fFullWizard));
     101        //     break;
     102        // }
    102103        default:
    103104        {
     
    568569void UIWizardNewVM::setFieldsFromDefaultUnttendedInstallData()
    569570{
    570     // setField("userName", m_unattendedInstallData.m_strUserName);
    571     // setField("password", m_unattendedInstallData.m_strPassword);
    572     // setField("hostname", m_unattendedInstallData.m_strHostname);
    573     // setField("installGuestAdditions", m_unattendedInstallData.m_fInstallGuestAdditions);
    574     // setField("guestAdditionsISOPath", m_unattendedInstallData.m_strGuestAdditionsISOPath);
     571    m_strUserName = m_unattendedInstallData.m_strUserName;
     572    m_strPassword = m_unattendedInstallData.m_strPassword;
     573    m_strHostname = m_unattendedInstallData.m_strHostname;
     574    m_fInstallGuestAdditions = m_unattendedInstallData.m_fInstallGuestAdditions;
     575    m_strGuestAdditionsISOPath = m_unattendedInstallData.m_strGuestAdditionsISOPath;
    575576}
    576577
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVMNameOSTypePageBasic.cpp

    r90096 r90101  
    284284}
    285285
    286 // QString UIWizardNewVMNameOSTypePage::machineBaseName() const
    287 // {
    288 //     return m_strMachineBaseName;
    289 // }
    290 
    291 // void UIWizardNewVMNameOSTypePage::setMachineBaseName(const QString &strMachineBaseName)
    292 // {
    293 //     m_strMachineBaseName = strMachineBaseName;
    294 // }
    295 
    296 
    297 // QString UIWizardNewVMNameOSTypePage::ISOFilePath() const
    298 // {
    299 //     if (!m_pNameAndSystemEditor)
    300 //         return QString();
    301 //     return m_pNameAndSystemEditor->image();
    302 // }
    303 
    304 
    305286void UIWizardNewVMNameOSTypePage::determineOSType(const QString &strISOPath, UIWizardNewVM *pWizard)
    306287{
     
    359340
    360341    createConnections();
    361     // /* Register fields: */
    362     // registerField("name*", m_pNameAndSystemEditor, "name", SIGNAL(sigNameChanged(const QString &)));
    363     // registerField("type", m_pNameAndSystemEditor, "type", SIGNAL(sigOsTypeChanged()));
    364     // registerField("machineFilePath", this, "machineFilePath");
    365     // registerField("machineFolder", this, "machineFolder");
    366     // registerField("machineBaseName", this, "machineBaseName");
    367     // registerField("guestOSFamiyId", this, "guestOSFamiyId");
    368     // registerField("startHeadless", this, "startHeadless");
    369     // registerField("ISOFilePath", this, "ISOFilePath");
    370     // registerField("isUnattendedEnabled", this, "isUnattendedEnabled");
    371     // registerField("detectedOSTypeId", this, "detectedOSTypeId");
    372342}
    373343
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVMUnattendedPageBasic.cpp

    r90066 r90101  
    153153    disableEnableGAWidgets(m_pGAInstallationISOContainer ? m_pGAInstallationISOContainer->isChecked() : false);
    154154    retranslateUi();
     155
     156    /* Initialize user/password if they are not modified by the user: */
     157    if (m_pUserNamePasswordEditor)
     158    {
     159        m_pUserNamePasswordEditor->blockSignals(true);
     160        if (!m_userModifiedParameters.contains("UserName"))
     161        {
     162
     163        }
     164        m_pUserNamePasswordEditor->blockSignals(false);
     165
     166    }
    155167}
    156168
     
    198210{
    199211    newVMWizardPropertySet(UserName, strUserName);
     212    m_userModifiedParameters << "UserName";
    200213    emit completeChanged();
    201214}
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVMUnattendedPageBasic.h

    r90093 r90101  
    101101        QLabel     *m_pProductKeyLabel;
    102102    /** @} */
    103 
     103    QSet<QString> m_userModifiedParameters;
    104104};
    105105
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