ENH: add sync button for cali preset page

and modify some UI part
jira: none

Change-Id: I9462a10adb7017a7038e5cd7e30cf393b63ae77b
(cherry picked from commit da68a52247c3a963b9d5df339da8f80ead617839)
This commit is contained in:
zhimin.zeng
2024-12-24 16:34:48 +08:00
committed by Noisyfox
parent c043f73a98
commit d35350cf14
4 changed files with 281 additions and 78 deletions

View File

@@ -217,6 +217,7 @@ public:
void on_sys_color_changed() override;
int get_extruder_id(int ams_id);
float get_nozzle_diameter(int extruder_id) const;
NozzleVolumeType get_nozzle_volume_type(int extruder_id) const;
ExtruderType get_extruder_type(int extruder_id) const;
@@ -280,16 +281,22 @@ protected:
ComboBox* m_comboBox_nozzle_dia;
ComboBox* m_comboBox_bed_type;
ComboBox* m_comboBox_process;
Label* m_nozzle_diameter_tips{nullptr};
// multi_extruder
void update_multi_extruder_filament_combobox(const std::string &ams_id, int nozzle_id);
void create_multi_extruder_filament_list_panel(wxWindow *parent);
void on_select_nozzle_volume_type(wxCommandEvent &evt, size_t extruder_id);
std::vector<ComboBox*> m_comboBox_nozzle_volume_types;
wxPanel* m_nozzle_volume_type_panel{nullptr};
wxPanel* m_single_nozzle_info_panel{nullptr};
wxPanel* m_multi_nozzle_info_panel{nullptr};
wxPanel* m_multi_exutrder_filament_list_panel{nullptr};
ComboBox * m_left_comboBox_nozzle_dia;
ComboBox * m_right_comboBox_nozzle_dia;
ComboBox * m_left_comboBox_nozzle_volume;
ComboBox * m_right_comboBox_nozzle_volume;
wxPanel* m_main_ams_preview_panel{nullptr};
wxPanel* m_deputy_ams_preview_panel{nullptr};
wxBoxSizer* m_main_ams_items_sizer{nullptr};
@@ -350,3 +357,4 @@ public:
}} // namespace Slic3r::GUI
#endif