ENH: refresh nozzle info from studio

Jira: [STUDIO-13650]
Change-Id: I12dc26d5730c761ccc91d3a4a5f120d422d8a0ff
(cherry picked from commit 2bd7cd9a6a4d9c3370491fb4323a1aabe9a45578)
This commit is contained in:
hemai
2025-07-31 16:00:47 +08:00
committed by Noisyfox
parent eeaaf2eca9
commit e377d96e37
8 changed files with 177 additions and 14 deletions

View File

@@ -11,6 +11,7 @@
#include "GUI_Utils.hpp"
#include "wxExtensions.hpp"
#include "DeviceManager.hpp"
#include "Widgets/Button.hpp"
#include "Widgets/Label.hpp"
#include "Widgets/CheckBox.hpp"
#include "Widgets/StaticLine.hpp"
@@ -33,6 +34,8 @@ protected:
ComboBox* nozzle_flow_type_checkbox;
Label *change_nozzle_tips;
Label* m_wiki_link;
Button* m_single_update_nozzle_button;
Button* m_multiple_update_nozzle_button;
ComboBox* multiple_left_nozzle_type_checkbox;
ComboBox *multiple_left_nozzle_diameter_checkbox;
@@ -55,10 +58,12 @@ public:
void on_dpi_changed(const wxRect& suggested_rect) override;
void update_machine_obj(MachineObject* obj_);
bool Show(bool show) override;
void UpdateNozzleInfo();
private:
void EnableEditing(bool enable);
void OnWikiClicked(wxMouseEvent& e);
void OnNozzleRefresh(wxCommandEvent& e);
wxString GetString(NozzleType nozzle_type) const;
wxString GetString(NozzleFlowType nozzle_flow_type) const;