#include </home/runner/work/OrcaSlicer/OrcaSlicer/src/slic3r/GUI/Widgets/FanControl.hpp>
Public Member Functions | |
| FanControlNew (wxWindow *parent, const AirDuctData &fan_data, int mode_id, int part_id, wxWindowID id=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize) | |
| ~FanControlNew () | |
| void | update_obj_state (bool stat) |
| void | update_fan_data (const AirDuctData &data) |
| void | command_control_fan () |
| bool | check_printing_state () |
| void | set_machine_obj (MachineObject *obj) |
| void | set_name (wxString name) |
| void | set_mode_id (int id) |
| void | set_part_id (int id) |
| void | set_fan_speed (int g) |
| void | set_fan_speed_percent (int speed) |
| void | set_fan_switch (bool s) |
| void | post_event () |
| void | on_swith_fan (wxMouseEvent &evt) |
| void | on_swith_fan (bool on) |
| void | update_mode () |
| void | on_left_down (wxMouseEvent &event) |
| void | on_mode_change (wxMouseEvent &event) |
| void | msw_rescale () |
Public Attributes | |
| wxStaticBitmap * | m_static_bitmap_fan { nullptr} |
| wxStaticBitmap * | m_switch_button { nullptr } |
Protected Attributes | |
| MachineObject * | m_obj |
| wxStaticText * | m_static_name { nullptr } |
| int | m_fan_id |
| ScalableBitmap * | m_bitmap_fan { nullptr } |
| ScalableBitmap * | m_bitmap_toggle_off { nullptr } |
| ScalableBitmap * | m_bitmap_toggle_on { nullptr } |
| FanOperate * | m_fan_operate { nullptr } |
| bool | m_switch_fan { false } |
| bool | m_update_already { false } |
| int | m_current_speed { 0 } |
| int | m_part_id {0} |
| int | m_mode_id {0} |
| wxBoxSizer * | m_sizer_control_bottom { nullptr } |
| wxStaticText * | m_static_status_name {nullptr} |
| int | m_show_mode {0} |
| AirDuctData | m_fan_data |
| bool | m_new_protocol { false } |
| std::shared_ptr< FanControlNew > | token |
| Slic3r::GUI::FanControlNew::FanControlNew | ( | wxWindow * | parent, |
| const AirDuctData & | fan_data, | ||
| int | mode_id, | ||
| int | part_id, | ||
| wxWindowID | id = wxID_ANY, | ||
| const wxPoint & | pos = wxDefaultPosition, | ||
| const wxSize & | size = wxDefaultSize ) |
References command_control_fan(), Label::Head_16, m_bitmap_fan, m_bitmap_toggle_off, m_bitmap_toggle_on, m_current_speed, m_fan_data, m_fan_operate, m_mode_id, m_part_id, m_sizer_control_bottom, m_static_bitmap_fan, m_static_name, m_static_status_name, m_switch_button, m_switch_fan, on_left_down(), on_swith_fan(), update_mode(), and wxStaticText.
|
inline |
| bool Slic3r::GUI::FanControlNew::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 on_swith_fan().
| void Slic3r::GUI::FanControlNew::command_control_fan | ( | ) |
References m_current_speed, m_obj, m_part_id, and post_event().
Referenced by FanControlNew(), and on_swith_fan().
| void Slic3r::GUI::FanControlNew::msw_rescale | ( | ) |
References m_bitmap_fan, m_bitmap_toggle_off, m_bitmap_toggle_on, m_fan_operate, m_static_bitmap_fan, m_switch_button, and m_switch_fan.
| void Slic3r::GUI::FanControlNew::on_left_down | ( | wxMouseEvent & | event | ) |
References m_fan_operate, and Slic3r::GUI::wxMouseEvent.
Referenced by FanControlNew().
| void Slic3r::GUI::FanControlNew::on_mode_change | ( | wxMouseEvent & | event | ) |
References Slic3r::GUI::wxMouseEvent.
| void Slic3r::GUI::FanControlNew::on_swith_fan | ( | bool | on | ) |
References m_bitmap_toggle_off, m_bitmap_toggle_on, m_switch_button, and m_switch_fan.
| void Slic3r::GUI::FanControlNew::on_swith_fan | ( | wxMouseEvent & | evt | ) |
References check_printing_state(), command_control_fan(), m_bitmap_toggle_off, m_bitmap_toggle_on, m_switch_button, m_switch_fan, set_fan_speed(), and Slic3r::GUI::wxMouseEvent.
Referenced by FanControlNew(), set_fan_speed(), and set_fan_speed_percent().
| void Slic3r::GUI::FanControlNew::post_event | ( | ) |
References m_current_speed.
Referenced by command_control_fan().
| void Slic3r::GUI::FanControlNew::set_fan_speed | ( | int | g | ) |
References m_current_speed, m_fan_operate, and on_swith_fan().
Referenced by on_swith_fan().
| void Slic3r::GUI::FanControlNew::set_fan_speed_percent | ( | int | speed | ) |
References m_current_speed, m_fan_operate, and on_swith_fan().
| void Slic3r::GUI::FanControlNew::set_fan_switch | ( | bool | s | ) |
| void Slic3r::GUI::FanControlNew::set_machine_obj | ( | MachineObject * | obj | ) |
References m_fan_operate, m_obj, and m_update_already.
|
inline |
| void Slic3r::GUI::FanControlNew::set_name | ( | wxString | name | ) |
References m_static_name.
|
inline |
|
inline |
References m_fan_data.
| void Slic3r::GUI::FanControlNew::update_mode | ( | ) |
References _L, m_fan_data, m_fan_operate, m_mode_id, m_part_id, m_show_mode, m_static_status_name, and m_switch_button.
Referenced by FanControlNew().
|
inline |
References m_update_already.
|
protected |
Referenced by FanControlNew(), and msw_rescale().
|
protected |
Referenced by FanControlNew(), msw_rescale(), on_swith_fan(), and on_swith_fan().
|
protected |
Referenced by FanControlNew(), msw_rescale(), on_swith_fan(), and on_swith_fan().
|
protected |
Referenced by FanControlNew(), command_control_fan(), post_event(), set_fan_speed(), and set_fan_speed_percent().
|
protected |
Referenced by FanControlNew(), update_fan_data(), and update_mode().
|
protected |
|
protected |
Referenced by FanControlNew(), msw_rescale(), on_left_down(), set_fan_speed(), set_fan_speed_percent(), set_machine_obj(), and update_mode().
|
protected |
Referenced by FanControlNew(), set_mode_id(), and update_mode().
|
protected |
|
protected |
Referenced by check_printing_state(), command_control_fan(), and set_machine_obj().
|
protected |
Referenced by FanControlNew(), command_control_fan(), set_part_id(), and update_mode().
|
protected |
Referenced by update_mode().
|
protected |
Referenced by FanControlNew().
| wxStaticBitmap* Slic3r::GUI::FanControlNew::m_static_bitmap_fan { nullptr} |
Referenced by FanControlNew(), and msw_rescale().
|
protected |
Referenced by FanControlNew(), and set_name().
|
protected |
Referenced by FanControlNew(), and update_mode().
| wxStaticBitmap* Slic3r::GUI::FanControlNew::m_switch_button { nullptr } |
Referenced by FanControlNew(), msw_rescale(), on_swith_fan(), on_swith_fan(), and update_mode().
|
protected |
Referenced by FanControlNew(), msw_rescale(), on_swith_fan(), and on_swith_fan().
|
protected |
Referenced by set_machine_obj(), and update_obj_state().
|
protected |