tool changer support - init work

This commit is contained in:
SoftFever 2024-07-05 00:00:54 +08:00
parent 2acf60a8b5
commit c2320e03a5
11 changed files with 370 additions and 220 deletions

View file

@ -1224,6 +1224,8 @@ void Sidebar::update_all_preset_comboboxes()
p->m_filament_icon->SetBitmap_("filament");
}
show_add_del_filament_button(cfg.opt_bool("single_extruder_multi_material"));
//p->m_staticText_filament_settings->Update();
@ -1327,6 +1329,7 @@ void Sidebar::update_presets(Preset::Type preset_type)
/* update bed shape */
Tab* printer_tab = wxGetApp().get_tab(Preset::TYPE_PRINTER);
if (printer_tab) {
printer_tab->on_preset_loaded();
printer_tab->update();
}
@ -1786,6 +1789,15 @@ void Sidebar::sync_ams_list()
Layout();
}
void Sidebar::show_add_del_filament_button(bool bshow)
{
if(p->m_bpButton_add_filament)
p->m_bpButton_add_filament->Show(bshow);
if(p->m_bpButton_del_filament)
p->m_bpButton_del_filament->Show(bshow);
Layout();
}
ObjectList* Sidebar::obj_list()
{
// BBS
@ -2703,7 +2715,7 @@ Plater::priv::priv(Plater *q, MainFrame *main_frame)
"brim_width", "wall_loops", "wall_filament", "sparse_infill_density", "sparse_infill_filament", "top_shell_layers",
"enable_support", "support_filament", "support_interface_filament",
"support_top_z_distance", "support_bottom_z_distance", "raft_layers",
"wipe_tower_rotation_angle", "wipe_tower_cone_angle", "wipe_tower_extra_spacing","wipe_tower_max_purge_speed", "wipe_tower_extruder",
"wipe_tower_rotation_angle", "wipe_tower_cone_angle", "wipe_tower_extra_spacing","wipe_tower_max_purge_speed", "wipe_tower_filament",
"best_object_pos"
}))
, sidebar(new Sidebar(q))