Changeset 41685 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- Jun 13, 2012 3:34:06 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/globals/COMEnumsWrapper.cpp
r41612 r41685 122 122 QString COMEnumsWrapper::toString(KMediumVariant variant) const 123 123 { 124 /* note: KMediumVariant_Diff and KMediumVariant_Fixed are so far mutually exclusive */ 124 125 switch (variant) 125 126 { … … 130 131 case (KMediumVariant)(KMediumVariant_Standard | KMediumVariant_Fixed): 131 132 return m_mediumVariantNames[2]; 132 case (KMediumVariant)(KMediumVariant_Standard | KMediumVariant_ Fixed | KMediumVariant_Diff):133 case (KMediumVariant)(KMediumVariant_Standard | KMediumVariant_VmdkSplit2G): 133 134 return m_mediumVariantNames[3]; 134 case (KMediumVariant)(KMediumVariant_Standard | KMediumVariant_VmdkSplit2G ):135 case (KMediumVariant)(KMediumVariant_Standard | KMediumVariant_VmdkSplit2G | KMediumVariant_Diff): 135 136 return m_mediumVariantNames[4]; 136 case (KMediumVariant)(KMediumVariant_Standard | KMediumVariant_ VmdkSplit2G | KMediumVariant_Diff):137 case (KMediumVariant)(KMediumVariant_Standard | KMediumVariant_Fixed | KMediumVariant_VmdkSplit2G): 137 138 return m_mediumVariantNames[5]; 138 case (KMediumVariant)(KMediumVariant_Standard | KMediumVariant_ Fixed | KMediumVariant_VmdkSplit2G):139 case (KMediumVariant)(KMediumVariant_Standard | KMediumVariant_VmdkStreamOptimized): 139 140 return m_mediumVariantNames[6]; 140 case (KMediumVariant)(KMediumVariant_Standard | KMediumVariant_ Fixed | KMediumVariant_VmdkSplit2G| KMediumVariant_Diff):141 case (KMediumVariant)(KMediumVariant_Standard | KMediumVariant_VmdkStreamOptimized | KMediumVariant_Diff): 141 142 return m_mediumVariantNames[7]; 143 case (KMediumVariant)(KMediumVariant_Standard | KMediumVariant_Fixed | KMediumVariant_VmdkESX): 144 return m_mediumVariantNames[8]; 142 145 default: 143 146 AssertMsgFailed(("No text for %d", variant)); … … 649 652 m_mediumVariantNames[1] = QApplication::translate("VBoxGlobal", "Dynamically allocated differencing storage", "MediumVariant"); 650 653 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"); 656 660 657 661 /* KNetworkAttachmentType => QString: */
Note:
See TracChangeset
for help on using the changeset viewer.