VirtualBox

Changeset 58871 in vbox


Ignore:
Timestamp:
Nov 25, 2015 7:18:41 PM (9 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
104357
Message:

FE/Qt: ​bugref:8088: Rework session-information window: converter: Adding converter bits for RuntimeAttributes information element.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/converter/UIConverterBackendGlobal.cpp

    r58866 r58871  
    15501550    switch (informationElementType)
    15511551    {
    1552         case InformationElementType_General:     strResult = QApplication::translate("VBoxGlobal", "General", "DetailsElementType"); break;
    1553         case InformationElementType_Preview:     strResult = QApplication::translate("VBoxGlobal", "Preview", "DetailsElementType"); break;
    1554         case InformationElementType_System:      strResult = QApplication::translate("VBoxGlobal", "System", "DetailsElementType"); break;
    1555         case InformationElementType_Display:     strResult = QApplication::translate("VBoxGlobal", "Display", "DetailsElementType"); break;
    1556         case InformationElementType_Storage:     strResult = QApplication::translate("VBoxGlobal", "Storage", "DetailsElementType"); break;
    1557         case InformationElementType_Audio:       strResult = QApplication::translate("VBoxGlobal", "Audio", "DetailsElementType"); break;
    1558         case InformationElementType_Network:     strResult = QApplication::translate("VBoxGlobal", "Network", "DetailsElementType"); break;
    1559         case InformationElementType_Serial:      strResult = QApplication::translate("VBoxGlobal", "Serial ports", "DetailsElementType"); break;
     1552        case InformationElementType_General:           strResult = QApplication::translate("VBoxGlobal", "General", "DetailsElementType"); break;
     1553        case InformationElementType_Preview:           strResult = QApplication::translate("VBoxGlobal", "Preview", "DetailsElementType"); break;
     1554        case InformationElementType_System:            strResult = QApplication::translate("VBoxGlobal", "System", "DetailsElementType"); break;
     1555        case InformationElementType_Display:           strResult = QApplication::translate("VBoxGlobal", "Display", "DetailsElementType"); break;
     1556        case InformationElementType_Storage:           strResult = QApplication::translate("VBoxGlobal", "Storage", "DetailsElementType"); break;
     1557        case InformationElementType_Audio:             strResult = QApplication::translate("VBoxGlobal", "Audio", "DetailsElementType"); break;
     1558        case InformationElementType_Network:           strResult = QApplication::translate("VBoxGlobal", "Network", "DetailsElementType"); break;
     1559        case InformationElementType_Serial:            strResult = QApplication::translate("VBoxGlobal", "Serial ports", "DetailsElementType"); break;
    15601560#ifdef VBOX_WITH_PARALLEL_PORTS
    1561         case InformationElementType_Parallel:    strResult = QApplication::translate("VBoxGlobal", "Parallel ports", "DetailsElementType"); break;
     1561        case InformationElementType_Parallel:          strResult = QApplication::translate("VBoxGlobal", "Parallel ports", "DetailsElementType"); break;
    15621562#endif /* VBOX_WITH_PARALLEL_PORTS */
    1563         case InformationElementType_USB:         strResult = QApplication::translate("VBoxGlobal", "USB", "DetailsElementType"); break;
    1564         case InformationElementType_SF:          strResult = QApplication::translate("VBoxGlobal", "Shared folders", "DetailsElementType"); break;
    1565         case InformationElementType_UI:          strResult = QApplication::translate("VBoxGlobal", "User interface", "DetailsElementType"); break;
    1566         case InformationElementType_Description: strResult = QApplication::translate("VBoxGlobal", "Description", "DetailsElementType"); break;
     1563        case InformationElementType_USB:               strResult = QApplication::translate("VBoxGlobal", "USB", "DetailsElementType"); break;
     1564        case InformationElementType_SF:                strResult = QApplication::translate("VBoxGlobal", "Shared folders", "DetailsElementType"); break;
     1565        case InformationElementType_UI:                strResult = QApplication::translate("VBoxGlobal", "User interface", "DetailsElementType"); break;
     1566        case InformationElementType_Description:       strResult = QApplication::translate("VBoxGlobal", "Description", "DetailsElementType"); break;
     1567        case InformationElementType_RuntimeAttributes: strResult = QApplication::translate("VBoxGlobal", "RuntimeAttributes", "DetailsElementType"); break;
    15671568        default:
    15681569        {
     
    15791580    /* Here we have some fancy stuff allowing us
    15801581     * to search through the keys using 'case-insensitive' rule: */
    1581     QStringList keys;                                                                      QList<InformationElementType> values;
     1582    QStringList keys;                                                                         QList<InformationElementType> values;
    15821583    /* Reusing translations from 'DetailsElementType': */
    1583     keys << QApplication::translate("VBoxGlobal", "General", "DetailsElementType");        values << InformationElementType_General;
    1584     keys << QApplication::translate("VBoxGlobal", "Preview", "DetailsElementType");        values << InformationElementType_Preview;
    1585     keys << QApplication::translate("VBoxGlobal", "System", "DetailsElementType");         values << InformationElementType_System;
    1586     keys << QApplication::translate("VBoxGlobal", "Display", "DetailsElementType");        values << InformationElementType_Display;
    1587     keys << QApplication::translate("VBoxGlobal", "Storage", "DetailsElementType");        values << InformationElementType_Storage;
    1588     keys << QApplication::translate("VBoxGlobal", "Audio", "DetailsElementType");          values << InformationElementType_Audio;
    1589     keys << QApplication::translate("VBoxGlobal", "Network", "DetailsElementType");        values << InformationElementType_Network;
    1590     keys << QApplication::translate("VBoxGlobal", "Serial ports", "DetailsElementType");   values << InformationElementType_Serial;
     1584    keys << QApplication::translate("VBoxGlobal", "General", "DetailsElementType");           values << InformationElementType_General;
     1585    keys << QApplication::translate("VBoxGlobal", "Preview", "DetailsElementType");           values << InformationElementType_Preview;
     1586    keys << QApplication::translate("VBoxGlobal", "System", "DetailsElementType");            values << InformationElementType_System;
     1587    keys << QApplication::translate("VBoxGlobal", "Display", "DetailsElementType");           values << InformationElementType_Display;
     1588    keys << QApplication::translate("VBoxGlobal", "Storage", "DetailsElementType");           values << InformationElementType_Storage;
     1589    keys << QApplication::translate("VBoxGlobal", "Audio", "DetailsElementType");             values << InformationElementType_Audio;
     1590    keys << QApplication::translate("VBoxGlobal", "Network", "DetailsElementType");           values << InformationElementType_Network;
     1591    keys << QApplication::translate("VBoxGlobal", "Serial ports", "DetailsElementType");      values << InformationElementType_Serial;
    15911592#ifdef VBOX_WITH_PARALLEL_PORTS
    1592     keys << QApplication::translate("VBoxGlobal", "Parallel ports", "DetailsElementType"); values << InformationElementType_Parallel;
     1593    keys << QApplication::translate("VBoxGlobal", "Parallel ports", "DetailsElementType");    values << InformationElementType_Parallel;
    15931594#endif /* VBOX_WITH_PARALLEL_PORTS */
    1594     keys << QApplication::translate("VBoxGlobal", "USB", "DetailsElementType");            values << InformationElementType_USB;
    1595     keys << QApplication::translate("VBoxGlobal", "Shared folders", "DetailsElementType"); values << InformationElementType_SF;
    1596     keys << QApplication::translate("VBoxGlobal", "User interface", "DetailsElementType"); values << InformationElementType_UI;
    1597     keys << QApplication::translate("VBoxGlobal", "Description", "DetailsElementType");    values << InformationElementType_Description;
     1595    keys << QApplication::translate("VBoxGlobal", "USB", "DetailsElementType");               values << InformationElementType_USB;
     1596    keys << QApplication::translate("VBoxGlobal", "Shared folders", "DetailsElementType");    values << InformationElementType_SF;
     1597    keys << QApplication::translate("VBoxGlobal", "User interface", "DetailsElementType");    values << InformationElementType_UI;
     1598    keys << QApplication::translate("VBoxGlobal", "Description", "DetailsElementType");       values << InformationElementType_Description;
     1599    keys << QApplication::translate("VBoxGlobal", "RuntimeAttributes", "DetailsElementType"); values << InformationElementType_RuntimeAttributes;
    15981600    /* Invalid type for unknown words: */
    15991601    if (!keys.contains(strInformationElementType, Qt::CaseInsensitive))
     
    16091611    switch (informationElementType)
    16101612    {
    1611         case InformationElementType_General:     strResult = "general"; break;
    1612         case InformationElementType_Preview:     strResult = "preview"; break;
    1613         case InformationElementType_System:      strResult = "system"; break;
    1614         case InformationElementType_Display:     strResult = "display"; break;
    1615         case InformationElementType_Storage:     strResult = "storage"; break;
    1616         case InformationElementType_Audio:       strResult = "audio"; break;
    1617         case InformationElementType_Network:     strResult = "network"; break;
    1618         case InformationElementType_Serial:      strResult = "serialPorts"; break;
     1613        case InformationElementType_General:           strResult = "general"; break;
     1614        case InformationElementType_Preview:           strResult = "preview"; break;
     1615        case InformationElementType_System:            strResult = "system"; break;
     1616        case InformationElementType_Display:           strResult = "display"; break;
     1617        case InformationElementType_Storage:           strResult = "storage"; break;
     1618        case InformationElementType_Audio:             strResult = "audio"; break;
     1619        case InformationElementType_Network:           strResult = "network"; break;
     1620        case InformationElementType_Serial:            strResult = "serialPorts"; break;
    16191621#ifdef VBOX_WITH_PARALLEL_PORTS
    1620         case InformationElementType_Parallel:    strResult = "parallelPorts"; break;
     1622        case InformationElementType_Parallel:          strResult = "parallelPorts"; break;
    16211623#endif /* VBOX_WITH_PARALLEL_PORTS */
    1622         case InformationElementType_USB:         strResult = "usb"; break;
    1623         case InformationElementType_SF:          strResult = "sharedFolders"; break;
    1624         case InformationElementType_UI:          strResult = "userInterface"; break;
    1625         case InformationElementType_Description: strResult = "description"; break;
     1624        case InformationElementType_USB:               strResult = "usb"; break;
     1625        case InformationElementType_SF:                strResult = "sharedFolders"; break;
     1626        case InformationElementType_UI:                strResult = "userInterface"; break;
     1627        case InformationElementType_Description:       strResult = "description"; break;
     1628        case InformationElementType_RuntimeAttributes: strResult = "runtime-attributes"; break;
    16261629        default:
    16271630        {
     
    16381641    /* Here we have some fancy stuff allowing us
    16391642     * to search through the keys using 'case-insensitive' rule: */
    1640     QStringList keys;        QList<InformationElementType> values;
    1641     keys << "general";       values << InformationElementType_General;
    1642     keys << "preview";       values << InformationElementType_Preview;
    1643     keys << "system";        values << InformationElementType_System;
    1644     keys << "display";       values << InformationElementType_Display;
    1645     keys << "storage";       values << InformationElementType_Storage;
    1646     keys << "audio";         values << InformationElementType_Audio;
    1647     keys << "network";       values << InformationElementType_Network;
    1648     keys << "serialPorts";   values << InformationElementType_Serial;
     1643    QStringList keys;             QList<InformationElementType> values;
     1644    keys << "general";            values << InformationElementType_General;
     1645    keys << "preview";            values << InformationElementType_Preview;
     1646    keys << "system";             values << InformationElementType_System;
     1647    keys << "display";            values << InformationElementType_Display;
     1648    keys << "storage";            values << InformationElementType_Storage;
     1649    keys << "audio";              values << InformationElementType_Audio;
     1650    keys << "network";            values << InformationElementType_Network;
     1651    keys << "serialPorts";        values << InformationElementType_Serial;
    16491652#ifdef VBOX_WITH_PARALLEL_PORTS
    1650     keys << "parallelPorts"; values << InformationElementType_Parallel;
     1653    keys << "parallelPorts";      values << InformationElementType_Parallel;
    16511654#endif /* VBOX_WITH_PARALLEL_PORTS */
    1652     keys << "usb";           values << InformationElementType_USB;
    1653     keys << "sharedFolders"; values << InformationElementType_SF;
    1654     keys << "userInterface"; values << InformationElementType_UI;
    1655     keys << "description";   values << InformationElementType_Description;
     1655    keys << "usb";                values << InformationElementType_USB;
     1656    keys << "sharedFolders";      values << InformationElementType_SF;
     1657    keys << "userInterface";      values << InformationElementType_UI;
     1658    keys << "description";        values << InformationElementType_Description;
     1659    keys << "runtime-attributes"; values << InformationElementType_RuntimeAttributes;
    16561660    /* Invalid type for unknown words: */
    16571661    if (!keys.contains(strInformationElementType, Qt::CaseInsensitive))
     
    16661670    switch (informationElementType)
    16671671    {
    1668         case InformationElementType_General:     return UIIconPool::iconSet(":/machine_16px.png");
    1669         case InformationElementType_Preview:     return UIIconPool::iconSet(":/machine_16px.png");
    1670         case InformationElementType_System:      return UIIconPool::iconSet(":/chipset_16px.png");
    1671         case InformationElementType_Display:     return UIIconPool::iconSet(":/vrdp_16px.png");
    1672         case InformationElementType_Storage:     return UIIconPool::iconSet(":/hd_16px.png");
    1673         case InformationElementType_Audio:       return UIIconPool::iconSet(":/sound_16px.png");
    1674         case InformationElementType_Network:     return UIIconPool::iconSet(":/nw_16px.png");
    1675         case InformationElementType_Serial:      return UIIconPool::iconSet(":/serial_port_16px.png");
     1672        case InformationElementType_General:           return UIIconPool::iconSet(":/machine_16px.png");
     1673        case InformationElementType_Preview:           return UIIconPool::iconSet(":/machine_16px.png");
     1674        case InformationElementType_System:            return UIIconPool::iconSet(":/chipset_16px.png");
     1675        case InformationElementType_Display:           return UIIconPool::iconSet(":/vrdp_16px.png");
     1676        case InformationElementType_Storage:           return UIIconPool::iconSet(":/hd_16px.png");
     1677        case InformationElementType_Audio:             return UIIconPool::iconSet(":/sound_16px.png");
     1678        case InformationElementType_Network:           return UIIconPool::iconSet(":/nw_16px.png");
     1679        case InformationElementType_Serial:            return UIIconPool::iconSet(":/serial_port_16px.png");
    16761680#ifdef VBOX_WITH_PARALLEL_PORTS
    1677         case InformationElementType_Parallel:    return UIIconPool::iconSet(":/parallel_port_16px.png");
     1681        case InformationElementType_Parallel:          return UIIconPool::iconSet(":/parallel_port_16px.png");
    16781682#endif /* VBOX_WITH_PARALLEL_PORTS */
    1679         case InformationElementType_USB:         return UIIconPool::iconSet(":/usb_16px.png");
    1680         case InformationElementType_SF:          return UIIconPool::iconSet(":/sf_16px.png");
    1681         case InformationElementType_UI:          return UIIconPool::iconSet(":/interface_16px.png");
    1682         case InformationElementType_Description: return UIIconPool::iconSet(":/description_16px.png");
     1683        case InformationElementType_USB:               return UIIconPool::iconSet(":/usb_16px.png");
     1684        case InformationElementType_SF:                return UIIconPool::iconSet(":/sf_16px.png");
     1685        case InformationElementType_UI:                return UIIconPool::iconSet(":/interface_16px.png");
     1686        case InformationElementType_Description:       return UIIconPool::iconSet(":/description_16px.png");
     1687        case InformationElementType_RuntimeAttributes: return UIIconPool::iconSet(":/state_running_16px.png");
    16831688        default:
    16841689        {
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette