VBoxVMNetworkSettings.ui revision ba3d457c87cc0e625358b9b3ccb7bad901adf110
<!DOCTYPE UI><UI version="3.3" stdsetdef="1">
<class>VBoxVMNetworkSettings</class>
<comment>
:mode=html:tabSize=4:indentSize=4:noTabs=true:
:folding=explicit:collapseFolds=1:
# Copyright (C) 2006 InnoTek Systemberatung GmbH
#
# This file is part of VirtualBox Open Source Edition (OSE), as
# available from http://www.virtualbox.org. This file is free software;
# you can redistribute it and/or modify it under the terms of the GNU
# General Public License as published by the Free Software Foundation,
# in version 2 as it comes in the "COPYING" file of the VirtualBox OSE
# distribution. VirtualBox OSE is distributed in the hope that it will
# be useful, but WITHOUT ANY WARRANTY of any kind.
#
# If you received this file as part of a commercial VirtualBox
# distribution, then only the terms of your commercial VirtualBox
# license agreement apply instead of the previous paragraph.
</comment>
<widget class="QWidget">
<property name="name">
<cstring>VBoxVMNetworkSettings</cstring>
</property>
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>307</width>
<height>312</height>
</rect>
</property>
<property name="caption">
<string>VBoxVMNetworkSettings</string>
</property>
<grid>
<property name="name">
<cstring>unnamed</cstring>
</property>
<property name="spacing">
<number>10</number>
</property>
<widget class="QGroupBox" row="0" column="0">
<property name="name">
<cstring>grbEnabled</cstring>
</property>
<property name="sizePolicy">
<sizepolicy>
<hsizetype>5</hsizetype>
<vsizetype>5</vsizetype>
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="title">
<string>&amp;Enable Network Adapter (plug it into the corresponding slot)</string>
</property>
<property name="checkable">
<bool>true</bool>
</property>
<vbox>
<property name="name">
<cstring>unnamed</cstring>
</property>
<widget class="QLayoutWidget">
<property name="name">
<cstring>layout121</cstring>
</property>
<hbox>
<property name="name">
<cstring>unnamed</cstring>
</property>
<widget class="QLayoutWidget">
<property name="name">
<cstring>layout35</cstring>
</property>
<vbox>
<property name="name">
<cstring>unnamed</cstring>
</property>
<widget class="QLabel">
<property name="name">
<cstring>txNetworkAttachment</cstring>
</property>
<property name="sizePolicy">
<sizepolicy>
<hsizetype>0</hsizetype>
<vsizetype>0</vsizetype>
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text">
<string>&amp;Attached to</string>
</property>
<property name="buddy" stdset="0">
<cstring>cbNetworkAttachment</cstring>
</property>
</widget>
<widget class="QComboBox">
<property name="name">
<cstring>cbNetworkAttachment</cstring>
</property>
<property name="whatsThis" stdset="0">
<string>Type of network attachment.</string>
</property>
</widget>
</vbox>
</widget>
<widget class="QLayoutWidget">
<property name="name">
<cstring>layout11</cstring>
</property>
<vbox>
<property name="name">
<cstring>unnamed</cstring>
</property>
<widget class="QLabel">
<property name="name">
<cstring>txMACAddress</cstring>
</property>
<property name="sizePolicy">
<sizepolicy>
<hsizetype>0</hsizetype>
<vsizetype>0</vsizetype>
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text">
<string>&amp;MAC Address</string>
</property>
<property name="buddy" stdset="0">
<cstring>leMACAddress</cstring>
</property>
</widget>
<widget class="QLineEdit">
<property name="name">
<cstring>leMACAddress</cstring>
</property>
<property name="frameShape">
<enum>LineEditPanel</enum>
</property>
<property name="frameShadow">
<enum>Sunken</enum>
</property>
<property name="whatsThis" stdset="0">
<string>MAC address of the current adapter</string>
</property>
</widget>
</vbox>
</widget>
<widget class="QLayoutWidget">
<property name="name">
<cstring>layout12</cstring>
</property>
<vbox>
<property name="name">
<cstring>unnamed</cstring>
</property>
<property name="spacing">
<number>0</number>
</property>
<spacer>
<property name="name">
<cstring>spacer6</cstring>
</property>
<property name="orientation">
<enum>Vertical</enum>
</property>
<property name="sizeType">
<enum>Minimum</enum>
</property>
<property name="sizeHint">
<size>
<width>20</width>
<height>20</height>
</size>
</property>
</spacer>
<widget class="QPushButton">
<property name="name">
<cstring>pbGenerateMAC</cstring>
</property>
<property name="text">
<string>&amp;Generate</string>
</property>
<property name="accel">
<string>Alt+G</string>
</property>
<property name="whatsThis" stdset="0">
<string>Generate a new random MAC address.</string>
</property>
</widget>
</vbox>
</widget>
</hbox>
</widget>
<widget class="QCheckBox">
<property name="name">
<cstring>chbCableConnected</cstring>
</property>
<property name="text">
<string>Ca&amp;ble Connected</string>
</property>
<property name="accel">
<string>Alt+B</string>
</property>
<property name="whatsThis" stdset="0">
<string>This controls whether the virtual network cable is plugged in.</string>
</property>
</widget>
<widget class="QGroupBox">
<property name="name">
<cstring>grbTAP</cstring>
</property>
<property name="title">
<string>Host Interface Settings</string>
</property>
<property name="flat">
<bool>true</bool>
</property>
<vbox>
<property name="name">
<cstring>unnamed</cstring>
</property>
<property name="margin">
<number>0</number>
</property>
<widget class="QLayoutWidget">
<property name="name">
<cstring>layout34</cstring>
</property>
<hbox>
<property name="name">
<cstring>unnamed</cstring>
</property>
<widget class="QFrame">
<property name="name">
<cstring>frmHostInterface_WIN</cstring>
</property>
<property name="frameShape">
<enum>NoFrame</enum>
</property>
<property name="frameShadow">
<enum>Raised</enum>
</property>
<vbox>
<property name="name">
<cstring>unnamed</cstring>
</property>
<property name="margin">
<number>0</number>
</property>
<widget class="QLayoutWidget">
<property name="name">
<cstring>layout14</cstring>
</property>
<hbox>
<property name="name">
<cstring>unnamed</cstring>
</property>
<widget class="QLabel">
<property name="name">
<cstring>txHostInterface_WIN</cstring>
</property>
<property name="sizePolicy">
<sizepolicy>
<hsizetype>0</hsizetype>
<vsizetype>5</vsizetype>
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text">
<string>&amp;Interface Name</string>
</property>
<property name="buddy" stdset="0">
<cstring>leHostInterfaceName</cstring>
</property>
</widget>
<widget class="QLineEdit">
<property name="name">
<cstring>leHostInterfaceName</cstring>
</property>
<property name="whatsThis" stdset="0">
<string>Enter name for the new interface here</string>
</property>
</widget>
<widget class="QToolButton">
<property name="name">
<cstring>pbHostAdd</cstring>
</property>
<property name="text">
<string>...</string>
</property>
<property name="toolTip" stdset="0">
<string></string>
</property>
<property name="whatsThis" stdset="0">
<string>Add a new host interface</string>
</property>
</widget>
<widget class="QToolButton">
<property name="name">
<cstring>pbHostRemove</cstring>
</property>
<property name="text">
<string>...</string>
</property>
<property name="toolTip" stdset="0">
<string></string>
</property>
<property name="whatsThis" stdset="0">
<string>Remove
the selected host interface</string>
</property>
</widget>
</hbox>
</widget>
<widget class="QListBox">
<property name="name">
<cstring>lbHostInterface</cstring>
</property>
<property name="sizePolicy">
<sizepolicy>
<hsizetype>7</hsizetype>
<vsizetype>7</vsizetype>
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="whatsThis" stdset="0">
<string>The list of interfaces available</string>
</property>
</widget>
</vbox>
</widget>
<widget class="QLayoutWidget">
<property name="name">
<cstring>layout120</cstring>
</property>
<hbox>
<property name="name">
<cstring>unnamed</cstring>
</property>
<widget class="QFrame">
<property name="name">
<cstring>frmHostInterface_X11</cstring>
</property>
<property name="frameShape">
<enum>NoFrame</enum>
</property>
<property name="frameShadow">
<enum>Raised</enum>
</property>
<vbox>
<property name="name">
<cstring>unnamed</cstring>
</property>
<property name="margin">
<number>0</number>
</property>
<widget class="QLabel">
<property name="name">
<cstring>txHostInterface_X11</cstring>
</property>
<property name="sizePolicy">
<sizepolicy>
<hsizetype>0</hsizetype>
<vsizetype>5</vsizetype>
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text">
<string>&amp;Interface Name</string>
</property>
<property name="buddy" stdset="0">
<cstring>leHostInterface</cstring>
</property>
</widget>
<widget class="QLineEdit">
<property name="name">
<cstring>leHostInterface</cstring>
</property>
<property name="whatsThis" stdset="0">
<string>TAP interface name</string>
</property>
</widget>
</vbox>
</widget>
<widget class="QFrame">
<property name="name">
<cstring>frmTAPDescriptor</cstring>
</property>
<property name="frameShape">
<enum>NoFrame</enum>
</property>
<property name="frameShadow">
<enum>Raised</enum>
</property>
<vbox>
<property name="name">
<cstring>unnamed</cstring>
</property>
<property name="margin">
<number>0</number>
</property>
<widget class="QLabel">
<property name="name">
<cstring>txTAPDescriptor</cstring>
</property>
<property name="sizePolicy">
<sizepolicy>
<hsizetype>0</hsizetype>
<vsizetype>5</vsizetype>
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text">
<string>&amp;File Descriptor</string>
</property>
<property name="buddy" stdset="0">
<cstring>leTAPDescriptor</cstring>
</property>
</widget>
<widget class="QLineEdit">
<property name="name">
<cstring>leTAPDescriptor</cstring>
</property>
<property name="frameShape">
<enum>LineEditPanel</enum>
</property>
<property name="frameShadow">
<enum>Sunken</enum>
</property>
</widget>
</vbox>
</widget>
</hbox>
</widget>
</hbox>
</widget>
<widget class="QFrame">
<property name="name">
<cstring>frmTAPSetupTerminate</cstring>
</property>
<property name="frameShape">
<enum>NoFrame</enum>
</property>
<property name="frameShadow">
<enum>Raised</enum>
</property>
<vbox>
<property name="name">
<cstring>unnamed</cstring>
</property>
<property name="margin">
<number>0</number>
</property>
<widget class="QLayoutWidget">
<property name="name">
<cstring>layout124</cstring>
</property>
<vbox>
<property name="name">
<cstring>unnamed</cstring>
</property>
<property name="margin">
<number>0</number>
</property>
<property name="spacing">
<number>0</number>
</property>
<widget class="QLayoutWidget">
<property name="name">
<cstring>layout31</cstring>
</property>
<hbox>
<property name="name">
<cstring>unnamed</cstring>
</property>
<widget class="QLabel">
<property name="name">
<cstring>txTAPSetup</cstring>
</property>
<property name="text">
<string>&amp;Setup Application</string>
</property>
<property name="buddy" stdset="0">
<cstring>leTAPSetup</cstring>
</property>
</widget>
<spacer>
<property name="name">
<cstring>spacer14</cstring>
</property>
<property name="orientation">
<enum>Horizontal</enum>
</property>
<property name="sizeType">
<enum>Expanding</enum>
</property>
<property name="sizeHint">
<size>
<width>61</width>
<height>20</height>
</size>
</property>
</spacer>
</hbox>
</widget>
<widget class="QLayoutWidget">
<property name="name">
<cstring>layout122</cstring>
</property>
<hbox>
<property name="name">
<cstring>unnamed</cstring>
</property>
<widget class="QLineEdit">
<property name="name">
<cstring>leTAPSetup</cstring>
</property>
<property name="whatsThis" stdset="0">
<string>Setup application</string>
</property>
</widget>
<widget class="QToolButton">
<property name="name">
<cstring>pbTAPSetup</cstring>
</property>
<property name="text">
<string>Select</string>
</property>
<property name="whatsThis" stdset="0">
<string>Select setup application</string>
</property>
</widget>
</hbox>
</widget>
</vbox>
</widget>
<widget class="QLayoutWidget">
<property name="name">
<cstring>layout125</cstring>
</property>
<vbox>
<property name="name">
<cstring>unnamed</cstring>
</property>
<property name="margin">
<number>0</number>
</property>
<property name="spacing">
<number>0</number>
</property>
<widget class="QLayoutWidget">
<property name="name">
<cstring>layout32</cstring>
</property>
<hbox>
<property name="name">
<cstring>unnamed</cstring>
</property>
<widget class="QLabel">
<property name="name">
<cstring>txTAPTerminate</cstring>
</property>
<property name="text">
<string>&amp;Terminate Application</string>
</property>
<property name="buddy" stdset="0">
<cstring>leTAPTerminate</cstring>
</property>
</widget>
<spacer>
<property name="name">
<cstring>spacer15</cstring>
</property>
<property name="orientation">
<enum>Horizontal</enum>
</property>
<property name="sizeType">
<enum>Expanding</enum>
</property>
<property name="sizeHint">
<size>
<width>61</width>
<height>20</height>
</size>
</property>
</spacer>
</hbox>
</widget>
<widget class="QLayoutWidget">
<property name="name">
<cstring>layout123</cstring>
</property>
<hbox>
<property name="name">
<cstring>unnamed</cstring>
</property>
<widget class="QLineEdit">
<property name="name">
<cstring>leTAPTerminate</cstring>
</property>
<property name="frameShape">
<enum>LineEditPanel</enum>
</property>
<property name="frameShadow">
<enum>Sunken</enum>
</property>
<property name="whatsThis" stdset="0">
<string>Terminate application</string>
</property>
</widget>
<widget class="QToolButton">
<property name="name">
<cstring>pbTAPTerminate</cstring>
</property>
<property name="text">
<string>Select</string>
</property>
<property name="whatsThis" stdset="0">
<string>Select terminate application</string>
</property>
</widget>
</hbox>
</widget>
</vbox>
</widget>
</vbox>
</widget>
</vbox>
</widget>
</vbox>
</widget>
</grid>
</widget>
<connections>
<connection>
<sender>pbGenerateMAC</sender>
<signal>clicked()</signal>
<receiver>VBoxVMNetworkSettings</receiver>
<slot>pbGenerateMAC_clicked()</slot>
</connection>
<connection>
<sender>cbNetworkAttachment</sender>
<signal>activated(const QString&amp;)</signal>
<receiver>VBoxVMNetworkSettings</receiver>
<slot>cbNetworkAttachment_activated(const QString&amp;)</slot>
</connection>
<connection>
<sender>pbTAPSetup</sender>
<signal>clicked()</signal>
<receiver>VBoxVMNetworkSettings</receiver>
<slot>pbTAPSetup_clicked()</slot>
</connection>
<connection>
<sender>pbTAPTerminate</sender>
<signal>clicked()</signal>
<receiver>VBoxVMNetworkSettings</receiver>
<slot>pbTAPTerminate_clicked()</slot>
</connection>
<connection>
<sender>pbHostAdd</sender>
<signal>clicked()</signal>
<receiver>VBoxVMNetworkSettings</receiver>
<slot>hostInterfaceAdd()</slot>
</connection>
<connection>
<sender>pbHostRemove</sender>
<signal>clicked()</signal>
<receiver>VBoxVMNetworkSettings</receiver>
<slot>hostInterfaceRemove()</slot>
</connection>
<connection>
<sender>lbHostInterface</sender>
<signal>highlighted(QListBoxItem*)</signal>
<receiver>VBoxVMNetworkSettings</receiver>
<slot>lbHostInterface_highlighted(QListBoxItem*)</slot>
</connection>
</connections>
<includes>
<include location="global" impldecl="in implementation">limits</include>
<include location="global" impldecl="in implementation">qvalidator.h</include>
<include location="global" impldecl="in implementation">qfiledialog.h</include>
<include location="local" impldecl="in declaration">COMDefs.h</include>
<include location="local" impldecl="in implementation">VBoxGlobal.h</include>
<include location="local" impldecl="in implementation">VBoxProblemReporter.h</include>
</includes>
<variables>
<variable access="private">QStringList networkInterfaceList;</variable>
<variable access="private">CNetworkAdapter cadapter;</variable>
<variable access="private">QString NoSuitableIfaces;</variable>
</variables>
<slots>
<slot>cbNetworkAttachment_activated( const QString &amp; string )</slot>
<slot>pbGenerateMAC_clicked()</slot>
<slot>pbTAPSetup_clicked()</slot>
<slot>pbTAPTerminate_clicked()</slot>
<slot access="protected">hostInterfaceAdd()</slot>
<slot access="protected">hostInterfaceRemove()</slot>
<slot access="protected">lbHostInterface_highlighted( QListBoxItem* item )</slot>
</slots>
<functions>
<function access="private" specifier="non virtual">init()</function>
<function>getFromAdapter( const CNetworkAdapter &amp; adapter )</function>
<function>putBackToAdapter()</function>
<function access="private">updateInterfaceList()</function>
<function returnType="bool">checkNetworkInterface( QString input )</function>
</functions>
<pixmapinproject/>
<layoutdefaults spacing="6" margin="11"/>
</UI>