VirtualBox

Changeset 87422 in vbox


Ignore:
Timestamp:
Jan 25, 2021 4:45:32 PM (4 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
142411
Message:

FE/Qt: bugref:9515. Working on the guided mode. part 2

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

Legend:

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

    r87414 r87422  
    2020#include <QFileInfo>
    2121#include <QGridLayout>
     22#include <QGroupBox>
    2223#include <QLabel>
    2324#include <QToolBox>
     
    3940
    4041UIWizardNewVMPage3::UIWizardNewVMPage3()
    41     : m_pStartHeadlessCheckBox(0)
     42    : m_pUserNameContainer(0)
     43    , m_pAdditionalOptionsContainer(0)
     44    , m_pGAInstallationISOContainer(0)
     45    , m_pStartHeadlessCheckBox(0)
    4246    , m_pUserNamePasswordEditor(0)
    4347    , m_pHostnameLineEdit(0)
     
    124128}
    125129
    126 QWidget *UIWizardNewVMPage3::createUserNameHostNameWidgets()
    127 {
    128     QWidget *pContainer = new QWidget;
    129     QGridLayout *pGridLayout = new QGridLayout(pContainer);
    130     pGridLayout->setContentsMargins(0, 0, 0, 0);
    131 
    132     m_pUserNamePasswordEditor = new UIUserNamePasswordEditor;
    133     pGridLayout->addWidget(m_pUserNamePasswordEditor, 0, 0, 1, 4);
    134 
    135     m_pHostnameLabel = new QLabel;
    136     m_pHostnameLabel->setAlignment(Qt::AlignRight);
    137     m_pHostnameLabel->setSizePolicy(QSizePolicy::Maximum, QSizePolicy::Fixed);
    138 
    139     m_pHostnameLineEdit = new QLineEdit;
    140 
    141     pGridLayout->addWidget(m_pHostnameLabel,    1, 0, 1, 1);
    142     pGridLayout->addWidget(m_pHostnameLineEdit, 1, 1, 1, 3);
    143 
    144     return pContainer;
    145 }
    146 
    147130QWidget *UIWizardNewVMPage3::createGAInstallWidgets()
    148131{
    149     QWidget *pContainer = new QWidget;
    150     QGridLayout *pContainerLayout = new QGridLayout(pContainer);
    151 
     132    if (m_pGAInstallationISOContainer)
     133        return m_pGAInstallationISOContainer;
     134
     135    m_pGAInstallationISOContainer = new QGroupBox;
     136    QGridLayout *pGAInstallationISOContainer = new QGridLayout(m_pGAInstallationISOContainer);
     137    m_pGAInstallCheckBox = new QCheckBox;
     138    if (m_pGAInstallCheckBox)
     139        pGAInstallationISOContainer->addWidget(m_pGAInstallCheckBox, 0, 0, 1, 8);
    152140    m_pGAISOPathLabel = new QLabel;
    153     {
    154         m_pGAISOPathLabel->setSizePolicy(QSizePolicy::Maximum, QSizePolicy::Maximum);
    155         m_pGAISOPathLabel->setEnabled(false);
    156     }
     141    if (m_pGAISOPathLabel)
     142        pGAInstallationISOContainer->addWidget(m_pGAISOPathLabel, 1, 1, 1, 1);
     143
    157144    m_pGAISOFilePathSelector = new UIFilePathSelector;
    158145    {
     
    161148        m_pGAISOFilePathSelector->setFileDialogFilters("*.iso *.ISO");
    162149        m_pGAISOFilePathSelector->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Maximum);
    163         m_pGAISOFilePathSelector->setEnabled(false);
    164     }
    165 
    166     pContainerLayout->addWidget(m_pGAISOPathLabel, 1, 1, 1, 1);
    167     pContainerLayout->addWidget(m_pGAISOFilePathSelector, 1, 2, 1, 4);
    168     return pContainer;
    169 }
    170 
    171 QWidget *UIWizardNewVMPage3::createProductKeyWidgets()
    172 {
    173     QWidget *pContainer = new QWidget;
    174     QGridLayout *pGridLayout = new QGridLayout(pContainer);
    175     pGridLayout->setContentsMargins(0, 0, 0, 0);
    176     m_pProductKeyLabel = new QLabel;
    177     m_pProductKeyLabel->setAlignment(Qt::AlignRight);
    178 
    179     m_pProductKeyLabel->setSizePolicy(QSizePolicy::Maximum, QSizePolicy::Fixed);
    180 
    181     m_pProductKeyLineEdit = new QLineEdit;
    182     m_pProductKeyLineEdit->setInputMask(">NNNNN-NNNNN-NNNNN-NNNNN-NNNNN;#");
    183     pGridLayout->addWidget(m_pProductKeyLabel, 0, 0, 1, 1);
    184     pGridLayout->addWidget(m_pProductKeyLineEdit, 0, 1, 1, 3);
    185     return pContainer;
     150        pGAInstallationISOContainer->addWidget(m_pGAISOFilePathSelector, 1, 2, 1, 6);
     151    }
     152
     153    return m_pGAInstallationISOContainer;
    186154}
    187155
     
    202170void UIWizardNewVMPage3::markWidgets() const
    203171{
    204     if (m_pGAISOFilePathSelector && m_pGAInstallCheckBox && m_pGAInstallCheckBox->isChecked())
     172    if (installGuestAdditions())
    205173        m_pGAISOFilePathSelector->mark(!checkGAISOFile());
    206174}
     
    219187    if (m_pProductKeyLabel)
    220188        m_pProductKeyLabel->setText(UIWizardNewVM::tr("Product Key:"));
     189    if (m_pUserNameContainer)
     190        m_pUserNameContainer->setTitle(UIWizardNewVM::tr("User name and password"));
     191    if (m_pAdditionalOptionsContainer)
     192        m_pAdditionalOptionsContainer->setTitle(UIWizardNewVM::tr("Additional options"));
     193    if (m_pGAInstallationISOContainer)
     194        m_pGAInstallationISOContainer->setTitle(UIWizardNewVM::tr("Guest Additions"));
    221195    if (m_pStartHeadlessCheckBox)
    222196    {
     
    235209}
    236210
     211void UIWizardNewVMPage3::disableEnableProductKeyWidgets(bool fEnabled)
     212{
     213    if (m_pProductKeyLabel)
     214        m_pProductKeyLabel->setEnabled(fEnabled);
     215    if (m_pProductKeyLineEdit)
     216        m_pProductKeyLineEdit->setEnabled(fEnabled);
     217}
     218
    237219bool UIWizardNewVMPage3::startHeadless() const
    238220{
     
    240222        return false;
    241223    return m_pStartHeadlessCheckBox->isChecked();
     224}
     225
     226QWidget *UIWizardNewVMPage3::createUserNameWidgets()
     227{
     228    if (m_pUserNameContainer)
     229        return m_pUserNameContainer;
     230
     231    m_pUserNameContainer = new QGroupBox;
     232    QVBoxLayout *pUserNameContainerLayout = new QVBoxLayout(m_pUserNameContainer);
     233    m_pUserNamePasswordEditor = new UIUserNamePasswordEditor;
     234    if (m_pUserNamePasswordEditor)
     235    {
     236        m_pUserNamePasswordEditor->setLabelsVisible(true);
     237        pUserNameContainerLayout->addWidget(m_pUserNamePasswordEditor);
     238    }
     239    return m_pUserNameContainer;
     240}
     241
     242QWidget *UIWizardNewVMPage3::createAdditionalOptionsWidgets()
     243{
     244    if (m_pAdditionalOptionsContainer)
     245        return m_pAdditionalOptionsContainer;
     246
     247    m_pAdditionalOptionsContainer = new QGroupBox;
     248    QGridLayout *pAdditionalOptionsContainerLayout = new QGridLayout(m_pAdditionalOptionsContainer);
     249    m_pStartHeadlessCheckBox = new QCheckBox;
     250    if (m_pStartHeadlessCheckBox)
     251        pAdditionalOptionsContainerLayout->addWidget(m_pStartHeadlessCheckBox, 0, 0, 1, 4);
     252
     253    m_pProductKeyLabel = new QLabel;
     254    if (m_pProductKeyLabel)
     255    {
     256        m_pProductKeyLabel->setAlignment(Qt::AlignRight);
     257        m_pProductKeyLabel->setSizePolicy(QSizePolicy::Maximum, QSizePolicy::Fixed);
     258        pAdditionalOptionsContainerLayout->addWidget(m_pProductKeyLabel, 1, 0, 1, 1);
     259    }
     260    m_pProductKeyLineEdit = new QLineEdit;
     261    if (m_pProductKeyLineEdit)
     262    {
     263        m_pProductKeyLineEdit->setInputMask(">NNNNN-NNNNN-NNNNN-NNNNN-NNNNN;#");
     264        pAdditionalOptionsContainerLayout->addWidget(m_pProductKeyLineEdit, 1, 1, 1, 3);
     265    }
     266
     267    m_pHostnameLabel = new QLabel;
     268    if (m_pHostnameLabel)
     269    {
     270        m_pHostnameLabel->setAlignment(Qt::AlignRight);
     271        m_pHostnameLabel->setSizePolicy(QSizePolicy::Maximum, QSizePolicy::Fixed);
     272        pAdditionalOptionsContainerLayout->addWidget(m_pHostnameLabel, 2, 0, 1, 1);
     273    }
     274
     275    m_pHostnameLineEdit = new QLineEdit;
     276    if (m_pHostnameLineEdit)
     277        pAdditionalOptionsContainerLayout->addWidget(m_pHostnameLineEdit, 2, 1, 1, 3);
     278
     279    return m_pAdditionalOptionsContainer;
     280}
     281
     282bool UIWizardNewVMPage3::isGAInstallEnabled() const
     283{
     284    if (m_pGAInstallCheckBox && m_pGAInstallCheckBox->isChecked())
     285        return true;
     286    return false;
    242287}
    243288
    244289UIWizardNewVMPageBasic3::UIWizardNewVMPageBasic3()
    245290    : m_pLabel(0)
    246     , m_pToolBox(0)
    247291{
    248292    prepare();
     
    251295void UIWizardNewVMPageBasic3::prepare()
    252296{
    253     QVBoxLayout *pMainLayout = new QVBoxLayout(this);
    254     m_pToolBox = new QToolBox;
    255     pMainLayout->addWidget(m_pToolBox);
    256 
    257     {
    258         m_pLabel = new QIRichTextLabel(this);
    259         if (m_pLabel)
    260             pMainLayout->addWidget(m_pLabel);
    261         pMainLayout->addWidget(m_pToolBox);
    262         pMainLayout->addStretch();
    263     }
    264 
    265     m_pToolBox->insertItem(ToolBoxItems_UserNameHostname, createUserNameHostNameWidgets(), QString());
    266     m_pToolBox->insertItem(ToolBoxItems_GAInstall, createGAInstallWidgets(), QString());
    267     m_pToolBox->insertItem(ToolBoxItems_ProductKey, createProductKeyWidgets(), QString());
     297    QGridLayout *pMainLayout = new QGridLayout(this);
     298
     299    // m_pToolBox = new QToolBox;
     300    // pMainLayout->addWidget(m_pToolBox);
     301
     302    // {
     303    m_pLabel = new QIRichTextLabel(this);
     304    if (m_pLabel)
     305        pMainLayout->addWidget(m_pLabel, 0, 0, 1, 2);
     306    pMainLayout->addWidget(createUserNameWidgets(), 1, 0, 1, 1);
     307    pMainLayout->addWidget(createAdditionalOptionsWidgets(), 1, 1, 1, 1);
     308    pMainLayout->addWidget(createGAInstallWidgets(), 2, 0, 1, 2);
    268309
    269310    registerField("userName", this, "userName");
     
    274315    registerField("productKey", this, "productKey");
    275316
     317    retranslateUi();
    276318    createConnections();
    277319}
     
    285327        connect(m_pGAISOFilePathSelector, &UIFilePathSelector::pathChanged,
    286328                this, &UIWizardNewVMPageBasic3::sltGAISOPathChanged);
    287 }
     329    if (m_pGAISOFilePathSelector)
     330        connect(m_pGAInstallCheckBox, &QCheckBox::toggled,
     331                this, &UIWizardNewVMPageBasic3::sltInstallGACheckBoxToggle);
     332}
     333
    288334
    289335void UIWizardNewVMPageBasic3::retranslateUi()
     
    292338    if (m_pLabel)
    293339        m_pLabel->setText(UIWizardNewVM::tr("<p>Here you can configure the unattended install by modifying username, password, and "
    294                                             "hostname. You can additionally enable guest additions install. "
    295                                             "For Microsoft Windows guests it is possible to provide a product key..</p>"));
     340                                            "hostname. Additionally you can enable guest additions install. "
     341                                            "For Microsoft Windows guests it is possible to provide a product key.</p>"));
    296342    retranslateWidgets();
    297     if (m_pToolBox)
    298     {
    299         m_pToolBox->setItemText(ToolBoxItems_UserNameHostname, UIWizardNewVM::tr("Username and hostname"));
    300         m_pToolBox->setItemText(ToolBoxItems_GAInstall, UIWizardNewVM::tr("Guest additions install"));
    301         m_pToolBox->setItemText(ToolBoxItems_ProductKey, UIWizardNewVM::tr("Product key"));
    302     }
    303343}
    304344
    305345void UIWizardNewVMPageBasic3::initializePage()
    306346{
     347    disableEnableProductKeyWidgets(isProductKeyWidgetEnabled());
     348    disableEnableGAWidgets(m_pGAInstallCheckBox ? m_pGAInstallCheckBox->isChecked() : false);
    307349    retranslateUi();
    308350}
     
    310352bool UIWizardNewVMPageBasic3::isComplete() const
    311353{
    312     AssertReturn(m_pToolBox, false);
    313 
    314     m_pToolBox->setItemIcon(ToolBoxItems_UserNameHostname, QIcon());
    315     m_pToolBox->setItemIcon(ToolBoxItems_GAInstall, QIcon());
    316     m_pToolBox->setItemIcon(ToolBoxItems_ProductKey, QIcon());
    317 
    318354    markWidgets();
    319     bool fIsComplete = true;
    320     if (!checkGAISOFile())
    321     {
    322         m_pToolBox->setItemIcon(ToolBoxItems_GAInstall, UIIconPool::iconSet(":/status_error_16px.png"));
    323         fIsComplete = false;
    324     }
     355    if (isGAInstallEnabled() && !checkGAISOFile())
     356        return false;
     357//     bool fIsComplete = true;
     358//     if (!checkGAISOFile())
     359//     {
     360//         m_pToolBox->setItemIcon(ToolBoxItems_GAInstall, UIIconPool::iconSet(":/status_error_16px.png"));
     361//         fIsComplete = false;
     362//     }
    325363    if (m_pUserNamePasswordEditor && !m_pUserNamePasswordEditor->isComplete())
    326     {
    327         m_pToolBox->setItemIcon(ToolBoxItems_UserNameHostname, UIIconPool::iconSet(":/status_error_16px.png"));
    328         fIsComplete = false;
    329     }
    330     return fIsComplete;
     364        return false;
     365//     {
     366//         m_pToolBox->setItemIcon(ToolBoxItems_UserNameHostname, UIIconPool::iconSet(":/status_error_16px.png"));
     367//         fIsComplete = false;
     368//     }
     369//     return fIsComplete;
     370    return true;
    331371}
    332372
     
    337377void UIWizardNewVMPageBasic3::showEvent(QShowEvent *pEvent)
    338378{
    339     if (m_pToolBox)
    340         m_pToolBox->setItemEnabled(ToolBoxItems_ProductKey, isProductKeyWidgetEnabled());
     379    // if (m_pToolBox)
     380    //     m_pToolBox->setItemEnabled(ToolBoxItems_ProductKey, isProductKeyWidgetEnabled());
    341381    UIWizardPage::showEvent(pEvent);
    342382}
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVMPageBasic3.h

    r87414 r87422  
    2929class QCheckBox;
    3030class QGridLayout;
     31class QGroupBox;
    3132class QLabel;
    3233class QLineEdit;
     
    6768    };
    6869
    69     QWidget *createUserNameHostNameWidgets();
    7070    QWidget *createGAInstallWidgets();
    71     QWidget *createProductKeyWidgets();
    7271
    7372    /** Returns false if ISO path selector is non empty but has invalid file path. */
     
    7675    void retranslateWidgets();
    7776    void disableEnableGAWidgets(bool fEnabled);
     77    void disableEnableProductKeyWidgets(bool fEnabled);
    7878
    7979    bool startHeadless() const;
    8080
     81    QWidget *createUserNameWidgets();
     82    QWidget *createAdditionalOptionsWidgets();
     83    bool isGAInstallEnabled() const;
     84
    8185    /** @name Widgets
    8286      * @{ */
     87        QGroupBox *m_pUserNameContainer;
     88        QGroupBox *m_pAdditionalOptionsContainer;
     89        QGroupBox *m_pGAInstallationISOContainer;
     90
    8391        QCheckBox *m_pStartHeadlessCheckBox;
    8492        UIUserNamePasswordEditor *m_pUserNamePasswordEditor;
     
    135143
    136144    QIRichTextLabel *m_pLabel;
    137     QToolBox *m_pToolBox;
    138145};
    139146
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVMPageExpert.cpp

    r87414 r87422  
    4747    , m_pToolBox(0)
    4848    , m_pInstallationISOContainer(0)
    49     , m_pUserNameContainer(0)
    50     , m_pAdditionalOptionsContainer(0)
    51     , m_pGAInstallationISOContainer(0)
    5249{
    5350    /* Create widgets: */
     
    187184    UIWizardNewVMPage1::retranslateWidgets();
    188185    UIWizardNewVMPage2::retranslateWidgets();
     186    UIWizardNewVMPage3::retranslateWidgets();
    189187    UIWizardNewVMPage4::retranslateWidgets();
    190188    if (m_pInstallationISOContainer)
    191189        m_pInstallationISOContainer->setTitle(UIWizardNewVM::tr("Installation medium (ISO)"));
    192     if (m_pUserNameContainer)
    193         m_pUserNameContainer->setTitle(UIWizardNewVM::tr("User name and password"));
    194     if (m_pAdditionalOptionsContainer)
    195         m_pAdditionalOptionsContainer->setTitle(UIWizardNewVM::tr("Additional options"));
    196     if (m_pGAInstallationISOContainer)
    197         m_pGAInstallationISOContainer->setTitle(UIWizardNewVM::tr("Guest Additions"));
    198190    if (m_pToolBox)
    199191    {
     
    313305    UIWizardNewVMPage1::markWidgets();
    314306    UIWizardNewVMPage2::markWidgets();
     307    UIWizardNewVMPage3::markWidgets();
    315308}
    316309
     
    338331
    339332    /* Username selector: */
    340     {
    341         m_pUserNameContainer = new QGroupBox;
    342         QVBoxLayout *pUserNameContainerLayout = new QVBoxLayout(m_pUserNameContainer);
    343         m_pUserNamePasswordEditor = new UIUserNamePasswordEditor;
    344         if (m_pUserNamePasswordEditor)
    345         {
    346             m_pUserNamePasswordEditor->setLabelsVisible(true);
    347             pUserNameContainerLayout->addWidget(m_pUserNamePasswordEditor);
    348         }
    349         pLayout->addWidget(m_pUserNameContainer, iRow, 0, 1, 2);
    350     }
     333    pLayout->addWidget(createUserNameWidgets(), iRow, 0, 1, 2);
    351334
    352335    /* Additional options: */
    353     {
    354         m_pAdditionalOptionsContainer = new QGroupBox;
    355         QGridLayout *pAdditionalOptionsContainerLayout = new QGridLayout(m_pAdditionalOptionsContainer);
    356         m_pStartHeadlessCheckBox = new QCheckBox;
    357         if (m_pStartHeadlessCheckBox)
    358             pAdditionalOptionsContainerLayout->addWidget(m_pStartHeadlessCheckBox, 0, 0, 1, 4);
    359 
    360         m_pProductKeyLabel = new QLabel;
    361         if (m_pProductKeyLabel)
    362         {
    363             m_pProductKeyLabel->setAlignment(Qt::AlignRight);
    364             m_pProductKeyLabel->setSizePolicy(QSizePolicy::Maximum, QSizePolicy::Fixed);
    365             pAdditionalOptionsContainerLayout->addWidget(m_pProductKeyLabel, 1, 0, 1, 1);
    366         }
    367         m_pProductKeyLineEdit = new QLineEdit;
    368         if (m_pProductKeyLineEdit)
    369         {
    370             m_pProductKeyLineEdit->setInputMask(">NNNNN-NNNNN-NNNNN-NNNNN-NNNNN;#");
    371             pAdditionalOptionsContainerLayout->addWidget(m_pProductKeyLineEdit, 1, 1, 1, 3);
    372         }
    373 
    374         m_pHostnameLabel = new QLabel;
    375         if (m_pHostnameLabel)
    376         {
    377             m_pHostnameLabel->setAlignment(Qt::AlignRight);
    378             m_pHostnameLabel->setSizePolicy(QSizePolicy::Maximum, QSizePolicy::Fixed);
    379             pAdditionalOptionsContainerLayout->addWidget(m_pHostnameLabel, 2, 0, 1, 1);
    380         }
    381 
    382         m_pHostnameLineEdit = new QLineEdit;
    383         if (m_pHostnameLineEdit)
    384             pAdditionalOptionsContainerLayout->addWidget(m_pHostnameLineEdit, 2, 1, 1, 3);
    385 
    386         pLayout->addWidget(m_pAdditionalOptionsContainer, iRow, 2, 1, 2);
    387     }
     336    pLayout->addWidget(createAdditionalOptionsWidgets(), iRow, 2, 1, 2);
     337
    388338    ++iRow;
    389339    /* Guest additions installation: */
    390     {
    391         m_pGAInstallationISOContainer = new QGroupBox;
    392         QGridLayout *pGAInstallationISOContainer = new QGridLayout(m_pGAInstallationISOContainer);
    393         m_pGAInstallCheckBox = new QCheckBox;
    394         if (m_pGAInstallCheckBox)
    395             pGAInstallationISOContainer->addWidget(m_pGAInstallCheckBox, 0, 0, 1, 8);
    396         m_pGAISOPathLabel = new QLabel;
    397         if (m_pGAISOPathLabel)
    398             pGAInstallationISOContainer->addWidget(m_pGAISOPathLabel, 1, 1, 1, 1);
    399 
    400         m_pGAISOFilePathSelector = new UIFilePathSelector;
    401         {
    402             m_pGAISOFilePathSelector->setResetEnabled(false);
    403             m_pGAISOFilePathSelector->setMode(UIFilePathSelector::Mode_File_Open);
    404             m_pGAISOFilePathSelector->setFileDialogFilters("*.iso *.ISO");
    405             m_pGAISOFilePathSelector->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Maximum);
    406             pGAInstallationISOContainer->addWidget(m_pGAISOFilePathSelector, 1, 2, 1, 6);
    407         }
    408         pLayout->addWidget(m_pGAInstallationISOContainer, iRow, 0, 1, 4);
    409     }
     340    pLayout->addWidget(createGAInstallWidgets(), iRow, 0, 1, 4);
     341
    410342    return pContainerWidget;
    411343}
     
    440372        {
    441373            m_pToolBox->setPageTitleIcon(ExpertToolboxItems_Unattended,
    442                                     UIIconPool::iconSet(":/status_error_16px.png"));
     374                                         UIIconPool::iconSet(":/status_error_16px.png"));
    443375            fIsComplete = false;
    444376        }
     
    505437    UIWizardNewVM *pWizard = qobject_cast<UIWizardNewVM*>(wizard());
    506438    if (!pWizard || !pWizard->isUnattendedEnabled() || !pWizard->isGuestOSTypeWindows())
    507         return false;
    508     return true;
    509 }
    510 
    511 bool UIWizardNewVMPageExpert::isGAInstallEnabled() const
    512 {
    513     UIWizardNewVM *pWizard = qobject_cast<UIWizardNewVM*>(wizard());
    514     if (!pWizard || !isUnattendedEnabled() || !m_pGAInstallCheckBox->isChecked())
    515439        return false;
    516440    return true;
     
    528452    disableEnableGAWidgets(isGAInstallEnabled());
    529453}
    530 
    531 void UIWizardNewVMPageExpert::disableEnableProductKeyWidgets(bool fEnabled)
    532 {
    533     if (m_pProductKeyLabel)
    534         m_pProductKeyLabel->setEnabled(fEnabled);
    535     if (m_pProductKeyLineEdit)
    536         m_pProductKeyLineEdit->setEnabled(fEnabled);
    537 }
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVMPageExpert.h

    r87414 r87422  
    111111
    112112    bool isProductKeyWidgetEnabled() const;
    113     bool isGAInstallEnabled() const;
    114113    void disableEnableUnattendedRelatedWidgets(bool fEnabled);
    115     void disableEnableProductKeyWidgets(bool fEnabled);
    116114    void markWidgets() const;
    117115    QWidget *createUnattendedWidgets();
     
    119117    UIToolBox  *m_pToolBox;
    120118    QGroupBox *m_pInstallationISOContainer;
    121     QGroupBox *m_pUserNameContainer;
    122     QGroupBox *m_pAdditionalOptionsContainer;
    123     QGroupBox *m_pGAInstallationISOContainer;
    124119};
    125120
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