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>2019-02-19 15:26:26 +0300
committerbubnikv <bubnikv@gmail.com>2019-02-19 15:26:26 +0300
commit1797273fac63da26ce1a2415d3a8dbd100d11391 (patch)
tree29b810b03bae60f2bf149ab169a4f696d6cbaabb /src/slic3r/GUI/ImGuiWrapper.hpp
parent644794233f5024906914f1e9e87e14fb97d9182b (diff)
Basic localization of the ImGUI texts.
Diffstat (limited to 'src/slic3r/GUI/ImGuiWrapper.hpp')
-rw-r--r--src/slic3r/GUI/ImGuiWrapper.hpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/slic3r/GUI/ImGuiWrapper.hpp b/src/slic3r/GUI/ImGuiWrapper.hpp
index 47a1fb937..0f94f5d38 100644
--- a/src/slic3r/GUI/ImGuiWrapper.hpp
+++ b/src/slic3r/GUI/ImGuiWrapper.hpp
@@ -20,6 +20,7 @@ class ImGuiWrapper
typedef std::map<std::string, ImFont*> FontsMap;
FontsMap m_fonts;
+ const ImWchar *m_glyph_ranges;
unsigned m_font_texture;
float m_style_scaling;
unsigned m_mouse_buttons;
@@ -32,6 +33,7 @@ public:
bool init();
void read_glsl_version();
+ void set_language(const std::string &language);
void set_display_size(float w, float h);
void set_style_scaling(float scaling);
bool update_mouse_data(wxMouseEvent &evt);
@@ -59,6 +61,7 @@ public:
bool want_keyboard() const;
bool want_text_input() const;
bool want_any_input() const;
+
private:
void init_default_font(float scaling);
void create_device_objects();