VirtualBox

Ignore:
Timestamp:
Aug 29, 2008 9:32:44 PM (16 years ago)
Author:
vboxsync
Message:

Merged VBOX_WITH_NETFLT_WINDOWS into VBOX_WITH_NETFLT. Made the GUIs, Main, Devices and HostDrivers use VBOX_WITH_NETFLT.

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

Legend:

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

    r11725 r11849  
    403403 VirtualBox_DEFS         += VBOX_WITH_DEBUGGER_GUI_MENU
    404404endif
     405ifdef VBOX_WITH_NETFLT
     406 VirtualBox_DEFS         += VBOX_WITH_NETFLT
     407endif
    405408
    406409VirtualBox_INCS           = \
  • trunk/src/VBox/Frontends/VirtualBox/ui/VBoxVMNetworkSettings.ui.h

    r11128 r11849  
    5656#endif
    5757
    58 #if defined Q_WS_WIN || defined Q_OS_MAC
     58#if defined Q_WS_WIN || defined VBOX_WITH_NETFLT
    5959    /* disable unused interface name UI */
    6060    grbTAP->setHidden (true);
     
    9090        return CheckPage_Ok;
    9191    else
    92 #if defined Q_WS_WIN || defined Q_OS_MAC
     92#if defined Q_WS_WIN || defined VBOX_WITH_NETFLT
    9393    if (type == KNetworkAttachmentType_HostInterface &&
    9494        isInterfaceInvalid (aList, cbHostInterfaceName->currentText()))
     
    108108                                               const QString &aNillItem)
    109109{
    110 #if defined Q_WS_WIN || defined Q_OS_MAC
     110#if defined Q_WS_WIN || defined VBOX_WITH_NETFLT
    111111    /* save current list item name */
    112112    QString currentListItemName = cbHostInterfaceName->currentText();
     
    161161    chbCableConnected->setChecked (adapter.GetCableConnected());
    162162
    163 #if defined Q_WS_WIN || defined Q_OS_MAC
     163#if defined Q_WS_WIN || defined VBOX_WITH_NETFLT
    164164    if (!adapter.GetHostInterface().isEmpty())
    165165        cbHostInterfaceName->setCurrentText (adapter.GetHostInterface());
     
    210210    if (type == KNetworkAttachmentType_HostInterface)
    211211    {
    212 #if defined Q_WS_WIN || defined Q_OS_MAC
     212#if defined Q_WS_WIN || defined VBOX_WITH_NETFLT
    213213        if (!cbHostInterfaceName->currentText().isEmpty())
    214214            cadapter.SetHostInterface (cbHostInterfaceName->currentText());
     
    241241void VBoxVMNetworkSettings::grbEnabledToggled (bool aOn)
    242242{
    243 #if defined Q_WS_WIN || defined Q_OS_MAC
     243#if defined Q_WS_WIN || defined VBOX_WITH_NETFLT
    244244    cbNetworkAttachment_activated (cbNetworkAttachment->currentText());
    245245#else
     
    256256                        vboxGlobal().toNetworkAttachmentType (aString) ==
    257257                        KNetworkAttachmentType_Internal;
    258 #if defined Q_WS_WIN || defined Q_OS_MAC
     258#if defined Q_WS_WIN || defined VBOX_WITH_NETFLT
    259259    txHostInterface_WIN->setEnabled (enableHostIf);
    260260    cbHostInterfaceName->setEnabled (enableHostIf);
     
    269269                                                const QString &aIface)
    270270{
    271 #if defined Q_WS_WIN || defined Q_OS_MAC
     271#if defined Q_WS_WIN || defined VBOX_WITH_NETFLT
    272272    return aList.find (aIface) == aList.end();
    273273#else
  • trunk/src/VBox/Frontends/VirtualBox/ui/VBoxVMSettingsDlg.ui.h

    r11237 r11849  
    663663    /* Network Page */
    664664
    665 #if !defined(Q_WS_WIN) && !defined Q_OS_MAC
     665#if !defined(Q_WS_WIN) && !defined(VBOX_WITH_NETFLT)
    666666    gbInterfaceList->setHidden (true);
    667667#endif
    668 #ifdef Q_OS_MAC
     668#ifdef VBOX_WITH_NETFLT
    669669    pbHostAdd->setHidden (true);
    670670    pbHostRemove->setHidden (true);
     
    978978void VBoxVMSettingsDlg::loadInterfacesList()
    979979{
    980 #if defined Q_WS_WIN || defined Q_OS_MAC
     980#if defined Q_WS_WIN || defined VBOX_WITH_NETFLT
    981981    /* clear inner list */
    982982    mInterfaceList.clear();
     
    10351035void VBoxVMSettingsDlg::hostInterfaceAdd()
    10361036{
    1037 #if defined Q_WS_WIN
     1037#if defined Q_WS_WIN && !defined VBOX_WITH_NETFLT
    10381038
    10391039    /* allow the started helper process to make itself the foreground window */
     
    10931093void VBoxVMSettingsDlg::hostInterfaceRemove()
    10941094{
    1095 #if defined Q_WS_WIN
     1095#if defined Q_WS_WIN && !defined VBOX_WITH_NETFLT
    10961096
    10971097    /* allow the started helper process to make itself the foreground window */
     
    11541154{
    11551155    if (!aWidget) return;
    1156 #if defined Q_WS_WIN || defined Q_OS_MAC
     1156#if defined Q_WS_WIN || defined VBOX_WITH_NETFLT
    11571157    VBoxVMNetworkSettings *set = static_cast<VBoxVMNetworkSettings*> (aWidget);
    11581158    set->loadInterfaceList (mInterfaceList, mNoInterfaces);
     
    21802180    page->revalidate();
    21812181
    2182 #if defined Q_WS_WIN || defined Q_OS_MAC
     2182#if defined Q_WS_WIN || defined VBOX_WITH_NETFLT
    21832183
    21842184    /* fix focus order (make sure the Host Interface list UI goes after the
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