Implemented merging of system profiles from various vendors.

This commit is contained in:
bubnikv 2018-04-18 13:35:51 +02:00
parent 0711f84ea0
commit fa97a86751
4 changed files with 61 additions and 2 deletions

View file

@ -116,10 +116,12 @@ public:
// preset if the current print or filament preset is not compatible.
void update_compatible_with_printer(bool select_other_if_incompatible);
static bool parse_color(const std::string &scolor, unsigned char *rgb_out);
static bool parse_color(const std::string &scolor, unsigned char *rgb_out);
private:
std::string load_system_presets();
// Merge one vendor's presets with the other vendor's presets, report duplicates.
std::vector<std::string> merge_presets(PresetBundle &&other);
// Set the "enabled" flag for printer vendors, printer models and printer variants
// based on the user configuration.