diff options
author | Vojtech Kral <vojtech@kral.hk> | 2019-06-04 19:01:41 +0300 |
---|---|---|
committer | Vojtech Kral <vojtech@kral.hk> | 2019-09-17 14:20:06 +0300 |
commit | dba9925c4ed37d5b44f6672824987fa9ca0ad7b8 (patch) | |
tree | 0b1a0c2d7e08dc1ee7685abe1f95c7129a5849e3 /src/slic3r/GUI/ConfigWizard.hpp | |
parent | 87b7b1cc1dc79ea77d2100481fd0f58a85b59037 (diff) |
Move ConfigWizard instance in GUI_App, lazy-initialized,
add filament/material installation item in Sidebar combo boxes
Diffstat (limited to 'src/slic3r/GUI/ConfigWizard.hpp')
-rw-r--r-- | src/slic3r/GUI/ConfigWizard.hpp | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/slic3r/GUI/ConfigWizard.hpp b/src/slic3r/GUI/ConfigWizard.hpp index b707e525b..3c85b7343 100644 --- a/src/slic3r/GUI/ConfigWizard.hpp +++ b/src/slic3r/GUI/ConfigWizard.hpp @@ -26,7 +26,15 @@ public: RR_USER, // User requested the Wizard from the menus }; - ConfigWizard(wxWindow *parent, RunReason run_reason); + // What page should wizard start on + enum StartPage { + SP_WELCOME, + SP_PRINTERS, + SP_FILAMENTS, + SP_MATERIALS, + }; + + ConfigWizard(); ConfigWizard(ConfigWizard &&) = delete; ConfigWizard(const ConfigWizard &) = delete; ConfigWizard &operator=(ConfigWizard &&) = delete; @@ -34,7 +42,7 @@ public: ~ConfigWizard(); // Run the Wizard. Return whether it was completed. - bool run(PresetBundle *preset_bundle, const PresetUpdater *updater); + bool run(RunReason reason, StartPage start_page = SP_WELCOME); static const wxString& name(const bool from_menu = false); |