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:
authorVojtech Kral <vojtech@kral.hk>2019-04-26 17:53:04 +0300
committerVojtech Kral <vojtech@kral.hk>2019-04-29 12:36:00 +0300
commitfb0836b0b2f5a5c3eaaa25d5d92c3d5e9661b81b (patch)
treef369c4c94d7e4b5b1c0c469f7866656ecc503eb1 /src/slic3r/GUI/Preset.hpp
parentc8815041e2707c354846688cc77110f21d3c3a76 (diff)
ConfigWizard: Select an appropriate printer based on the bundle order
Diffstat (limited to 'src/slic3r/GUI/Preset.hpp')
-rw-r--r--src/slic3r/GUI/Preset.hpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/slic3r/GUI/Preset.hpp b/src/slic3r/GUI/Preset.hpp
index 051a55f66..bac1bfc4f 100644
--- a/src/slic3r/GUI/Preset.hpp
+++ b/src/slic3r/GUI/Preset.hpp
@@ -312,7 +312,7 @@ public:
const Preset& get_edited_preset() const { return m_edited_preset; }
// used to update preset_choice from Tab
- const std::deque<Preset>& get_presets() { return m_presets; }
+ const std::deque<Preset>& get_presets() const { return m_presets; }
int get_idx_selected() { return m_idx_selected; }
static const std::string& get_suffix_modified();
@@ -503,6 +503,8 @@ public:
PrinterPresetCollection(Preset::Type type, const std::vector<std::string> &keys, const Slic3r::StaticPrintConfig &defaults, const std::string &default_name = "- default -") :
PresetCollection(type, keys, defaults, default_name) {}
const Preset& default_preset_for(const DynamicPrintConfig &config) const override;
+
+ const Preset* find_by_model_id(const std::string &model_id) const;
};
} // namespace Slic3r