VirtualBox

Changeset 41685 in vbox for trunk/src/VBox/Frontends


Ignore:
Timestamp:
Jun 13, 2012 3:34:06 PM (13 years ago)
Author:
vboxsync
Message:

FE/Qt: COMEnumsWrapper: remove medium variants which only exist in theory, and add more which actually exist

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/globals/COMEnumsWrapper.cpp

    r41612 r41685  
    122122QString COMEnumsWrapper::toString(KMediumVariant variant) const
    123123{
     124    /* note: KMediumVariant_Diff and KMediumVariant_Fixed are so far mutually exclusive */
    124125    switch (variant)
    125126    {
     
    130131        case (KMediumVariant)(KMediumVariant_Standard | KMediumVariant_Fixed):
    131132            return m_mediumVariantNames[2];
    132         case (KMediumVariant)(KMediumVariant_Standard | KMediumVariant_Fixed | KMediumVariant_Diff):
     133        case (KMediumVariant)(KMediumVariant_Standard | KMediumVariant_VmdkSplit2G):
    133134            return m_mediumVariantNames[3];
    134         case (KMediumVariant)(KMediumVariant_Standard | KMediumVariant_VmdkSplit2G):
     135        case (KMediumVariant)(KMediumVariant_Standard | KMediumVariant_VmdkSplit2G | KMediumVariant_Diff):
    135136            return m_mediumVariantNames[4];
    136         case (KMediumVariant)(KMediumVariant_Standard | KMediumVariant_VmdkSplit2G | KMediumVariant_Diff):
     137        case (KMediumVariant)(KMediumVariant_Standard | KMediumVariant_Fixed | KMediumVariant_VmdkSplit2G):
    137138            return m_mediumVariantNames[5];
    138         case (KMediumVariant)(KMediumVariant_Standard | KMediumVariant_Fixed | KMediumVariant_VmdkSplit2G):
     139        case (KMediumVariant)(KMediumVariant_Standard | KMediumVariant_VmdkStreamOptimized):
    139140            return m_mediumVariantNames[6];
    140         case (KMediumVariant)(KMediumVariant_Standard | KMediumVariant_Fixed | KMediumVariant_VmdkSplit2G | KMediumVariant_Diff):
     141        case (KMediumVariant)(KMediumVariant_Standard | KMediumVariant_VmdkStreamOptimized | KMediumVariant_Diff):
    141142            return m_mediumVariantNames[7];
     143        case (KMediumVariant)(KMediumVariant_Standard | KMediumVariant_Fixed | KMediumVariant_VmdkESX):
     144            return m_mediumVariantNames[8];
    142145        default:
    143146            AssertMsgFailed(("No text for %d", variant));
     
    649652    m_mediumVariantNames[1] = QApplication::translate("VBoxGlobal", "Dynamically allocated differencing storage", "MediumVariant");
    650653    m_mediumVariantNames[2] = QApplication::translate("VBoxGlobal", "Fixed size storage", "MediumVariant");
    651     m_mediumVariantNames[3] = QApplication::translate("VBoxGlobal", "Fixed size differencing storage", "MediumVariant");
    652     m_mediumVariantNames[4] = QApplication::translate("VBoxGlobal", "Dynamically allocated storage split into files of less than 2GB", "MediumVariant");
    653     m_mediumVariantNames[5] = QApplication::translate("VBoxGlobal", "Dynamically allocated differencing storage split into files of less than 2GB", "MediumVariant");
    654     m_mediumVariantNames[6] = QApplication::translate("VBoxGlobal", "Fixed size storage split into files of less than 2GB", "MediumVariant");
    655     m_mediumVariantNames[7] = QApplication::translate("VBoxGlobal", "Fixed size differencing storage split into files of less than 2GB", "MediumVariant");
     654    m_mediumVariantNames[3] = QApplication::translate("VBoxGlobal", "Dynamically allocated storage split into files of less than 2GB", "MediumVariant");
     655    m_mediumVariantNames[4] = QApplication::translate("VBoxGlobal", "Dynamically allocated differencing storage split into files of less than 2GB", "MediumVariant");
     656    m_mediumVariantNames[5] = QApplication::translate("VBoxGlobal", "Fixed size storage split into files of less than 2GB", "MediumVariant");
     657    m_mediumVariantNames[6] = QApplication::translate("VBoxGlobal", "Dynamically allocated compressed storage", "MediumVariant");
     658    m_mediumVariantNames[7] = QApplication::translate("VBoxGlobal", "Dynamically allocated differencing compressed storage", "MediumVariant");
     659    m_mediumVariantNames[8] = QApplication::translate("VBoxGlobal", "Fixed size ESX storage", "MediumVariant");
    656660
    657661    /* KNetworkAttachmentType => QString: */
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