Changeset 28287 in vbox for trunk/src/VBox/Frontends/VirtualBox
- Timestamp:
- Apr 14, 2010 10:10:40 AM (15 years ago)
- svn:sync-xref-src-repo-rev:
- 60036
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/globals/VBoxGlobal.cpp
r28205 r28287 2155 2155 attType = attType.arg (tr ("Host-only adapter, '%1'", 2156 2156 "details report (network)").arg (adapter.GetHostInterface())); 2157 /* ENABLE VDE */ 2158 else if (type == KNetworkAttachmentType_VDE) 2159 attType = attType.arg (tr ("VDE network, '%1'", 2160 "details report (network)").arg (adapter.GetVDENetwork())); 2161 /* /ENABLE VDE */ 2157 2162 else 2158 2163 attType = attType.arg (vboxGlobal().toString (type)); … … 3113 3118 mNetworkAttachmentTypes [KNetworkAttachmentType_HostOnly] = 3114 3119 tr ("Host-only Adapter", "NetworkAttachmentType"); 3120 /* ENABLE VDE */ 3121 mNetworkAttachmentTypes [KNetworkAttachmentType_VDE] = 3122 tr ("VDE Adapter", "NetworkAttachmentType"); 3123 /* /ENABLE VDE */ 3115 3124 3116 3125 mClipboardTypes [KClipboardMode_Disabled] = -
trunk/src/VBox/Frontends/VirtualBox/src/settings/vm/VBoxVMSettingsNetwork.cpp
r26714 r28287 105 105 if (mHoiName.isEmpty()) mHoiName = QString::null; 106 106 break; 107 /* ENABLE VDE */ 108 case KNetworkAttachmentType_VDE: 109 mVDEName = mAdapter.GetVDENetwork(); 110 if (mVDEName.isEmpty()) mVDEName = QString::null; 111 break; 112 /* /ENABLE VDE */ 107 113 default: 108 114 break; … … 145 151 mAdapter.AttachToHostOnlyInterface(); 146 152 break; 153 /* ENABLE VDE */ 154 case KNetworkAttachmentType_VDE: 155 mAdapter.SetVDENetwork (alternativeName()); 156 mAdapter.AttachToVDE(); 157 break; 158 /* /ENABLE VDE */ 147 159 default: 148 160 break; … … 257 269 result = mHoiName; 258 270 break; 271 /* ENABLE VDE*/ 272 case KNetworkAttachmentType_VDE: 273 result = mVDEName; 274 break; 275 /* /ENABLE VDE*/ 259 276 default: 260 277 break; … … 333 350 mCbAdapterName->setEditable (false); 334 351 break; 352 /* ENABLE VDE */ 353 case KNetworkAttachmentType_VDE: 354 mCbAdapterName->insertItem(0, alternativeName()); 355 mCbAdapterName->setEditable (true); 356 mCbAdapterName->setCompleter (0); 357 break; 358 /* /ENABLE VDE */ 335 359 default: 336 360 break; … … 432 456 break; 433 457 } 458 /* ENABLE VDE */ 459 case KNetworkAttachmentType_VDE: 460 { 461 QString newName ((mCbAdapterName->itemData (mCbAdapterName->currentIndex()).toString() == 462 QString (emptyItemCode) && 463 mCbAdapterName->currentText() == 464 mCbAdapterName->itemText (mCbAdapterName->currentIndex())) || 465 mCbAdapterName->currentText().isEmpty() ? 466 QString::null : mCbAdapterName->currentText()); 467 if (mVDEName != newName) 468 mVDEName = newName; 469 break; 470 } 471 /* /ENABLE VDE */ 434 472 default: 435 473 break; … … 548 586 mCbAttachmentType->setItemData (4, 549 587 mCbAttachmentType->itemText (4), Qt::ToolTipRole); 588 /* ENABLE VDE */ 589 mCbAttachmentType->insertItem (5, 590 vboxGlobal().toString (KNetworkAttachmentType_VDE)); 591 mCbAttachmentType->setItemData (5, 592 KNetworkAttachmentType_VDE); 593 mCbAttachmentType->setItemData (5, 594 mCbAttachmentType->itemText (5), Qt::ToolTipRole); 595 /* /ENABLE VDE */ 550 596 551 597 /* Set the old value */ -
trunk/src/VBox/Frontends/VirtualBox/src/settings/vm/VBoxVMSettingsNetwork.h
r25177 r28287 77 77 QString mIntName; 78 78 QString mHoiName; 79 /* ENABLE VDE */ 80 QString mVDEName; 81 /* /ENABLE VDE */ 79 82 80 83 bool mPolished; … … 93 96 QStringList intList (bool aRefresh = false); 94 97 QStringList hoiList (bool aRefresh = false); 98 QStringList vdeList (bool aRefresh = false); 95 99 96 100 protected: -
trunk/src/VBox/Frontends/VirtualBox/src/settings/vm/VBoxVMSettingsNetwork.ui
r25196 r28287 111 111 </property> 112 112 <property name="whatsThis" > 113 <string>Selects the name of the network adapter for <b>Bridged Adapter</b> or <b>Host-only Adapter</b> attachments and the name of the network <b>Internal Network</b> attachments.</string>113 <string>Selects the name of the network adapter for <b>Bridged Adapter</b> or <b>Host-only Adapter</b> attachments and the name of the network <b>Internal Network</b> or the switch for <b>VDE</b> attachments.</string> 114 114 </property> 115 115 </widget>
Note:
See TracChangeset
for help on using the changeset viewer.