VirtualBox

Changeset 74758 in vbox


Ignore:
Timestamp:
Oct 11, 2018 10:49:36 AM (6 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:9265: A bit of refactoring for UIWizardExportAppPageBasic2.

Location:
trunk/src/VBox/Frontends/VirtualBox/src/wizards/exportappliance
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/exportappliance/UIWizardExportAppPageBasic2.cpp

    r73952 r74758  
    363363}
    364364
    365 QString UIWizardExportAppPage2::format() const
    366 {
    367     const int iIndex = m_pFormatComboBox->currentIndex();
    368     return m_pFormatComboBox->itemData(iIndex).toString();
    369 }
    370 
    371365void UIWizardExportAppPage2::setFormat(const QString &strFormat)
    372366{
     
    375369    m_pFormatComboBox->setCurrentIndex(iIndex);
    376370}
     371QString UIWizardExportAppPage2::format() const
     372{
     373    const int iIndex = m_pFormatComboBox->currentIndex();
     374    return m_pFormatComboBox->itemData(iIndex).toString();
     375}
     376
     377void UIWizardExportAppPage2::setPath(const QString &strPath)
     378{
     379    m_pFileSelector->setPath(strPath);
     380}
    377381
    378382QString UIWizardExportAppPage2::path() const
    379383{
    380384    return m_pFileSelector->path();
    381 }
    382 
    383 void UIWizardExportAppPage2::setPath(const QString &strPath)
    384 {
    385     m_pFileSelector->setPath(strPath);
    386 }
    387 
    388 MACAddressPolicy UIWizardExportAppPage2::macAddressPolicy() const
    389 {
    390     const int iIndex = m_pMACComboBox->currentIndex();
    391     return (MACAddressPolicy)m_pMACComboBox->itemData(iIndex).toInt();
    392385}
    393386
     
    399392}
    400393
     394MACAddressPolicy UIWizardExportAppPage2::macAddressPolicy() const
     395{
     396    const int iIndex = m_pMACComboBox->currentIndex();
     397    return (MACAddressPolicy)m_pMACComboBox->itemData(iIndex).toInt();
     398}
     399
     400void UIWizardExportAppPage2::setManifestSelected(bool fChecked)
     401{
     402    m_pManifestCheckbox->setChecked(fChecked);
     403}
     404
    401405bool UIWizardExportAppPage2::isManifestSelected() const
    402406{
     
    404408}
    405409
    406 void UIWizardExportAppPage2::setManifestSelected(bool fChecked)
    407 {
    408     m_pManifestCheckbox->setChecked(fChecked);
     410void UIWizardExportAppPage2::setIncludeISOsSelected(bool fChecked)
     411{
     412    m_pIncludeISOsCheckbox->setChecked(fChecked);
    409413}
    410414
     
    412416{
    413417    return m_pIncludeISOsCheckbox->isChecked();
    414 }
    415 
    416 void UIWizardExportAppPage2::setIncludeISOsSelected(bool fChecked)
    417 {
    418     m_pIncludeISOsCheckbox->setChecked(fChecked);
    419418}
    420419
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/exportappliance/UIWizardExportAppPageBasic2.h

    r73728 r74758  
    103103    void adjustAccountPropertyTable();
    104104
     105    /** Defines @a strFormat. */
     106    void setFormat(const QString &strFormat);
    105107    /** Returns format. */
    106108    QString format() const;
    107     /** Defines @a strFormat. */
    108     void setFormat(const QString &strFormat);
    109 
     109
     110    /** Defines @a strPath. */
     111    void setPath(const QString &strPath);
    110112    /** Returns path. */
    111113    QString path() const;
    112     /** Defines @a strPath. */
    113     void setPath(const QString &strPath);
    114 
     114
     115    /** Defines @a enmMACAddressPolicy. */
     116    void setMACAddressPolicy(MACAddressPolicy enmMACAddressPolicy);
    115117    /** Returns MAC address policy. */
    116118    MACAddressPolicy macAddressPolicy() const;
    117     /** Defines @a enmMACAddressPolicy. */
    118     void setMACAddressPolicy(MACAddressPolicy enmMACAddressPolicy);
    119 
     119
     120    /** Defines whether manifest @a fSelected. */
     121    void setManifestSelected(bool fChecked);
    120122    /** Returns whether manifest selected. */
    121123    bool isManifestSelected() const;
    122     /** Defines whether manifest @a fSelected. */
    123     void setManifestSelected(bool fChecked);
    124 
     124
     125    /** Defines whether include ISOs @a fSelected. */
     126    void setIncludeISOsSelected(bool fChecked);
    125127    /** Returns whether include ISOs selected. */
    126128    bool isIncludeISOsSelected() const;
    127     /** Defines whether include ISOs @a fSelected. */
    128     void setIncludeISOsSelected(bool fChecked);
    129129
    130130    /** Defines provider by @a strId. */
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