diff options
author | Vojtech Kral <vojtech@kral.hk> | 2019-05-03 17:27:56 +0300 |
---|---|---|
committer | Vojtech Kral <vojtech@kral.hk> | 2019-05-06 12:58:06 +0300 |
commit | 658e9c2b1bcf1beb58fab0e28166cfbe076b6d36 (patch) | |
tree | 5d9184786c2dcb13d17486542c9edc5d57c04676 /src/slic3r/GUI/GUI_App.hpp | |
parent | ba297a929ada879b1316af61790c0e94fd37c0c1 (diff) |
Refactor language switch, infer user's language on fresh startup
Diffstat (limited to 'src/slic3r/GUI/GUI_App.hpp')
-rw-r--r-- | src/slic3r/GUI/GUI_App.hpp | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/slic3r/GUI/GUI_App.hpp b/src/slic3r/GUI/GUI_App.hpp index e6b94ece6..500348f08 100644 --- a/src/slic3r/GUI/GUI_App.hpp +++ b/src/slic3r/GUI/GUI_App.hpp @@ -19,6 +19,7 @@ class wxMenuItem; class wxMenuBar; class wxTopLevelWindow; class wxNotebook; +class wxLanguageInfo; namespace Slic3r { class AppConfig; @@ -119,19 +120,16 @@ public: void keyboard_shortcuts(); void load_project(wxWindow *parent, wxString& input_file); void import_model(wxWindow *parent, wxArrayString& input_files); - static bool catch_error(std::function<void()> cb, -// wxMessageDialog* message_dialog, - const std::string& err); -// void notify(/*message*/); + static bool catch_error(std::function<void()> cb, const std::string& err); void persist_window_geometry(wxTopLevelWindow *window, bool default_maximized = false); void update_ui_from_settings(); bool switch_language(); - bool select_language(wxArrayString & names, wxArrayLong & identifiers); + bool select_language(); bool load_language(); void save_language(); - void get_installed_languages(wxArrayString & names, wxArrayLong & identifiers); + std::vector<const wxLanguageInfo*> get_installed_languages(); Tab* get_tab(Preset::Type type); ConfigOptionMode get_mode(); |