- Timestamp:
- Dec 5, 2018 10:57:38 AM (6 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/converter/UIConverterBackendGlobal.cpp
r75626 r75966 1006 1006 switch (enmDetailsElementOptionTypeDisplay) 1007 1007 { 1008 case UIExtraDataMetaDefs::DetailsElementOptionTypeDisplay_VRAM: strResult = QApplication::translate("VBoxGlobal", "VRAM"); break; 1009 case UIExtraDataMetaDefs::DetailsElementOptionTypeDisplay_ScreenCount: strResult = QApplication::translate("VBoxGlobal", "Screen Count"); break; 1010 case UIExtraDataMetaDefs::DetailsElementOptionTypeDisplay_ScaleFactor: strResult = QApplication::translate("VBoxGlobal", "Scale Factor"); break; 1011 case UIExtraDataMetaDefs::DetailsElementOptionTypeDisplay_Acceleration: strResult = QApplication::translate("VBoxGlobal", "Acceleration"); break; 1012 case UIExtraDataMetaDefs::DetailsElementOptionTypeDisplay_VRDE: strResult = QApplication::translate("VBoxGlobal", "VRDE"); break; 1013 case UIExtraDataMetaDefs::DetailsElementOptionTypeDisplay_Recording: strResult = QApplication::translate("VBoxGlobal", "Recording"); break; 1008 case UIExtraDataMetaDefs::DetailsElementOptionTypeDisplay_VRAM: strResult = QApplication::translate("VBoxGlobal", "VRAM"); break; 1009 case UIExtraDataMetaDefs::DetailsElementOptionTypeDisplay_ScreenCount: strResult = QApplication::translate("VBoxGlobal", "Screen Count"); break; 1010 case UIExtraDataMetaDefs::DetailsElementOptionTypeDisplay_ScaleFactor: strResult = QApplication::translate("VBoxGlobal", "Scale Factor"); break; 1011 case UIExtraDataMetaDefs::DetailsElementOptionTypeDisplay_GraphicsController: strResult = QApplication::translate("VBoxGlobal", "Graphics Controller"); break; 1012 case UIExtraDataMetaDefs::DetailsElementOptionTypeDisplay_Acceleration: strResult = QApplication::translate("VBoxGlobal", "Acceleration"); break; 1013 case UIExtraDataMetaDefs::DetailsElementOptionTypeDisplay_VRDE: strResult = QApplication::translate("VBoxGlobal", "VRDE"); break; 1014 case UIExtraDataMetaDefs::DetailsElementOptionTypeDisplay_Recording: strResult = QApplication::translate("VBoxGlobal", "Recording"); break; 1014 1015 default: 1015 1016 { … … 1027 1028 switch (enmDetailsElementOptionTypeDisplay) 1028 1029 { 1029 case UIExtraDataMetaDefs::DetailsElementOptionTypeDisplay_VRAM: strResult = "VRAM"; break; 1030 case UIExtraDataMetaDefs::DetailsElementOptionTypeDisplay_ScreenCount: strResult = "ScreenCount"; break; 1031 case UIExtraDataMetaDefs::DetailsElementOptionTypeDisplay_ScaleFactor: strResult = "ScaleFactor"; break; 1032 case UIExtraDataMetaDefs::DetailsElementOptionTypeDisplay_Acceleration: strResult = "Acceleration"; break; 1033 case UIExtraDataMetaDefs::DetailsElementOptionTypeDisplay_VRDE: strResult = "VRDE"; break; 1034 case UIExtraDataMetaDefs::DetailsElementOptionTypeDisplay_Recording: strResult = "Recording"; break; 1030 case UIExtraDataMetaDefs::DetailsElementOptionTypeDisplay_VRAM: strResult = "VRAM"; break; 1031 case UIExtraDataMetaDefs::DetailsElementOptionTypeDisplay_ScreenCount: strResult = "ScreenCount"; break; 1032 case UIExtraDataMetaDefs::DetailsElementOptionTypeDisplay_ScaleFactor: strResult = "ScaleFactor"; break; 1033 case UIExtraDataMetaDefs::DetailsElementOptionTypeDisplay_GraphicsController: strResult = "GraphicsController"; break; 1034 case UIExtraDataMetaDefs::DetailsElementOptionTypeDisplay_Acceleration: strResult = "Acceleration"; break; 1035 case UIExtraDataMetaDefs::DetailsElementOptionTypeDisplay_VRDE: strResult = "VRDE"; break; 1036 case UIExtraDataMetaDefs::DetailsElementOptionTypeDisplay_Recording: strResult = "Recording"; break; 1035 1037 default: 1036 1038 { … … 1047 1049 /* Here we have some fancy stuff allowing us 1048 1050 * to search through the keys using 'case-insensitive' rule: */ 1049 QStringList keys; QList<UIExtraDataMetaDefs::DetailsElementOptionTypeDisplay> values; 1050 keys << "VRAM"; values << UIExtraDataMetaDefs::DetailsElementOptionTypeDisplay_VRAM; 1051 keys << "ScreenCount"; values << UIExtraDataMetaDefs::DetailsElementOptionTypeDisplay_ScreenCount; 1052 keys << "ScaleFactor"; values << UIExtraDataMetaDefs::DetailsElementOptionTypeDisplay_ScaleFactor; 1053 keys << "Acceleration"; values << UIExtraDataMetaDefs::DetailsElementOptionTypeDisplay_Acceleration; 1054 keys << "VRDE"; values << UIExtraDataMetaDefs::DetailsElementOptionTypeDisplay_VRDE; 1055 keys << "Recording"; values << UIExtraDataMetaDefs::DetailsElementOptionTypeDisplay_Recording; 1051 QStringList keys; QList<UIExtraDataMetaDefs::DetailsElementOptionTypeDisplay> values; 1052 keys << "VRAM"; values << UIExtraDataMetaDefs::DetailsElementOptionTypeDisplay_VRAM; 1053 keys << "ScreenCount"; values << UIExtraDataMetaDefs::DetailsElementOptionTypeDisplay_ScreenCount; 1054 keys << "ScaleFactor"; values << UIExtraDataMetaDefs::DetailsElementOptionTypeDisplay_ScaleFactor; 1055 keys << "GraphicsController"; values << UIExtraDataMetaDefs::DetailsElementOptionTypeDisplay_GraphicsController; 1056 keys << "Acceleration"; values << UIExtraDataMetaDefs::DetailsElementOptionTypeDisplay_Acceleration; 1057 keys << "VRDE"; values << UIExtraDataMetaDefs::DetailsElementOptionTypeDisplay_VRDE; 1058 keys << "Recording"; values << UIExtraDataMetaDefs::DetailsElementOptionTypeDisplay_Recording; 1056 1059 /* Invalid type for unknown words: */ 1057 1060 if (!keys.contains(strDetailsElementOptionTypeDisplay, Qt::CaseInsensitive)) -
trunk/src/VBox/Frontends/VirtualBox/src/extradata/UIExtraDataDefs.h
r75642 r75966 644 644 enum DetailsElementOptionTypeDisplay 645 645 { 646 DetailsElementOptionTypeDisplay_Invalid = 0, 647 DetailsElementOptionTypeDisplay_VRAM = RT_BIT(0), 648 DetailsElementOptionTypeDisplay_ScreenCount = RT_BIT(1), 649 DetailsElementOptionTypeDisplay_ScaleFactor = RT_BIT(2), 650 DetailsElementOptionTypeDisplay_Acceleration = RT_BIT(3), 651 DetailsElementOptionTypeDisplay_VRDE = RT_BIT(4), 652 DetailsElementOptionTypeDisplay_Recording = RT_BIT(5), 653 DetailsElementOptionTypeDisplay_Default = 0xFFFF 646 DetailsElementOptionTypeDisplay_Invalid = 0, 647 DetailsElementOptionTypeDisplay_VRAM = RT_BIT(0), 648 DetailsElementOptionTypeDisplay_ScreenCount = RT_BIT(1), 649 DetailsElementOptionTypeDisplay_ScaleFactor = RT_BIT(2), 650 DetailsElementOptionTypeDisplay_GraphicsController = RT_BIT(3), 651 DetailsElementOptionTypeDisplay_Acceleration = RT_BIT(4), 652 DetailsElementOptionTypeDisplay_VRDE = RT_BIT(5), 653 DetailsElementOptionTypeDisplay_Recording = RT_BIT(6), 654 DetailsElementOptionTypeDisplay_Default = 0xFFFF 654 655 }; 655 656 Q_ENUM(DetailsElementOptionTypeDisplay); -
trunk/src/VBox/Frontends/VirtualBox/src/manager/details/UIDetailsElements.cpp
r75926 r75966 464 464 } 465 465 466 /* Graphics Controller: */ 467 if (m_fOptions & UIExtraDataMetaDefs::DetailsElementOptionTypeDisplay_GraphicsController) 468 table << UITextTableLine(QApplication::translate("UIDetails", "Graphics Controller", "details (display)"), 469 gpConverter->toString(comMachine.GetGraphicsControllerType())); 470 466 471 /* Acceleration: */ 467 472 if (m_fOptions & UIExtraDataMetaDefs::DetailsElementOptionTypeDisplay_Acceleration) -
trunk/src/VBox/Frontends/VirtualBox/src/snapshots/UISnapshotDetailsWidget.cpp
r75926 r75966 1344 1344 QString::number(uScaleFactorOld, 'f', 2))); 1345 1345 } 1346 1347 /* Graphics Controller: */ 1348 ++iRowCount; 1349 const QString strGc = gpConverter->toString(comMachine.GetGraphicsControllerType()); 1350 const QString strGcOld = gpConverter->toString(comMachineOld.GetGraphicsControllerType()); 1351 strItem += QString(sSectionItemTpl2).arg(QApplication::translate("UIGDetails", "Graphics Controller", "details (display)"), 1352 empReport(strGc, strGcOld)); 1346 1353 1347 1354 /* Acceleration? */
Note:
See TracChangeset
for help on using the changeset viewer.