![]() |
Prusa Slicer 2.6.0
|
#include <src/libslic3r/Preset.hpp>
Collaboration diagram for Slic3r::PhysicalPrinterCollection:Public Types | |
| typedef std::deque< PhysicalPrinter >::iterator | Iterator |
| typedef std::deque< PhysicalPrinter >::const_iterator | ConstIterator |
Private Member Functions | |
| PhysicalPrinterCollection ()=default | |
| PhysicalPrinterCollection & | operator= (const PhysicalPrinterCollection &other)=default |
| std::deque< PhysicalPrinter >::iterator | find_printer_internal (const std::string &name, bool case_sensitive_search=true) |
| std::deque< PhysicalPrinter >::const_iterator | find_printer_internal (const std::string &name, bool case_sensitive_search=true) const |
| PhysicalPrinter * | find_printer_with_same_config (const DynamicPrintConfig &config) |
Private Attributes | |
| std::deque< PhysicalPrinter > | m_printers |
| DynamicPrintConfig | m_default_config |
| size_t | m_idx_selected = size_t(-1) |
| std::string | m_selected_preset |
| std::string | m_dir_path |
Friends | |
| class | PresetBundle |
| typedef std::deque<PhysicalPrinter>::const_iterator Slic3r::PhysicalPrinterCollection::ConstIterator |
| typedef std::deque<PhysicalPrinter>::iterator Slic3r::PhysicalPrinterCollection::Iterator |
| Slic3r::PhysicalPrinterCollection::PhysicalPrinterCollection | ( | const std::vector< std::string > & | keys | ) |
References Slic3r::ConfigOptionDef::default_value, Slic3r::ConfigDef::get(), m_default_config, Slic3r::print_config_def, and Slic3r::DynamicConfig::set_key_value().
Here is the call graph for this function:
|
privatedefault |
|
inline |
References m_printers.
Referenced by Slic3r::GUI::PlaterPresetComboBox::update(), and Slic3r::GUI::TabPresetComboBox::update().
Here is the caller graph for this function:
|
inline |
References m_printers.
|
inline |
References m_printers.
|
inline |
References m_printers.
|
inline |
References m_default_config.
Referenced by Slic3r::PresetBundle::load_configbundle(), load_printers(), and load_printers_from_presets().
Here is the caller graph for this function:| bool Slic3r::PhysicalPrinterCollection::delete_preset_from_printers | ( | const std::string & | preset_name | ) |
References Slic3r::PhysicalPrinter::delete_preset(), delete_printer(), m_printers, Slic3r::PhysicalPrinter::name, Slic3r::PhysicalPrinter::preset_names, printer(), save_printer(), and unselect_printer().
Referenced by Slic3r::GUI::Tab::delete_preset().
Here is the call graph for this function:
Here is the caller graph for this function:| bool Slic3r::PhysicalPrinterCollection::delete_printer | ( | const std::string & | name | ) |
References Slic3r::PhysicalPrinter::file, find_printer_internal(), m_printers, and printer().
Referenced by delete_preset_from_printers().
Here is the call graph for this function:
Here is the caller graph for this function:| bool Slic3r::PhysicalPrinterCollection::delete_selected_printer | ( | ) |
References Slic3r::PhysicalPrinter::file, get_selected_printer(), has_selection(), m_idx_selected, m_printers, printer(), and unselect_printer().
Referenced by Slic3r::GUI::PresetComboBox::del_physical_printer().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
References m_printers.
Referenced by Slic3r::GUI::Tab::delete_preset(), Slic3r::GUI::PlaterPresetComboBox::update(), and Slic3r::GUI::TabPresetComboBox::update().
Here is the caller graph for this function:
|
inline |
References m_printers.
Referenced by Slic3r::GUI::PlaterPresetComboBox::update(), and Slic3r::GUI::TabPresetComboBox::update().
Here is the caller graph for this function:
|
inline |
References m_printers.
| PhysicalPrinter * Slic3r::PhysicalPrinterCollection::find_printer | ( | const std::string & | name, |
| bool | case_sensitive_search = true |
||
| ) |
References find_printer_internal(), m_printers, and printer().
Referenced by Slic3r::GUI::PhysicalPrinterDialog::PhysicalPrinterDialog(), find_printer(), find_printer_with_same_config(), Slic3r::PresetBundle::load_config_file_config(), Slic3r::PresetBundle::load_configbundle(), load_printers(), load_printers_from_presets(), and Slic3r::GUI::PhysicalPrinterDialog::OnOK().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
References find_printer().
Here is the call graph for this function:
|
private |
References Slic3r::lower_bound_by_predicate(), m_printers, Slic3r::PhysicalPrinter::name, and printer().
Referenced by delete_printer(), find_printer(), find_printer_internal(), load_printer(), save_printer(), and select_printer().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inlineprivate |
|
private |
References Slic3r::PhysicalPrinter::config, find_printer(), Slic3r::legacy_print_host_options, Slic3r::PhysicalPrinter::name, Slic3r::ConfigBase::opt_string(), and printer().
Referenced by load_printers_from_presets().
Here is the call graph for this function:
Here is the caller graph for this function:| std::vector< std::string > Slic3r::PhysicalPrinterCollection::get_printers_with_only_preset | ( | const std::string & | preset_name | ) |
References m_printers, Slic3r::PhysicalPrinter::name, Slic3r::PhysicalPrinter::preset_names, and printer().
Referenced by Slic3r::GUI::Tab::delete_preset().
Here is the call graph for this function:
Here is the caller graph for this function:| std::vector< std::string > Slic3r::PhysicalPrinterCollection::get_printers_with_preset | ( | const std::string & | preset_name, |
| bool | respect_only_preset = true |
||
| ) |
References m_printers, Slic3r::PhysicalPrinter::name, Slic3r::PhysicalPrinter::preset_names, and printer().
Referenced by Slic3r::GUI::Tab::delete_preset().
Here is the call graph for this function:
Here is the caller graph for this function:| std::string Slic3r::PhysicalPrinterCollection::get_selected_full_printer_name | ( | ) | const |
References Slic3r::PhysicalPrinter::get_full_name(), get_selected_printer(), m_idx_selected, and m_selected_preset.
Referenced by Slic3r::GUI::PresetComboBox::del_physical_printer(), Slic3r::PresetBundle::export_selections(), Slic3r::GUI::PlaterPresetComboBox::get_selected_ph_printer_name(), and Slic3r::GUI::PresetComboBox::selection_is_changed_according_to_physical_printers().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
References m_idx_selected.
|
inline |
References m_idx_selected, and m_printers.
Referenced by Slic3r::GUI::Tab::delete_preset(), delete_selected_printer(), get_selected_full_printer_name(), get_selected_printer_config(), get_selected_printer_name(), get_selected_printer_technology(), Slic3r::GUI::PresetComboBox::open_physical_printer_url(), Slic3r::GUI::PlaterPresetComboBox::show_edit_menu(), and Slic3r::GUI::SavePresetDialog::update_physical_printers().
Here is the caller graph for this function:
|
inline |
References m_idx_selected, and m_printers.
|
inline |
References Slic3r::PhysicalPrinter::config, get_selected_printer(), and m_idx_selected.
Here is the call graph for this function:
|
inline |
References get_selected_printer(), m_idx_selected, and Slic3r::PhysicalPrinter::name.
Referenced by Slic3r::GUI::SavePresetDialog::add_info_for_edit_ph_printer(), Slic3r::PresetBundle::full_fff_config(), Slic3r::PresetBundle::full_sla_config(), and Slic3r::GUI::PhysicalPrinterDialog::OnOK().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
References m_idx_selected, and m_selected_preset.
Referenced by Slic3r::GUI::SavePresetDialog::add_info_for_edit_ph_printer(), Slic3r::GUI::Tab::delete_preset(), Slic3r::GUI::PhysicalPrinterDialog::OnOK(), Slic3r::GUI::PresetComboBox::selection_is_changed_according_to_physical_printers(), Slic3r::GUI::TabPresetComboBox::update(), and Slic3r::GUI::SavePresetDialog::update_physical_printers().
Here is the caller graph for this function:
|
inline |
References get_selected_printer(), m_idx_selected, Slic3r::PhysicalPrinter::printer_technology(), and Slic3r::ptAny.
Here is the call graph for this function:| bool Slic3r::PhysicalPrinterCollection::has_selection | ( | ) | const |
References m_idx_selected.
Referenced by delete_selected_printer(), Slic3r::GUI::PresetComboBox::edit_physical_printer(), Slic3r::GUI::PlaterPresetComboBox::get_selected_ph_printer_name(), Slic3r::GUI::PresetComboBox::selection_is_changed_according_to_physical_printers(), Slic3r::GUI::PlaterPresetComboBox::update(), Slic3r::GUI::TabPresetComboBox::update(), and Slic3r::GUI::SavePresetDialog::update_physical_printers().
Here is the caller graph for this function:| bool Slic3r::PhysicalPrinterCollection::is_selected | ( | PhysicalPrinterCollection::ConstIterator | it, |
| const std::string & | preset_name | ||
| ) | const |
References m_idx_selected, m_printers, and m_selected_preset.
Referenced by Slic3r::GUI::PlaterPresetComboBox::update(), and Slic3r::GUI::TabPresetComboBox::update().
Here is the caller graph for this function:| void Slic3r::PhysicalPrinterCollection::load_printer | ( | const std::string & | path, |
| const std::string & | name, | ||
| DynamicPrintConfig && | config, | ||
| bool | select, | ||
| bool | save = false |
||
| ) |
References find_printer_internal(), m_printers, save(), and select_printer().
Referenced by Slic3r::PresetBundle::load_configbundle().
Here is the call graph for this function:
Here is the caller graph for this function:| void Slic3r::PhysicalPrinterCollection::load_printers | ( | const std::string & | dir_path, |
| const std::string & | subdir, | ||
| PresetsConfigSubstitutions & | substitutions, | ||
| ForwardCompatibilitySubstitutionRule | rule | ||
| ) |
References default_config(), Slic3r::PhysicalPrinter::file, find_printer(), Slic3r::is_ini_file(), Slic3r::ConfigBase::load_from_ini(), Slic3r::PhysicalPrinter::loaded, m_dir_path, m_printers, printer(), Slic3r::Preset::TYPE_PHYSICAL_PRINTER, Slic3r::PhysicalPrinter::update_from_config(), and Slic3r::PresetConfigSubstitutions::UserFile.
Referenced by Slic3r::PresetBundle::load_presets().
Here is the call graph for this function:
Here is the caller graph for this function:| void Slic3r::PhysicalPrinterCollection::load_printers_from_presets | ( | PrinterPresetCollection & | printer_presets | ) |
References Slic3r::PhysicalPrinter::add_preset(), Slic3r::Preset::config, default_config(), find_printer(), find_printer_with_same_config(), Slic3r::PresetCollection::get_edited_preset(), Slic3r::legacy_print_host_options, Slic3r::PhysicalPrinter::loaded, Slic3r::Preset::name, Slic3r::ConfigBase::opt_string(), printer(), and save_printer().
Referenced by Slic3r::GUI::GUI_App::check_printer_presets().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
References m_printers.
|
privatedefault |
| std::string Slic3r::PhysicalPrinterCollection::path_from_name | ( | const std::string & | new_name | ) | const |
References m_dir_path.
Referenced by save_printer().
Here is the caller graph for this function:
|
inline |
References m_printers.
Referenced by delete_preset_from_printers(), delete_printer(), delete_selected_printer(), find_printer(), find_printer_internal(), find_printer_with_same_config(), get_printers_with_only_preset(), get_printers_with_preset(), load_printers(), load_printers_from_presets(), rename_preset_in_printers(), save_printer(), and select_printer().
Here is the caller graph for this function:
|
inline |
| void Slic3r::PhysicalPrinterCollection::rename_preset_in_printers | ( | const std::string & | old_name, |
| const std::string & | new_name | ||
| ) |
References Slic3r::PhysicalPrinter::add_preset(), Slic3r::PhysicalPrinter::delete_preset(), m_printers, printer(), Slic3r::PhysicalPrinter::save(), and Slic3r::PhysicalPrinter::update_preset_names_in_config().
Here is the call graph for this function:
|
inline |
| void Slic3r::PhysicalPrinterCollection::save_printer | ( | PhysicalPrinter & | printer, |
| const std::string & | renamed_from = "" |
||
| ) |
References Slic3r::PhysicalPrinter::config, Slic3r::PhysicalPrinter::file, find_printer_internal(), m_idx_selected, m_printers, Slic3r::PhysicalPrinter::name, path_from_name(), Slic3r::PhysicalPrinter::preset_names, printer(), Slic3r::PhysicalPrinter::save(), and Slic3r::PhysicalPrinter::update_preset_names_in_config().
Referenced by delete_preset_from_printers(), load_printers_from_presets(), Slic3r::GUI::PhysicalPrinterDialog::OnOK(), and Slic3r::GUI::SavePresetDialog::update_physical_printers().
Here is the call graph for this function:
Here is the caller graph for this function:| void Slic3r::PhysicalPrinterCollection::select_printer | ( | const PhysicalPrinter & | printer | ) |
References Slic3r::PhysicalPrinter::name, printer(), and select_printer().
Here is the call graph for this function:References find_printer_internal(), Slic3r::PhysicalPrinter::get_short_name(), m_idx_selected, m_printers, m_selected_preset, and unselect_printer().
Referenced by Slic3r::GUI::Tab::delete_preset(), Slic3r::PresetBundle::load_config_file_config(), load_printer(), Slic3r::PresetBundle::load_selections(), Slic3r::GUI::PhysicalPrinterDialog::OnOK(), select_printer(), select_printer(), Slic3r::GUI::PresetComboBox::selection_is_changed_according_to_physical_printers(), and Slic3r::GUI::SavePresetDialog::update_physical_printers().
Here is the call graph for this function:
Here is the caller graph for this function:| void Slic3r::PhysicalPrinterCollection::select_printer | ( | const std::string & | printer_name, |
| const std::string & | preset_name | ||
| ) |
References select_printer(), and Slic3r::PhysicalPrinter::separator().
Here is the call graph for this function:| void Slic3r::PhysicalPrinterCollection::unselect_printer | ( | ) |
References m_idx_selected, and m_selected_preset.
Referenced by delete_preset_from_printers(), delete_selected_printer(), Slic3r::PresetBundle::load_config_file_config(), select_printer(), Slic3r::GUI::PresetComboBox::selection_is_changed_according_to_physical_printers(), Slic3r::GUI::TabPresetComboBox::update(), and Slic3r::GUI::SavePresetDialog::update_physical_printers().
Here is the caller graph for this function:
|
friend |
|
private |
Referenced by PhysicalPrinterCollection(), and default_config().
|
private |
Referenced by load_printers(), and path_from_name().
|
private |
Referenced by delete_selected_printer(), get_selected_full_printer_name(), get_selected_idx(), get_selected_printer(), get_selected_printer(), get_selected_printer_config(), get_selected_printer_name(), get_selected_printer_preset_name(), get_selected_printer_technology(), has_selection(), is_selected(), save_printer(), select_printer(), and unselect_printer().
|
private |
Referenced by begin(), begin(), cbegin(), cend(), delete_preset_from_printers(), delete_printer(), delete_selected_printer(), empty(), end(), end(), find_printer(), find_printer_internal(), get_printers_with_only_preset(), get_printers_with_preset(), get_selected_printer(), get_selected_printer(), is_selected(), load_printer(), load_printers(), operator()(), printer(), rename_preset_in_printers(), save_printer(), and select_printer().
|
private |