MCPcopy Create free account
hub / github.com/codereader/DarkRadiant / showXdImportSummary

Method showXdImportSummary

plugins/dm.gui/ReadableEditorDialog.cpp:1242–1261  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1240}
1241
1242void ReadableEditorDialog::showXdImportSummary()
1243{
1244 XData::StringList summary = _xdLoader->getImportSummary();
1245
1246 if (summary.empty())
1247 {
1248 wxutil::Messagebox::ShowError(_("No import summary available. An XData definition has to be imported first..."),
1249 this);
1250 return;
1251 }
1252
1253 std::string sum;
1254
1255 for (std::size_t n = 0; n < summary.size(); n++)
1256 {
1257 sum += summary[n];
1258 }
1259
1260 TextViewInfoDialog::Show(_("XData import summary"), sum, this);
1261}
1262
1263void ReadableEditorDialog::showGuiImportSummary()
1264{

Callers 1

ImportMethod · 0.80

Calls 3

_Function · 0.50
emptyMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected