Changeset 3136 in vbox
- Timestamp:
- Jun 18, 2007 8:59:12 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/VBoxGlobal.cpp
r2980 r3136 1117 1117 1118 1118 QString item; 1119 1120 /* DVD */ 1121 CDVDDrive dvd = m.GetDVDDrive(); 1122 item = QString (sSectionItemTpl); 1123 switch (dvd.GetState()) 1124 { 1125 case CEnums::NotMounted: 1126 item = item.arg (tr ("Not mounted", "details report (DVD)"), ""); 1127 break; 1128 case CEnums::ImageMounted: 1129 { 1130 CDVDImage img = dvd.GetImage(); 1131 item = item.arg (tr ("Image", "details report (DVD)"), 1132 prepareFileNameForHTML (img.GetFilePath())); 1133 break; 1134 } 1135 case CEnums::HostDriveCaptured: 1136 { 1137 CHostDVDDrive drv = dvd.GetHostDrive(); 1138 QString drvName = drv.GetName(); 1139 QString description = drv.GetDescription(); 1140 QString fullName = description.isEmpty() ? 1141 drvName : 1142 QString ("%1 (%2)").arg (description, drvName); 1143 item = item.arg (tr ("Host Drive", "details report (DVD)"), 1144 fullName); 1145 break; 1146 } 1147 default: 1148 AssertMsgFailed (("Invalid DVD state: %d", dvd.GetState())); 1149 } 1150 detailsReport += sectionTpl 1151 .arg (2 + 1) /* rows */ 1152 .arg ("cd_16px.png", /* icon */ 1153 "#dvd", /* link */ 1154 tr ("CD/DVD-ROM", "details report"), /* title */ 1155 item); // items 1119 1156 1120 1157 /* Floppy */ … … 1154 1191 tr ("Floppy", "details report"), /* title */ 1155 1192 item); /* items */ 1156 1157 /* DVD */1158 CDVDDrive dvd = m.GetDVDDrive();1159 item = QString (sSectionItemTpl);1160 switch (dvd.GetState())1161 {1162 case CEnums::NotMounted:1163 item = item.arg (tr ("Not mounted", "details report (DVD)"), "");1164 break;1165 case CEnums::ImageMounted:1166 {1167 CDVDImage img = dvd.GetImage();1168 item = item.arg (tr ("Image", "details report (DVD)"),1169 prepareFileNameForHTML (img.GetFilePath()));1170 break;1171 }1172 case CEnums::HostDriveCaptured:1173 {1174 CHostDVDDrive drv = dvd.GetHostDrive();1175 QString drvName = drv.GetName();1176 QString description = drv.GetDescription();1177 QString fullName = description.isEmpty() ?1178 drvName :1179 QString ("%1 (%2)").arg (description, drvName);1180 item = item.arg (tr ("Host Drive", "details report (DVD)"),1181 fullName);1182 break;1183 }1184 default:1185 AssertMsgFailed (("Invalid DVD state: %d", dvd.GetState()));1186 }1187 detailsReport += sectionTpl1188 .arg (2 + 1) /* rows */1189 .arg ("cd_16px.png", /* icon */1190 "#dvd", /* link */1191 tr ("CD/DVD-ROM", "details report"), /* title */1192 item); // items1193 1193 1194 1194 /* audio */
Note:
See TracChangeset
for help on using the changeset viewer.