From 38f1f265cfb9f79030b48137d2949de9f25e782f Mon Sep 17 00:00:00 2001 From: "zhou.xu" Date: Fri, 28 Feb 2025 17:32:36 +0800 Subject: [PATCH] ENH:delete no use code and add log jira: STUDIO-10644 Change-Id: Ia12ea45553e2856d0c8784c2a87a1e86adece003 --- src/slic3r/GUI/AmsMappingPopup.cpp | 1 + src/slic3r/GUI/SyncAmsInfoDialog.cpp | 296 +++------------------------ src/slic3r/GUI/SyncAmsInfoDialog.hpp | 15 +- 3 files changed, 32 insertions(+), 280 deletions(-) diff --git a/src/slic3r/GUI/AmsMappingPopup.cpp b/src/slic3r/GUI/AmsMappingPopup.cpp index 8a0297cd7..50e341e06 100644 --- a/src/slic3r/GUI/AmsMappingPopup.cpp +++ b/src/slic3r/GUI/AmsMappingPopup.cpp @@ -86,6 +86,7 @@ void MaterialItem::set_ams_info(wxColour col, wxString txt, int ctype, std::vect if (m_ams_coloul != col) { m_ams_coloul = col; need_refresh = true;} if (m_ams_name != txt) { m_ams_name = txt; need_refresh = true; } if (need_refresh) { Refresh();} + BOOST_LOG_TRIVIAL(info) << "set_ams_info " << m_ams_name; } void MaterialItem::reset_ams_info() { diff --git a/src/slic3r/GUI/SyncAmsInfoDialog.cpp b/src/slic3r/GUI/SyncAmsInfoDialog.cpp index ddf2ddd0f..4fc01e54d 100644 --- a/src/slic3r/GUI/SyncAmsInfoDialog.cpp +++ b/src/slic3r/GUI/SyncAmsInfoDialog.cpp @@ -62,6 +62,7 @@ bool SyncAmsInfoDialog::Show(bool show) wxGetApp().UpdateDlgDarkUI(this); wxGetApp().reset_to_active(); set_default(true); + reinit_dialog(); update_user_machine_list(); { // hide and hide m_basic_panel->Hide(); @@ -781,65 +782,12 @@ SyncAmsInfoDialog::SyncAmsInfoDialog(wxWindow *parent, SyncInfo &info) : /*basic info right*/ sizer_basic_right_info = new wxBoxSizer(wxVERTICAL); - /*printer combobox*/ - /*wxBoxSizer *sizer_split_printer = new wxBoxSizer(wxHORIZONTAL); - m_stext_printer_title = new Label(m_basic_panel, _L("Printer")); - m_stext_printer_title->SetFont(::Label::Body_14); - m_stext_printer_title->SetForegroundColour(0x909090); - auto m_split_line = new wxPanel(m_basic_panel, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL); - m_split_line->SetBackgroundColour(0xeeeeee); - m_split_line->SetMinSize(wxSize(-1, 1)); - m_split_line->SetMaxSize(wxSize(-1, 1)); - sizer_split_printer->Add(0, 0, 0, wxEXPAND, 0); - sizer_split_printer->Add(m_stext_printer_title, 0, wxALIGN_CENTER, 0); - sizer_split_printer->Add(m_split_line, 1, wxALIGN_CENTER_VERTICAL, 0);*/ - - wxBoxSizer *sizer_printer_area = new wxBoxSizer(wxHORIZONTAL); - wxBoxSizer *sizer_bed_staticbox = new wxBoxSizer(wxVERTICAL); - wxBoxSizer *sizer_printer_staticbox = new wxBoxSizer(wxHORIZONTAL); - - /*printer area*/ - auto printer_staticbox = new StaticBox(m_basic_panel); - printer_staticbox->SetMinSize(wxSize(FromDIP(338), FromDIP(68))); - printer_staticbox->SetMaxSize(wxSize(FromDIP(338), FromDIP(68))); - printer_staticbox->SetBorderColor(wxColour(0xCECECE)); - - m_printer_image = new wxStaticBitmap(printer_staticbox, wxID_ANY, create_scaled_bitmap("printer_preview_BL-P001", m_scrolledWindow, 52)); - m_printer_image->SetMinSize(wxSize(FromDIP(52), FromDIP(52))); - m_printer_image->SetMaxSize(wxSize(FromDIP(52), FromDIP(52))); - - m_comboBox_printer = new ComboBox(printer_staticbox, wxID_ANY, "", wxDefaultPosition, wxDefaultSize, 0, nullptr, wxCB_READONLY); - m_comboBox_printer->SetBorderWidth(0); - m_comboBox_printer->SetMinSize(wxSize(FromDIP(250), FromDIP(60))); - m_comboBox_printer->SetMaxSize(wxSize(FromDIP(250), FromDIP(60))); - m_comboBox_printer->SetBackgroundColor(*wxWHITE); - m_comboBox_printer->Bind(wxEVT_COMBOBOX, &SyncAmsInfoDialog::on_selection_changed, this); - - m_btn_bg_enable = StateColor(std::pair(wxColour(27, 136, 68), StateColor::Pressed), std::pair(wxColour(61, 203, 115), StateColor::Hovered), - std::pair(wxColour(0, 174, 66), StateColor::Normal)); - - m_button_refresh = new ScalableButton(printer_staticbox, wxID_ANY, "refresh_printer", wxEmptyString, wxDefaultSize, wxDefaultPosition, wxBU_EXACTFIT | wxNO_BORDER, true); - m_button_refresh->Bind(wxEVT_BUTTON, &SyncAmsInfoDialog::on_refresh, this); - - sizer_printer_staticbox->Add(0, 0, 0, wxLEFT, FromDIP(7)); - sizer_printer_staticbox->Add(m_printer_image, 0, wxALIGN_CENTER, 0); - sizer_printer_staticbox->Add(m_comboBox_printer, 0, wxALIGN_CENTER, 0); - sizer_printer_staticbox->Add(m_button_refresh, 0, wxALIGN_CENTER, 0); - - printer_staticbox->SetSizer(sizer_printer_staticbox); - printer_staticbox->Layout(); - printer_staticbox->Fit(); - - sizer_printer_area->Add(printer_staticbox, 0, wxALIGN_CENTER, 0); - sizer_printer_area->Add(0, 0, 0, wxLEFT, FromDIP(4)); - m_text_printer_msg = new Label(m_basic_panel); m_text_printer_msg->SetMinSize(wxSize(FromDIP(420), FromDIP(24))); m_text_printer_msg->SetMaxSize(wxSize(FromDIP(420), FromDIP(24))); m_text_printer_msg->SetFont(::Label::Body_13); m_text_printer_msg->Hide(); - sizer_basic_right_info->Add(sizer_printer_area, 0, wxTOP, 0); sizer_basic_right_info->Add(m_text_printer_msg, 0, wxLEFT, 0); m_basicl_sizer->Add(sizer_basic_right_info, 0, wxLEFT, 0); @@ -1202,6 +1150,18 @@ void SyncAmsInfoDialog::check_empty_project() } } +void SyncAmsInfoDialog::reinit_dialog() +{ + /* reset timeout and reading printer info */ + m_timeout_count = 0; + m_ams_mapping_res = false; + m_ams_mapping_valid = false; + m_ams_mapping_result.clear(); + + show_status(PrintDialogStatus::PrintStatusInit); + update_show_status(); +} + void SyncAmsInfoDialog::init_bind() { Bind(wxEVT_TIMER, &SyncAmsInfoDialog::on_timer, this); @@ -1224,9 +1184,8 @@ void SyncAmsInfoDialog::init_bind() DeviceManager *dev = Slic3r::GUI::wxGetApp().getDeviceManager(); if (!dev) return; MachineObject *obj = dev->get_selected_machine(); - if (!obj) return; - - if (obj->dev_id == e.GetString()) { m_comboBox_printer->SetValue(obj->dev_name + "(LAN)"); } + if (!obj) + return; } }); } @@ -1257,7 +1216,6 @@ void SyncAmsInfoDialog::popup_filament_backup() void SyncAmsInfoDialog::prepare_mode(bool refresh_button) { // disable combobox - m_comboBox_printer->Enable(); Enable_Auto_Refill(true); show_print_failed_info(false); @@ -1270,20 +1228,6 @@ void SyncAmsInfoDialog::prepare_mode(bool refresh_button) } } -void SyncAmsInfoDialog::sending_mode() -{ - // disable combobox - m_comboBox_printer->Disable(); - Enable_Auto_Refill(false); - - m_is_in_sending_mode = true; - - if (m_print_page_mode != PrintPageModeSending) { - m_print_page_mode = PrintPageModeSending; - for (auto it = m_materialList.begin(); it != m_materialList.end(); it++) { it->second->item->disable(); } - } -} - void SyncAmsInfoDialog::finish_mode() { m_print_page_mode = PrintPageModeFinish; @@ -1398,6 +1342,7 @@ bool SyncAmsInfoDialog::do_ams_mapping(MachineObject *obj_) show_thumbnail_page(); return obj_->is_valid_mapping_result(m_ams_mapping_result); } else { + BOOST_LOG_TRIVIAL(info) << "filament_result != 0"; // do not support ams mapping try to use order mapping bool is_valid = obj_->is_valid_mapping_result(m_ams_mapping_result); if (filament_result != 1 && !is_valid) { @@ -1841,53 +1786,36 @@ void SyncAmsInfoDialog::show_status(PrintDialogStatus status, std::vectorDisable(); - else - m_comboBox_printer->Enable(); - // other if (status == PrintDialogStatus::PrintStatusInit) { update_print_status_msg(wxEmptyString, false, false); - Enable_Refresh_Button(true); } else if (status == PrintDialogStatus::PrintStatusNoUserLogin) { wxString msg_text = _L("No login account, only printers in LAN mode are displayed"); update_print_status_msg(msg_text, false, true); - Enable_Refresh_Button(true); } else if (status == PrintDialogStatus::PrintStatusInvalidPrinter) { update_print_status_msg(wxEmptyString, true, true); - Enable_Refresh_Button(true); } else if (status == PrintDialogStatus::PrintStatusConnectingServer) { wxString msg_text = _L("Connecting to server"); update_print_status_msg(msg_text, true, true); - Enable_Refresh_Button(true); } else if (status == PrintDialogStatus::PrintStatusReading) { wxString msg_text = _L("Synchronizing device information"); update_print_status_msg(msg_text, false, true); - Enable_Refresh_Button(true); } else if (status == PrintDialogStatus::PrintStatusReadingFinished) { update_print_status_msg(wxEmptyString, false, true); - Enable_Refresh_Button(true); } else if (status == PrintDialogStatus::PrintStatusReadingTimeout) { wxString msg_text = _L("Synchronizing device information time out"); update_print_status_msg(msg_text, true, true); - Enable_Refresh_Button(true); } else if (status == PrintDialogStatus::PrintStatusInUpgrading) { wxString msg_text = _L("Cannot send the print job when the printer is updating firmware"); update_print_status_msg(msg_text, true, true); - Enable_Refresh_Button(true); } else if (status == PrintDialogStatus::PrintStatusInSystemPrinting) { wxString msg_text = _L("The printer is executing instructions. Please restart printing after it ends"); update_print_status_msg(msg_text, true, true); - Enable_Refresh_Button(true); } else if (status == PrintDialogStatus::PrintStatusInPrinting) { wxString msg_text = _L("The printer is busy on other print job"); update_print_status_msg(msg_text, true, true); - Enable_Refresh_Button(true); } else if (status == PrintDialogStatus::PrintStatusDisableAms) { update_print_status_msg(wxEmptyString, false, false); - Enable_Refresh_Button(true); } else if (status == PrintDialogStatus::PrintStatusNeedUpgradingAms) { wxString msg_text; if (params.size() > 0) @@ -1895,27 +1823,21 @@ void SyncAmsInfoDialog::show_status(PrintDialogStatus status, std::vector 1) @@ -1923,34 +1845,25 @@ void SyncAmsInfoDialog::show_status(PrintDialogStatus status, std::vector AMS slot."); update_print_status_msg(msg_text, false, false); - Enable_Refresh_Button(true); } else if (status == PrintDialogStatus::PrintStatusNoSdcard) { wxString msg_text = _L("Storage needs to be inserted before printing."); update_print_status_msg(msg_text, true, true); - Enable_Refresh_Button(true); } else if (status == PrintDialogStatus::PrintStatusUnsupportedPrinter) { wxString msg_text; try { @@ -1982,28 +1895,21 @@ void SyncAmsInfoDialog::show_status(PrintDialogStatus status, std::vectorget_partplate_list().get_curr_plate(); @@ -2017,16 +1923,14 @@ void SyncAmsInfoDialog::show_status(PrintDialogStatus status, std::vectorget_selected_machine(); - assert(obj_->dev_id == m_printer_last_select); if (obj_ == nullptr) { return result; } PresetBundle *preset_bundle = wxGetApp().preset_bundle; @@ -2390,7 +2293,6 @@ void SyncAmsInfoDialog::update_user_printer() // clear machine list m_list.clear(); - m_comboBox_printer->Clear(); std::vector machine_list; wxArrayString machine_list_name; std::map option_list; @@ -2432,60 +2334,8 @@ void SyncAmsInfoDialog::update_user_printer() } } - m_comboBox_printer->Set(machine_list_name); - MachineObject *obj = dev->get_selected_machine(); - - if (obj) { - if (obj->is_lan_mode_printer() && !obj->has_access_right()) { - m_printer_last_select = ""; - } else { - m_printer_last_select = obj->dev_id; - } - - } else { - m_printer_last_select = ""; - } - - if (m_list.size() > 0) { - // select a default machine - if (m_printer_last_select.empty()) { - int def_selection = -1; - for (int i = 0; i < m_list.size(); i++) { - if (m_list[i]->is_lan_mode_printer() && !m_list[i]->has_access_right()) { - continue; - } else { - def_selection = i; - } - } - - if (def_selection >= 0) { - m_printer_last_select = m_list[def_selection]->dev_id; - m_comboBox_printer->SetSelection(def_selection); - wxCommandEvent event(wxEVT_COMBOBOX); - event.SetEventObject(m_comboBox_printer); - wxPostEvent(m_comboBox_printer, event); - } - } - - for (auto i = 0; i < m_list.size(); i++) { - if (m_list[i]->dev_id == m_printer_last_select) { - if (obj && !obj->get_lan_mode_connection_state()) { - m_comboBox_printer->SetSelection(i); - m_printer_name = m_comboBox_printer->GetValue(); - wxCommandEvent event(wxEVT_COMBOBOX); - event.SetEventObject(m_comboBox_printer); - wxPostEvent(m_comboBox_printer, event); - } - } - } - } else { - m_printer_last_select = ""; - update_select_layout(nullptr); - m_comboBox_printer->SetTextLabel(""); - } - - BOOST_LOG_TRIVIAL(info) << __FUNCTION__ << "for send task, current printer id = " << m_printer_last_select << std::endl; + BOOST_LOG_TRIVIAL(info) << __FUNCTION__ << "for send task, current printer id = " << obj->dev_id << std::endl; } void SyncAmsInfoDialog::update_printer_combobox(wxCommandEvent &event) @@ -2529,76 +2379,6 @@ void SyncAmsInfoDialog::on_timer(wxTimerEvent &event) } } -void SyncAmsInfoDialog::on_selection_changed(wxCommandEvent &event) -{ - /* reset timeout and reading printer info */ - m_timeout_count = 0; - m_ams_mapping_res = false; - m_ams_mapping_valid = false; - m_ams_mapping_result.clear(); - - auto selection = m_comboBox_printer->GetSelection(); - DeviceManager *dev = Slic3r::GUI::wxGetApp().getDeviceManager(); - if (!dev) return; - - MachineObject *obj = nullptr; - for (int i = 0; i < m_list.size(); i++) { - if (i == selection) { - // check lan mode machine - //if (m_list[i]->is_lan_mode_printer() && !m_list[i]->has_access_right()) { - // /* ConnectPrinterDialog dlg(wxGetApp().mainframe, wxID_ANY, _L("Input access code")); - // dlg.set_machine_object(m_list[i]); - // auto res = dlg.ShowModal(); - // m_printer_last_select = ""; - // m_comboBox_printer->SetSelection(-1); - // m_comboBox_printer->Refresh(); - // m_comboBox_printer->Update();*/ - //} - - //m_printer_last_select = m_list[i]->dev_id; - //obj = m_list[i]; - - BOOST_LOG_TRIVIAL(info) << __FUNCTION__ << "for send task, current printer id = " << m_printer_last_select << std::endl; - break; - } - } - - if (obj) { - // update image - auto printer_img_name = "printer_preview_" + obj->printer_type; - m_printer_image->SetBitmap(create_scaled_bitmap(printer_img_name, m_scrolledWindow, 52)); - - obj->command_get_version(); - obj->command_request_push_all(); - if (!dev->get_selected_machine()) { - dev->set_selected_machine(m_printer_last_select, true); - } else if (dev->get_selected_machine()->dev_id != m_printer_last_select) { - dev->set_selected_machine(m_printer_last_select, true); - } - - // reset the timelapse check status for I3 structure - if (obj->get_printer_arch() == PrinterArch::ARCH_I3) { - m_checkbox_list["timelapse"]->setValue("off"); - AppConfig *config = wxGetApp().app_config; - if (config) config->set_str("print", "timelapse", "0"); - } - - // Has changed machine unrecoverably - GUI::wxGetApp().sidebar().load_ams_list(obj->dev_id, obj); - m_check_flag = false; - } else { - BOOST_LOG_TRIVIAL(error) << "on_selection_changed dev_id not found"; - return; - } - - // reset print status - update_flow_cali_check(obj); - - show_status(PrintDialogStatus::PrintStatusInit); - - update_show_status(); -} - void SyncAmsInfoDialog::update_flow_cali_check(MachineObject *obj) { auto bed_type = m_plater->get_partplate_list().get_curr_plate()->get_bed_type(true); @@ -2612,11 +2392,12 @@ void SyncAmsInfoDialog::update_flow_cali_check(MachineObject *obj) void SyncAmsInfoDialog::update_show_status() { // refreshing return - if (get_status() == PrintDialogStatus::PrintStatusRefreshingMachineList) return; - - if (get_status() == PrintDialogStatus::PrintStatusSending) return; - - if (get_status() == PrintDialogStatus::PrintStatusSendingCanceled) return; + if (get_status() == PrintDialogStatus::PrintStatusRefreshingMachineList) + return; + if (get_status() == PrintDialogStatus::PrintStatusSending) + return; + if (get_status() == PrintDialogStatus::PrintStatusSendingCanceled) + return; NetworkAgent * agent = Slic3r::GUI::wxGetApp().getAgent(); DeviceManager *dev = Slic3r::GUI::wxGetApp().getDeviceManager(); @@ -2629,7 +2410,7 @@ void SyncAmsInfoDialog::update_show_status() // blank plate has no valid gcode file if (is_must_finish_slice_then_connected_printer()) { return; } - MachineObject *obj_ = dev->get_my_machine(m_printer_last_select); + MachineObject * obj_ = dev->get_selected_machine(); if (!obj_) { update_ams_check(nullptr); if (agent) { @@ -2929,15 +2710,6 @@ void SyncAmsInfoDialog::reset_one_ams_material(const std::string& index_str) } } -void SyncAmsInfoDialog::Enable_Refresh_Button(bool en) -{ - if (!en) { - if (m_button_refresh->IsEnabled()) { m_button_refresh->Disable(); } - } else { - if (!m_button_refresh->IsEnabled()) { m_button_refresh->Enable(); } - } -} - void SyncAmsInfoDialog::on_dpi_changed(const wxRect &suggested_rect) { if (ams_mapping_help_icon != nullptr) { @@ -2978,16 +2750,8 @@ void SyncAmsInfoDialog::set_default(bool hide_some) { if (m_print_type == PrintFromType::FROM_NORMAL) { bool is_show = true; - if (!hide_some) { - if (m_stext_printer_title) { m_stext_printer_title->Show(is_show); } - if (m_comboBox_printer) { m_comboBox_printer->Show(is_show); } - if (m_button_refresh) { m_button_refresh->Show(is_show); } - } } else if (m_print_type == PrintFromType::FROM_SDCARD_VIEW) { bool is_show = false; - if (m_stext_printer_title) { m_stext_printer_title->Show(is_show); } - if (m_comboBox_printer) { m_comboBox_printer->Show(is_show); } - if (m_button_refresh) { m_button_refresh->Show(is_show); } } wxString filename = m_plater->get_export_gcode_filename("", true, m_print_plate_idx == PLATE_ALL_IDX ? true : false); @@ -3017,13 +2781,7 @@ void SyncAmsInfoDialog::set_default(bool hide_some) // clear combobox m_list.clear(); - if (m_comboBox_printer) { m_comboBox_printer->Clear(); } - - m_printer_last_select = ""; m_print_info = ""; - m_comboBox_printer->SetValue(wxEmptyString); - m_comboBox_printer->Enable(); - // rset status bar NetworkAgent *agent = wxGetApp().getAgent(); @@ -3050,6 +2808,7 @@ void SyncAmsInfoDialog::set_default(bool hide_some) void SyncAmsInfoDialog::reset_and_sync_ams_list() { + BOOST_LOG_TRIVIAL(info) <<__FUNCTION__; // for black list std::vector materials; std::vector brands; @@ -3192,7 +2951,7 @@ void SyncAmsInfoDialog::reset_and_sync_ams_list() pos.y += item->GetRect().height; m_mapping_popup.Move(pos); - if (obj_ && m_checkbox_list["use_ams"]->getValue() == "on" && obj_->dev_id == m_printer_last_select) { + if (obj_ && m_checkbox_list["use_ams"]->getValue() == "on") { m_mapping_popup.set_parent_item(item); m_mapping_popup.set_current_filament_id(extruder); m_mapping_popup.set_material_index_str(item_index_str); @@ -3669,6 +3428,7 @@ SyncAmsInfoDialog::~SyncAmsInfoDialog() { if (m_refresh_timer) { delete m_refresh_timer; } + BOOST_LOG_TRIVIAL(error) << "~SyncAmsInfoDialog destruction"; } void SyncAmsInfoDialog::set_info(SyncInfo &info) diff --git a/src/slic3r/GUI/SyncAmsInfoDialog.hpp b/src/slic3r/GUI/SyncAmsInfoDialog.hpp index df9627405..b5b41a770 100644 --- a/src/slic3r/GUI/SyncAmsInfoDialog.hpp +++ b/src/slic3r/GUI/SyncAmsInfoDialog.hpp @@ -33,13 +33,11 @@ class SyncAmsInfoDialog : public DPIDialog PrintPageMode m_print_page_mode{PrintPageMode::PrintPageModePrepare}; std::string m_print_error_msg; std::string m_print_error_extra; - std::string m_printer_last_select; std::string m_print_info; wxString m_current_project_name; PrintDialogStatus m_print_status{PrintStatusInit}; wxColour m_colour_def_color{wxColour(255, 255, 255)}; wxColour m_colour_bold_color{wxColour(38, 46, 48)}; - StateColor m_btn_bg_enable; std::shared_ptr m_token = std::make_shared(0); std::map m_checkbox_list; @@ -49,9 +47,7 @@ class SyncAmsInfoDialog : public DPIDialog std::vector m_ams_mapping_result; std::vector m_back_ams_mapping_result; std::vector m_filaments_map; - // SendModeSwitchButton* m_mode_print {nullptr}; - // SendModeSwitchButton* m_mode_send {nullptr}; - wxStaticBitmap *m_printer_image{nullptr}; + Slic3r::DynamicPrintConfig m_required_data_config; Slic3r::Model m_required_data_model; @@ -80,8 +76,7 @@ protected: wxBoxSizer * m_basicl_sizer{nullptr}; wxBoxSizer * m_sizer_autorefill{nullptr}; - ScalableButton * m_button_refresh{nullptr}; - ComboBox * m_comboBox_printer{nullptr}; + wxStaticBitmap * m_staticbitmap{nullptr}; wxStaticBitmap * img_amsmapping_tip{nullptr}; ThumbnailPanel * m_thumbnailPanel{nullptr}; @@ -89,8 +84,6 @@ protected: wxPanel * m_basic_panel; wxPanel * m_line_top{nullptr}; Label * m_ams_backup_tip{nullptr}; - - Label * m_stext_printer_title{nullptr}; Label * m_statictext_ams_msg{nullptr}; Label * m_text_printer_msg{nullptr}; wxStaticText * m_staticText_bed_title{nullptr}; @@ -156,6 +149,7 @@ protected: public: void check_empty_project(); + void reinit_dialog(); void init_bind(); void init_timer(); void show_print_failed_info(bool show, int code = 0, wxString description = wxEmptyString, wxString extra = wxEmptyString); @@ -163,7 +157,6 @@ public: void popup_filament_backup(); void prepare_mode(bool refresh_button = true); - void sending_mode(); void finish_mode(); void sync_ams_mapping_result(std::vector &result); void prepare(int print_plate_idx); @@ -195,9 +188,7 @@ public: void unify_deal_thumbnail_data(ThumbnailData &input_data, ThumbnailData &no_light_data,bool allow_clone_ams_color); void change_default_normal(int old_filament_id, wxColour temp_ams_color); void on_timer(wxTimerEvent &event); - void on_selection_changed(wxCommandEvent &event); void update_flow_cali_check(MachineObject *obj); - void Enable_Refresh_Button(bool en); void update_user_machine_list(); void update_lan_machine_list(); void stripWhiteSpace(std::string &str);