ENH: clean codes about device

JIRA: [STUDIO-13609]
Change-Id: I591de7033360b9570600006cfbce2148a8d031d5
(cherry picked from commit e9c774be8f4c89b8dafa14ef56913612fb68bd0c)
This commit is contained in:
xin.zhang
2025-08-01 17:34:35 +08:00
committed by Noisyfox
parent e17c8bfb80
commit 4a787f6ff8
115 changed files with 7238 additions and 5492 deletions

View File

@@ -9,12 +9,14 @@
#include <slic3r/GUI/StatusPanel.hpp>
#include <wx/html/htmlwin.h>
#include "DeviceCore/DevHMS.h"
namespace Slic3r {
namespace GUI {
class HMSNotifyItem : public wxPanel
{
HMSItem & m_hms_item;
DevHMSItem & m_hms_item;
std::string m_url;
std::string dev_id;
std::string long_error_code;
@@ -35,7 +37,7 @@ class HMSNotifyItem : public wxPanel
wxBitmap & get_notify_bitmap();
public:
HMSNotifyItem(const std::string& dev_id, wxWindow *parent, HMSItem& item);
HMSNotifyItem(const std::string& dev_id, wxWindow *parent, DevHMSItem& item);
~HMSNotifyItem();
void msw_rescale() {}
@@ -50,7 +52,7 @@ protected:
int last_status;
void append_hms_panel(const std::string& dev_id, HMSItem &item);
void append_hms_panel(const std::string& dev_id, DevHMSItem &item);
void delete_hms_panels();
@@ -69,7 +71,7 @@ public:
void clear_hms_tag();
MachineObject *obj { nullptr };
std::map<std::string, HMSItem> temp_hms_list;
std::map<std::string, DevHMSItem> temp_hms_list;
};
wxDECLARE_EVENT(EVT_ALREADY_READ_HMS, wxCommandEvent);