Changeset 11849 in vbox for trunk/src/VBox/Frontends/VirtualBox
- Timestamp:
- Aug 29, 2008 9:32:44 PM (16 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/Makefile.kmk
r11725 r11849 403 403 VirtualBox_DEFS += VBOX_WITH_DEBUGGER_GUI_MENU 404 404 endif 405 ifdef VBOX_WITH_NETFLT 406 VirtualBox_DEFS += VBOX_WITH_NETFLT 407 endif 405 408 406 409 VirtualBox_INCS = \ -
trunk/src/VBox/Frontends/VirtualBox/ui/VBoxVMNetworkSettings.ui.h
r11128 r11849 56 56 #endif 57 57 58 #if defined Q_WS_WIN || defined Q_OS_MAC58 #if defined Q_WS_WIN || defined VBOX_WITH_NETFLT 59 59 /* disable unused interface name UI */ 60 60 grbTAP->setHidden (true); … … 90 90 return CheckPage_Ok; 91 91 else 92 #if defined Q_WS_WIN || defined Q_OS_MAC92 #if defined Q_WS_WIN || defined VBOX_WITH_NETFLT 93 93 if (type == KNetworkAttachmentType_HostInterface && 94 94 isInterfaceInvalid (aList, cbHostInterfaceName->currentText())) … … 108 108 const QString &aNillItem) 109 109 { 110 #if defined Q_WS_WIN || defined Q_OS_MAC110 #if defined Q_WS_WIN || defined VBOX_WITH_NETFLT 111 111 /* save current list item name */ 112 112 QString currentListItemName = cbHostInterfaceName->currentText(); … … 161 161 chbCableConnected->setChecked (adapter.GetCableConnected()); 162 162 163 #if defined Q_WS_WIN || defined Q_OS_MAC163 #if defined Q_WS_WIN || defined VBOX_WITH_NETFLT 164 164 if (!adapter.GetHostInterface().isEmpty()) 165 165 cbHostInterfaceName->setCurrentText (adapter.GetHostInterface()); … … 210 210 if (type == KNetworkAttachmentType_HostInterface) 211 211 { 212 #if defined Q_WS_WIN || defined Q_OS_MAC212 #if defined Q_WS_WIN || defined VBOX_WITH_NETFLT 213 213 if (!cbHostInterfaceName->currentText().isEmpty()) 214 214 cadapter.SetHostInterface (cbHostInterfaceName->currentText()); … … 241 241 void VBoxVMNetworkSettings::grbEnabledToggled (bool aOn) 242 242 { 243 #if defined Q_WS_WIN || defined Q_OS_MAC243 #if defined Q_WS_WIN || defined VBOX_WITH_NETFLT 244 244 cbNetworkAttachment_activated (cbNetworkAttachment->currentText()); 245 245 #else … … 256 256 vboxGlobal().toNetworkAttachmentType (aString) == 257 257 KNetworkAttachmentType_Internal; 258 #if defined Q_WS_WIN || defined Q_OS_MAC258 #if defined Q_WS_WIN || defined VBOX_WITH_NETFLT 259 259 txHostInterface_WIN->setEnabled (enableHostIf); 260 260 cbHostInterfaceName->setEnabled (enableHostIf); … … 269 269 const QString &aIface) 270 270 { 271 #if defined Q_WS_WIN || defined Q_OS_MAC271 #if defined Q_WS_WIN || defined VBOX_WITH_NETFLT 272 272 return aList.find (aIface) == aList.end(); 273 273 #else -
trunk/src/VBox/Frontends/VirtualBox/ui/VBoxVMSettingsDlg.ui.h
r11237 r11849 663 663 /* Network Page */ 664 664 665 #if !defined(Q_WS_WIN) && !defined Q_OS_MAC665 #if !defined(Q_WS_WIN) && !defined(VBOX_WITH_NETFLT) 666 666 gbInterfaceList->setHidden (true); 667 667 #endif 668 #ifdef Q_OS_MAC668 #ifdef VBOX_WITH_NETFLT 669 669 pbHostAdd->setHidden (true); 670 670 pbHostRemove->setHidden (true); … … 978 978 void VBoxVMSettingsDlg::loadInterfacesList() 979 979 { 980 #if defined Q_WS_WIN || defined Q_OS_MAC980 #if defined Q_WS_WIN || defined VBOX_WITH_NETFLT 981 981 /* clear inner list */ 982 982 mInterfaceList.clear(); … … 1035 1035 void VBoxVMSettingsDlg::hostInterfaceAdd() 1036 1036 { 1037 #if defined Q_WS_WIN 1037 #if defined Q_WS_WIN && !defined VBOX_WITH_NETFLT 1038 1038 1039 1039 /* allow the started helper process to make itself the foreground window */ … … 1093 1093 void VBoxVMSettingsDlg::hostInterfaceRemove() 1094 1094 { 1095 #if defined Q_WS_WIN 1095 #if defined Q_WS_WIN && !defined VBOX_WITH_NETFLT 1096 1096 1097 1097 /* allow the started helper process to make itself the foreground window */ … … 1154 1154 { 1155 1155 if (!aWidget) return; 1156 #if defined Q_WS_WIN || defined Q_OS_MAC1156 #if defined Q_WS_WIN || defined VBOX_WITH_NETFLT 1157 1157 VBoxVMNetworkSettings *set = static_cast<VBoxVMNetworkSettings*> (aWidget); 1158 1158 set->loadInterfaceList (mInterfaceList, mNoInterfaces); … … 2180 2180 page->revalidate(); 2181 2181 2182 #if defined Q_WS_WIN || defined Q_OS_MAC2182 #if defined Q_WS_WIN || defined VBOX_WITH_NETFLT 2183 2183 2184 2184 /* fix focus order (make sure the Host Interface list UI goes after the
Note:
See TracChangeset
for help on using the changeset viewer.