|
@@ -166,6 +166,8 @@ CONFIG_OPTION_ENUM_DECLARE_STATIC_MAPS(PerimeterGeneratorType)
|
|
|
|
|
|
#undef CONFIG_OPTION_ENUM_DECLARE_STATIC_MAPS
|
|
|
|
|
|
+class DynamicPrintConfig;
|
|
|
+
|
|
|
// Defines each and every confiuration option of Slic3r, including the properties of the GUI dialogs.
|
|
|
// Does not store the actual values, but defines default values.
|
|
|
class PrintConfigDef : public ConfigDef
|
|
@@ -174,6 +176,7 @@ public:
|
|
|
PrintConfigDef();
|
|
|
|
|
|
static void handle_legacy(t_config_option_key &opt_key, std::string &value);
|
|
|
+ static void handle_legacy_composite(DynamicPrintConfig &config);
|
|
|
|
|
|
// Array options growing with the number of extruders
|
|
|
const std::vector<std::string>& extruder_option_keys() const { return m_extruder_option_keys; }
|
|
@@ -258,6 +261,12 @@ public:
|
|
|
// handle_legacy() is called internally by set_deserialize().
|
|
|
void handle_legacy(t_config_option_key &opt_key, std::string &value) const override
|
|
|
{ PrintConfigDef::handle_legacy(opt_key, value); }
|
|
|
+
|
|
|
+ // Called after a config is loaded as a whole.
|
|
|
+ // Perform composite conversions, for example merging multiple keys into one key.
|
|
|
+ // For conversion of single options, the handle_legacy() method above is called.
|
|
|
+ void handle_legacy_composite() override
|
|
|
+ { PrintConfigDef::handle_legacy_composite(*this); }
|
|
|
};
|
|
|
|
|
|
void handle_legacy_sla(DynamicPrintConfig &config);
|