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-05-10 15:43:35 +0300
committerbubnikv <bubnikv@gmail.com>2019-05-10 15:43:35 +0300
commited8430bc9b593d0635a93166184552d2fbc7bdd5 (patch)
tree1084bc672d3085d529ebaa8392ec1eb5e30755ae /src/slic3r/GUI/GUI_App.hpp
parent1d788f9ce961b6598df65623b04267906378d819 (diff)
Application will pick translation dictionaries based on the system default language
on first start of Slic3r. Updated help menu (removed reference to the upstream manual) Fixed some OpenGL assert due to glOrtho being called with zero Z span.
Diffstat (limited to 'src/slic3r/GUI/GUI_App.hpp')
-rw-r--r--src/slic3r/GUI/GUI_App.hpp12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/slic3r/GUI/GUI_App.hpp b/src/slic3r/GUI/GUI_App.hpp
index 1f3ba9071..0ac5e1d42 100644
--- a/src/slic3r/GUI/GUI_App.hpp
+++ b/src/slic3r/GUI/GUI_App.hpp
@@ -19,7 +19,7 @@ class wxMenuItem;
class wxMenuBar;
class wxTopLevelWindow;
class wxNotebook;
-class wxLanguageInfo;
+struct wxLanguageInfo;
namespace Slic3r {
class AppConfig;
@@ -126,10 +126,9 @@ public:
void update_ui_from_settings();
bool switch_language();
- bool select_language();
+ // Load gettext translation files and activate them at the start of the application,
+ // based on the "translation_language" key stored in the application config.
bool load_language();
- void save_language();
- std::vector<const wxLanguageInfo*> get_installed_languages();
Tab* get_tab(Preset::Type type);
ConfigOptionMode get_mode();
@@ -177,8 +176,11 @@ private:
void window_pos_save(wxTopLevelWindow* window, const std::string &name);
void window_pos_restore(wxTopLevelWindow* window, const std::string &name, bool default_maximized = false);
void window_pos_sanitize(wxTopLevelWindow* window);
+ bool select_language();
+ void save_language();
+ std::vector<const wxLanguageInfo*> get_installed_languages();
#ifdef __WXMSW__
- void associate_3mf_files();
+ void associate_3mf_files();
#endif // __WXMSW__
};
DECLARE_APP(GUI_App)