ENH: update hms panel and upgrade panel when disconnected

Change-Id: I75d724c99ec2029190641cd2cfa22b6337d0060d
Signed-off-by: Stone Li <stone.li@bambulab.com>
This commit is contained in:
Stone Li 2022-11-30 14:29:27 +08:00 committed by Lane.Wei
parent 42633fda28
commit e344f8b8b9
5 changed files with 46 additions and 5 deletions

View file

@ -6,6 +6,7 @@
#include <slic3r/GUI/Widgets/Button.hpp>
#include <slic3r/GUI/DeviceManager.hpp>
#include <slic3r/GUI/Widgets/ScrolledWindow.hpp>
#include <slic3r/GUI/StatusPanel.hpp>
#include <wx/html/htmlwin.h>
namespace Slic3r {
@ -44,6 +45,7 @@ protected:
wxScrolledWindow *m_scrolledWindow;
wxBoxSizer * m_top_sizer;
HMSNotifyItem * m_notify_item;
int last_status;
void append_hms_panel(HMSItem &item);
void delete_hms_panels();
@ -58,6 +60,8 @@ public:
void update(MachineObject *obj_);
void show_status(int status);
MachineObject *obj { nullptr };
};