Changeset 16509 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- Feb 4, 2009 11:26:01 AM (16 years ago)
- svn:sync-xref-src-repo-rev:
- 42425
- Location:
- trunk/src/VBox/Frontends
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxManage/VBoxManage.cpp
r16485 r16509 361 361 " [-floppy disabled|empty|<uuid>|\n" 362 362 " <filename>|host:<drive>]\n" 363 #ifdef RT_OS_LINUX 364 " [-nic<1-N> none|null|nat|hostif|intnet|hostonly]\n" 365 #else /* !RT_OS_LINUX */ 363 366 " [-nic<1-N> none|null|nat|hostif|intnet]\n" 367 #endif /* !RT_OS_LINUX */ 364 368 " [-nictype<1-N> Am79C970A|Am79C973" 365 369 #ifdef VBOX_WITH_E1000 -
trunk/src/VBox/Frontends/VBoxManage/VBoxManageInfo.cpp
r16052 r16509 699 699 break; 700 700 } 701 case NetworkAttachmentType_HostOnly: 702 { 703 if (details == VMINFO_MACHINEREADABLE) 704 { 705 strAttachment = "hostonly"; 706 } 707 else 708 strAttachment = "Host-only Network"; 709 break; 710 } 701 711 default: 702 712 strAttachment = "unknown"; -
trunk/src/VBox/Frontends/VBoxManage/VBoxManageModifyVM.cpp
r16491 r16509 1388 1388 CHECK_ERROR_RET(nic, AttachToInternalNetwork(), 1); 1389 1389 } 1390 #ifdef RT_OS_LINUX 1391 else if (strcmp(nics[n], "hostonly") == 0) 1392 { 1393 CHECK_ERROR_RET(nic, COMSETTER(Enabled) (TRUE), 1); 1394 CHECK_ERROR_RET(nic, AttachToHostOnlyNetwork(), 1); 1395 } 1396 #endif /* RT_OS_LINUX */ 1390 1397 else 1391 1398 { -
trunk/src/VBox/Frontends/VirtualBox/src/VBoxGlobal.cpp
r16469 r16509 3421 3421 mNetworkAttachmentTypes [KNetworkAttachmentType_Internal] = 3422 3422 tr ("Internal Network", "NetworkAttachmentType"); 3423 mNetworkAttachmentTypes [KNetworkAttachmentType_HostOnly] = 3424 tr ("Host-only Network", "NetworkAttachmentType"); 3423 3425 3424 3426 mClipboardTypes [KClipboardMode_Disabled] = -
trunk/src/VBox/Frontends/VirtualBox/src/VBoxVMSettingsNetwork.cpp
r16112 r16509 143 143 case KNetworkAttachmentType_Internal: 144 144 mAdapter.AttachToInternalNetwork(); 145 break; 146 case KNetworkAttachmentType_HostOnly: 147 mAdapter.AttachToHostOnlyNetwork(); 145 148 break; 146 149 default: … … 352 355 mCbNAType->setItemData (3, 353 356 mCbNAType->itemText(3), Qt::ToolTipRole); 357 #ifdef RT_OS_LINUX 358 mCbNAType->insertItem (4, 359 vboxGlobal().toString (KNetworkAttachmentType_HostOnly)); 360 mCbNAType->setItemData (4, 361 mCbNAType->itemText(4), Qt::ToolTipRole); 362 #endif /* RT_OS_LINUX */ 354 363 /* Set the old value */ 355 364 mCbNAType->setCurrentIndex (currentAttachment);
Note:
See TracChangeset
for help on using the changeset viewer.