mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-09-10 10:47:16 +00:00
ENH: clean codes about device
JIRA: [STUDIO-13609] Change-Id: I591de7033360b9570600006cfbce2148a8d031d5 (cherry picked from commit e9c774be8f4c89b8dafa14ef56913612fb68bd0c)
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user