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:
authorYuSanka <yusanka@gmail.com>2020-07-21 17:21:18 +0300
committerYuSanka <yusanka@gmail.com>2020-07-22 10:24:12 +0300
commit6d28d68e4a87e3e53baf4d5c84d19a8bf4e56a61 (patch)
treeaff8dce2061875dc6059b280af50d3c30ad35b44 /src/libslic3r/Preset.hpp
parentf138978fe7e16fff8a2cf5a6a1d8b1792ed3d8b3 (diff)
PhysicalPrinter : Implemented synchronizations from user printer profiles with "Print Host upload" information to the new physical printers
Diffstat (limited to 'src/libslic3r/Preset.hpp')
-rw-r--r--src/libslic3r/Preset.hpp11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/libslic3r/Preset.hpp b/src/libslic3r/Preset.hpp
index 02f831136..98b805b4e 100644
--- a/src/libslic3r/Preset.hpp
+++ b/src/libslic3r/Preset.hpp
@@ -549,12 +549,15 @@ public:
// set of presets used with this physical printer
std::set<std::string> preset_names;
- static std::string separator();
-
// Has this profile been loaded?
bool loaded = false;
+ static std::string separator();
static const std::vector<std::string>& printer_options();
+ static const std::vector<std::string>& print_host_options();
+ static bool has_print_host_information(const PrinterPresetCollection& printer_presets);
+ static bool has_print_host_information(const DynamicPrintConfig& config);
+
const std::set<std::string>& get_preset_names() const;
bool has_empty_config() const;
@@ -626,7 +629,7 @@ public:
// Load ini files of the particular type from the provided directory path.
void load_printers(const std::string& dir_path, const std::string& subdir);
- void load_printers(const PrinterPresetCollection &printer_presets, std::string def_printer_name = "");
+ void load_printers_from_presets(PrinterPresetCollection &printer_presets, std::string def_printer_name);
// Save the printer under a new name. If the name is different from the old one,
// a new printer is stored into the list of printers.
@@ -704,6 +707,8 @@ private:
return const_cast<PhysicalPrinterCollection*>(this)->find_printer_internal(name);
}
+ PhysicalPrinter* find_printer_with_same_config( const DynamicPrintConfig &config);
+
// List of printers
// Use deque to force the container to allocate an object per each entry,
// so that the addresses of the presets don't change during resizing of the container.