mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-14 02:07:54 -06:00
NEW: add HMS to query hms info
display hms msg in HMS tab of Monitor Change-Id: I4df1c63b104463ba62cdf7eb079a540a4176f8c5 Signed-off-by: Stone Li <stone.li@bambulab.com> (cherry picked from commit f4635d18f3383e70177536dfbe5edf2e1370b746)
This commit is contained in:
parent
efd20d0a84
commit
73e4078348
17 changed files with 385 additions and 128 deletions
|
@ -2,6 +2,7 @@
|
|||
#include <slic3r/GUI/Widgets/Label.hpp>
|
||||
#include <slic3r/GUI/I18N.hpp>
|
||||
#include "GUI.hpp"
|
||||
#include "GUI_App.hpp"
|
||||
|
||||
namespace Slic3r {
|
||||
namespace GUI {
|
||||
|
@ -34,7 +35,7 @@ HMSPanel::HMSPanel(wxWindow *parent, wxWindowID id, const wxPoint &pos, const wx
|
|||
}
|
||||
|
||||
HMSPanel::~HMSPanel() {
|
||||
|
||||
;
|
||||
}
|
||||
|
||||
void HMSPanel::update(MachineObject *obj)
|
||||
|
@ -42,12 +43,8 @@ void HMSPanel::update(MachineObject *obj)
|
|||
if (obj) {
|
||||
wxString hms_text;
|
||||
for (auto item : obj->hms_list) {
|
||||
hms_text += wxString::Format("Module_ID = %s, module_num = %d,part_id = %d, msg level = %s msg code: 0x%x\n",
|
||||
HMSItem::get_module_name(item.module_id),
|
||||
item.module_num,
|
||||
item.part_id,
|
||||
HMSItem::get_hms_msg_level_str(item.msg_level),
|
||||
(unsigned)item.msg_code);
|
||||
if (wxGetApp().get_hms_query())
|
||||
hms_text += wxGetApp().get_hms_query()->query_hms_msg(item.get_long_error_code()) + "\n";
|
||||
}
|
||||
m_hms_content->SetLabelText(hms_text);
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue