FIX: use dialog instead of popup window

jira: [STUDIO-10692]
Change-Id: I85e8da120946fc6ff845c9b88d4f1594e313652b
(cherry picked from commit 7115c1ca177e98c2931517d748ce4d63d3a067da)
This commit is contained in:
xin.zhang
2025-03-05 16:04:39 +08:00
committed by Noisyfox
parent 5807353e24
commit 740f7eabb1
3 changed files with 3 additions and 14 deletions

View File

@@ -174,7 +174,7 @@ public:
};
class FanControlPopupNew : public PopupWindow
class FanControlPopupNew : public wxDialog
{
public:
FanControlPopupNew(wxWindow* parent, MachineObject* obj, const AirDuctData& data);
@@ -248,8 +248,6 @@ public:
void post_event(int fan_type, wxString speed);
void on_show(wxShowEvent& evt);
void command_control_air_duct(int mode_id);
virtual void OnDismiss() wxOVERRIDE;
virtual bool ProcessLeftDown(wxMouseEvent& event) wxOVERRIDE;
};
wxDECLARE_EVENT(EVT_FAN_SWITCH_ON, wxCommandEvent);
wxDECLARE_EVENT(EVT_FAN_SWITCH_OFF, wxCommandEvent);