VirtualBox

Ignore:
Timestamp:
Jul 11, 2011 10:09:29 AM (14 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
72759
Message:

Main-OVF;FE/*: allow to specify if MAC addresses should be reinitialized on OVF/OVA import

Location:
trunk/src/VBox/Frontends/VirtualBox/src/widgets
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/widgets/VBoxApplianceEditorWgt.cpp

    r35979 r37862  
    10881088    mTvSettings->header()->setResizeMode (QHeaderView::ResizeToContents);
    10891089
     1090    /* Hidden by default */
     1091    mReinitMACsCheckBox->setHidden(true);
     1092
    10901093    /* Applying language settings */
    10911094    retranslateUi();
  • trunk/src/VBox/Frontends/VirtualBox/src/widgets/VBoxApplianceEditorWgt.ui

    r28800 r37862  
    1010     you can redistribute it and/or modify it under the terms of the GNU
    1111     General Public License (GPL) as published by the Free Software
    12      Foundation, in version 2 as it comes in the "COPYING" file of the
     12     Foundation, in version 2 as it comes in the "COPYING" file of the
    1313     VirtualBox OSE distribution. VirtualBox OSE is distributed in the
    1414     hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
     
    2020    <x>0</x>
    2121    <y>0</y>
    22     <width>459</width>
    23     <height>305</height>
     22    <width>548</width>
     23    <height>411</height>
    2424   </rect>
    2525  </property>
     
    3939   </item>
    4040   <item>
     41    <widget class="QCheckBox" name="mReinitMACsCheckBox">
     42     <property name="toolTip">
     43      <string>When checked a new unique MAC address will assigned to all configured network cards.</string>
     44     </property>
     45     <property name="text">
     46      <string>&amp;Reinitialize the MAC address of all network cards</string>
     47     </property>
     48    </widget>
     49   </item>
     50   <item>
    4151    <widget class="QWidget" name="mWarningWidget" native="true">
    4252     <property name="sizePolicy">
     
    4757     </property>
    4858     <layout class="QVBoxLayout" name="verticalLayout">
    49       <property name="sizeConstraint">
    50        <enum>QLayout::SetDefaultConstraint</enum>
    51       </property>
    5259      <property name="margin">
    5360       <number>0</number>
  • trunk/src/VBox/Frontends/VirtualBox/src/widgets/VBoxImportApplianceWgt.cpp

    r34530 r37862  
    4242    : VBoxApplianceEditorWgt (aParent)
    4343{
     44    /* Show the MAC check box */
     45    mReinitMACsCheckBox->setHidden(false);
    4446}
    4547
     
    134136        /* Start the import asynchronously */
    135137        CProgress progress;
    136         progress = mAppliance->ImportMachines();
     138        QVector<KImportOptions> options;
     139        if (!mReinitMACsCheckBox->isChecked())
     140            options.append(KImportOptions_KeepAllMACs);
     141        progress = mAppliance->ImportMachines(options);
    137142        bool fResult = mAppliance->isOk();
    138143        if (fResult)
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