mirror of
https://github.com/QIDITECH/QIDISlicer.git
synced 2026-02-01 08:28:42 +03:00
Prusa 2.7.2
This commit is contained in:
@@ -471,6 +471,29 @@ std::vector<wxBitmapBundle*> MenuFactory::get_svg_volume_bitmaps()
|
||||
return volume_bmps;
|
||||
}
|
||||
|
||||
wxString MenuFactory::get_repaire_result_message(
|
||||
const std::vector<std::string>& succes_models,
|
||||
const std::vector<std::pair<std::string, std::string>>& failed_models)
|
||||
{
|
||||
// Show info notification
|
||||
wxString msg;
|
||||
wxString bullet_suf = "\n - ";
|
||||
if (!succes_models.empty()) {
|
||||
msg = _L_PLURAL("The following model was repaired successfully", "The following models were repaired successfully", succes_models.size()) + ":";
|
||||
for (auto& model : succes_models)
|
||||
msg += bullet_suf + from_u8(model);
|
||||
msg += "\n\n";
|
||||
}
|
||||
if (!failed_models.empty()) {
|
||||
msg += _L_PLURAL("Folowing model repair failed", "Folowing models repair failed", failed_models.size()) + ":\n";
|
||||
for (auto& model : failed_models)
|
||||
msg += bullet_suf + from_u8(model.first) + ": " + _(model.second);
|
||||
}
|
||||
if (msg.IsEmpty())
|
||||
msg = _L("Repairing was canceled");
|
||||
|
||||
return msg;
|
||||
}
|
||||
void MenuFactory::append_menu_item_delete(wxMenu* menu)
|
||||
{
|
||||
append_menu_item(menu, wxID_ANY, _L("Delete") + "\tDel", _L("Remove the selected object"),
|
||||
|
||||
Reference in New Issue
Block a user