ENH:add "SyncAmsInfoDialog"

JIRA: none

Change-Id: I8e26178f6da816e102a40b429c565696924c58ea
(cherry picked from commit 2a46460d5a65279cbb42c8aef2474172b1e1ae30)
(cherry picked from commit f7995d5a9f682107bd629841e2f903b0e6a0e7f2)
This commit is contained in:
zhou.xu
2025-09-07 20:55:54 +08:00
committed by Noisyfox
parent 417454a4c5
commit ad79ed6d93
12 changed files with 4677 additions and 61 deletions
+12 -1
View File
@@ -29,6 +29,16 @@ enum class VendorType {
};
namespace Slic3r {
struct AMSMapInfo
{
/*for new ams mapping*/ // from struct FilamentInfo
std::string ams_id{""};
std::string slot_id{""};
};
struct MergeFilamentInfo {
std::vector<std::vector<int>> merges;
bool is_empty() { return merges.empty();}
};
// Bundle of Print + Filament + Printer presets.
class PresetBundle
{
@@ -117,7 +127,8 @@ public:
void set_num_filaments(unsigned int n, std::vector<std::string> new_colors);
void set_num_filaments(unsigned int n, std::string new_col = "");
void update_num_filaments(unsigned int to_del_flament_id);
unsigned int sync_ams_list(unsigned int & unknowns);
unsigned int sync_ams_list(unsigned int &unknowns, bool use_map, std::map<int, AMSMapInfo> &maps,bool enable_append, MergeFilamentInfo& merge_info);
//BBS: check whether this is the only edited filament
bool is_the_only_edited_filament(unsigned int filament_index);