#include </home/runner/work/OrcaSlicer/OrcaSlicer/src/libslic3r/Preset.hpp>
Public Types | |
| typedef std::deque< PhysicalPrinter >::iterator | Iterator |
| typedef std::deque< PhysicalPrinter >::const_iterator | ConstIterator |
Public Member Functions | |
| PhysicalPrinterCollection (const std::vector< std::string > &keys) | |
| Iterator | begin () |
| ConstIterator | begin () const |
| ConstIterator | cbegin () const |
| Iterator | end () |
| ConstIterator | end () const |
| ConstIterator | cend () const |
| bool | empty () const |
| void | reset (bool delete_files) |
| const std::deque< PhysicalPrinter > & | operator() () const |
| void | load_printers (const std::string &dir_path, const std::string &subdir, PresetsConfigSubstitutions &substitutions, ForwardCompatibilitySubstitutionRule rule) |
| void | load_printers_from_presets (PrinterPresetCollection &printer_presets) |
| void | load_printer (const std::string &path, const std::string &name, DynamicPrintConfig &&config, bool select, bool save=false) |
| void | save_printer (PhysicalPrinter &printer, const std::string &renamed_from="") |
| bool | delete_printer (const std::string &name) |
| bool | delete_selected_printer () |
| bool | delete_preset_from_printers (const std::string &preset_name) |
| std::vector< std::string > | get_printers_with_preset (const std::string &preset_name) |
| std::vector< std::string > | get_printers_with_only_preset (const std::string &preset_name) |
| PhysicalPrinter & | get_selected_printer () |
| const PhysicalPrinter & | get_selected_printer () const |
| size_t | get_selected_idx () const |
| std::string | get_selected_printer_name () const |
| DynamicPrintConfig * | get_selected_printer_config () |
| PrinterTechnology | get_selected_printer_technology () |
| std::string | get_selected_full_printer_name () const |
| std::string | get_selected_printer_preset_name () const |
| void | select_printer (const std::string &full_name) |
| void | select_printer (const PhysicalPrinter &printer) |
| void | select_printer (const std::string &printer_name, const std::string &preset_name) |
| bool | has_selection () const |
| void | unselect_printer () |
| bool | is_selected (ConstIterator it, const std::string &preset_name) const |
| PhysicalPrinter & | printer (size_t idx) |
| const PhysicalPrinter & | printer (size_t idx) const |
| PhysicalPrinter * | find_printer (const std::string &name, bool case_sensitive_search=true) |
| const PhysicalPrinter * | find_printer (const std::string &name, bool case_sensitive_search=true) const |
| std::string | path_from_name (const std::string &new_name) const |
| const DynamicPrintConfig & | default_config () const |
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 |
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 m_default_config, and Slic3r::print_config_def.
Referenced by find_printer(), find_printer_internal(), operator=(), and printer().
|
privatedefault |
|
inline |
References m_printers.
|
inline |
References m_printers.
|
inline |
References m_printers.
|
inline |
References m_printers.
|
inline |
References m_default_config.
Referenced by load_printers(), and load_printers_from_presets().
| bool Slic3r::PhysicalPrinterCollection::delete_preset_from_printers | ( | const std::string & | preset_name | ) |
References delete_printer(), m_printers, printer(), save_printer(), and unselect_printer().
Referenced by Slic3r::GUI::Tab::delete_preset().
| bool Slic3r::PhysicalPrinterCollection::delete_printer | ( | const std::string & | name | ) |
References find_printer_internal(), m_printers, printer(), and Slic3r::user_presets_lock_path().
Referenced by delete_preset_from_printers().
| bool Slic3r::PhysicalPrinterCollection::delete_selected_printer | ( | ) |
References get_selected_printer(), has_selection(), m_idx_selected, m_printers, printer(), unselect_printer(), and Slic3r::user_presets_lock_path().
|
inline |
References m_printers.
Referenced by Slic3r::GUI::Tab::delete_preset().
|
inline |
References m_printers.
|
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 find_printer(), load_printers(), and load_printers_from_presets().
|
inline |
References PhysicalPrinterCollection(), and find_printer().
|
private |
References Slic3r::lower_bound_by_predicate(), m_printers, and printer().
Referenced by delete_printer(), find_printer(), find_printer_internal(), load_printer(), operator=(), save_printer(), and select_printer().
|
inlineprivate |
References PhysicalPrinterCollection(), and find_printer_internal().
| std::vector< std::string > Slic3r::PhysicalPrinterCollection::get_printers_with_only_preset | ( | const std::string & | preset_name | ) |
References m_printers, and printer().
Referenced by Slic3r::GUI::Tab::delete_preset().
| std::vector< std::string > Slic3r::PhysicalPrinterCollection::get_printers_with_preset | ( | const std::string & | preset_name | ) |
References m_printers, and printer().
Referenced by Slic3r::GUI::Tab::delete_preset().
| 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::selection_is_changed_according_to_physical_printers().
|
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(), and Slic3r::GUI::SavePresetDialog::update_physical_printers().
|
inline |
References m_idx_selected, and m_printers.
|
inline |
|
inline |
References get_selected_printer(), and m_idx_selected.
Referenced by Slic3r::GUI::SavePresetDialog::add_info_for_edit_ph_printer().
|
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::Plater::priv::on_select_preset(), Slic3r::GUI::PresetComboBox::selection_is_changed_according_to_physical_printers(), and Slic3r::GUI::SavePresetDialog::update_physical_printers().
|
inline |
References get_selected_printer(), m_idx_selected, and Slic3r::ptAny.
| bool Slic3r::PhysicalPrinterCollection::has_selection | ( | ) | const |
References m_idx_selected.
Referenced by delete_selected_printer(), Slic3r::GUI::PresetComboBox::selection_is_changed_according_to_physical_printers(), and Slic3r::GUI::SavePresetDialog::update_physical_printers().
| bool Slic3r::PhysicalPrinterCollection::is_selected | ( | PhysicalPrinterCollection::ConstIterator | it, |
| const std::string & | preset_name ) const |
References m_idx_selected, m_printers, and m_selected_preset.
| 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().
| void Slic3r::PhysicalPrinterCollection::load_printers | ( | const std::string & | dir_path, |
| const std::string & | subdir, | ||
| PresetsConfigSubstitutions & | substitutions, | ||
| ForwardCompatibilitySubstitutionRule | rule ) |
References _u8L, default_config(), Slic3r::PhysicalPrinter::file, find_printer(), Slic3r::is_json_file(), Slic3r::ConfigBase::load_from_json(), m_dir_path, m_printers, printer(), Slic3r::Preset::TYPE_PHYSICAL_PRINTER, Slic3r::user_presets_lock_path(), and Slic3r::PresetConfigSubstitutions::UserFile.
| void Slic3r::PhysicalPrinterCollection::load_printers_from_presets | ( | PrinterPresetCollection & | printer_presets | ) |
References Slic3r::PhysicalPrinter::add_preset(), Slic3r::Preset::config, default_config(), find_printer(), Slic3r::PresetCollection::get_edited_preset(), Slic3r::Preset::name, Slic3r::DynamicConfig::opt_string(), printer(), and save_printer().
|
inline |
References m_printers.
|
privatedefault |
References PhysicalPrinterCollection(), and find_printer_internal().
| std::string Slic3r::PhysicalPrinterCollection::path_from_name | ( | const std::string & | new_name | ) | const |
References m_dir_path.
Referenced by save_printer().
|
inline |
References m_printers.
Referenced by delete_preset_from_printers(), delete_printer(), delete_selected_printer(), find_printer(), find_printer_internal(), get_printers_with_only_preset(), get_printers_with_preset(), load_printers(), load_printers_from_presets(), save_printer(), and select_printer().
|
inline |
References PhysicalPrinterCollection(), and printer().
Referenced by printer().
|
inline |
| void Slic3r::PhysicalPrinterCollection::save_printer | ( | PhysicalPrinter & | printer, |
| const std::string & | renamed_from = "" ) |
References Slic3r::PhysicalPrinter::config, find_printer_internal(), m_idx_selected, m_printers, Slic3r::PhysicalPrinter::name, path_from_name(), Slic3r::PhysicalPrinter::preset_names, printer(), and Slic3r::PhysicalPrinter::update_preset_names_in_config().
Referenced by delete_preset_from_printers(), load_printers_from_presets(), and Slic3r::GUI::SavePresetDialog::update_physical_printers().
| void Slic3r::PhysicalPrinterCollection::select_printer | ( | const PhysicalPrinter & | printer | ) |
| void Slic3r::PhysicalPrinterCollection::select_printer | ( | const std::string & | full_name | ) |
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(), load_printer(), select_printer(), select_printer(), Slic3r::GUI::PresetComboBox::selection_is_changed_according_to_physical_printers(), and Slic3r::GUI::SavePresetDialog::update_physical_printers().
| void Slic3r::PhysicalPrinterCollection::select_printer | ( | const std::string & | printer_name, |
| const std::string & | preset_name ) |
References select_printer(), and Slic3r::PhysicalPrinter::separator().
| void Slic3r::PhysicalPrinterCollection::unselect_printer | ( | ) |
References m_idx_selected, and m_selected_preset.
Referenced by delete_preset_from_printers(), delete_selected_printer(), Slic3r::GUI::Plater::priv::on_select_preset(), select_printer(), and Slic3r::GUI::SavePresetDialog::update_physical_printers().
|
friend |
References PresetBundle.
Referenced by PresetBundle.
|
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(), save_printer(), and select_printer().
|
private |