Changeset 78498 in vbox
- Timestamp:
- May 14, 2019 10:29:05 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/globals/UIDetailsGenerator.cpp
r77535 r78498 167 167 case KFirmwareType_EFI64: 168 168 case KFirmwareType_EFIDUAL: 169 {170 table << UITextTableLine(QApplication::translate("UIDetails", "EFI", "details (system)"),171 QApplication::translate("UIDetails", "Enabled", "details (system/EFI)"));172 break;173 }169 { 170 table << UITextTableLine(QApplication::translate("UIDetails", "EFI", "details (system)"), 171 QApplication::translate("UIDetails", "Enabled", "details (system/EFI)")); 172 break; 173 } 174 174 default: 175 {176 // For NLS purpose:177 QApplication::translate("UIDetails", "Disabled", "details (system/EFI)");178 break;179 }175 { 176 // For NLS purpose: 177 QApplication::translate("UIDetails", "Disabled", "details (system/EFI)"); 178 break; 179 } 180 180 } 181 181 } … … 518 518 { 519 519 case KNetworkAttachmentType_Bridged: 520 { 521 if (fOptions & UIExtraDataMetaDefs::DetailsElementOptionTypeNetwork_BridgetAdapter) 522 strAttachmentType = strAttachmentTemplate.arg(QApplication::translate("UIDetails", "Bridged Adapter, %1", "details (network)") 523 .arg(comAdapter.GetBridgedInterface())); 524 break; 525 } 526 case KNetworkAttachmentType_Internal: 527 { 528 if (fOptions & UIExtraDataMetaDefs::DetailsElementOptionTypeNetwork_InternalNetwork) 529 strAttachmentType = strAttachmentTemplate.arg(QApplication::translate("UIDetails", "Internal Network, '%1'", "details (network)") 530 .arg(comAdapter.GetInternalNetwork())); 531 break; 532 } 533 case KNetworkAttachmentType_HostOnly: 534 { 535 if (fOptions & UIExtraDataMetaDefs::DetailsElementOptionTypeNetwork_HostOnlyAdapter) 536 strAttachmentType = strAttachmentTemplate.arg(QApplication::translate("UIDetails", "Host-only Adapter, '%1'", "details (network)") 537 .arg(comAdapter.GetHostOnlyInterface())); 538 break; 539 } 540 case KNetworkAttachmentType_Generic: 541 { 542 if (fOptions & UIExtraDataMetaDefs::DetailsElementOptionTypeNetwork_GenericDriver) 520 543 { 521 if (fOptions & UIExtraDataMetaDefs::DetailsElementOptionTypeNetwork_BridgetAdapter) 522 strAttachmentType = strAttachmentTemplate.arg(QApplication::translate("UIDetails", "Bridged Adapter, %1", "details (network)") 523 .arg(comAdapter.GetBridgedInterface())); 524 break; 544 const QString strGenericDriverProperties(summarizeGenericProperties(comAdapter)); 545 strAttachmentType = strGenericDriverProperties.isNull() ? 546 strAttachmentTemplate.arg(QApplication::translate("UIDetails", "Generic Driver, '%1'", "details (network)") 547 .arg(comAdapter.GetGenericDriver())) : 548 strAttachmentTemplate.arg(QApplication::translate("UIDetails", "Generic Driver, '%1' { %2 }", "details (network)") 549 .arg(comAdapter.GetGenericDriver(), strGenericDriverProperties)); 525 550 } 526 case KNetworkAttachmentType_Internal: 527 { 528 if (fOptions & UIExtraDataMetaDefs::DetailsElementOptionTypeNetwork_InternalNetwork) 529 strAttachmentType = strAttachmentTemplate.arg(QApplication::translate("UIDetails", "Internal Network, '%1'", "details (network)") 530 .arg(comAdapter.GetInternalNetwork())); 531 break; 532 } 533 case KNetworkAttachmentType_HostOnly: 534 { 535 if (fOptions & UIExtraDataMetaDefs::DetailsElementOptionTypeNetwork_HostOnlyAdapter) 536 strAttachmentType = strAttachmentTemplate.arg(QApplication::translate("UIDetails", "Host-only Adapter, '%1'", "details (network)") 537 .arg(comAdapter.GetHostOnlyInterface())); 538 break; 539 } 540 case KNetworkAttachmentType_Generic: 541 { 542 if (fOptions & UIExtraDataMetaDefs::DetailsElementOptionTypeNetwork_GenericDriver) 543 { 544 const QString strGenericDriverProperties(summarizeGenericProperties(comAdapter)); 545 strAttachmentType = strGenericDriverProperties.isNull() ? 546 strAttachmentTemplate.arg(QApplication::translate("UIDetails", "Generic Driver, '%1'", "details (network)") 547 .arg(comAdapter.GetGenericDriver())) : 548 strAttachmentTemplate.arg(QApplication::translate("UIDetails", "Generic Driver, '%1' { %2 }", "details (network)") 549 .arg(comAdapter.GetGenericDriver(), strGenericDriverProperties)); 550 } 551 break; 552 } 551 break; 552 } 553 553 case KNetworkAttachmentType_NATNetwork: 554 {555 if (fOptions & UIExtraDataMetaDefs::DetailsElementOptionTypeNetwork_NAT)556 strAttachmentType = strAttachmentTemplate.arg(QApplication::translate("UIDetails", "NAT Network, '%1'", "details (network)")557 .arg(comAdapter.GetNATNetwork()));558 break;559 }554 { 555 if (fOptions & UIExtraDataMetaDefs::DetailsElementOptionTypeNetwork_NAT) 556 strAttachmentType = strAttachmentTemplate.arg(QApplication::translate("UIDetails", "NAT Network, '%1'", "details (network)") 557 .arg(comAdapter.GetNATNetwork())); 558 break; 559 } 560 560 default: 561 {562 if (fOptions & UIExtraDataMetaDefs::DetailsElementOptionTypeNetwork_NotAttached)563 strAttachmentType = strAttachmentTemplate.arg(gpConverter->toString(enmType));564 break;565 }561 { 562 if (fOptions & UIExtraDataMetaDefs::DetailsElementOptionTypeNetwork_NotAttached) 563 strAttachmentType = strAttachmentTemplate.arg(gpConverter->toString(enmType)); 564 break; 565 } 566 566 } 567 567 if (!strAttachmentType.isNull()) … … 605 605 { 606 606 case KPortMode_HostPipe: 607 {608 if (fOptions & UIExtraDataMetaDefs::DetailsElementOptionTypeSerial_HostPipe)609 strModeType = strModeTemplate + QString("%1 (%2)").arg(gpConverter->toString(enmMode)).arg(QDir::toNativeSeparators(comPort.GetPath()));610 break;611 }607 { 608 if (fOptions & UIExtraDataMetaDefs::DetailsElementOptionTypeSerial_HostPipe) 609 strModeType = strModeTemplate + QString("%1 (%2)").arg(gpConverter->toString(enmMode)).arg(QDir::toNativeSeparators(comPort.GetPath())); 610 break; 611 } 612 612 case KPortMode_HostDevice: 613 {614 if (fOptions & UIExtraDataMetaDefs::DetailsElementOptionTypeSerial_HostDevice)615 strModeType = strModeTemplate + QString("%1 (%2)").arg(gpConverter->toString(enmMode)).arg(QDir::toNativeSeparators(comPort.GetPath()));616 break;617 }613 { 614 if (fOptions & UIExtraDataMetaDefs::DetailsElementOptionTypeSerial_HostDevice) 615 strModeType = strModeTemplate + QString("%1 (%2)").arg(gpConverter->toString(enmMode)).arg(QDir::toNativeSeparators(comPort.GetPath())); 616 break; 617 } 618 618 case KPortMode_RawFile: 619 {620 if (fOptions & UIExtraDataMetaDefs::DetailsElementOptionTypeSerial_RawFile)621 strModeType = strModeTemplate + QString("%1 (%2)").arg(gpConverter->toString(enmMode)).arg(QDir::toNativeSeparators(comPort.GetPath()));622 break;623 }619 { 620 if (fOptions & UIExtraDataMetaDefs::DetailsElementOptionTypeSerial_RawFile) 621 strModeType = strModeTemplate + QString("%1 (%2)").arg(gpConverter->toString(enmMode)).arg(QDir::toNativeSeparators(comPort.GetPath())); 622 break; 623 } 624 624 case KPortMode_TCP: 625 {626 if (fOptions & UIExtraDataMetaDefs::DetailsElementOptionTypeSerial_TCP)627 strModeType = strModeTemplate + QString("%1 (%2)").arg(gpConverter->toString(enmMode)).arg(QDir::toNativeSeparators(comPort.GetPath()));628 break;629 }625 { 626 if (fOptions & UIExtraDataMetaDefs::DetailsElementOptionTypeSerial_TCP) 627 strModeType = strModeTemplate + QString("%1 (%2)").arg(gpConverter->toString(enmMode)).arg(QDir::toNativeSeparators(comPort.GetPath())); 628 break; 629 } 630 630 default: 631 {632 if (fOptions & UIExtraDataMetaDefs::DetailsElementOptionTypeSerial_Disconnected)633 strModeType = strModeTemplate + gpConverter->toString(enmMode);634 break;635 }631 { 632 if (fOptions & UIExtraDataMetaDefs::DetailsElementOptionTypeSerial_Disconnected) 633 strModeType = strModeTemplate + gpConverter->toString(enmMode); 634 break; 635 } 636 636 } 637 637 if (!strModeType.isNull())
Note:
See TracChangeset
for help on using the changeset viewer.

