VirtualBox

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


Ignore:
Timestamp:
Mar 13, 2009 4:10:52 PM (16 years ago)
Author:
vboxsync
Message:

FE/Qt4: 2869: Rework network adapter UI - DHCP configuration blocked for all the platforms except Win.

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

Legend:

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

    r17819 r17846  
    5858    connect (mCbHOI, SIGNAL (currentIndexChanged (int)),
    5959             this, SLOT (hostOnlyInterfaceChanged()));
    60     connect (mRbAuto, SIGNAL (toggled (bool)),
    61              this, SLOT (hostOnlyDHCPChanged()));
    62     connect (mRbManual, SIGNAL (toggled (bool)),
    63              this, SLOT (hostOnlyDHCPChanged()));
    64     populateComboboxes();
    6560#if defined (Q_WS_WIN32)
    6661    mTbAdd->setIcon (VBoxGlobal::iconSet (":/add_host_iface_16px.png",
     
    7065    connect (mTbAdd, SIGNAL (clicked()), this, SLOT (addInterface()));
    7166    connect (mTbDel, SIGNAL (clicked()), this, SLOT (delInterface()));
     67    connect (mRbAuto, SIGNAL (toggled (bool)),
     68             this, SLOT (hostOnlyDHCPChanged()));
     69    connect (mRbManual, SIGNAL (toggled (bool)),
     70             this, SLOT (hostOnlyDHCPChanged()));
    7271#endif
    7372
     
    109108        setProperty ("HOI_Name", QVariant (ifsName));
    110109        setProperty ("HOI_DhcpEnabled", QVariant (ifs.GetDhcpEnabled()));
     110#if defined (Q_WS_WIN32)
    111111        setProperty ("HOI_IPv6Supported", QVariant (ifs.GetIPV6Supported()));
     112#endif
    112113        if (!ifs.GetDhcpEnabled())
    113114        {
     
    188189    mLbHOI->setVisible (mType == KNetworkAttachmentType_HostOnly);
    189190    mCbHOI->setVisible (mType == KNetworkAttachmentType_HostOnly);
    190     mLbCT->setVisible (mType == KNetworkAttachmentType_HostOnly);
    191     mRbAuto->setVisible (mType == KNetworkAttachmentType_HostOnly);
    192     mRbManual->setVisible (mType == KNetworkAttachmentType_HostOnly);
    193191    mLbIPv4->setVisible (mType == KNetworkAttachmentType_HostOnly);
    194192    mLeIPv4->setVisible (mType == KNetworkAttachmentType_HostOnly);
     
    202200    mTbAdd->setVisible (mType == KNetworkAttachmentType_HostOnly);
    203201    mTbDel->setVisible (mType == KNetworkAttachmentType_HostOnly);
     202    mLbCT->setVisible (mType == KNetworkAttachmentType_HostOnly);
     203    mRbAuto->setVisible (mType == KNetworkAttachmentType_HostOnly);
     204    mRbManual->setVisible (mType == KNetworkAttachmentType_HostOnly);
    204205#endif
    205206
     
    411412void VBoxVMSettingsNetworkDetails::hostOnlyInterfaceChanged()
    412413{
     414#if defined (Q_WS_WIN32)
    413415    CHostNetworkInterface iface =
    414416        vboxGlobal().virtualBox().GetHost().FindHostNetworkInterfaceByName (mCbHOI->currentText());
     
    434436        mRbAuto->blockSignals (false);
    435437    }
    436     hostOnlyDHCPChanged();
    437 
    438 #if defined (Q_WS_WIN32)
     438
    439439    mTbDel->setEnabled (isValid);
    440440#endif
     441
     442    hostOnlyDHCPChanged();
    441443}
    442444
  • trunk/src/VBox/Frontends/VirtualBox/ui/VBoxVMSettingsNetworkDetails.ui

    r17819 r17846  
    136136   <item row="4" column="1" >
    137137    <widget class="QLabel" name="mLbCT" >
     138     <property name="visible" >
     139      <bool>false</bool>
     140     </property>
    138141     <property name="text" >
    139142      <string>Configuration Type:</string>
     
    146149   <item row="4" column="2" colspan="3" >
    147150    <widget class="QRadioButton" name="mRbAuto" >
     151     <property name="visible" >
     152      <bool>false</bool>
     153     </property>
    148154     <property name="toolTip" >
    149155      <string>Use DHCP automatic configuration for this host-only network interface.</string>
     
    156162   <item row="5" column="2" colspan="3" >
    157163    <widget class="QRadioButton" name="mRbManual" >
     164     <property name="visible" >
     165      <bool>false</bool>
     166     </property>
     167     <property name="checked" >
     168      <bool>true</bool>
     169     </property>
    158170     <property name="toolTip" >
    159171      <string>Use manual configuration for this host-only network interface.</string>
     
    269281   </item>
    270282   <item row="10" column="0" colspan="5" >
    271     <widget class="QILabelSeparator" name="mLsHost" >
     283    <widget class="QILabelSeparator" name="mLsGuest" >
    272284     <property name="sizePolicy" >
    273285      <sizepolicy vsizetype="Preferred" hsizetype="MinimumExpanding" >
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