diff options
author | bubnikv <bubnikv@gmail.com> | 2018-04-11 13:21:15 +0300 |
---|---|---|
committer | bubnikv <bubnikv@gmail.com> | 2018-04-11 13:21:15 +0300 |
commit | da2878958bfb23ae65b3ee4789844530d35260d9 (patch) | |
tree | f96a46e3ef8c56771c26ac1655deeb409497ba3d /xs/src/slic3r/GUI/GUI.hpp | |
parent | 4275b15dcd22bc66b9ce90716af7cd8465e2ca4c (diff) |
Wizard runs from the new Config menu,
snapshots could be rolled back / forward.
Diffstat (limited to 'xs/src/slic3r/GUI/GUI.hpp')
-rw-r--r-- | xs/src/slic3r/GUI/GUI.hpp | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/xs/src/slic3r/GUI/GUI.hpp b/xs/src/slic3r/GUI/GUI.hpp index 938eed498..2a3667eb3 100644 --- a/xs/src/slic3r/GUI/GUI.hpp +++ b/xs/src/slic3r/GUI/GUI.hpp @@ -82,13 +82,17 @@ wxApp* get_app(); wxColour* get_modified_label_clr(); wxColour* get_sys_label_clr(); -void add_config_menu(wxMenuBar *menu, int event_preferences_changed, int event_language_change); +extern void add_config_menu(wxMenuBar *menu, int event_preferences_changed, int event_language_change); + +// This is called when closing the application, when loading a config file or when starting the config wizard +// to notify the user whether he is aware that some preset changes will be lost. +extern bool check_unsaved_changes(); // Opens the first-time configuration wizard, returns true if wizard is finished & accepted. -bool open_config_wizard(PresetBundle *preset_bundle); +extern bool config_wizard(bool fresh_start); // Create "Preferences" dialog after selecting menu "Preferences" in Perl part -void open_preferences_dialog(int event_preferences); +extern void open_preferences_dialog(int event_preferences); // Create a new preset tab (print, filament and printer), void create_preset_tabs(bool no_controller, int event_value_change, int event_presets_changed); |