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:
authorYuSanka <yusanka@gmail.com>2019-12-04 17:12:00 +0300
committerYuSanka <yusanka@gmail.com>2019-12-04 18:11:10 +0300
commitfea91829eb638066983c5e0c0c51d4f1e920c4eb (patch)
tree2b8a51188719ec6ceba331d7a9019acc7969ecbe /src/slic3r/GUI/ImGuiWrapper.cpp
parentef29b13c5ec79df0c5e6a9e241fd5e36706ca974 (diff)
Localization improvements:
* added wrapper to SliderFloat in imgui * fixed localized text in Mouse3DController * added take_snapshot for extruder change in object list * fixed text typos in AppConfig.cpp, ConfigWizard.cpp and ConfigManipulation.cpp
Diffstat (limited to 'src/slic3r/GUI/ImGuiWrapper.cpp')
-rw-r--r--src/slic3r/GUI/ImGuiWrapper.cpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/slic3r/GUI/ImGuiWrapper.cpp b/src/slic3r/GUI/ImGuiWrapper.cpp
index 9dfe39bdd..4463e646c 100644
--- a/src/slic3r/GUI/ImGuiWrapper.cpp
+++ b/src/slic3r/GUI/ImGuiWrapper.cpp
@@ -317,6 +317,22 @@ void ImGuiWrapper::text(const wxString &label)
this->text(label_utf8.c_str());
}
+bool ImGuiWrapper::slider_float(const char* label, float* v, float v_min, float v_max, const char* format/* = "%.3f"*/, float power/* = 1.0f*/)
+{
+ return ImGui::SliderFloat(label, v, v_min, v_max, format, power);
+}
+
+bool ImGuiWrapper::slider_float(const std::string& label, float* v, float v_min, float v_max, const char* format/* = "%.3f"*/, float power/* = 1.0f*/)
+{
+ return this->slider_float(label.c_str(), v, v_min, v_max, format, power);
+}
+
+bool ImGuiWrapper::slider_float(const wxString& label, float* v, float v_min, float v_max, const char* format/* = "%.3f"*/, float power/* = 1.0f*/)
+{
+ auto label_utf8 = into_u8(label);
+ return this->slider_float(label_utf8.c_str(), v, v_min, v_max, format, power);
+}
+
bool ImGuiWrapper::combo(const wxString& label, const std::vector<std::string>& options, int& selection)
{
// this is to force the label to the left of the widget: