#include </home/runner/work/OrcaSlicer/OrcaSlicer/src/slic3r/GUI/Widgets/FanControl.hpp>
Public Member Functions | |
| FanOperate (wxWindow *parent, wxWindowID id, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize) | |
| ~FanOperate () | |
| void | post_event (wxCommandEvent &&event) |
| void | paintEvent (wxPaintEvent &evt) |
| void | render (wxDC &dc) |
| void | doRender (wxDC &dc) |
| void | msw_rescale () |
| void | create (wxWindow *parent, wxWindowID id, const wxPoint &pos, const wxSize &size) |
| void | on_left_down (wxMouseEvent &event) |
| void | set_machine_obj (MachineObject *obj) |
| void | set_fan_speeds (int g) |
| bool | check_printing_state () |
| void | add_fan_speeds () |
| void | decrease_fan_speeds () |
Private Attributes | |
| int | m_current_speeds |
| int | m_min_speeds |
| int | m_max_speeds |
| ScalableBitmap | m_bitmap_add |
| ScalableBitmap | m_bitmap_decrease |
| MachineObject * | m_obj |
| Slic3r::GUI::FanOperate::FanOperate | ( | wxWindow * | parent, |
| wxWindowID | id, | ||
| const wxPoint & | pos = wxDefaultPosition, | ||
| const wxSize & | size = wxDefaultSize ) |
References create(), m_current_speeds, m_max_speeds, and m_min_speeds.
|
inline |
| void Slic3r::GUI::FanOperate::add_fan_speeds | ( | ) |
References check_printing_state(), m_current_speeds, m_max_speeds, post_event(), and set_fan_speeds().
Referenced by on_left_down().
| bool Slic3r::GUI::FanOperate::check_printing_state | ( | ) |
References _L, m_obj, Slic3r::GUI::not_show_fan_speed_warning_dlg, Slic3r::GUI::MsgDialog::SetButtonLabel(), and Slic3r::GUI::DPIAware< P >::ShowModal().
Referenced by add_fan_speeds(), and decrease_fan_speeds().
| void Slic3r::GUI::FanOperate::create | ( | wxWindow * | parent, |
| wxWindowID | id, | ||
| const wxPoint & | pos, | ||
| const wxSize & | size ) |
References m_bitmap_add, m_bitmap_decrease, on_left_down(), paintEvent(), and SIZE_OF_FAN_OPERATE.
Referenced by FanOperate().
| void Slic3r::GUI::FanOperate::decrease_fan_speeds | ( | ) |
References check_printing_state(), m_current_speeds, m_min_speeds, post_event(), and set_fan_speeds().
Referenced by on_left_down().
| void Slic3r::GUI::FanOperate::doRender | ( | wxDC & | dc | ) |
References Label::Body_12, StateColor::darkModeColorFor(), DRAW_OPERATE_LINE_COLOUR, m_bitmap_add, m_bitmap_decrease, and m_current_speeds.
Referenced by render().
| void Slic3r::GUI::FanOperate::msw_rescale | ( | ) |
References m_bitmap_add, and m_bitmap_decrease.
| void Slic3r::GUI::FanOperate::on_left_down | ( | wxMouseEvent & | event | ) |
References add_fan_speeds(), decrease_fan_speeds(), and Slic3r::GUI::wxMouseEvent.
Referenced by create().
| void Slic3r::GUI::FanOperate::paintEvent | ( | wxPaintEvent & | evt | ) |
| void Slic3r::GUI::FanOperate::post_event | ( | wxCommandEvent && | event | ) |
References m_current_speeds.
Referenced by add_fan_speeds(), and decrease_fan_speeds().
| void Slic3r::GUI::FanOperate::render | ( | wxDC & | dc | ) |
References doRender().
Referenced by paintEvent().
| void Slic3r::GUI::FanOperate::set_fan_speeds | ( | int | g | ) |
References m_current_speeds.
Referenced by add_fan_speeds(), and decrease_fan_speeds().
| void Slic3r::GUI::FanOperate::set_machine_obj | ( | MachineObject * | obj | ) |
|
private |
Referenced by create(), doRender(), and msw_rescale().
|
private |
Referenced by create(), doRender(), and msw_rescale().
|
private |
Referenced by FanOperate(), add_fan_speeds(), decrease_fan_speeds(), doRender(), post_event(), and set_fan_speeds().
|
private |
Referenced by FanOperate(), and add_fan_speeds().
|
private |
Referenced by FanOperate(), and decrease_fan_speeds().
|
private |
Referenced by check_printing_state(), and set_machine_obj().