#include </home/runner/work/OrcaSlicer/OrcaSlicer/src/slic3r/GUI/SelectMachine.hpp>
Public Member Functions | |
| PrintOption (wxWindow *parent, wxString title, wxString tips, std::vector< POItem > ops, std::string param="") | |
| ~PrintOption () | |
| void | enable (bool en) |
| void | setValue (std::string value) |
| std::string | getValue () |
| int | getValueInt () |
| std::string | getParam () const |
| bool | contain_opt (const std::string &opt_str) const |
| void | update_options (std::vector< POItem > ops, const wxString &tips) |
| void | update_tooltip (const wxString &tips) |
| void | update_title_display () |
| void | insert_extra_widget (wxWindow *widget) |
| void | msw_rescale () |
| bool | CanBeFocused () const override |
Private Member Functions | |
| void | OnPaint (wxPaintEvent &event) |
| void | render (wxDC &dc) |
| void | doRender (wxDC &dc) |
Private Attributes | |
| std::string | m_param |
| std::vector< POItem > | m_ops |
| Label * | m_printoption_title {nullptr} |
| ScalableButton * | m_printoption_tips { nullptr } |
| PrintOptionItem * | m_printoption_item {nullptr} |
| wxString | m_full_title |
| Slic3r::GUI::PrintOption::PrintOption | ( | wxWindow * | parent, |
| wxString | title, | ||
| wxString | tips, | ||
| std::vector< POItem > | ops, | ||
| std::string | param = "" ) |
References Label::Body_13, StateColor::darkModeColorFor(), m_full_title, m_ops, m_param, m_printoption_item, m_printoption_tips, m_printoption_title, OnPaint(), update_title_display(), and update_tooltip().
|
inline |
|
inlineoverride |
| bool Slic3r::GUI::PrintOption::contain_opt | ( | const std::string & | opt_str | ) | const |
|
private |
| void Slic3r::GUI::PrintOption::enable | ( | bool | en | ) |
References StateColor::darkModeColorFor(), m_printoption_item, and m_printoption_title.
|
inline |
| std::string Slic3r::GUI::PrintOption::getValue | ( | ) |
References m_printoption_item.
| int Slic3r::GUI::PrintOption::getValueInt | ( | ) |
References m_printoption_item.
| void Slic3r::GUI::PrintOption::insert_extra_widget | ( | wxWindow * | widget | ) |
| void Slic3r::GUI::PrintOption::msw_rescale | ( | ) |
References m_printoption_item, m_printoption_tips, and update_title_display().
|
private |
References doRender().
Referenced by PrintOption().
|
private |
References doRender().
| void Slic3r::GUI::PrintOption::setValue | ( | std::string | value | ) |
References m_printoption_item.
| void Slic3r::GUI::PrintOption::update_options | ( | std::vector< POItem > | ops, |
| const wxString & | tips ) |
References m_ops, m_printoption_item, and update_tooltip().
| void Slic3r::GUI::PrintOption::update_title_display | ( | ) |
References m_full_title, and m_printoption_title.
Referenced by PrintOption(), and msw_rescale().
| void Slic3r::GUI::PrintOption::update_tooltip | ( | const wxString & | tips | ) |
References m_printoption_tips.
Referenced by PrintOption(), and update_options().
|
private |
Referenced by PrintOption(), and update_title_display().
|
private |
Referenced by PrintOption(), contain_opt(), and update_options().
|
private |
Referenced by PrintOption(), and getParam().
|
private |
Referenced by PrintOption(), enable(), getValue(), getValueInt(), msw_rescale(), setValue(), and update_options().
|
private |
Referenced by PrintOption(), msw_rescale(), and update_tooltip().
Referenced by PrintOption(), enable(), and update_title_display().