mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-07-30 06:12:12 +00:00
ENH: Synchronize the modification of parameters to another extruder.
Change-Id: Ieac8dce3f4edec310a51d8e3af90df81a2abcbdb Jira: none (cherry picked from commit a1491f432ea617d799e5dd5a135b39da45aeeca9)
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
|
||||
/* Class for validation config options
|
||||
* and update (enable/disable) IU components
|
||||
*
|
||||
*
|
||||
* Used for config validation for global config (Print Settings Tab)
|
||||
* and local config (overrides options on sidebar)
|
||||
* */
|
||||
@@ -25,11 +25,11 @@ class ConfigManipulation
|
||||
bool m_support_material_overhangs_queried{ false };
|
||||
bool is_BBL_Printer{false};
|
||||
|
||||
// function to loading of changed configuration
|
||||
// function to loading of changed configuration
|
||||
std::function<void()> load_config = nullptr;
|
||||
std::function<void (const std::string&, bool toggle, int opt_index)> cb_toggle_field = nullptr;
|
||||
std::function<void (const std::string&, bool toggle)> cb_toggle_line = nullptr;
|
||||
// callback to propagation of changed value, if needed
|
||||
std::function<void(const std::string &, bool toggle, int opt_index)> cb_toggle_line = nullptr;
|
||||
// callback to propagation of changed value, if needed
|
||||
std::function<void(const std::string&, const boost::any&)> cb_value_change = nullptr;
|
||||
//BBS: change local config to const DynamicPrintConfig
|
||||
const DynamicPrintConfig* local_config = nullptr;
|
||||
@@ -41,7 +41,7 @@ class ConfigManipulation
|
||||
public:
|
||||
ConfigManipulation(std::function<void()> load_config,
|
||||
std::function<void(const std::string&, bool toggle, int opt_index)> cb_toggle_field,
|
||||
std::function<void(const std::string&, bool toggle)> cb_toggle_line,
|
||||
std::function<void(const std::string&, bool toggle, int opt_index)> cb_toggle_line,
|
||||
std::function<void(const std::string&, const boost::any&)> cb_value_change,
|
||||
//BBS: change local config to DynamicPrintConfig
|
||||
const DynamicPrintConfig* local_config = nullptr,
|
||||
@@ -66,7 +66,7 @@ public:
|
||||
void apply(DynamicPrintConfig* config, DynamicPrintConfig* new_config);
|
||||
t_config_option_keys const &applying_keys() const;
|
||||
void toggle_field(const std::string& field_key, const bool toggle, int opt_index = -1);
|
||||
void toggle_line(const std::string& field_key, const bool toggle);
|
||||
void toggle_line(const std::string& field_key, const bool toggle, int opt_index = -1);
|
||||
|
||||
// FFF print
|
||||
void update_print_fff_config(DynamicPrintConfig* config, const bool is_global_config = false, const bool is_plate_config = false);
|
||||
|
||||
Reference in New Issue
Block a user