ENH: support delete any filament id

Change-Id: I71bcd54985b3f9e19a19d04327d00b402ec22380
(cherry picked from commit f3d67a98ac770e6f045a76bed4531139763b33cf)
This commit is contained in:
zhimin.zeng
2024-06-20 13:09:51 +08:00
committed by Noisyfox
parent 84dc2d8835
commit fe09c20725
13 changed files with 287 additions and 43 deletions

View File

@@ -149,8 +149,10 @@ public:
void jump_to_option(const std::string& opt_key, Preset::Type type, const std::wstring& category);
// BBS. Add on_filaments_change() method.
void on_filaments_change(size_t num_filaments);
void on_filaments_delete(size_t filament_id);
void add_filament();
void delete_filament();
void delete_filament(size_t filament_id = size_t(-1));
void add_custom_filament(wxColour new_col);
// BBS
void on_bed_type_change(BedType bed_type);
@@ -478,6 +480,7 @@ public:
bool leave_gizmos_stack();
void on_filaments_change(size_t extruders_count);
void on_filaments_delete(size_t extruders_count, size_t filament_id);
// BBS
void on_bed_type_change(BedType bed_type);
bool update_filament_colors_in_full_config();