VirtualBox

Changeset 9356 in vbox


Ignore:
Timestamp:
Jun 3, 2008 3:37:50 PM (17 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
31574
Message:

Fe/Qt4: Network VMSettings (linux part) ported into qt4. Win part to go (when the win-qt4-build tools will be ready).

Location:
trunk/src/VBox/Frontends/VirtualBox4
Files:
1 deleted
3 edited
1 moved

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox4/Makefile.kmk

    r9257 r9356  
    302302VirtualBox_QT_UISRCS3 := $(filter-out ui/VBoxVMSettingsAudio.ui,$(VirtualBox_QT_UISRCS3))
    303303VirtualBox_QT_UISRCS4 += ui/VBoxVMSettingsAudio.ui
     304
     305VirtualBox_QT_UISRCS3 := $(filter-out ui/VBoxVMSettingsNetwork.ui,$(VirtualBox_QT_UISRCS3))
     306VirtualBox_QT_UISRCS4 += ui/VBoxVMSettingsNetwork.ui
    304307
    305308VirtualBox_QT_UISRCS3 := $(filter-out ui/VBoxVMSettingsSerial.ui,$(VirtualBox_QT_UISRCS3))
     
    472475        include/VBoxVMSettingsFD.h \
    473476        include/VBoxVMSettingsAudio.h \
     477        include/VBoxVMSettingsNetwork.h \
    474478        include/VBoxVMSettingsSerial.h \
    475479        include/VBoxVMSettingsParallel.h \
     
    558562        src/VBoxVMSettingsFD.cpp \
    559563        src/VBoxVMSettingsAudio.cpp \
     564        src/VBoxVMSettingsNetwork.cpp \
    560565        src/VBoxVMSettingsSerial.cpp \
    561566        src/VBoxVMSettingsParallel.cpp \
  • trunk/src/VBox/Frontends/VirtualBox4/VBoxUI.pro

    r9253 r9356  
    2626
    2727FORMS   = ui/VBoxDiskImageManagerDlg.ui \
    28         ui/VBoxVMNetworkSettings.ui \
     28        ui/VBoxVMSettingsNetwork.ui \
    2929        ui/VBoxVMSettingsSerial.ui \
    3030        ui/VBoxVMSettingsParallel.ui \
  • trunk/src/VBox/Frontends/VirtualBox4/ui/VBoxVMSettingsDlg.ui

    r9234 r9356  
    490490     <widget class="QWidget" name="mPageFD" />
    491491     <widget class="QWidget" name="mPageAudio" />
    492      <widget class="QWidget" name="mPageNetwork" >
    493       <layout class="QVBoxLayout" >
    494        <property name="leftMargin" >
    495         <number>0</number>
    496        </property>
    497        <property name="topMargin" >
    498         <number>5</number>
    499        </property>
    500        <property name="rightMargin" >
    501         <number>0</number>
    502        </property>
    503        <property name="bottomMargin" >
    504         <number>0</number>
    505        </property>
    506        <item>
    507         <widget class="QGroupBox" name="mGbInterfaces" >
    508          <property name="sizePolicy" >
    509           <sizepolicy vsizetype="Preferred" hsizetype="Expanding" >
    510            <horstretch>0</horstretch>
    511            <verstretch>0</verstretch>
    512           </sizepolicy>
    513          </property>
    514          <property name="title" >
    515           <string>Host &amp;Interfaces</string>
    516          </property>
    517          <layout class="QHBoxLayout" >
    518           <property name="topMargin" >
    519            <number>5</number>
    520           </property>
    521           <item>
    522            <widget class="QListWidget" name="mLwInterfaces" />
    523           </item>
    524           <item>
    525            <layout class="QVBoxLayout" >
    526             <item>
    527              <widget class="QToolButton" name="mTbAddInterface" >
    528               <property name="whatsThis" >
    529                <string>Adds a new host interface.</string>
    530               </property>
    531               <property name="text" >
    532                <string/>
    533               </property>
    534               <property name="autoRaise" >
    535                <bool>true</bool>
    536               </property>
    537              </widget>
    538             </item>
    539             <item>
    540              <widget class="QToolButton" name="mTbRemInterface" >
    541               <property name="whatsThis" >
    542                <string>Removes the selected host interface.</string>
    543               </property>
    544               <property name="text" >
    545                <string/>
    546               </property>
    547               <property name="autoRaise" >
    548                <bool>true</bool>
    549               </property>
    550              </widget>
    551             </item>
    552             <item>
    553              <spacer>
    554               <property name="orientation" >
    555                <enum>Qt::Vertical</enum>
    556               </property>
    557               <property name="sizeHint" >
    558                <size>
    559                 <width>20</width>
    560                 <height>40</height>
    561                </size>
    562               </property>
    563              </spacer>
    564             </item>
    565            </layout>
    566           </item>
    567          </layout>
    568         </widget>
    569        </item>
    570       </layout>
    571      </widget>
     492     <widget class="QWidget" name="mPageNetwork" />
    572493     <widget class="QWidget" name="mPageSerial" />
    573494     <widget class="QWidget" name="mPageParallel" />
  • trunk/src/VBox/Frontends/VirtualBox4/ui/VBoxVMSettingsNetwork.ui

    r9287 r9356  
    1 <!DOCTYPE UI><UI version="3.3" stdsetdef="1">
    2 <class>VBoxVMNetworkSettings</class>
    3 <comment>
    4 :mode=html:tabSize=4:indentSize=4:noTabs=true:
    5 :folding=explicit:collapseFolds=1:
    6 
    7      Copyright (C) 2006-2007 Sun Microsystems, Inc.
    8    
    9      This file is part of VirtualBox Open Source Edition (OSE), as
    10      available from http://www.virtualbox.org. This file is free software;
    11      you can redistribute it and/or modify it under the terms of the GNU
    12      General Public License (GPL) as published by the Free Software
    13      Foundation, in version 2 as it comes in the "COPYING" file of the
    14      VirtualBox OSE distribution. VirtualBox OSE is distributed in the
    15      hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
    16    
    17      Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
    18      Clara, CA 95054 USA or visit http://www.sun.com if you need
    19      additional information or have any questions.
    20 </comment>
    21 <widget class="QWidget">
    22     <property name="name">
    23         <cstring>VBoxVMNetworkSettings</cstring>
    24     </property>
    25     <property name="geometry">
    26         <rect>
    27             <x>0</x>
    28             <y>0</y>
    29             <width>442</width>
    30             <height>353</height>
    31         </rect>
    32     </property>
    33     <property name="sizePolicy">
    34         <sizepolicy>
    35             <hsizetype>5</hsizetype>
    36             <vsizetype>1</vsizetype>
    37             <horstretch>0</horstretch>
    38             <verstretch>0</verstretch>
    39         </sizepolicy>
    40     </property>
    41     <property name="caption">
    42         <string>VBoxVMNetworkSettings</string>
    43     </property>
    44     <vbox>
    45         <property name="name">
    46             <cstring>unnamed</cstring>
    47         </property>
    48         <property name="spacing">
    49             <number>10</number>
    50         </property>
    51         <widget class="QGroupBox">
    52             <property name="name">
    53                 <cstring>grbEnabled</cstring>
    54             </property>
    55             <property name="sizePolicy">
    56                 <sizepolicy>
    57                     <hsizetype>5</hsizetype>
    58                     <vsizetype>1</vsizetype>
    59                     <horstretch>0</horstretch>
    60                     <verstretch>0</verstretch>
    61                 </sizepolicy>
    62             </property>
    63             <property name="title">
    64                 <string>&amp;Enable Network Adapter</string>
    65             </property>
    66             <property name="whatsThis" stdset="0">
    67                 <string>When checked, plugs this virtual network adapter into the virtual machine.</string>
    68             </property>
    69             <property name="checkable">
    70                 <bool>true</bool>
    71             </property>
    72             <vbox>
    73                 <property name="name">
    74                     <cstring>unnamed</cstring>
    75                 </property>
    76                 <widget class="QLayoutWidget">
    77                     <property name="name">
    78                         <cstring>layout345</cstring>
    79                     </property>
    80                     <grid>
    81                         <property name="name">
    82                             <cstring>unnamed</cstring>
    83                         </property>
    84                         <widget class="QLabel" row="2" column="0">
    85                             <property name="name">
    86                                 <cstring>txHostInterface_WIN</cstring>
    87                             </property>
    88                             <property name="sizePolicy">
    89                                 <sizepolicy>
    90                                     <hsizetype>0</hsizetype>
    91                                     <vsizetype>5</vsizetype>
    92                                     <horstretch>0</horstretch>
    93                                     <verstretch>0</verstretch>
    94                                 </sizepolicy>
    95                             </property>
    96                             <property name="text">
    97                                 <string>&amp;Interface Name</string>
    98                             </property>
    99                             <property name="buddy" stdset="0">
    100                                 <cstring>cbHostInterfaceName</cstring>
    101                             </property>
    102                         </widget>
    103                         <widget class="QLabel" row="3" column="0">
    104                             <property name="name">
    105                                 <cstring>txInternalNetwork</cstring>
    106                             </property>
    107                             <property name="sizePolicy">
    108                                 <sizepolicy>
    109                                     <hsizetype>0</hsizetype>
    110                                     <vsizetype>5</vsizetype>
    111                                     <horstretch>0</horstretch>
    112                                     <verstretch>0</verstretch>
    113                                 </sizepolicy>
    114                             </property>
    115                             <property name="text">
    116                                 <string>&amp;Network Name</string>
    117                             </property>
    118                             <property name="buddy" stdset="0">
    119                                 <cstring>cbInternalNetworkName</cstring>
    120                             </property>
    121                         </widget>
    122                         <widget class="QLineEdit" row="4" column="1">
    123                             <property name="name">
    124                                 <cstring>leMACAddress</cstring>
    125                             </property>
    126                             <property name="sizePolicy">
    127                                 <sizepolicy>
    128                                     <hsizetype>7</hsizetype>
    129                                     <vsizetype>0</vsizetype>
    130                                     <horstretch>0</horstretch>
    131                                     <verstretch>0</verstretch>
    132                                 </sizepolicy>
    133                             </property>
    134                             <property name="frameShape">
    135                                 <enum>LineEditPanel</enum>
    136                             </property>
    137                             <property name="frameShadow">
    138                                 <enum>Sunken</enum>
    139                             </property>
    140                             <property name="whatsThis" stdset="0">
    141                                         <string>Displays the MAC address of this adapter. It contains exactly 12 characters chosen from {0-9,A-F}. Note that the second character must be an even digit.</string>
    142                             </property>
    143                         </widget>
    144                         <widget class="QLabel" row="0" column="0">
    145                             <property name="name">
    146                                 <cstring>txAdapterType</cstring>
    147                             </property>
    148                             <property name="sizePolicy">
    149                                 <sizepolicy>
    150                                     <hsizetype>0</hsizetype>
    151                                     <vsizetype>0</vsizetype>
    152                                     <horstretch>0</horstretch>
    153                                     <verstretch>0</verstretch>
    154                                 </sizepolicy>
    155                             </property>
    156                             <property name="text">
    157                                 <string>Adapter &amp;Type</string>
    158                             </property>
    159                             <property name="buddy" stdset="0">
    160                                 <cstring>cbAdapterType</cstring>
    161                             </property>
    162                         </widget>
    163                         <widget class="QComboBox" row="0" column="1" rowspan="1" colspan="2">
    164                             <property name="name">
    165                                 <cstring>cbAdapterType</cstring>
    166                             </property>
    167                             <property name="whatsThis" stdset="0">
    168                                 <string>Selects the type of the virtual network adapter. Depending on this value, VirtualBox will provide different network hardware to the virtual machine.</string>
    169                             </property>
    170                         </widget>
    171                         <widget class="QComboBox" row="1" column="1" rowspan="1" colspan="2">
    172                             <property name="name">
    173                                 <cstring>cbNetworkAttachment</cstring>
    174                             </property>
    175                             <property name="whatsThis" stdset="0">
    176                                 <string>Controls the way how this virtual adapter is attached to the real network of the Host OS.</string>
    177                             </property>
    178                         </widget>
    179                         <widget class="QToolButton" row="4" column="2">
    180                             <property name="name">
    181                                 <cstring>pbGenerateMAC</cstring>
    182                             </property>
    183                             <property name="sizePolicy">
    184                                 <sizepolicy>
    185                                     <hsizetype>5</hsizetype>
    186                                     <vsizetype>1</vsizetype>
    187                                     <horstretch>0</horstretch>
    188                                     <verstretch>0</verstretch>
    189                                 </sizepolicy>
    190                             </property>
    191                             <property name="focusPolicy">
    192                                 <enum>StrongFocus</enum>
    193                             </property>
    194                             <property name="text">
    195                                 <string>&amp;Generate</string>
    196                             </property>
    197                             <property name="whatsThis" stdset="0">
    198                                 <string>Generates a new random MAC address.</string>
    199                             </property>
    200                         </widget>
    201                         <widget class="QLabel" row="1" column="0">
    202                             <property name="name">
    203                                 <cstring>txNetworkAttachment</cstring>
    204                             </property>
    205                             <property name="sizePolicy">
    206                                 <sizepolicy>
    207                                     <hsizetype>0</hsizetype>
    208                                     <vsizetype>0</vsizetype>
    209                                     <horstretch>0</horstretch>
    210                                     <verstretch>0</verstretch>
    211                                 </sizepolicy>
    212                             </property>
    213                             <property name="text">
    214                                 <string>&amp;Attached to</string>
    215                             </property>
    216                             <property name="buddy" stdset="0">
    217                                 <cstring>cbNetworkAttachment</cstring>
    218                             </property>
    219                         </widget>
    220                         <widget class="QLabel" row="4" column="0">
    221                             <property name="name">
    222                                 <cstring>txMACAddress</cstring>
    223                             </property>
    224                             <property name="sizePolicy">
    225                                 <sizepolicy>
    226                                     <hsizetype>0</hsizetype>
    227                                     <vsizetype>0</vsizetype>
    228                                     <horstretch>0</horstretch>
    229                                     <verstretch>0</verstretch>
    230                                 </sizepolicy>
    231                             </property>
    232                             <property name="text">
    233                                 <string>&amp;MAC Address</string>
    234                             </property>
    235                             <property name="buddy" stdset="0">
    236                                 <cstring>leMACAddress</cstring>
    237                             </property>
    238                         </widget>
    239                         <widget class="QComboBox" row="2" column="1" rowspan="1" colspan="2">
    240                             <property name="name">
    241                                 <cstring>cbHostInterfaceName</cstring>
    242                             </property>
    243                             <property name="whatsThis" stdset="0">
    244                                 <string>Displays the name of the host interface selected for this adapter.</string>
    245                             </property>
    246                         </widget>
    247                         <widget class="QComboBox" row="3" column="1" rowspan="1" colspan="2">
    248                             <property name="name">
    249                                 <cstring>cbInternalNetworkName</cstring>
    250                             </property>
    251                             <property name="editable">
    252                                 <bool>true</bool>
    253                             </property>
    254                             <property name="insertionPolicy">
    255                                 <enum>NoInsertion</enum>
    256                             </property>
    257                             <property name="autoCompletion">
    258                                 <bool>true</bool>
    259                             </property>
    260                             <property name="duplicatesEnabled">
    261                                 <bool>false</bool>
    262                             </property>
    263                             <property name="whatsThis" stdset="0">
    264                                 <string>Displays the name of the internal network selected for this adapter.</string>
    265                             </property>
    266                         </widget>
    267                     </grid>
    268                 </widget>
    269                 <widget class="QCheckBox">
    270                     <property name="name">
    271                         <cstring>chbCableConnected</cstring>
    272                     </property>
    273                     <property name="text">
    274                         <string>Ca&amp;ble Connected</string>
    275                     </property>
    276                     <property name="whatsThis" stdset="0">
    277                         <string>Indicates whether the virtual network cable is plugged in on machine startup or not.</string>
    278                     </property>
    279                 </widget>
    280             </vbox>
    281         </widget>
    282         <widget class="QGroupBox">
    283             <property name="name">
    284                 <cstring>grbTAP</cstring>
    285             </property>
    286             <property name="title">
    287                 <string>Host Interface Settings</string>
    288             </property>
    289             <property name="flat">
    290                 <bool>false</bool>
    291             </property>
    292             <vbox>
    293                 <property name="name">
    294                     <cstring>unnamed</cstring>
    295                 </property>
    296                 <widget class="QLayoutWidget">
    297                     <property name="name">
    298                         <cstring>layout120</cstring>
    299                     </property>
    300                     <hbox>
    301                         <property name="name">
    302                             <cstring>unnamed</cstring>
    303                         </property>
    304                         <widget class="QFrame">
    305                             <property name="name">
    306                                 <cstring>frmHostInterface_X11</cstring>
    307                             </property>
    308                             <property name="frameShape">
    309                                 <enum>NoFrame</enum>
    310                             </property>
    311                             <property name="frameShadow">
    312                                 <enum>Raised</enum>
    313                             </property>
    314                             <vbox>
    315                                 <property name="name">
    316                                     <cstring>unnamed</cstring>
    317                                 </property>
    318                                 <property name="margin">
    319                                     <number>0</number>
    320                                 </property>
    321                                 <widget class="QLabel">
    322                                     <property name="name">
    323                                         <cstring>txHostInterface_X11</cstring>
    324                                     </property>
    325                                     <property name="sizePolicy">
    326                                         <sizepolicy>
    327                                             <hsizetype>0</hsizetype>
    328                                             <vsizetype>5</vsizetype>
    329                                             <horstretch>0</horstretch>
    330                                             <verstretch>0</verstretch>
    331                                         </sizepolicy>
    332                                     </property>
    333                                     <property name="text">
    334                                         <string>&amp;Interface Name</string>
    335                                     </property>
    336                                     <property name="buddy" stdset="0">
    337                                         <cstring>leHostInterface</cstring>
    338                                     </property>
    339                                 </widget>
    340                                 <widget class="QLineEdit">
    341                                     <property name="name">
    342                                         <cstring>leHostInterface</cstring>
    343                                     </property>
    344                                     <property name="whatsThis" stdset="0">
    345                                         <string>Displays the TAP interface name.</string>
    346                                     </property>
    347                                 </widget>
    348                             </vbox>
    349                         </widget>
    350                         <widget class="QFrame">
    351                             <property name="name">
    352                                 <cstring>frmTAPDescriptor</cstring>
    353                             </property>
    354                             <property name="frameShape">
    355                                 <enum>NoFrame</enum>
    356                             </property>
    357                             <property name="frameShadow">
    358                                 <enum>Raised</enum>
    359                             </property>
    360                             <vbox>
    361                                 <property name="name">
    362                                     <cstring>unnamed</cstring>
    363                                 </property>
    364                                 <property name="margin">
    365                                     <number>0</number>
    366                                 </property>
    367                                 <widget class="QLabel">
    368                                     <property name="name">
    369                                         <cstring>txTAPDescriptor</cstring>
    370                                     </property>
    371                                     <property name="sizePolicy">
    372                                         <sizepolicy>
    373                                             <hsizetype>0</hsizetype>
    374                                             <vsizetype>5</vsizetype>
    375                                             <horstretch>0</horstretch>
    376                                             <verstretch>0</verstretch>
    377                                         </sizepolicy>
    378                                     </property>
    379                                     <property name="text">
    380                                         <string>&amp;File Descriptor</string>
    381                                     </property>
    382                                     <property name="buddy" stdset="0">
    383                                         <cstring>leTAPDescriptor</cstring>
    384                                     </property>
    385                                 </widget>
    386                                 <widget class="QLineEdit">
    387                                     <property name="name">
    388                                         <cstring>leTAPDescriptor</cstring>
    389                                     </property>
    390                                     <property name="frameShape">
    391                                         <enum>LineEditPanel</enum>
    392                                     </property>
    393                                     <property name="frameShadow">
    394                                         <enum>Sunken</enum>
    395                                     </property>
    396                                 </widget>
    397                             </vbox>
    398                         </widget>
    399                     </hbox>
    400                 </widget>
    401                 <widget class="QFrame">
    402                     <property name="name">
    403                         <cstring>frmTAPSetupTerminate</cstring>
    404                     </property>
    405                     <property name="frameShape">
    406                         <enum>NoFrame</enum>
    407                     </property>
    408                     <property name="frameShadow">
    409                         <enum>Raised</enum>
    410                     </property>
    411                     <vbox>
    412                         <property name="name">
    413                             <cstring>unnamed</cstring>
    414                         </property>
    415                         <property name="margin">
    416                             <number>0</number>
    417                         </property>
    418                         <widget class="QLayoutWidget">
    419                             <property name="name">
    420                                 <cstring>layout124</cstring>
    421                             </property>
    422                             <vbox>
    423                                 <property name="name">
    424                                     <cstring>unnamed</cstring>
    425                                 </property>
    426                                 <property name="margin">
    427                                     <number>0</number>
    428                                 </property>
    429                                 <property name="spacing">
    430                                     <number>0</number>
    431                                 </property>
    432                                 <widget class="QLayoutWidget">
    433                                     <property name="name">
    434                                         <cstring>layout31</cstring>
    435                                     </property>
    436                                     <hbox>
    437                                         <property name="name">
    438                                             <cstring>unnamed</cstring>
    439                                         </property>
    440                                         <widget class="QLabel">
    441                                             <property name="name">
    442                                                 <cstring>txTAPSetup</cstring>
    443                                             </property>
    444                                             <property name="text">
    445                                                 <string>&amp;Setup Application</string>
    446                                             </property>
    447                                             <property name="buddy" stdset="0">
    448                                                 <cstring>leTAPSetup</cstring>
    449                                             </property>
    450                                         </widget>
    451                                         <spacer>
    452                                             <property name="name">
    453                                                 <cstring>spacer14</cstring>
    454                                             </property>
    455                                             <property name="orientation">
    456                                                 <enum>Horizontal</enum>
    457                                             </property>
    458                                             <property name="sizeType">
    459                                                 <enum>Expanding</enum>
    460                                             </property>
    461                                             <property name="sizeHint">
    462                                                 <size>
    463                                                     <width>61</width>
    464                                                     <height>20</height>
    465                                                 </size>
    466                                             </property>
    467                                         </spacer>
    468                                     </hbox>
    469                                 </widget>
    470                                 <widget class="QLayoutWidget">
    471                                     <property name="name">
    472                                         <cstring>layout122</cstring>
    473                                     </property>
    474                                     <hbox>
    475                                         <property name="name">
    476                                             <cstring>unnamed</cstring>
    477                                         </property>
    478                                         <widget class="QLineEdit">
    479                                             <property name="name">
    480                                                 <cstring>leTAPSetup</cstring>
    481                                             </property>
    482                                             <property name="whatsThis" stdset="0">
    483                                                 <string>Displays the command executed to set up the TAP interface.</string>
    484                                             </property>
    485                                         </widget>
    486                                         <widget class="QToolButton">
    487                                             <property name="name">
    488                                                 <cstring>pbTAPSetup</cstring>
    489                                             </property>
    490                                             <property name="text">
    491                                                 <string>Select</string>
    492                                             </property>
    493                                             <property name="whatsThis" stdset="0">
    494                                                 <string>Selects the setup application.</string>
    495                                             </property>
    496                                             <property name="focusPolicy">
    497                                                 <enum>TabFocus</enum>
    498                                             </property>
    499                                         </widget>
    500                                     </hbox>
    501                                 </widget>
    502                             </vbox>
    503                         </widget>
    504                         <widget class="QLayoutWidget">
    505                             <property name="name">
    506                                 <cstring>layout125</cstring>
    507                             </property>
    508                             <vbox>
    509                                 <property name="name">
    510                                     <cstring>unnamed</cstring>
    511                                 </property>
    512                                 <property name="margin">
    513                                     <number>0</number>
    514                                 </property>
    515                                 <property name="spacing">
    516                                     <number>0</number>
    517                                 </property>
    518                                 <widget class="QLayoutWidget">
    519                                     <property name="name">
    520                                         <cstring>layout32</cstring>
    521                                     </property>
    522                                     <hbox>
    523                                         <property name="name">
    524                                             <cstring>unnamed</cstring>
    525                                         </property>
    526                                         <widget class="QLabel">
    527                                             <property name="name">
    528                                                 <cstring>txTAPTerminate</cstring>
    529                                             </property>
    530                                             <property name="text">
    531                                                 <string>&amp;Terminate Application</string>
    532                                             </property>
    533                                             <property name="buddy" stdset="0">
    534                                                 <cstring>leTAPTerminate</cstring>
    535                                             </property>
    536                                         </widget>
    537                                         <spacer>
    538                                             <property name="name">
    539                                                 <cstring>spacer15</cstring>
    540                                             </property>
    541                                             <property name="orientation">
    542                                                 <enum>Horizontal</enum>
    543                                             </property>
    544                                             <property name="sizeType">
    545                                                 <enum>Expanding</enum>
    546                                             </property>
    547                                             <property name="sizeHint">
    548                                                 <size>
    549                                                     <width>61</width>
    550                                                     <height>20</height>
    551                                                 </size>
    552                                             </property>
    553                                         </spacer>
    554                                     </hbox>
    555                                 </widget>
    556                                 <widget class="QLayoutWidget">
    557                                     <property name="name">
    558                                         <cstring>layout123</cstring>
    559                                     </property>
    560                                     <hbox>
    561                                         <property name="name">
    562                                             <cstring>unnamed</cstring>
    563                                         </property>
    564                                         <widget class="QLineEdit">
    565                                             <property name="name">
    566                                                 <cstring>leTAPTerminate</cstring>
    567                                             </property>
    568                                             <property name="frameShape">
    569                                                 <enum>LineEditPanel</enum>
    570                                             </property>
    571                                             <property name="frameShadow">
    572                                                 <enum>Sunken</enum>
    573                                             </property>
    574                                             <property name="whatsThis" stdset="0">
    575                                                 <string>Displays the command executed to terminate the TAP interface.</string>
    576                                             </property>
    577                                         </widget>
    578                                         <widget class="QToolButton">
    579                                             <property name="name">
    580                                                 <cstring>pbTAPTerminate</cstring>
    581                                             </property>
    582                                             <property name="text">
    583                                                 <string>Select</string>
    584                                             </property>
    585                                             <property name="whatsThis" stdset="0">
    586                                                 <string>Selects the terminate application.</string>
    587                                             </property>
    588                                             <property name="focusPolicy">
    589                                                 <enum>TabFocus</enum>
    590                                             </property>
    591                                         </widget>
    592                                     </hbox>
    593                                 </widget>
    594                             </vbox>
    595                         </widget>
    596                     </vbox>
    597                 </widget>
    598             </vbox>
    599         </widget>
    600         <spacer>
    601             <property name="name">
    602                 <cstring>spacer5</cstring>
    603             </property>
    604             <property name="orientation">
    605                 <enum>Vertical</enum>
    606             </property>
    607             <property name="sizeType">
    608                 <enum>Expanding</enum>
    609             </property>
    610             <property name="sizeHint">
    611                 <size>
    612                     <width>0</width>
    613                     <height>0</height>
    614                 </size>
    615             </property>
    616         </spacer>
    617     </vbox>
    618 </widget>
    619 <connections>
    620     <connection>
    621         <sender>pbGenerateMAC</sender>
    622         <signal>clicked()</signal>
    623         <receiver>VBoxVMNetworkSettings</receiver>
    624         <slot>pbGenerateMAC_clicked()</slot>
    625     </connection>
    626     <connection>
    627         <sender>cbNetworkAttachment</sender>
    628         <signal>activated(const QString&amp;)</signal>
    629         <receiver>VBoxVMNetworkSettings</receiver>
    630         <slot>cbNetworkAttachment_activated(const QString&amp;)</slot>
    631     </connection>
    632     <connection>
    633         <sender>pbTAPSetup</sender>
    634         <signal>clicked()</signal>
    635         <receiver>VBoxVMNetworkSettings</receiver>
    636         <slot>pbTAPSetup_clicked()</slot>
    637     </connection>
    638     <connection>
    639         <sender>pbTAPTerminate</sender>
    640         <signal>clicked()</signal>
    641         <receiver>VBoxVMNetworkSettings</receiver>
    642         <slot>pbTAPTerminate_clicked()</slot>
    643     </connection>
    644 </connections>
    645 <tabstops>
    646     <tabstop>cbNetworkAttachment</tabstop>
    647     <tabstop>cbHostInterfaceName</tabstop>
    648     <tabstop>cbInternalNetworkName</tabstop>
    649     <tabstop>leMACAddress</tabstop>
    650 </tabstops>
    651 <includes>
    652     <include location="global" impldecl="in implementation">limits</include>
    653     <include location="global" impldecl="in implementation">qvalidator.h</include>
    654     <include location="global" impldecl="in implementation">qfiledialog.h</include>
    655     <include location="local" impldecl="in declaration">COMDefs.h</include>
    656     <include location="local" impldecl="in declaration">QIWidgetValidator.h</include>
    657     <include location="local" impldecl="in implementation">VBoxGlobal.h</include>
    658     <include location="local" impldecl="in implementation">VBoxProblemReporter.h</include>
    659 </includes>
    660 <variables>
    661     <variable access="public">enum CheckPageResult { CheckPage_Ok, CheckPage_InvalidInterface, CheckPage_NoNetworkName };</variable>
    662     <variable access="private">CNetworkAdapter cadapter;</variable>
    663     <variable access="private">QIWidgetValidator *mWalidator;</variable>
    664 </variables>
    665 <slots>
    666     <slot access="private">grbEnabledToggled( bool )</slot>
    667     <slot access="private">cbNetworkAttachment_activated( const QString &amp; string )</slot>
    668     <slot access="private">pbGenerateMAC_clicked()</slot>
    669     <slot access="private">pbTAPSetup_clicked()</slot>
    670     <slot access="private">pbTAPTerminate_clicked()</slot>
    671 </slots>
    672 <functions>
    673     <function access="private" specifier="non virtual">init()</function>
    674     <function returnType="CheckPageResult">checkPage( QStringList aList = QStringList() )</function>
    675     <function>loadInterfaceList( const QStringList &amp;, const QString &amp; )</function>
    676     <function>loadNetworksList( const QStringList &amp; )</function>
    677     <function>getFromAdapter( const CNetworkAdapter &amp; )</function>
    678     <function>putBackToAdapter()</function>
    679     <function>setValidator( QIWidgetValidator* )</function>
    680     <function>revalidate()</function>
    681     <function access="private" returnType="bool">isInterfaceInvalid( const QStringList &amp;, const QString &amp; )</function>
    682 </functions>
    683 <pixmapinproject/>
    684 <layoutdefaults spacing="6" margin="11"/>
    685 </UI>
     1<ui version="4.0" >
     2 <class>VBoxVMSettingsNetwork</class>
     3 <widget class="QWidget" name="VBoxVMSettingsNetwork" >
     4  <property name="geometry" >
     5   <rect>
     6    <x>0</x>
     7    <y>0</y>
     8    <width>318</width>
     9    <height>403</height>
     10   </rect>
     11  </property>
     12  <layout class="QVBoxLayout" >
     13   <item>
     14    <widget class="QGroupBox" name="mGbAdapter" >
     15     <property name="sizePolicy" >
     16      <sizepolicy vsizetype="Minimum" hsizetype="Preferred" >
     17       <horstretch>0</horstretch>
     18       <verstretch>0</verstretch>
     19      </sizepolicy>
     20     </property>
     21     <property name="whatsThis" >
     22      <string>When checked, plugs this virtual network adapter into the virtual machine.</string>
     23     </property>
     24     <property name="title" >
     25      <string>&amp;Enable Network Adapter</string>
     26     </property>
     27     <property name="checkable" >
     28      <bool>true</bool>
     29     </property>
     30     <property name="checked" >
     31      <bool>true</bool>
     32     </property>
     33     <layout class="QGridLayout" >
     34      <item row="0" column="0" >
     35       <widget class="QLabel" name="mLbAType" >
     36        <property name="text" >
     37         <string>A&amp;dapter Type</string>
     38        </property>
     39        <property name="buddy" >
     40         <cstring>mCbAType</cstring>
     41        </property>
     42       </widget>
     43      </item>
     44      <item row="0" column="1" colspan="2" >
     45       <widget class="QComboBox" name="mCbAType" >
     46        <property name="whatsThis" >
     47         <string>Selects the type of the virtual network adapter. Depending on this value, VirtualBox will provide different network hardware to the virtual machine.</string>
     48        </property>
     49       </widget>
     50      </item>
     51      <item row="1" column="0" >
     52       <widget class="QLabel" name="mLbNAType" >
     53        <property name="text" >
     54         <string>&amp;Attached to</string>
     55        </property>
     56        <property name="buddy" >
     57         <cstring>mCbNAType</cstring>
     58        </property>
     59       </widget>
     60      </item>
     61      <item row="1" column="1" colspan="2" >
     62       <widget class="QComboBox" name="mCbNAType" >
     63        <property name="whatsThis" >
     64         <string>Controls the way how this virtual adapter is attached to the real network of the Host OS.</string>
     65        </property>
     66       </widget>
     67      </item>
     68      <item row="2" column="0" >
     69       <widget class="QLabel" name="mLbNetwork" >
     70        <property name="text" >
     71         <string>&amp;Network Name</string>
     72        </property>
     73        <property name="buddy" >
     74         <cstring>mCbNetwork</cstring>
     75        </property>
     76       </widget>
     77      </item>
     78      <item row="2" column="1" colspan="2" >
     79       <widget class="QComboBox" name="mCbNetwork" >
     80        <property name="whatsThis" >
     81         <string>Displays the name of the internal network selected for this adapter.</string>
     82        </property>
     83        <property name="editable" >
     84         <bool>true</bool>
     85        </property>
     86       </widget>
     87      </item>
     88      <item row="3" column="0" >
     89       <widget class="QLabel" name="mLbMAC" >
     90        <property name="text" >
     91         <string>&amp;MAC Address</string>
     92        </property>
     93        <property name="buddy" >
     94         <cstring>mLeMAC</cstring>
     95        </property>
     96       </widget>
     97      </item>
     98      <item row="3" column="1" >
     99       <widget class="QLineEdit" name="mLeMAC" >
     100        <property name="whatsThis" >
     101         <string>Displays the MAC address of this adapter. It contains exactly 12 characters chosen from {0-9,A-F}. Note that the second character must be an even digit.</string>
     102        </property>
     103       </widget>
     104      </item>
     105      <item row="3" column="2" >
     106       <widget class="QPushButton" name="mPbMAC" >
     107        <property name="whatsThis" >
     108         <string>Generates a new random MAC address.</string>
     109        </property>
     110        <property name="text" >
     111         <string>&amp;Generate</string>
     112        </property>
     113        <property name="shortcut" >
     114         <string>Alt+G</string>
     115        </property>
     116       </widget>
     117      </item>
     118      <item row="4" column="0" colspan="3" >
     119       <widget class="QCheckBox" name="mCbCable" >
     120        <property name="whatsThis" >
     121         <string>Indicates whether the virtual network cable is plugged in on machine startup or not.</string>
     122        </property>
     123        <property name="text" >
     124         <string>Ca&amp;ble Connected</string>
     125        </property>
     126       </widget>
     127      </item>
     128     </layout>
     129    </widget>
     130   </item>
     131   <item>
     132    <widget class="QGroupBox" name="mGbTAP" >
     133     <property name="sizePolicy" >
     134      <sizepolicy vsizetype="Expanding" hsizetype="Preferred" >
     135       <horstretch>0</horstretch>
     136       <verstretch>0</verstretch>
     137      </sizepolicy>
     138     </property>
     139     <property name="whatsThis" >
     140      <string>Host Interface Settings</string>
     141     </property>
     142     <property name="title" >
     143      <string>Host Interface Settings</string>
     144     </property>
     145     <layout class="QVBoxLayout" >
     146      <item>
     147       <layout class="QVBoxLayout" >
     148        <property name="spacing" >
     149         <number>0</number>
     150        </property>
     151        <item>
     152         <widget class="QLabel" name="mLbInterface_x11" >
     153          <property name="text" >
     154           <string>&amp;Interface Name</string>
     155          </property>
     156          <property name="buddy" >
     157           <cstring>mLeInterface_x11</cstring>
     158          </property>
     159         </widget>
     160        </item>
     161        <item>
     162         <widget class="QLineEdit" name="mLeInterface_x11" >
     163          <property name="whatsThis" >
     164           <string>Displays the TAP interface name.</string>
     165          </property>
     166         </widget>
     167        </item>
     168       </layout>
     169      </item>
     170      <item>
     171       <layout class="QVBoxLayout" >
     172        <property name="spacing" >
     173         <number>0</number>
     174        </property>
     175        <item>
     176         <widget class="QLabel" name="mLbSetup_x11" >
     177          <property name="text" >
     178           <string>&amp;Setup Application</string>
     179          </property>
     180          <property name="buddy" >
     181           <cstring>mLeSetup_x11</cstring>
     182          </property>
     183         </widget>
     184        </item>
     185        <item>
     186         <layout class="QHBoxLayout" >
     187          <property name="spacing" >
     188           <number>6</number>
     189          </property>
     190          <item>
     191           <widget class="QLineEdit" name="mLeSetup_x11" >
     192            <property name="whatsThis" >
     193             <string>Displays the command executed to set up the TAP interface.</string>
     194            </property>
     195           </widget>
     196          </item>
     197          <item>
     198           <widget class="QToolButton" name="mTbSetup_x11" >
     199            <property name="whatsThis" >
     200             <string>Selects the setup application.</string>
     201            </property>
     202            <property name="autoRaise" >
     203             <bool>true</bool>
     204            </property>
     205           </widget>
     206          </item>
     207         </layout>
     208        </item>
     209       </layout>
     210      </item>
     211      <item>
     212       <layout class="QVBoxLayout" >
     213        <property name="spacing" >
     214         <number>0</number>
     215        </property>
     216        <item>
     217         <widget class="QLabel" name="mLbTerminate_x11" >
     218          <property name="text" >
     219           <string>&amp;Terminate Application</string>
     220          </property>
     221          <property name="buddy" >
     222           <cstring>mLeTerminate_x11</cstring>
     223          </property>
     224         </widget>
     225        </item>
     226        <item>
     227         <layout class="QHBoxLayout" >
     228          <property name="spacing" >
     229           <number>6</number>
     230          </property>
     231          <item>
     232           <widget class="QLineEdit" name="mLeTerminate_x11" >
     233            <property name="whatsThis" >
     234             <string>Displays the command executed to terminate the TAP interface.</string>
     235            </property>
     236           </widget>
     237          </item>
     238          <item>
     239           <widget class="QToolButton" name="mTbTerminate_x11" >
     240            <property name="whatsThis" >
     241             <string>Selects the terminate application.</string>
     242            </property>
     243            <property name="autoRaise" >
     244             <bool>true</bool>
     245            </property>
     246           </widget>
     247          </item>
     248         </layout>
     249        </item>
     250       </layout>
     251      </item>
     252     </layout>
     253    </widget>
     254   </item>
     255  </layout>
     256 </widget>
     257 <resources/>
     258 <connections/>
     259</ui>
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