mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-14 00:52:04 +00:00
Fixes 11 Compiler Warnings (#10753)
* fixes: wxTimerEvent not supposed to be created by user code [-Wdeprecated-declarations] * use wxTimerEvent instead of wxCommandEvent. --------- Co-authored-by: SoftFever <softfeverever@gmail.com>
This commit is contained in:
committed by
GitHub
parent
504a5d3b70
commit
bed3cf154a
@@ -269,7 +269,7 @@ void SelectMObjectPopup::Popup(wxWindow* WXUNUSED(focus))
|
||||
}
|
||||
}
|
||||
|
||||
wxPostEvent(this, wxTimerEvent());
|
||||
wxPostEvent(this, wxTimerEvent(*m_refresh_timer));
|
||||
PopupWindow::Popup();
|
||||
}
|
||||
|
||||
@@ -505,7 +505,7 @@ void CalibrationPanel::init_timer()
|
||||
m_refresh_timer = new wxTimer();
|
||||
m_refresh_timer->SetOwner(this);
|
||||
m_refresh_timer->Start(REFRESH_INTERVAL);
|
||||
wxPostEvent(this, wxTimerEvent());
|
||||
wxPostEvent(this, wxCommandEvent(wxEVT_TIMER));
|
||||
}
|
||||
|
||||
void CalibrationPanel::on_timer(wxTimerEvent& event) {
|
||||
@@ -634,7 +634,7 @@ bool CalibrationPanel::Show(bool show) {
|
||||
m_refresh_timer->Stop();
|
||||
m_refresh_timer->SetOwner(this);
|
||||
m_refresh_timer->Start(REFRESH_INTERVAL);
|
||||
wxPostEvent(this, wxTimerEvent());
|
||||
wxPostEvent(this, wxCommandEvent(wxEVT_TIMER));
|
||||
|
||||
DeviceManager* dev = Slic3r::GUI::wxGetApp().getDeviceManager();
|
||||
if (dev) {
|
||||
|
||||
@@ -653,7 +653,7 @@ void MultiMachineManagerPage::start_timer()
|
||||
|
||||
m_flipping_timer->SetOwner(this);
|
||||
m_flipping_timer->Start(1000);
|
||||
wxPostEvent(this, wxTimerEvent());
|
||||
wxPostEvent(this, wxTimerEvent(*m_flipping_timer));
|
||||
}
|
||||
|
||||
void MultiMachineManagerPage::update_page_number()
|
||||
|
||||
@@ -61,7 +61,7 @@ bool MultiMachinePage::Show(bool show)
|
||||
m_refresh_timer->Stop();
|
||||
m_refresh_timer->SetOwner(this);
|
||||
m_refresh_timer->Start(2000);
|
||||
wxPostEvent(this, wxTimerEvent());
|
||||
wxPostEvent(this, wxTimerEvent(*m_refresh_timer));
|
||||
}
|
||||
else {
|
||||
m_refresh_timer->Stop();
|
||||
@@ -96,7 +96,7 @@ void MultiMachinePage::init_timer()
|
||||
m_refresh_timer = new wxTimer();
|
||||
//m_refresh_timer->SetOwner(this);
|
||||
//m_refresh_timer->Start(8000);
|
||||
//wxPostEvent(this, wxTimerEvent());
|
||||
//wxPostEvent(this, wxTimerEvent(*m_refresh_timer));
|
||||
}
|
||||
|
||||
void MultiMachinePage::on_timer(wxTimerEvent& event)
|
||||
@@ -482,7 +482,7 @@ bool MultiMachinePickPage::Show(bool show)
|
||||
//m_refresh_timer->Stop();
|
||||
//m_refresh_timer->SetOwner(this);
|
||||
//m_refresh_timer->Start(4000);
|
||||
//wxPostEvent(this, wxTimerEvent());
|
||||
//wxPostEvent(this, wxTimerEvent(*m_refresh_timer));
|
||||
}
|
||||
else {
|
||||
//m_refresh_timer->Stop();
|
||||
|
||||
@@ -1402,7 +1402,7 @@ void CloudTaskManagerPage::start_timer()
|
||||
|
||||
m_flipping_timer->SetOwner(this);
|
||||
m_flipping_timer->Start(1000);
|
||||
wxPostEvent(this, wxTimerEvent());
|
||||
wxPostEvent(this, wxTimerEvent(*m_flipping_timer));
|
||||
}
|
||||
|
||||
void CloudTaskManagerPage::on_timer(wxTimerEvent& event)
|
||||
|
||||
@@ -801,7 +801,7 @@ bool SendMultiMachinePage::Show(bool show)
|
||||
m_refresh_timer->Stop();
|
||||
m_refresh_timer->SetOwner(this);
|
||||
m_refresh_timer->Start(4000);
|
||||
wxPostEvent(this, wxTimerEvent());
|
||||
wxPostEvent(this, wxTimerEvent(*m_refresh_timer));
|
||||
}
|
||||
else {
|
||||
m_refresh_timer->Stop();
|
||||
|
||||
Reference in New Issue
Block a user