mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-12 17:27:52 -06:00
ENH: add hint dialogs for firmware upgrade
Change-Id: Iff34e4543d50074db05280fec8178029c4531e00 (cherry picked from commit 6f98eda25c722ecb6e0b6f4926972031c00bc366)
This commit is contained in:
parent
37d6efdbef
commit
83a9c259f7
7 changed files with 308 additions and 12 deletions
|
@ -78,7 +78,6 @@ protected:
|
|||
std::string last_status_str = "";
|
||||
|
||||
void upgrade_firmware_internal();
|
||||
void on_upgrade_firmware(wxCommandEvent &event);
|
||||
void on_show_release_note(wxMouseEvent &event);
|
||||
|
||||
public:
|
||||
|
@ -98,6 +97,9 @@ public:
|
|||
void show_status(int status, std::string upgrade_status_str = "");
|
||||
void show_ams(bool show = false, bool force_update = false);
|
||||
|
||||
void on_upgrade_firmware(wxCommandEvent &event);
|
||||
void on_consisitency_upgrade_firmware(wxCommandEvent &event);
|
||||
|
||||
MachineObject *m_obj{nullptr};
|
||||
FirmwareInfo m_ota_info;
|
||||
FirmwareInfo m_ams_info;
|
||||
|
@ -129,6 +131,11 @@ protected:
|
|||
//enable_select_firmware only in debug mode
|
||||
bool enable_select_firmware = false;
|
||||
bool m_need_update = false;
|
||||
//hint of force upgrade or consistency upgrade
|
||||
int last_forced_hint_status = -1;
|
||||
int last_consistency_hint_status = -1;
|
||||
bool m_show_forced_hint = true;
|
||||
bool m_show_consistency_hint = true;
|
||||
|
||||
public:
|
||||
UpgradePanel(wxWindow *parent, wxWindowID id = wxID_ANY, const wxPoint &pos = wxDefaultPosition, const wxSize &size = wxDefaultSize, long style = wxTAB_TRAVERSAL);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue