#include </home/runner/work/OrcaSlicer/OrcaSlicer/src/slic3r/GUI/Tab.hpp>
Public Member Functions | |
| Page (wxWindow *parent, const wxString &title, int iconID, wxPanel *tab_owner) | |
| ~Page () | |
| wxBoxSizer * | vsizer () const |
| wxWindow * | parent () const |
| const wxString & | title () const |
| size_t | iconID () const |
| void | set_config (DynamicPrintConfig *config_in) |
| void | reload_config () |
| void | update_visibility (ConfigOptionMode mode, bool update_contolls_visibility) |
| void | activate (ConfigOptionMode mode, std::function< void()> throw_if_canceled) |
| bool | build_pending () const |
| bool | build_step (ConfigOptionMode mode) |
| bool | visibility_pending () const |
| void | clear () |
| void | msw_rescale () |
| void | sys_color_changed () |
| void | refresh () |
| Field * | get_field (const t_config_option_key &opt_key, int opt_index=-1) const |
| Line * | get_line (const t_config_option_key &opt_key, int opt_index=-1) |
| bool | set_value (const t_config_option_key &opt_key, const boost::any &value) |
| ConfigOptionsGroupShp | new_optgroup (const wxString &title, const wxString &icon=wxEmptyString, int noncommon_label_width=-1, bool is_extruder_og=false) |
| const ConfigOptionsGroupShp | get_optgroup (const wxString &title) const |
| bool | set_item_colour (const wxColour *clr) |
| const wxColour | get_item_colour () |
| bool | get_show () const |
Public Attributes | |
| bool | m_is_modified_values { false } |
| bool | m_is_nonsys_values { true } |
| bool | m_split_multi_line = false |
| bool | m_option_label_at_right = false |
| std::vector< ConfigOptionsGroupShp > | m_optgroups |
| DynamicPrintConfig * | m_config |
| std::map< std::string, std::string > | m_opt_id_map |
Protected Member Functions | |
| size_t | next_group_to_build () const |
| bool | activate_group (size_t i, ConfigOptionMode mode, std::function< void()> throw_if_canceled) |
Protected Attributes | |
| const wxColour * | m_item_color |
Private Attributes | |
| wxPanel * | m_tab_owner |
| wxWindow * | m_parent |
| wxString | m_title |
| size_t | m_iconID |
| wxBoxSizer * | m_vsizer |
| wxStaticText * | m_page_title |
| bool | m_show = true |
| bool | m_visibility_applied = false |
| Slic3r::GUI::Page::Page | ( | wxWindow * | parent, |
| const wxString & | title, | ||
| int | iconID, | ||
| wxPanel * | tab_owner ) |
References Page(), iconID(), m_iconID, m_item_color, m_page_title, m_parent, m_tab_owner, m_title, m_vsizer, parent(), and title().
Referenced by Page().
|
inline |
| void Slic3r::GUI::Page::activate | ( | ConfigOptionMode | mode, |
| std::function< void()> | throw_if_canceled ) |
References _, activate_group(), Label::Head_18, m_optgroups, m_page_title, m_parent, m_title, and m_vsizer.
|
protected |
References m_optgroups, m_parent, m_visibility_applied, and m_vsizer.
Referenced by activate(), and build_step().
| bool Slic3r::GUI::Page::build_pending | ( | ) | const |
References m_optgroups, and next_group_to_build().
Referenced by build_step().
| bool Slic3r::GUI::Page::build_step | ( | ConfigOptionMode | mode | ) |
References activate_group(), build_pending(), m_optgroups, and next_group_to_build().
| void Slic3r::GUI::Page::clear | ( | ) |
References m_optgroups, m_page_title, and m_visibility_applied.
| Field * Slic3r::GUI::Page::get_field | ( | const t_config_option_key & | opt_key, |
| int | opt_index = -1 ) const |
References m_opt_id_map, and m_optgroups.
Referenced by Slic3r::GUI::TabFilament::update_filament_overrides_page().
|
inline |
References m_item_color.
| Line * Slic3r::GUI::Page::get_line | ( | const t_config_option_key & | opt_key, |
| int | opt_index = -1 ) |
References m_opt_id_map, and m_optgroups.
| const ConfigOptionsGroupShp Slic3r::GUI::Page::get_optgroup | ( | const wxString & | title | ) | const |
References m_optgroups, and title().
|
inline |
References m_show.
|
inline |
| void Slic3r::GUI::Page::msw_rescale | ( | ) |
References m_optgroups.
| ConfigOptionsGroupShp Slic3r::GUI::Page::new_optgroup | ( | const wxString & | title, |
| const wxString & | icon = wxEmptyString, | ||
| int | noncommon_label_width = -1, | ||
| bool | is_extruder_og = false ) |
config_ have to be "right"
This function will be called from OptionGroup. Using of CallAfter is redundant. And in some cases it causes update() function to be recalled again wxTheApp->CallAfter([this, opt_key, value]() {
});
References ScalableBitmap::bmp(), m_config, m_optgroups, m_option_label_at_right, m_parent, m_split_multi_line, m_tab_owner, m_title, and title().
|
protected |
References m_optgroups.
Referenced by build_pending(), and build_step().
|
inline |
| void Slic3r::GUI::Page::refresh | ( | ) |
References m_optgroups.
| void Slic3r::GUI::Page::reload_config | ( | ) |
References m_optgroups.
|
inline |
|
inline |
References m_item_color.
| bool Slic3r::GUI::Page::set_value | ( | const t_config_option_key & | opt_key, |
| const boost::any & | value ) |
References m_optgroups.
| void Slic3r::GUI::Page::sys_color_changed | ( | ) |
References m_optgroups.
|
inline |
References m_title.
Referenced by Page(), get_optgroup(), Slic3r::GUI::Tab::is_printer_extruder_page(), and new_optgroup().
| void Slic3r::GUI::Page::update_visibility | ( | ConfigOptionMode | mode, |
| bool | update_contolls_visibility ) |
References m_optgroups, m_show, and m_visibility_applied.
|
inline |
References m_visibility_applied.
|
inline |
| DynamicPrintConfig* Slic3r::GUI::Page::m_config |
Referenced by new_optgroup(), and set_config().
| bool Slic3r::GUI::Page::m_is_modified_values { false } |
Referenced by Slic3r::GUI::Tab::tree_sel_change_delayed(), and Slic3r::GUI::Tab::update_current_page_in_background().
| bool Slic3r::GUI::Page::m_is_nonsys_values { true } |
Referenced by Slic3r::GUI::Tab::tree_sel_change_delayed(), and Slic3r::GUI::Tab::update_current_page_in_background().
|
protected |
Referenced by Page(), get_item_colour(), and set_item_colour().
| std::map<std::string, std::string> Slic3r::GUI::Page::m_opt_id_map |
Referenced by get_field(), and get_line().
| std::vector<ConfigOptionsGroupShp> Slic3r::GUI::Page::m_optgroups |
Referenced by activate(), activate_group(), Slic3r::GUI::PublishSettingsDialog::build_option_model(), build_pending(), build_step(), clear(), Slic3r::GUI::custom_gcode_group_title(), get_field(), get_line(), get_optgroup(), msw_rescale(), new_optgroup(), next_group_to_build(), refresh(), reload_config(), set_value(), sys_color_changed(), Slic3r::GUI::TabFilament::update_filament_overrides_page(), and update_visibility().
| bool Slic3r::GUI::Page::m_option_label_at_right = false |
Referenced by new_optgroup().
|
private |
Referenced by Page(), activate(), and clear().
|
private |
Referenced by Page(), activate(), activate_group(), new_optgroup(), and parent().
|
private |
Referenced by get_show(), and update_visibility().
| bool Slic3r::GUI::Page::m_split_multi_line = false |
Referenced by new_optgroup().
|
private |
Referenced by Page(), and new_optgroup().
|
private |
Referenced by Page(), activate(), new_optgroup(), and title().
|
private |
Referenced by activate_group(), clear(), update_visibility(), and visibility_pending().
|
private |
Referenced by Page(), activate(), activate_group(), and vsizer().