#include </home/runner/work/OrcaSlicer/OrcaSlicer/src/slic3r/GUI/ConfigWizard_private.hpp>
Public Member Functions | |
| PageMaterials (ConfigWizard *parent, Materials *materials, wxString title, wxString shortname, wxString list1name) | |
| void | reload_presets () |
| void | update_lists (int sel_type, int sel_vendor, int last_selected_printer=-1) |
| void | on_material_highlighted (int sel_material) |
| void | on_material_hovered (int sel_material) |
| void | select_material (int i) |
| void | select_all (bool select) |
| void | clear () |
| void | set_compatible_printers_html_window (const std::vector< std::string > &printer_names, bool all_printers=false) |
| void | clear_compatible_printers_label () |
| void | sort_list_data (StringList *list, bool add_All_item, bool material_type_ordering) |
| void | sort_list_data (PresetList *list, const std::vector< ProfilePrintData > &data) |
| void | on_paint () |
| void | on_mouse_move_on_profiles (wxMouseEvent &evt) |
| void | on_mouse_enter_profiles (wxMouseEvent &evt) |
| void | on_mouse_leave_profiles (wxMouseEvent &evt) |
| virtual void | on_activate () override |
| template<class T> | |
| T * | append (T *thing, int proportion=0, int flag=wxEXPAND|wxTOP|wxBOTTOM, int border=10) |
| wxStaticText * | append_text (wxString text) |
| void | append_spacer (int space) |
| ConfigWizard::priv * | wizard_p () const |
| virtual void | apply_custom_config (DynamicPrintConfig &config) |
| virtual void | set_run_reason (ConfigWizard::RunReason run_reason) |
Public Attributes | |
| Materials * | materials |
| StringList * | list_printer |
| StringList * | list_type |
| StringList * | list_vendor |
| PresetList * | list_profile |
| wxArrayInt | sel_printers_prev |
| int | sel_type_prev |
| int | sel_vendor_prev |
| bool | presets_loaded |
| wxFlexGridSizer * | grid |
| wxHtmlWindow * | html_window |
| int | compatible_printers_width = { 100 } |
| std::string | empty_printers_label |
| bool | first_paint = { false } |
| int | last_hovered_item = { -1 } |
| ConfigWizard * | parent |
| const wxString | shortname |
| wxBoxSizer * | content |
| const unsigned | indent |
Static Public Attributes | |
| static const std::string | EMPTY |
| Slic3r::GUI::PageMaterials::PageMaterials | ( | ConfigWizard * | parent, |
| Materials * | materials, | ||
| wxString | title, | ||
| wxString | shortname, | ||
| wxString | list1name ) |
References Slic3r::GUI::ConfigWizardPage::ConfigWizardPage(), _L, Slic3r::GUI::ConfigWizardPage::append(), Slic3r::GUI::ConfigWizardPage::append_spacer(), grid, html_window, list_printer, list_profile, list_type, list_vendor, materials, on_material_highlighted(), Slic3r::GUI::ConfigWizardPage::parent, reload_presets(), select_all(), select_material(), set_compatible_printers_html_window(), Slic3r::GUI::ConfigWizardPage::shortname, update_lists(), Slic3r::GUI::VERTICAL_SPACING, and wxStaticText.
|
inlineinherited |
References content.
Referenced by Slic3r::GUI::PageBedShape::PageBedShape(), Slic3r::GUI::PageCustom::PageCustom(), Slic3r::GUI::PageDiameters::PageDiameters(), Slic3r::GUI::PageFirmware::PageFirmware(), Slic3r::GUI::PageMaterials::PageMaterials(), Slic3r::GUI::PagePrinters::PagePrinters(), Slic3r::GUI::PageTemperatures::PageTemperatures(), Slic3r::GUI::PageWelcome::PageWelcome(), and append_text().
|
inherited |
References content.
Referenced by Slic3r::GUI::PageDiameters::PageDiameters(), Slic3r::GUI::PageMaterials::PageMaterials(), and Slic3r::GUI::PageTemperatures::PageTemperatures().
|
inherited |
References append(), Slic3r::GUI::WRAP_WIDTH, and wxStaticText.
Referenced by Slic3r::GUI::PageBedShape::PageBedShape(), Slic3r::GUI::PageDiameters::PageDiameters(), Slic3r::GUI::PageFirmware::PageFirmware(), Slic3r::GUI::PageTemperatures::PageTemperatures(), and Slic3r::GUI::PageWelcome::PageWelcome().
|
inlinevirtualinherited |
Reimplemented in Slic3r::GUI::PageBedShape, Slic3r::GUI::PageDiameters, Slic3r::GUI::PageFirmware, and Slic3r::GUI::PageTemperatures.
| void Slic3r::GUI::PageMaterials::clear | ( | ) |
References list_printer, list_profile, list_type, list_vendor, presets_loaded, sel_printers_prev, sel_type_prev, and sel_vendor_prev.
Referenced by reload_presets().
| void Slic3r::GUI::PageMaterials::clear_compatible_printers_label | ( | ) |
References set_compatible_printers_html_window().
Referenced by on_material_highlighted(), and update_lists().
|
overridevirtual |
Reimplemented from Slic3r::GUI::ConfigWizardPage.
References first_paint, materials, presets_loaded, reload_presets(), Slic3r::GUI::ConfigWizard::priv::update_materials(), and Slic3r::GUI::ConfigWizardPage::wizard_p().
| void Slic3r::GUI::PageMaterials::on_material_highlighted | ( | int | sel_material | ) |
References clear_compatible_printers_label(), Slic3r::is_compatible_with_printer(), last_hovered_item, list_profile, materials, Slic3r::Preset::name, set_compatible_printers_html_window(), and Slic3r::Preset::vendor.
Referenced by PageMaterials().
| void Slic3r::GUI::PageMaterials::on_material_hovered | ( | int | sel_material | ) |
Referenced by on_mouse_leave_profiles(), and on_mouse_move_on_profiles().
| void Slic3r::GUI::PageMaterials::on_mouse_enter_profiles | ( | wxMouseEvent & | evt | ) |
References Slic3r::GUI::wxMouseEvent.
| void Slic3r::GUI::PageMaterials::on_mouse_leave_profiles | ( | wxMouseEvent & | evt | ) |
References on_material_hovered(), and Slic3r::GUI::wxMouseEvent.
| void Slic3r::GUI::PageMaterials::on_mouse_move_on_profiles | ( | wxMouseEvent & | evt | ) |
References list_profile, on_material_hovered(), and Slic3r::GUI::wxMouseEvent.
| void Slic3r::GUI::PageMaterials::on_paint | ( | ) |
| void Slic3r::GUI::PageMaterials::reload_presets | ( | ) |
References _L, clear(), EMPTY, list_printer, materials, Slic3r::Preset::name, presets_loaded, sel_printers_prev, sel_type_prev, sel_vendor_prev, sort_list_data(), and update_lists().
Referenced by PageMaterials(), and on_activate().
| void Slic3r::GUI::PageMaterials::select_all | ( | bool | select | ) |
References list_profile, and select_material().
Referenced by PageMaterials().
| void Slic3r::GUI::PageMaterials::select_material | ( | int | i | ) |
References list_profile, materials, Slic3r::GUI::ConfigWizard::priv::update_presets_in_config(), and Slic3r::GUI::ConfigWizardPage::wizard_p().
Referenced by PageMaterials(), and select_all().
| void Slic3r::GUI::PageMaterials::set_compatible_printers_html_window | ( | const std::vector< std::string > & | printer_names, |
| bool | all_printers = false ) |
References _L, Slic3r::encode_color(), Slic3r::GUI::format_wxstr(), Slic3r::GUI::get_default_font_for_dpi(), Slic3r::GUI::get_dpi_for_window(), html_window, materials, and Slic3r::GUI::T_FFF.
Referenced by PageMaterials(), clear_compatible_printers_label(), and on_material_highlighted().
|
inlinevirtualinherited |
Reimplemented in Slic3r::GUI::PagePrinters, and Slic3r::GUI::PageWelcome.
| void Slic3r::GUI::PageMaterials::sort_list_data | ( | PresetList * | list, |
| const std::vector< ProfilePrintData > & | data ) |
References Slic3r::GUI::DataList< T, D >::append().
| void Slic3r::GUI::PageMaterials::sort_list_data | ( | StringList * | list, |
| bool | add_All_item, | ||
| bool | material_type_ordering ) |
References _L, Slic3r::GUI::DataList< T, D >::append(), EMPTY, Slic3r::ConfigOptionDef::enum_values, Slic3r::GUI::from_u8(), Slic3r::GUI::DataList< T, D >::get_data(), Slic3r::print_config_def, Slic3r::GUI::DataList< T, D >::size(), and Slic3r::GUI::Materials::UNKNOWN.
Referenced by reload_presets(), and update_lists().
| void Slic3r::GUI::PageMaterials::update_lists | ( | int | sel_type, |
| int | sel_vendor, | ||
| int | last_selected_printer = -1 ) |
References _L, Slic3r::Preset::alias, Slic3r::GUI::ConfigWizard::priv::appconfig_new, clear_compatible_printers_label(), EMPTY, Slic3r::AppConfig::has(), list_printer, list_profile, list_type, list_vendor, materials, Slic3r::Preset::name, sel_printers_prev, sel_type_prev, sel_vendor_prev, Slic3r::AppConfig::set(), sort_list_data(), Slic3r::GUI::ConfigWizard::priv::update_presets_in_config(), and Slic3r::GUI::ConfigWizardPage::wizard_p().
Referenced by PageMaterials(), and reload_presets().
|
inlineinherited |
References parent.
Referenced by Slic3r::GUI::PageBedShape::PageBedShape(), Slic3r::GUI::PageCustom::PageCustom(), Slic3r::GUI::PagePrinters::PagePrinters(), Slic3r::GUI::PageMaterials::on_activate(), Slic3r::GUI::PageMaterials::select_material(), and Slic3r::GUI::PageMaterials::update_lists().
| int Slic3r::GUI::PageMaterials::compatible_printers_width = { 100 } |
|
inherited |
Referenced by ConfigWizardPage(), append(), and append_spacer().
|
static |
Referenced by reload_presets(), sort_list_data(), and update_lists().
| std::string Slic3r::GUI::PageMaterials::empty_printers_label |
| bool Slic3r::GUI::PageMaterials::first_paint = { false } |
Referenced by on_activate().
| wxFlexGridSizer* Slic3r::GUI::PageMaterials::grid |
Referenced by PageMaterials().
| wxHtmlWindow* Slic3r::GUI::PageMaterials::html_window |
Referenced by PageMaterials(), and set_compatible_printers_html_window().
|
inherited |
| int Slic3r::GUI::PageMaterials::last_hovered_item = { -1 } |
Referenced by on_material_highlighted().
| StringList* Slic3r::GUI::PageMaterials::list_printer |
Referenced by PageMaterials(), clear(), reload_presets(), and update_lists().
| PresetList* Slic3r::GUI::PageMaterials::list_profile |
Referenced by PageMaterials(), clear(), on_material_highlighted(), on_mouse_move_on_profiles(), select_all(), select_material(), and update_lists().
| StringList * Slic3r::GUI::PageMaterials::list_type |
Referenced by PageMaterials(), clear(), and update_lists().
| StringList * Slic3r::GUI::PageMaterials::list_vendor |
Referenced by PageMaterials(), clear(), and update_lists().
| Materials* Slic3r::GUI::PageMaterials::materials |
Referenced by Slic3r::GUI::ConfigWizard::ConfigWizard(), PageMaterials(), on_activate(), on_material_highlighted(), reload_presets(), Slic3r::GUI::ConfigWizard::priv::select_default_materials_for_printer_model(), Slic3r::GUI::ConfigWizard::priv::select_default_materials_for_printer_models(), select_material(), set_compatible_printers_html_window(), and update_lists().
|
inherited |
Referenced by ConfigWizardPage(), Slic3r::GUI::PageBedShape::PageBedShape(), Slic3r::GUI::PageCustom::PageCustom(), Slic3r::GUI::PageDiameters::PageDiameters(), Slic3r::GUI::PageFirmware::PageFirmware(), Slic3r::GUI::PageMaterials::PageMaterials(), Slic3r::GUI::PagePrinters::PagePrinters(), Slic3r::GUI::PageTemperatures::PageTemperatures(), Slic3r::GUI::PageWelcome::PageWelcome(), and wizard_p().
| bool Slic3r::GUI::PageMaterials::presets_loaded |
Referenced by clear(), on_activate(), and reload_presets().
| wxArrayInt Slic3r::GUI::PageMaterials::sel_printers_prev |
Referenced by clear(), reload_presets(), and update_lists().
| int Slic3r::GUI::PageMaterials::sel_type_prev |
Referenced by clear(), reload_presets(), and update_lists().
| int Slic3r::GUI::PageMaterials::sel_vendor_prev |
Referenced by clear(), reload_presets(), and update_lists().
|
inherited |