VirtualBox

Ignore:
Timestamp:
Oct 4, 2018 12:07:36 PM (6 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:9260. Adding import options for keeping MAC addresses

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIApplianceImportEditorWidget.h

    r73137 r74610  
    2525class UIFilePathSelector;
    2626class QIRichTextLabel;
     27class QComboBox;
     28class QGridLayout;
     29
     30/** MAC address policies. */
     31enum MACAddressImportPolicy
     32{
     33    MACAddressImportPolicy_KeepAllMACs,
     34    MACAddressImportPolicy_KeepNATMACs,
     35    MACAddressImportPolicy_StripAllMACs,
     36    MACAddressImportPolicy_MAX
     37};
    2738
    2839class UIApplianceImportEditorWidget: public UIApplianceEditorWidget
     
    4556private slots:
    4657
    47     void sltHandlePathChanged(const QString &newPath);
     58    void    sltHandlePathChanged(const QString &newPath);
    4859
    4960private:
    5061
    51     void      prepareWidgets();
     62    void    prepareWidgets();
     63    /** Populates MAC address policies. */
     64    void    populateMACAddressImportPolicies();
     65    void    setMACAddressImportPolicy(MACAddressImportPolicy enmMACAddressImportPolicy);
     66    void    sltHandleMACAddressImportPolicyComboChange();
     67    void    updateMACAddressImportPolicyComboToolTip();
     68
    5269    QIRichTextLabel    *m_pPathSelectorLabel;
    5370    UIFilePathSelector *m_pPathSelector;
    54 
    55     /** Holds the 'reinit MACs' check-box instance. */
    56     QCheckBox *m_pCheckBoxReinitMACs;
    57     /** Holds the checkbox that controls 'imprt HDs as VDI' behaviour. */
    58     QCheckBox *m_pImportHDsAsVDI;
    59 
     71    /** Holds the checkbox that controls 'import HDs as VDI' behaviour. */
     72    QCheckBox          *m_pImportHDsAsVDI;
     73    QLabel             *m_pMACComboBoxLabel;
     74    QComboBox          *m_pMACComboBox;
     75    QGridLayout        *m_pOptionsLayout;
    6076};
    6177
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