![]() |
Prusa Slicer 2.6.0
|
#include <src/slic3r/GUI/Field.hpp>
Inheritance diagram for Slic3r::GUI::Choice:
Collaboration diagram for Slic3r::GUI::Choice:Public Member Functions | |
| Choice (const ConfigOptionDef &opt, const t_config_option_key &id) | |
| Choice (wxWindow *parent, const ConfigOptionDef &opt, const t_config_option_key &id) | |
| ~Choice () | |
| void | BUILD () override |
| Finish constructing the Field's wxWidget-related properties, including setting its own sizer, etc. | |
| void | propagate_value () |
| void | set_selection () |
| void | set_value (const std::string &value, bool change_event=false) |
| Redundant? | |
| void | set_value (const boost::any &value, bool change_event=false) override |
| Sets a value for this control. subclasses should overload with a specific version Postcondition: Method does not fire the on_change event. | |
| void | set_values (const std::vector< std::string > &values) |
| it's needed for _update_serial_ports() | |
| void | set_values (const wxArrayString &values) |
| boost::any & | get_value () override |
| Gets a boost::any representing this control. subclasses should overload with a specific version. | |
| void | msw_rescale () override |
| void | enable () override |
| void | disable () override |
| wxWindow * | getWindow () override |
| void | suppress_scroll () |
| void | on_back_to_initial_value () |
| Call the attached m_back_to_initial_value method. | |
| void | on_back_to_sys_value () |
| Call the attached m_back_to_sys_value method. | |
| virtual void | set_last_meaningful_value () |
| virtual void | set_na_value () |
| void | toggle (bool en) |
| Fires the enable or disable function, based on the input. | |
| virtual wxString | get_tooltip_text (const wxString &default_string) |
| void | field_changed () |
| virtual wxSizer * | getSizer () |
| If you don't know what you are getting back, check both methods for nullptr. | |
| bool | is_matched (const std::string &string, const std::string &pattern) |
| void | get_value_by_opt_type (wxString &str, const bool check_value=true) |
| virtual void | sys_color_changed () |
| bool | get_enter_pressed () const |
| void | set_enter_pressed (bool pressed) |
| bool | set_undo_bitmap (const ScalableBitmap *bmp) |
| bool | set_undo_to_sys_bitmap (const ScalableBitmap *bmp) |
| bool | set_label_colour (const wxColour *clr) |
| bool | set_undo_tooltip (const wxString *tip) |
| bool | set_undo_to_sys_tooltip (const wxString *tip) |
| bool | has_undo_ui () const |
| const wxBitmapBundle & | undo_bitmap () const |
| const wxString * | undo_tooltip () const |
| const wxBitmapBundle & | undo_to_sys_bitmap () const |
| const wxString * | undo_to_sys_tooltip () const |
| const wxColour * | label_color () const |
| const bool | blink () const |
| bool * | get_blink_ptr () |
Static Public Member Functions | |
| template<class T > | |
| static t_field | Create (wxWindow *parent, const ConfigOptionDef &opt, const t_config_option_key &id) |
| Factory method for generating new derived classes. | |
| static int | def_width () |
| static int | def_width_wider () |
| static int | def_width_thinner () |
Public Attributes | |
| wxWindow * | window { nullptr } |
| bool | m_is_editable { false } |
| bool | m_is_dropped { false } |
| bool | m_suppress_scroll { false } |
| int | m_last_selected { wxNOT_FOUND } |
| wxWindow * | m_parent {nullptr} |
| parent wx item, opportunity to refactor (probably not necessary - data duplication) | |
| t_kill_focus | m_on_kill_focus {nullptr} |
| Function object to store callback passed in from owning object. | |
| t_change | m_on_change {nullptr} |
| Function object to store callback passed in from owning object. | |
| t_back_to_init | m_back_to_initial_value { nullptr } |
| Function object to store callback passed in from owning object. | |
| t_back_to_init | m_back_to_sys_value { nullptr } |
| bool | m_disable_change_event {false} |
| bool | m_is_modified_value {false} |
| bool | m_is_nonsys_value {true} |
| const ConfigOptionDef | m_opt {ConfigOptionDef()} |
| Copy of ConfigOption for deduction purposes. | |
| const t_config_option_key | m_opt_id |
| int | m_opt_idx = 0 |
| {""}; | |
| double | opt_height { 0.0 } |
| bool | parent_is_custom_ctrl { false } |
Protected Member Functions | |
| virtual void | PostInitialize () |
| void | on_kill_focus () |
| Call the attached on_kill_focus method. It's important to use wxEvent instead of wxFocusEvent, in another case we can't unfocused control at all. | |
| void | on_change_field () |
| Call the attached on_change method. | |
Protected Attributes | |
| boost::any | m_value |
| boost::any | m_last_meaningful_value |
| int | m_em_unit |
| bool | bEnterPressed = false |
Private Member Functions | |
| Field (const ConfigOptionDef &opt, const t_config_option_key &id) | |
| Field (wxWindow *parent, const ConfigOptionDef &opt, const t_config_option_key &id) | |
Private Attributes | |
| UndoValueUI | m_undo_ui |
|
inline |
|
inline |
|
inline |
|
inlineinherited |
References Slic3r::GUI::UndoValueUIManager::UndoValueUI::blink, and Slic3r::GUI::UndoValueUIManager::m_undo_ui.
Referenced by Slic3r::GUI::OG_CustomCtrl::CtrlLine::render().
Here is the caller graph for this function:
|
overridevirtual |
Finish constructing the Field's wxWidget-related properties, including setting its own sizer, etc.
Implements Slic3r::GUI::Field.
References _, Slic3r::GUI::from_u8(), and wxOSX.
Here is the call graph for this function:
|
inlinestaticinherited |
Factory method for generating new derived classes.
p;
|
staticinherited |
|
staticinherited |
Referenced by Slic3r::GUI::DiamTextCtrl::DiamTextCtrl(), and Slic3r::GUI::OptionsGroup::activate_line().
Here is the caller graph for this function:
|
staticinherited |
Referenced by Slic3r::GUI::PhysicalPrinterDialog::build_printhost_settings().
Here is the caller graph for this function:
|
overridevirtual |
|
overridevirtual |
|
inlineprivate |
|
inlineprivate |
|
inlineinherited |
References Slic3r::GUI::Field::on_change_field().
Referenced by Slic3r::GUI::PhysicalPrinterDialog::build_printhost_settings().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inlineinherited |
References Slic3r::GUI::UndoValueUIManager::UndoValueUI::blink, and Slic3r::GUI::UndoValueUIManager::m_undo_ui.
Referenced by Slic3r::GUI::ConfigOptionsGroup::get_custom_ctrl_with_blinking_ptr().
Here is the caller graph for this function:
|
inlineinherited |
References Slic3r::GUI::Field::bEnterPressed.
|
virtualinherited |
References _L, and Slic3r::GUI::from_u8().
Here is the call graph for this function:
|
overridevirtual |
Gets a boost::any representing this control. subclasses should overload with a specific version.
Implements Slic3r::GUI::Field.
References _, Slic3r::coEnum, Slic3r::coFloatOrPercent, Slic3r::coInt, Slic3r::coStrings, Slic3r::GUI::into_u8(), and Slic3r::string_to_double_decimal_point().
Here is the call graph for this function:
|
inherited |
References _, _L, Slic3r::coFloat, Slic3r::coFloatOrPercent, Slic3r::coFloats, Slic3r::coFloatsOrPercents, Slic3r::coInt, Slic3r::coPercent, Slic3r::coPercents, Slic3r::coPoints, Slic3r::coString, Slic3r::coStrings, Slic3r::GUI::double_to_string(), Slic3r::GUI::format_wxstr(), Slic3r::GUI::from_u8(), Slic3r::GUI::get_thumbnails_string(), Slic3r::GUI::into_u8(), Slic3r::is_decimal_separator_point(), L, Slic3r::GUI::na_value(), Slic3r::ConfigOptionFloatsTempl< NULLABLE >::nil_value(), and Slic3r::GUI::show_error().
Here is the call graph for this function:
|
inlinevirtualinherited |
If you don't know what you are getting back, check both methods for nullptr.
Reimplemented in Slic3r::GUI::PointCtrl, and Slic3r::GUI::SliderCtrl.
Referenced by Slic3r::GUI::OG_CustomCtrl::CtrlLine::correct_items_positions(), Slic3r::GUI::OG_CustomCtrl::CtrlLine::render(), and Slic3r::GUI::OG_CustomCtrl::CtrlLine::update_visibility().
Here is the caller graph for this function:
|
inlineoverridevirtual |
|
inlineinherited |
References Slic3r::GUI::UndoValueUIManager::m_undo_ui, and Slic3r::GUI::UndoValueUIManager::UndoValueUI::undo_bitmap.
Referenced by Slic3r::GUI::OG_CustomCtrl::get_pos(), and Slic3r::GUI::OG_CustomCtrl::CtrlLine::render().
Here is the caller graph for this function:
|
inherited |
|
inlineinherited |
References Slic3r::GUI::UndoValueUIManager::UndoValueUI::label_color, and Slic3r::GUI::UndoValueUIManager::m_undo_ui.
Referenced by Slic3r::GUI::OG_CustomCtrl::CtrlLine::render().
Here is the caller graph for this function:
|
overridevirtual |
Reimplemented from Slic3r::GUI::Field.
References _, Slic3r::GUI::from_u8(), and Slic3r::GUI::into_u8().
Here is the call graph for this function:
|
inherited |
Call the attached m_back_to_initial_value method.
|
inherited |
Call the attached m_back_to_sys_value method.
|
protectedinherited |
Call the attached on_change method.
Referenced by Slic3r::GUI::Field::field_changed().
Here is the caller graph for this function:
|
protectedinherited |
Call the attached on_kill_focus method. It's important to use wxEvent instead of wxFocusEvent, in another case we can't unfocused control at all.
|
protectedvirtualinherited |
References Slic3r::GUI::Field::BUILD(), Slic3r::coBools, Slic3r::coFloats, Slic3r::coInts, Slic3r::coPercents, Slic3r::coStrings, em_unit(), Slic3r::GUI::Field::getWindow(), if(), Slic3r::GUI::Field::m_em_unit, Slic3r::GUI::Field::m_opt, Slic3r::GUI::Field::m_opt_id, Slic3r::GUI::Field::m_opt_idx, Slic3r::GUI::Field::m_parent, Slic3r::GUI::Field::parent_is_custom_ctrl, and Slic3r::ConfigOptionDef::type.
Here is the call graph for this function:| void Slic3r::GUI::Choice::propagate_value | ( | ) |
References Slic3r::coFloatOrPercent, Slic3r::coInt, and Slic3r::coStrings.
|
inlineinherited |
References Slic3r::GUI::Field::bEnterPressed.
Referenced by Slic3r::GUI::Field::EnterPressed::EnterPressed(), and Slic3r::GUI::Field::EnterPressed::~EnterPressed().
Here is the caller graph for this function:
|
inlineinherited |
References Slic3r::GUI::UndoValueUIManager::m_undo_ui, and Slic3r::GUI::UndoValueUIManager::UndoValueUI::set_label_colour().
Referenced by Slic3r::GUI::Tab::create_line_with_widget(), Slic3r::GUI::Tab::decorate(), and Slic3r::GUI::Tab::update_label_colours().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inlinevirtualinherited |
Reimplemented in Slic3r::GUI::TextCtrl, Slic3r::GUI::CheckBox, and Slic3r::GUI::SpinCtrl.
|
inlinevirtualinherited |
Reimplemented in Slic3r::GUI::TextCtrl, Slic3r::GUI::CheckBox, and Slic3r::GUI::SpinCtrl.
| void Slic3r::GUI::Choice::set_selection | ( | ) |
References Slic3r::coEnum, Slic3r::coFloat, Slic3r::coFloatOrPercent, Slic3r::coInt, Slic3r::coPercent, Slic3r::coStrings, Slic3r::GUI::double_to_string(), Slic3r::GUI::into_u8(), and Slic3r::ConfigOptionFloatOrPercent::percent.
Referenced by Slic3r::GUI::PhysicalPrinterDialog::build_printhost_settings().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inlineinherited |
References Slic3r::GUI::UndoValueUIManager::m_undo_ui, and Slic3r::GUI::UndoValueUIManager::UndoValueUI::set_undo_bitmap().
Referenced by Slic3r::GUI::Tab::create_line_with_widget(), and Slic3r::GUI::Tab::decorate().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inlineinherited |
References Slic3r::GUI::UndoValueUIManager::m_undo_ui, and Slic3r::GUI::UndoValueUIManager::UndoValueUI::set_undo_to_sys_bitmap().
Referenced by Slic3r::GUI::Tab::create_line_with_widget(), and Slic3r::GUI::Tab::decorate().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inlineinherited |
References Slic3r::GUI::UndoValueUIManager::m_undo_ui, and Slic3r::GUI::UndoValueUIManager::UndoValueUI::set_undo_to_sys_tooltip().
Referenced by Slic3r::GUI::Tab::create_line_with_widget(), and Slic3r::GUI::Tab::decorate().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inlineinherited |
References Slic3r::GUI::UndoValueUIManager::m_undo_ui, and Slic3r::GUI::UndoValueUIManager::UndoValueUI::set_undo_tooltip().
Referenced by Slic3r::GUI::Tab::create_line_with_widget(), and Slic3r::GUI::Tab::decorate().
Here is the call graph for this function:
Here is the caller graph for this function:
|
overridevirtual |
Sets a value for this control. subclasses should overload with a specific version Postcondition: Method does not fire the on_change event.
Implements Slic3r::GUI::Field.
References Slic3r::coEnum, Slic3r::coFloat, Slic3r::coFloatOrPercent, Slic3r::coInt, Slic3r::coPercent, Slic3r::coString, Slic3r::coStrings, and Slic3r::GUI::into_u8().
Here is the call graph for this function:Redundant?
Referenced by Slic3r::GUI::PhysicalPrinterDialog::update_host_type().
Here is the caller graph for this function:it's needed for _update_serial_ports()
Referenced by Slic3r::GUI::PhysicalPrinterDialog::build_printhost_settings(), Slic3r::GUI::PhysicalPrinterDialog::update_host_type(), and Slic3r::GUI::PhysicalPrinterDialog::update_printers().
Here is the caller graph for this function:| void Slic3r::GUI::Choice::suppress_scroll | ( | ) |
Referenced by Slic3r::GUI::FreqChangedParams::FreqChangedParams().
Here is the caller graph for this function:
|
virtualinherited |
Reimplemented in Slic3r::GUI::ColourPicker, and Slic3r::GUI::PointCtrl.
|
inlineinherited |
Fires the enable or disable function, based on the input.
References Slic3r::GUI::Field::disable(), and Slic3r::GUI::Field::enable().
Referenced by Slic3r::GUI::Tab::compatible_widget_reload(), Slic3r::GUI::Tab::toggle_option(), Slic3r::GUI::ObjectSettings::update_config_values(), and Slic3r::GUI::TabFilament::update_line_with_near_label_widget().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inlineinherited |
References ScalableBitmap::bmp(), Slic3r::GUI::UndoValueUIManager::m_undo_ui, and Slic3r::GUI::UndoValueUIManager::UndoValueUI::undo_bitmap.
Referenced by Slic3r::GUI::OG_CustomCtrl::CtrlLine::render().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inlineinherited |
References ScalableBitmap::bmp(), Slic3r::GUI::UndoValueUIManager::m_undo_ui, and Slic3r::GUI::UndoValueUIManager::UndoValueUI::undo_to_sys_bitmap.
Referenced by Slic3r::GUI::OG_CustomCtrl::CtrlLine::render().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inlineinherited |
References Slic3r::GUI::UndoValueUIManager::m_undo_ui, and Slic3r::GUI::UndoValueUIManager::UndoValueUI::undo_to_sys_tooltip.
|
inlineinherited |
References Slic3r::GUI::UndoValueUIManager::m_undo_ui, and Slic3r::GUI::UndoValueUIManager::UndoValueUI::undo_tooltip.
|
protectedinherited |
Referenced by Slic3r::GUI::Field::get_enter_pressed(), and Slic3r::GUI::Field::set_enter_pressed().
|
inherited |
Function object to store callback passed in from owning object.
Referenced by Slic3r::GUI::Field::~Field().
|
inherited |
Referenced by Slic3r::GUI::Field::~Field().
|
inherited |
|
protectedinherited |
Referenced by Slic3r::GUI::Field::PostInitialize().
| bool Slic3r::GUI::Choice::m_is_dropped { false } |
| bool Slic3r::GUI::Choice::m_is_editable { false } |
|
inherited |
Referenced by Slic3r::GUI::Tab::decorate().
|
inherited |
Referenced by Slic3r::GUI::Tab::decorate().
|
protectedinherited |
| int Slic3r::GUI::Choice::m_last_selected { wxNOT_FOUND } |
|
inherited |
Function object to store callback passed in from owning object.
Referenced by Slic3r::GUI::Field::~Field().
|
inherited |
Function object to store callback passed in from owning object.
Referenced by Slic3r::GUI::Field::~Field().
|
inherited |
Copy of ConfigOption for deduction purposes.
Referenced by Slic3r::GUI::Field::PostInitialize(), and Slic3r::GUI::PhysicalPrinterDialog::update_host_type().
|
inherited |
Referenced by Slic3r::GUI::Field::PostInitialize().
|
inherited |
{""};
Referenced by Slic3r::GUI::Field::PostInitialize().
|
inherited |
parent wx item, opportunity to refactor (probably not necessary - data duplication)
Referenced by Slic3r::GUI::Field::PostInitialize().
| bool Slic3r::GUI::Choice::m_suppress_scroll { false } |
|
privateinherited |
Referenced by Slic3r::GUI::UndoValueUIManager::blink(), Slic3r::GUI::UndoValueUIManager::get_blink_ptr(), Slic3r::GUI::UndoValueUIManager::has_undo_ui(), Slic3r::GUI::UndoValueUIManager::label_color(), Slic3r::GUI::UndoValueUIManager::set_label_colour(), Slic3r::GUI::UndoValueUIManager::set_undo_bitmap(), Slic3r::GUI::UndoValueUIManager::set_undo_to_sys_bitmap(), Slic3r::GUI::UndoValueUIManager::set_undo_to_sys_tooltip(), Slic3r::GUI::UndoValueUIManager::set_undo_tooltip(), Slic3r::GUI::UndoValueUIManager::undo_bitmap(), Slic3r::GUI::UndoValueUIManager::undo_to_sys_bitmap(), Slic3r::GUI::UndoValueUIManager::undo_to_sys_tooltip(), and Slic3r::GUI::UndoValueUIManager::undo_tooltip().
|
protectedinherited |
Referenced by Slic3r::GUI::StaticText::get_value().
|
inherited |
|
inherited |
Referenced by Slic3r::GUI::Field::PostInitialize().
| wxWindow* Slic3r::GUI::Choice::window { nullptr } |
Referenced by getWindow().