Changeset 11128 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- Aug 4, 2008 9:50:20 PM (16 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/ui
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/ui/VBoxVMNetworkSettings.ui.h
r10759 r11128 56 56 #endif 57 57 58 #if defined Q_WS_WIN 58 #if defined Q_WS_WIN || defined Q_OS_MAC 59 59 /* disable unused interface name UI */ 60 60 grbTAP->setHidden (true); … … 80 80 * (remove the relative code at all? -- just leave for some time...) */ 81 81 frmTAPDescriptor->setHidden (true); 82 83 #if defined Q_WS_MAC /** @todo hif on mac */84 /* no Host Interface Networking on the Mac yet */85 grbTAP->setHidden (true);86 #endif87 82 } 88 83 … … 95 90 return CheckPage_Ok; 96 91 else 97 #if defined Q_WS_WIN 92 #if defined Q_WS_WIN || defined Q_OS_MAC 98 93 if (type == KNetworkAttachmentType_HostInterface && 99 94 isInterfaceInvalid (aList, cbHostInterfaceName->currentText())) … … 113 108 const QString &aNillItem) 114 109 { 115 #if defined Q_WS_WIN 110 #if defined Q_WS_WIN || defined Q_OS_MAC 116 111 /* save current list item name */ 117 112 QString currentListItemName = cbHostInterfaceName->currentText(); … … 166 161 chbCableConnected->setChecked (adapter.GetCableConnected()); 167 162 168 #if defined Q_WS_WIN 163 #if defined Q_WS_WIN || defined Q_OS_MAC 169 164 if (!adapter.GetHostInterface().isEmpty()) 170 165 cbHostInterfaceName->setCurrentText (adapter.GetHostInterface()); … … 215 210 if (type == KNetworkAttachmentType_HostInterface) 216 211 { 217 #if defined Q_WS_WIN 212 #if defined Q_WS_WIN || defined Q_OS_MAC 218 213 if (!cbHostInterfaceName->currentText().isEmpty()) 219 214 cadapter.SetHostInterface (cbHostInterfaceName->currentText()); … … 246 241 void VBoxVMNetworkSettings::grbEnabledToggled (bool aOn) 247 242 { 248 #if defined Q_WS_WIN 243 #if defined Q_WS_WIN || defined Q_OS_MAC 249 244 cbNetworkAttachment_activated (cbNetworkAttachment->currentText()); 250 245 #else … … 261 256 vboxGlobal().toNetworkAttachmentType (aString) == 262 257 KNetworkAttachmentType_Internal; 263 #if defined Q_WS_WIN 258 #if defined Q_WS_WIN || defined Q_OS_MAC 264 259 txHostInterface_WIN->setEnabled (enableHostIf); 265 260 cbHostInterfaceName->setEnabled (enableHostIf); … … 274 269 const QString &aIface) 275 270 { 276 #if defined Q_WS_WIN 271 #if defined Q_WS_WIN || defined Q_OS_MAC 277 272 return aList.find (aIface) == aList.end(); 278 273 #else -
trunk/src/VBox/Frontends/VirtualBox/ui/VBoxVMSettingsDlg.ui.h
r8237 r11128 663 663 /* Network Page */ 664 664 665 #if ndef Q_WS_WIN665 #if !defined(Q_WS_WIN) && !defined Q_OS_MAC 666 666 gbInterfaceList->setHidden (true); 667 667 #endif 668 #ifdef Q_OS_MAC 669 pbHostAdd->setHidden (true); 670 pbHostRemove->setHidden (true); 671 #endif 672 668 673 /* setup tab widget */ 669 674 mNoInterfaces = tr ("<No suitable interfaces>"); … … 973 978 void VBoxVMSettingsDlg::loadInterfacesList() 974 979 { 975 #if defined Q_WS_WIN 980 #if defined Q_WS_WIN || defined Q_OS_MAC 976 981 /* clear inner list */ 977 982 mInterfaceList.clear(); … … 1149 1154 { 1150 1155 if (!aWidget) return; 1151 #if defined Q_WS_WIN 1156 #if defined Q_WS_WIN || defined Q_OS_MAC 1152 1157 VBoxVMNetworkSettings *set = static_cast<VBoxVMNetworkSettings*> (aWidget); 1153 1158 set->loadInterfaceList (mInterfaceList, mNoInterfaces); … … 2175 2180 page->revalidate(); 2176 2181 2177 #ifdef Q_WS_WIN 2182 #ifdef Q_WS_WIN || defined Q_OS_MAC 2178 2183 2179 2184 /* fix focus order (make sure the Host Interface list UI goes after the … … 2181 2186 2182 2187 setTabOrder (page->chbCableConnected, lbHostInterface); 2188 # if defined Q_OS_WIN 2183 2189 setTabOrder (lbHostInterface, pbHostAdd); 2184 2190 setTabOrder (pbHostAdd, pbHostRemove); 2191 # endif 2185 2192 2186 2193 #endif
Note:
See TracChangeset
for help on using the changeset viewer.