Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/supermerill/SuperSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbubnikv <bubnikv@gmail.com>2020-02-29 14:03:07 +0300
committerbubnikv <bubnikv@gmail.com>2020-02-29 14:03:07 +0300
commitc9a75bb70a2c1c88e72e0dd55961b5701431f0a6 (patch)
tree69460d540e456ec5531f58beb7774c25275262fe /src/slic3r/GUI/GUI.hpp
parent192bdffb3f513018c0ebfe74086d421f71e76b0c (diff)
Fixed localization issue of the "Removable media unmounted" message.
Generalized the Slic3r::show_info() function to std::strings and const char*
Diffstat (limited to 'src/slic3r/GUI/GUI.hpp')
-rw-r--r--src/slic3r/GUI/GUI.hpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/slic3r/GUI/GUI.hpp b/src/slic3r/GUI/GUI.hpp
index b13e7c042..2bfddf718 100644
--- a/src/slic3r/GUI/GUI.hpp
+++ b/src/slic3r/GUI/GUI.hpp
@@ -42,7 +42,9 @@ void show_error(wxWindow* parent, const wxString& message);
void show_error(wxWindow* parent, const char* message);
inline void show_error(wxWindow* parent, const std::string& message) { show_error(parent, message.c_str()); }
void show_error_id(int id, const std::string& message); // For Perl
-void show_info(wxWindow* parent, const wxString& message, const wxString& title);
+void show_info(wxWindow* parent, const wxString& message, const wxString& title = wxString());
+void show_info(wxWindow* parent, const char* message, const char* title = nullptr);
+inline void show_info(wxWindow* parent, const std::string& message,const std::string& title = std::string()) { show_info(parent, message.c_str(), title.c_str()); }
void warning_catcher(wxWindow* parent, const wxString& message);
// Creates a wxCheckListBoxComboPopup inside the given wxComboCtrl, filled with the given text and items.