To OptionsGroup added "reload_config" to reload configurations after changes in any fields & "get_config_value" to get current option value from config.

In Field extended "set_value" to Choice.
In PrintConfig added default_value to "post_process".
This commit is contained in:
YuSanka
2018-01-09 09:41:07 +01:00
parent 16458e070a
commit 59432d50ff
8 changed files with 168 additions and 12 deletions

View File

@@ -63,6 +63,10 @@ public:
wxString title() const { return m_title; }
size_t iconID() const { return m_iconID; }
void set_config(DynamicPrintConfig* config_in) { m_config = config_in; }
void reload_config(){
for (auto group: m_optgroups)
group->reload_config();
}
ConfigOptionsGroupShp new_optgroup(std::string title, int noncommon_label_width = -1);
};
@@ -139,7 +143,7 @@ public:
virtual void update() = 0;
void update_dirty();
void load_config(DynamicPrintConfig config);
void reload_config();
};
//Slic3r::GUI::Tab::Print;