Complited "update" for TabPrint.

!->It's one unresolved problem - dlg->ShowModal() call update().
Added "get_field" at Tab & Page.
Extended "change_opt_value"
Extended "get_value" to Choise.
This commit is contained in:
YuSanka
2018-01-11 10:33:17 +01:00
parent 129bd898cd
commit 3567981089
6 changed files with 311 additions and 196 deletions

View File

@@ -63,10 +63,8 @@ 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();
}
void reload_config();
Field* get_field(t_config_option_key opt_key, int opt_index = -1) const;
ConfigOptionsGroupShp new_optgroup(std::string title, int noncommon_label_width = -1);
};
@@ -144,6 +142,7 @@ public:
void update_dirty();
void load_config(DynamicPrintConfig config);
void reload_config();
Field* get_field(t_config_option_key opt_key, int opt_index = -1) const;
};
//Slic3r::GUI::Tab::Print;
@@ -154,6 +153,8 @@ public:
TabPrint(wxNotebook* parent, const char *title) : Tab(parent, title) {}
~TabPrint(){}
bool m_support_material_overhangs_queried = false;
void build() override;
void update() override;
};