diff options
author | Vojtech Kral <vojtech@kral.hk> | 2018-04-18 12:40:43 +0300 |
---|---|---|
committer | Vojtech Kral <vojtech@kral.hk> | 2018-04-18 12:40:43 +0300 |
commit | 81c6ad3ab72be74752e802f83515a41112428eab (patch) | |
tree | 318b26e75f8527ccb0c661af025ee01d407d4f5f /xs/src/slic3r/GUI/ConfigWizard_private.hpp | |
parent | c884f3b213981b89d7f76a6532e961477705727c (diff) |
ConfigWizard: Add reset option, fixes
Fix mock vendors
Diffstat (limited to 'xs/src/slic3r/GUI/ConfigWizard_private.hpp')
-rw-r--r-- | xs/src/slic3r/GUI/ConfigWizard_private.hpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/xs/src/slic3r/GUI/ConfigWizard_private.hpp b/xs/src/slic3r/GUI/ConfigWizard_private.hpp index faabca812..8e43ac3ac 100644 --- a/xs/src/slic3r/GUI/ConfigWizard_private.hpp +++ b/xs/src/slic3r/GUI/ConfigWizard_private.hpp @@ -100,12 +100,14 @@ struct PageWelcome: ConfigWizardPage { PrinterPicker *printer_picker; wxPanel *others_buttons; + wxCheckBox *cbox_reset; PageWelcome(ConfigWizard *parent); virtual wxPanel* extra_buttons() { return others_buttons; } virtual void on_page_set(); + bool reset_user_profile() const { return cbox_reset->GetValue(); } void on_variant_checked(); }; @@ -188,9 +190,10 @@ private: struct ConfigWizard::priv { ConfigWizard *q; - bool fresh_start; - AppConfig appconfig_vendors; // TODO: use order-preserving container - std::unordered_map<std::string, VendorProfile> vendors; // TODO: just set? + bool flag_startup; + bool flag_empty_datadir; + AppConfig appconfig_vendors; + std::unordered_map<std::string, VendorProfile> vendors; std::unordered_map<std::string, std::string> vendors_rsrc; std::unique_ptr<DynamicPrintConfig> custom_config; |