#include </home/runner/work/OrcaSlicer/OrcaSlicer/src/slic3r/GUI/Widgets/TempInput.hpp>
Public Types | |
| enum | WarningType { WARNING_TOO_HIGH , WARNING_TOO_LOW , WARNING_UNKNOWN } |
Public Member Functions | |
| TempInput () | |
| TempInput (wxWindow *parent, int type, wxString text, TempInputType input_type, wxString label="", wxString normal_icon="", wxString actice_icon="", const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=0) | |
| void | Create (wxWindow *parent, wxString text, wxString label="", wxString normal_icon="", wxString actice_icon="", const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=0) |
| wxString | erasePending (wxString &str) |
| void | SetTagTemp (int temp) |
| void | SetTagTemp (wxString temp) |
| void | SetCurrTemp (int temp) |
| void | SetCurrTemp (wxString temp) |
| void | SetCurrType (TempInputType type) |
| TempInputType | GetCurrType () |
| bool | AllisNum (std::string str) |
| void | SetFinish () |
| void | Warning (bool warn, WarningType type=WARNING_UNKNOWN) |
| void | SetIconActive () |
| void | SetIconNormal () |
| void | SetReadOnly (bool ro) |
| void | SetMaxTemp (int temp) |
| void | SetMinTemp (int temp) |
| void | AddTemp (int temp) |
| int | GetType () |
| wxString | GetTagTemp () |
| wxString | GetCurrTemp () |
| int | get_max_temp () |
| void | SetLabel (const wxString &label) override |
| void | SetTextColor (StateColor const &color) |
| void | SetLabelColor (StateColor const &color) |
| virtual void | Rescale () |
| virtual bool | Enable (bool enable=true) override |
| virtual void | SetMinSize (const wxSize &size) override |
| wxTextCtrl * | GetTextCtrl () |
| wxTextCtrl const * | GetTextCtrl () const |
| bool | IsOnChanging () const |
| void | SetOnChanging () |
| void | ReSetOnChanging () |
Public Attributes | |
| wxPopupTransientWindow * | wdialog {nullptr} |
| int | temp_type |
| bool | actice = false |
| wxString | currentTemp |
Protected Member Functions | |
| virtual void | DoSetSize (int x, int y, int width, int height, int sizeFlags=wxSIZE_AUTO) override |
| void | DoSetToolTipText (wxString const &tip) override |
Private Member Functions | |
| void | ResetWaringDlg () |
| bool | CheckIsValidVal (bool show_warning) |
| void | paintEvent (wxPaintEvent &evt) |
| void | render (wxDC &dc) |
| void | messureMiniSize () |
| void | messureSize () |
| void | mouseMoved (wxMouseEvent &event) |
| void | mouseWheelMoved (wxMouseEvent &event) |
| void | mouseEnterWindow (wxMouseEvent &event) |
| void | mouseLeaveWindow (wxMouseEvent &event) |
| void | keyPressed (wxKeyEvent &event) |
| void | keyReleased (wxKeyEvent &event) |
Private Attributes | |
| bool | hover |
| bool | m_read_only {false} |
| bool | m_on_changing {false} |
| wxSize | labelSize |
| ScalableBitmap | normal_icon |
| ScalableBitmap | actice_icon |
| ScalableBitmap | degree_icon |
| ScalableBitmap | round_scale_hint_icon |
| StateColor | label_color |
| StateColor | text_color |
| wxTextCtrl * | text_ctrl |
| wxStaticText * | warning_text |
| int | max_temp = 0 |
| int | min_temp = 0 |
| std::unordered_set< int > | additional_temps |
| bool | warning_mode = false |
| TempInputType | m_input_type |
| int | padding_left = 0 |
Static Private Attributes | |
| static const int | TempInputWidth = 200 |
| static const int | TempInputHeight = 50 |
| Enumerator | |
|---|---|
| WARNING_TOO_HIGH | |
| WARNING_TOO_LOW | |
| WARNING_UNKNOWN | |
| TempInput::TempInput | ( | ) |
References TempInput(), Label::Body_12, StateColor::Disabled, StateColor::Focused, hover, StateColor::Hovered, label_color, StateColor::Normal, and text_color.
Referenced by TempInput(), and TempInput().
| TempInput::TempInput | ( | wxWindow * | parent, |
| int | type, | ||
| wxString | text, | ||
| TempInputType | input_type, | ||
| wxString | label = "", | ||
| wxString | normal_icon = "", | ||
| wxString | actice_icon = "", | ||
| const wxPoint & | pos = wxDefaultPosition, | ||
| const wxSize & | size = wxDefaultSize, | ||
| long | style = 0 ) |
References TempInput(), actice, actice_icon, Create(), m_input_type, normal_icon, style, and temp_type.
|
inline |
References additional_temps.
| bool TempInput::AllisNum | ( | std::string | str | ) |
Referenced by CheckIsValidVal().
|
private |
References additional_temps, AllisNum(), max_temp, min_temp, text_ctrl, Warning, WARNING_TOO_HIGH, and WARNING_TOO_LOW.
Referenced by Create().
| void TempInput::Create | ( | wxWindow * | parent, |
| wxString | text, | ||
| wxString | label = "", | ||
| wxString | normal_icon = "", | ||
| wxString | actice_icon = "", | ||
| const wxPoint & | pos = wxDefaultPosition, | ||
| const wxSize & | size = wxDefaultSize, | ||
| long | style = 0 ) |
References actice_icon, Label::Body_13, CheckIsValidVal(), StaticBox::Create(), StateColor::darkModeColorFor(), degree_icon, label_color, m_on_changing, m_read_only, messureSize(), normal_icon, ReSetOnChanging(), ResetWaringDlg(), round_scale_hint_icon, SetFinish(), SetOnChanging(), style, text_color, text_ctrl, and wdialog.
Referenced by TempInput().
|
overrideprotectedvirtual |
References Label::Body_12, Label::Head_14, labelSize, m_input_type, normal_icon, padding_left, round_scale_hint_icon, TEMP_OF_DEPUTY_NOZZLE_TYPE, TEMP_OF_MAIN_NOZZLE_TYPE, and text_ctrl.
|
overrideprotected |
|
overridevirtual |
| wxString TempInput::erasePending | ( | wxString & | str | ) |
|
inline |
|
inline |
References m_input_type.
|
inline |
|
inline |
|
inline |
References m_on_changing.
|
private |
|
private |
|
private |
References Label::Body_12, degree_icon, Label::Head_14, labelSize, m_input_type, normal_icon, padding_left, round_scale_hint_icon, TEMP_OF_DEPUTY_NOZZLE_TYPE, TEMP_OF_MAIN_NOZZLE_TYPE, and text_ctrl.
Referenced by SetMinSize().
|
private |
References Label::Body_12, degree_icon, Label::Head_14, labelSize, m_input_type, normal_icon, padding_left, round_scale_hint_icon, SetMinSize(), TEMP_OF_DEPUTY_NOZZLE_TYPE, TEMP_OF_MAIN_NOZZLE_TYPE, and text_ctrl.
Referenced by Create(), Rescale(), SetLabel(), SetTagTemp(), and SetTagTemp().
|
private |
|
private |
|
private |
|
private |
|
private |
References render().
Referenced by wxDEFINE_EVENT().
|
private |
References actice, actice_icon, ScalableBitmap::bmp(), Label::Body_12, StateColor::darkModeColorFor(), degree_icon, StateColor::Disabled, StateColor::Focused, ScalableBitmap::GetBmpSize(), Label::Head_14, StateColor::Hovered, labelSize, m_input_type, ScalableBitmap::msw_rescale(), StateColor::Normal, normal_icon, padding_left, StaticBox::render(), TEMP_OF_DEPUTY_NOZZLE_TYPE, TEMP_OF_MAIN_NOZZLE_TYPE, text_color, text_ctrl, and warning_mode.
Referenced by paintEvent().
|
virtual |
References actice_icon, degree_icon, messureSize(), normal_icon, and round_scale_hint_icon.
|
inline |
|
private |
References Warning, warning_mode, WARNING_TOO_HIGH, and wdialog.
Referenced by Create().
| void TempInput::SetCurrTemp | ( | int | temp | ) |
References SetLabel().
| void TempInput::SetCurrTemp | ( | wxString | temp | ) |
| void TempInput::SetCurrType | ( | TempInputType | type | ) |
References m_input_type.
| void TempInput::SetFinish | ( | ) |
References m_input_type, and temp_type.
Referenced by Create().
|
override |
References messureSize().
Referenced by SetCurrTemp(), and SetCurrTemp().
| void TempInput::SetLabelColor | ( | StateColor const & | color | ) |
References label_color.
|
overridevirtual |
References messureMiniSize().
Referenced by messureSize().
|
inline |
|
inline |
References m_read_only.
| void TempInput::SetTagTemp | ( | int | temp | ) |
References messureSize(), and text_ctrl.
| void TempInput::SetTagTemp | ( | wxString | temp | ) |
References messureSize(), and text_ctrl.
| void TempInput::SetTextColor | ( | StateColor const & | color | ) |
References text_color.
| void TempInput::Warning | ( | bool | warn, |
| WarningType | type = WARNING_UNKNOWN ) |
References _L, Label::Body_12, max_temp, min_temp, text_ctrl, warning_mode, warning_text, WARNING_TOO_HIGH, WARNING_TOO_LOW, wdialog, and wxStaticText.
| bool TempInput::actice = false |
Referenced by TempInput(), render(), SetIconActive(), and SetIconNormal().
|
private |
Referenced by TempInput(), Create(), render(), and Rescale().
|
private |
Referenced by AddTemp(), and CheckIsValidVal().
| wxString TempInput::currentTemp |
|
private |
Referenced by Create(), messureMiniSize(), messureSize(), render(), and Rescale().
|
private |
Referenced by TempInput(), mouseEnterWindow(), and mouseLeaveWindow().
|
private |
Referenced by TempInput(), Create(), and SetLabelColor().
|
private |
Referenced by DoSetSize(), messureMiniSize(), messureSize(), and render().
|
private |
Referenced by TempInput(), DoSetSize(), GetCurrType(), messureMiniSize(), messureSize(), render(), SetCurrType(), and SetFinish().
|
private |
Referenced by Create(), IsOnChanging(), ReSetOnChanging(), and SetOnChanging().
|
private |
Referenced by Create(), and SetReadOnly().
|
private |
Referenced by CheckIsValidVal(), get_max_temp(), SetMaxTemp(), and Warning().
|
private |
Referenced by CheckIsValidVal(), SetMinTemp(), and Warning().
|
private |
Referenced by TempInput(), Create(), DoSetSize(), messureMiniSize(), messureSize(), render(), and Rescale().
|
private |
Referenced by DoSetSize(), messureMiniSize(), messureSize(), and render().
|
private |
Referenced by Create(), DoSetSize(), messureMiniSize(), messureSize(), and Rescale().
| int TempInput::temp_type |
Referenced by TempInput(), GetType(), and SetFinish().
|
staticprivate |
|
staticprivate |
|
private |
Referenced by TempInput(), Create(), render(), and SetTextColor().
|
private |
Referenced by CheckIsValidVal(), Create(), DoSetSize(), DoSetToolTipText(), GetTagTemp(), GetTextCtrl(), GetTextCtrl(), messureMiniSize(), messureSize(), render(), SetTagTemp(), SetTagTemp(), and Warning().
|
private |
Referenced by render(), ResetWaringDlg(), and Warning().
|
private |
Referenced by Warning().
| wxPopupTransientWindow* TempInput::wdialog {nullptr} |
Referenced by Create(), ResetWaringDlg(), and Warning().