ENH: Restrictions on setting the air duct mode during printing

JIRA: STUDIO-9350

Change-Id: Ie6442eccfef78d5431316f91b68fd0e55d4644aa
(cherry picked from commit eaafe82f6f14462a1043db944f8e6763a822de12)
This commit is contained in:
Kunlong Ma
2024-12-30 17:37:12 +08:00
committed by Noisyfox
parent 3488ac6292
commit 81c7c8f9dc
2 changed files with 42 additions and 5 deletions

View File

@@ -90,7 +90,7 @@ Description:FanOperate
class FanOperate : public wxWindow
{
public:
FanOperate(wxWindow* parent, wxWindowID id, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize);
FanOperate(wxWindow *parent, wxWindowID id, const wxPoint &pos = wxDefaultPosition, const wxSize &size = wxDefaultSize);
~FanOperate() {};
void post_event(wxCommandEvent&& event);
void paintEvent(wxPaintEvent& evt);
@@ -100,6 +100,8 @@ public:
void create(wxWindow* parent, wxWindowID id, const wxPoint& pos, const wxSize& size);
void on_left_down(wxMouseEvent& event);
void set_machine_obj(MachineObject *obj);
public:
void set_fan_speeds(int g);
void add_fan_speeds();
@@ -111,6 +113,8 @@ private:
int m_max_speeds;
ScalableBitmap m_bitmap_add;
ScalableBitmap m_bitmap_decrease;
MachineObject* m_obj;
};