![]() |
Prusa Slicer 2.6.0
|
#include <src/libslic3r/Preset.hpp>
Inheritance diagram for Slic3r::PresetCollection:
Collaboration diagram for Slic3r::PresetCollection:Public Types | |
| enum class | LoadAndSelect { Never , Always , OnlyIfModified } |
| typedef std::deque< Preset >::iterator | Iterator |
| typedef std::deque< Preset >::const_iterator | ConstIterator |
Static Public Member Functions | |
| static const std::string & | get_suffix_modified () |
| static bool | is_dirty (const Preset *edited, const Preset *reference) |
| static std::vector< std::string > | dirty_options (const Preset *edited, const Preset *reference, const bool deep_compare=false) |
| static bool | is_independent_from_extruder_number_option (const std::string &opt_key) |
Protected Member Functions | |
| PresetCollection ()=default | |
| PresetCollection (const PresetCollection &other)=default | |
| PresetCollection & | operator= (const PresetCollection &other)=default |
| void | update_vendor_ptrs_after_copy (const VendorMap &vendors) |
| bool | select_preset_by_name_strict (const std::string &name) |
| std::vector< std::string > | merge_presets (PresetCollection &&other, const VendorMap &new_vendors) |
| void | update_map_alias_to_profile_name () |
| void | update_map_system_profile_renamed () |
Private Member Functions | |
| std::deque< Preset >::iterator | find_preset_internal (const std::string &name) |
| std::deque< Preset >::const_iterator | find_preset_internal (const std::string &name) const |
| std::deque< Preset >::iterator | find_preset_renamed (const std::string &name) |
| std::deque< Preset >::const_iterator | find_preset_renamed (const std::string &name) const |
| size_t | update_compatible_internal (const PresetWithVendorProfile &active_printer, const PresetWithVendorProfile *active_print, PresetSelectCompatibleType unselect_if_incompatible) |
Private Attributes | |
| Preset::Type | m_type |
| std::deque< Preset > | m_presets |
| std::vector< std::pair< std::string, std::string > > | m_map_alias_to_profile_name |
| std::map< std::string, std::string > | m_map_system_profile_renamed |
| Preset | m_edited_preset |
| Preset | m_saved_preset |
| size_t | m_idx_selected |
| bool | m_default_suppressed = true |
| size_t | m_num_default_presets = 0 |
| std::string | m_dir_path |
Friends | |
| class | PresetBundle |
| typedef std::deque<Preset>::const_iterator Slic3r::PresetCollection::ConstIterator |
| typedef std::deque<Preset>::iterator Slic3r::PresetCollection::Iterator |
|
strong |
| Enumerator | |
|---|---|
| Never | |
| Always | |
| OnlyIfModified | |
| Slic3r::PresetCollection::PresetCollection | ( | Preset::Type | type, |
| const std::vector< std::string > & | keys, | ||
| const Slic3r::StaticPrintConfig & | defaults, | ||
| const std::string & | default_name = "- default -" |
||
| ) |
References add_default_preset(), Slic3r::ConfigBase::apply(), Slic3r::Preset::config, m_edited_preset, m_presets, and update_saved_preset_from_current_preset().
Here is the call graph for this function:
|
protecteddefault |
|
protecteddefault |
| void Slic3r::PresetCollection::add_default_preset | ( | const std::vector< std::string > & | keys, |
| const Slic3r::StaticPrintConfig & | defaults, | ||
| const std::string & | preset_name | ||
| ) |
References Slic3r::StaticConfig::keys(), m_num_default_presets, m_presets, and type().
Referenced by Slic3r::PresetBundle::PresetBundle(), and PresetCollection().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
References m_num_default_presets, and m_presets.
|
inline |
References m_num_default_presets, and m_presets.
|
inline |
References m_num_default_presets, and m_presets.
Referenced by Slic3r::PrinterPresetCollection::find_system_preset_by_model_and_variant().
Here is the caller graph for this function:
|
inline |
References m_presets.
Referenced by Slic3r::PrinterPresetCollection::find_system_preset_by_model_and_variant().
Here is the caller graph for this function:
|
inline |
References dirty_options(), get_edited_preset(), and get_selected_preset_parent().
Here is the call graph for this function:
|
inline |
References dirty_options(), get_edited_preset(), and get_selected_preset().
Here is the call graph for this function:
|
inline |
References get_edited_preset(), get_selected_preset(), and is_dirty().
Referenced by Slic3r::GUI::PresetComboBox::OnSelect(), Slic3r::GUI::PlaterPresetComboBox::OnSelect(), Slic3r::GUI::TabPresetComboBox::OnSelect(), Slic3r::GUI::Tab::select_preset(), and update_dirty().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
References m_num_default_presets, and m_presets.
Referenced by Slic3r::PresetBundle::PresetBundle(), default_preset_for(), Slic3r::PrinterPresetCollection::default_preset_for(), Slic3r::PresetBundle::full_fff_config(), get_selected_preset_parent(), Slic3r::PresetBundle::load_config_file_config(), Slic3r::PresetBundle::load_configbundle(), load_preset(), and load_presets().
Here is the caller graph for this function:References m_num_default_presets, and m_presets.
|
inlinevirtual |
Reimplemented in Slic3r::PrinterPresetCollection.
References default_preset().
Referenced by Slic3r::PresetBundle::load_configbundle(), load_external_preset(), and load_presets().
Here is the call graph for this function:
Here is the caller graph for this function:| bool Slic3r::PresetCollection::delete_current_preset | ( | ) |
References Slic3r::Preset::file, get_selected_preset(), Slic3r::Preset::is_default, Slic3r::Preset::is_external, Slic3r::Preset::is_system, m_idx_selected, m_presets, and select_preset().
Referenced by delete_preset().
Here is the call graph for this function:
Here is the caller graph for this function:| bool Slic3r::PresetCollection::delete_preset | ( | const std::string & | name | ) |
References delete_current_preset(), Slic3r::Preset::file, find_preset_internal(), get_selected_preset(), get_selected_preset_name(), Slic3r::Preset::is_default, Slic3r::Preset::is_external, Slic3r::Preset::is_system, m_presets, name(), preset(), and select_preset_by_name().
Here is the call graph for this function:
|
static |
References Slic3r::Preset::config, Slic3r::deep_diff(), Slic3r::DynamicConfig::diff(), Slic3r::ConfigOptionResolver::has(), and Slic3r::optional_keys.
Referenced by current_different_from_parent_options(), current_dirty_options(), and Slic3r::GUI::DiffPresetDialog::update_tree().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
References m_edited_preset, m_idx_selected, and m_presets.
Referenced by Slic3r::GUI::GUI_App::check_and_keep_current_preset_changes(), and Slic3r::GUI::Tab::select_preset().
Here is the caller graph for this function:
|
inline |
References m_presets.
Referenced by Slic3r::PresetBundle::load_selections().
Here is the caller graph for this function:
|
inline |
| Preset * Slic3r::PresetCollection::find_preset | ( | const std::string & | name, |
| bool | first_visible_if_not_found = false, |
||
| bool | respect_active_preset = true |
||
| ) |
References find_preset_internal(), first_visible(), m_presets, m_type, Slic3r::Preset::name, name(), and preset().
Referenced by Slic3r::GUI::UnsavedChangesDialog::UnsavedChangesDialog(), Slic3r::GUI::UnsavedChangesDialog::build(), Slic3r::GUI::ConfigWizard::priv::check_and_install_missing_materials(), Slic3r::GUI::Plater::check_selected_presets_visibility(), find_preset(), Slic3r::GUI::SavePresetDialog::Item::get_existing_preset(), get_preset_parent(), get_selected_preset_parent(), Slic3r::PresetBundle::load_configbundle(), load_presets(), Slic3r::PresetBundle::load_selections(), Slic3r::GUI::ConfigWizard::priv::load_vendors(), Slic3r::PresetBundle::transfer_and_save(), Slic3r::GUI::PlaterPresetComboBox::update(), Slic3r::GUI::TabPresetComboBox::update(), Slic3r::GUI::DiffPresetDialog::update_compatibility(), Slic3r::GUI::TabPresetComboBox::update_dirty(), Slic3r::GUI::Plater::update_filament_colors_in_full_config(), and Slic3r::GUI::DiffPresetDialog::update_tree().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
References find_preset(), and name().
Here is the call graph for this function:
|
inlineprivate |
References Slic3r::lower_bound_by_predicate(), m_num_default_presets, m_presets, and name().
Referenced by delete_preset(), find_preset(), find_preset_internal(), find_preset_renamed(), get_preset_name_by_alias(), get_preset_with_name(), load_external_preset(), load_preset(), Slic3r::PresetBundle::load_selections(), save_current_preset(), select_preset_by_name(), and select_preset_by_name_strict().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inlineprivate |
|
inlineprivate |
References find_preset_internal(), m_map_system_profile_renamed, m_presets, and name().
Referenced by find_preset_renamed(), get_preset_parent(), get_selected_preset_parent(), and load_external_preset().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inlineprivate |
References find_preset_renamed(), and name().
Here is the call graph for this function:
|
inline |
References first_compatible_idx(), and preset().
Here is the call graph for this function:
|
inline |
|
inline |
References first_compatible_idx().
Referenced by first_compatible(), first_compatible(), first_compatible(), first_compatible_idx(), and update_compatible().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
References m_default_suppressed, m_num_default_presets, and m_presets.
|
inline |
References first_visible_idx(), and preset().
Referenced by find_preset().
Here is the call graph for this function:
Here is the caller graph for this function:| size_t Slic3r::PresetCollection::first_visible_idx | ( | ) | const |
References m_default_suppressed, m_num_default_presets, and m_presets.
Referenced by first_visible(), first_visible(), load_presets(), and select_preset().
Here is the caller graph for this function:
|
inline |
References m_edited_preset.
Referenced by Slic3r::GUI::UnsavedChangesDialog::UnsavedChangesDialog(), Slic3r::GUI::GUI_App::apply_keeped_preset_modifications(), Slic3r::GUI::UnsavedChangesDialog::build(), Slic3r::GUI::GUI_App::check_and_keep_current_preset_changes(), Slic3r::GUI::Plater::check_selected_presets_visibility(), Slic3r::GUI::DiffPresetDialog::create_buttons(), current_different_from_parent_options(), current_dirty_options(), current_is_dirty(), Slic3r::PresetBundle::export_selections(), Slic3r::GUI::GUI_App::extruders_edited_cnt(), Slic3r::PresetBundle::full_config(), Slic3r::PresetBundle::full_fff_config(), Slic3r::PresetBundle::full_sla_config(), Slic3r::GUI::GUI_App::get_active_preset_collections(), get_edited_preset_with_vendor_profile(), get_selected_preset_parent(), Slic3r::GUI::GUI_App::has_current_preset_changes(), Slic3r::GUI::GUI_App::has_unsaved_preset_changes(), Slic3r::PresetBundle::load_config_file_config(), Slic3r::GUI::GUI_App::load_current_presets(), load_external_preset(), Slic3r::PhysicalPrinterCollection::load_printers_from_presets(), Slic3r::PresetHints::maximum_volumetric_flow_description(), Slic3r::GUI::Tab::may_discard_current_dirty_preset(), Slic3r::PresetHints::recommended_thin_wall_thickness(), Slic3r::GUI::GUI_App::run_wizard(), Slic3r::GUI::UnsavedChangesDialog::save(), Slic3r::PresetBundle::save_changes_for_preset(), saved_is_dirty(), Slic3r::GUI::PresetComboBox::selection_is_changed_according_to_physical_printers(), Slic3r::PresetHints::top_bottom_shell_thickness_explanation(), Slic3r::GUI::PlaterPresetComboBox::update(), Slic3r::GUI::UnsavedChangesDialog::update(), Slic3r::GUI::Sidebar::update_all_preset_comboboxes(), update_dirty(), Slic3r::GUI::Sidebar::update_presets(), and Slic3r::GUI::GUI_App::update_saved_preset_from_current_preset().
Here is the caller graph for this function:References m_edited_preset.
|
inline |
References get_edited_preset(), and get_preset_with_vendor_profile().
Referenced by Slic3r::GUI::Tab::select_preset().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
References m_idx_selected.
| const std::string & Slic3r::PresetCollection::get_preset_name_by_alias | ( | const std::string & | alias | ) | const |
References find_preset_internal(), Slic3r::lower_bound_by_predicate(), m_idx_selected, m_map_alias_to_profile_name, and m_presets.
Referenced by Slic3r::PresetBundle::get_preset_name_by_alias().
Here is the call graph for this function:
Here is the caller graph for this function:| const std::string * Slic3r::PresetCollection::get_preset_name_renamed | ( | const std::string & | old_name | ) | const |
References m_map_system_profile_renamed.
Referenced by Slic3r::GUI::ConfigWizard::priv::load_vendors().
Here is the caller graph for this function:References find_preset(), find_preset_renamed(), Slic3r::Preset::inherits(), Slic3r::Preset::is_external, m_presets, and preset().
Referenced by get_preset_with_vendor_profile().
Here is the call graph for this function:
Here is the caller graph for this function:| Preset & Slic3r::PresetCollection::get_preset_with_name | ( | const std::string & | new_name, |
| const Preset * | initial_preset | ||
| ) |
References Slic3r::Preset::alias, Slic3r::Preset::config, Slic3r::Preset::file, find_preset_internal(), get_selected_preset_name(), Slic3r::Preset::inherits(), Slic3r::Preset::is_default, Slic3r::Preset::is_external, Slic3r::Preset::is_system, Slic3r::Preset::is_visible, m_presets, Slic3r::Preset::name, path_from_name(), preset(), Slic3r::Preset::renamed_from, select_preset_by_name(), and Slic3r::Preset::vendor.
Referenced by Slic3r::PresetBundle::transfer_and_save().
Here is the call graph for this function:
Here is the caller graph for this function:| PresetWithVendorProfile Slic3r::PresetCollection::get_preset_with_vendor_profile | ( | const Preset & | preset | ) | const |
References get_preset_parent(), preset(), and Slic3r::Preset::vendor.
Referenced by get_edited_preset_with_vendor_profile(), Slic3r::PresetBundle::load_installed_filaments(), Slic3r::PresetBundle::load_installed_sla_materials(), update_compatible_internal(), and Slic3r::ExtruderFilaments::update_compatible_internal().
Here is the call graph for this function:
Here is the caller graph for this function:References m_presets.
Referenced by Slic3r::ExtruderFilaments::ExtruderFilaments(), Slic3r::GUI::SavePresetDialog::Item::get_existing_preset(), Slic3r::PrinterPresetCollection::only_default_printers(), Slic3r::GUI::PlaterPresetComboBox::update(), Slic3r::GUI::TabPresetComboBox::update(), and Slic3r::GUI::PresetComboBox::update().
Here is the caller graph for this function:
|
inline |
References m_idx_selected.
Referenced by Slic3r::GUI::DiffPresetDialog::create_presets_sizer(), get_selected_preset_parent(), Slic3r::GUI::PlaterPresetComboBox::update(), and Slic3r::GUI::TabPresetComboBox::update().
Here is the caller graph for this function:
|
inline |
References m_idx_selected, and m_presets.
Referenced by Slic3r::GUI::Plater::check_selected_presets_visibility(), Slic3r::GUI::DiffPresetDialog::create_presets_sizer(), current_dirty_options(), current_is_dirty(), delete_current_preset(), delete_preset(), Slic3r::PresetBundle::export_selections(), Slic3r::GUI::GUI_App::extruders_cnt(), Slic3r::GUI::SavePresetDialog::Item::get_init_preset_name(), get_selected_preset_name(), get_selected_preset_parent(), load_external_preset(), Slic3r::PresetBundle::load_selections(), Slic3r::GUI::Tab::may_discard_current_dirty_preset(), Slic3r::PresetBundle::save_changes_for_preset(), save_current_preset(), Slic3r::GUI::PlaterPresetComboBox::update(), Slic3r::GUI::TabSLAMaterial::update(), Slic3r::GUI::TabSLAPrint::update(), Slic3r::GUI::UnsavedChangesDialog::update(), Slic3r::GUI::DiffPresetDialog::update_compatibility(), update_dirty(), and Slic3r::GUI::PresetComboBox::update_from_bundle().
Here is the caller graph for this function:References m_idx_selected, and m_presets.
|
inline |
References get_selected_preset(), m_idx_selected, and Slic3r::Preset::name.
Referenced by Slic3r::ExtruderFilaments::ExtruderFilaments(), delete_preset(), Slic3r::PresetBundle::export_selections(), Slic3r::PresetBundle::full_fff_config(), Slic3r::PresetBundle::full_sla_config(), get_preset_with_name(), Slic3r::PresetBundle::load_config_file_config_bundle(), Slic3r::PresetBundle::load_selections(), Slic3r::PresetHints::maximum_volumetric_flow_description(), Slic3r::PresetBundle::save_changes_for_preset(), and Slic3r::PresetBundle::transfer_and_save().
Here is the call graph for this function:
Here is the caller graph for this function:References default_preset(), find_preset(), find_preset_renamed(), get_edited_preset(), get_selected_idx(), get_selected_preset(), Slic3r::Preset::inherits(), Slic3r::Preset::is_default, Slic3r::Preset::is_external, Slic3r::Preset::is_system, m_presets, m_type, preset(), Slic3r::Preset::printer_technology(), Slic3r::ptSLA, and Slic3r::Preset::TYPE_PRINTER.
Referenced by current_different_from_parent_options().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
References Slic3r::g_suffix_modified.
Referenced by Slic3r::GUI::SavePresetDialog::Item::update().
Here is the caller graph for this function:
|
inline |
References m_num_default_presets, and m_presets.
Referenced by Slic3r::PresetBundle::has_defauls_only().
Here is the caller graph for this function:
|
inline |
References m_default_suppressed.
Referenced by Slic3r::ExtruderFilaments::first_compatible_idx().
Here is the caller graph for this function:References Slic3r::Preset::config, Slic3r::DynamicConfig::equals(), Slic3r::ConfigOptionResolver::has(), and Slic3r::optional_keys.
Referenced by current_is_dirty(), load_external_preset(), saved_is_dirty(), and update_dirty().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
References Slic3r::independent_from_extruder_number_options.
Referenced by Slic3r::Search::OptionsSearcher::append_options(), Slic3r::deep_diff(), and Slic3r::GUI::Tab::init_options_list().
Here is the caller graph for this function:| std::pair< Preset *, bool > Slic3r::PresetCollection::load_external_preset | ( | const std::string & | path, |
| const std::string & | name, | ||
| const std::string & | original_name, | ||
| const DynamicPrintConfig & | config, | ||
| LoadAndSelect | select = LoadAndSelect::Always |
||
| ) |
References Always, Slic3r::ConfigBase::apply_only(), Slic3r::Preset::config, default_preset_for(), find_preset_internal(), find_preset_renamed(), get_edited_preset(), get_selected_preset(), Slic3r::Preset::inherits(), is_dirty(), Slic3r::Preset::is_external, Slic3r::DynamicConfig::keys(), load_preset(), m_idx_selected, m_presets, Slic3r::Preset::name, name(), Never, preset(), Slic3r::profile_print_params_same(), select_preset(), and update_dirty().
Referenced by Slic3r::PresetBundle::load_config_file_config().
Here is the call graph for this function:
Here is the caller graph for this function:| Preset & Slic3r::PresetCollection::load_preset | ( | const std::string & | path, |
| const std::string & | name, | ||
| const DynamicPrintConfig & | config, | ||
| bool | select = true |
||
| ) |
References Slic3r::ConfigBase::apply_only(), default_preset(), Slic3r::DynamicConfig::keys(), load_preset(), and name().
Referenced by Slic3r::PresetBundle::load_config_file_config(), Slic3r::PresetBundle::load_configbundle(), load_external_preset(), and load_preset().
Here is the call graph for this function:
Here is the caller graph for this function:| Preset & Slic3r::PresetCollection::load_preset | ( | const std::string & | path, |
| const std::string & | name, | ||
| DynamicPrintConfig && | config, | ||
| bool | select = true |
||
| ) |
References Slic3r::Preset::config, Slic3r::Preset::file, find_preset_internal(), Slic3r::Preset::is_dirty, Slic3r::Preset::loaded, m_presets, m_type, name(), preset(), and select_preset_by_name().
Here is the call graph for this function:| void Slic3r::PresetCollection::load_presets | ( | const std::string & | dir_path, |
| const std::string & | subdir, | ||
| PresetsConfigSubstitutions & | substitutions, | ||
| ForwardCompatibilitySubstitutionRule | rule | ||
| ) |
References Slic3r::ConfigBase::apply(), Slic3r::Preset::config, default_preset(), default_preset_for(), error, Slic3r::Preset::file, find_preset(), first_visible_idx(), Slic3r::is_ini_file(), Slic3r::ConfigBase::load_from_ini(), Slic3r::Preset::loaded, m_dir_path, m_num_default_presets, m_presets, m_type, Slic3r::Preset::name, name(), Slic3r::Preset::normalize(), preset(), Slic3r::Preset::remove_invalid_keys(), select_preset(), 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:
|
inline |
References m_map_alias_to_profile_name.
Referenced by Slic3r::ExtruderFilaments::get_preset_name_by_alias().
Here is the caller graph for this function:
|
protected |
References Slic3r::VendorProfile::id, Slic3r::Preset::is_default, Slic3r::Preset::is_external, m_num_default_presets, m_presets, m_type, Slic3r::Preset::name, preset(), and Slic3r::Preset::vendor.
Referenced by Slic3r::PresetBundle::merge_presets().
Here is the call graph for this function:
Here is the caller graph for this function:| std::string Slic3r::PresetCollection::name | ( | ) | const |
References L, type(), Slic3r::Preset::TYPE_FILAMENT, Slic3r::Preset::TYPE_PRINT, Slic3r::Preset::TYPE_PRINTER, Slic3r::Preset::TYPE_SLA_MATERIAL, and Slic3r::Preset::TYPE_SLA_PRINT.
Referenced by delete_preset(), find_preset(), find_preset(), find_preset_internal(), find_preset_internal(), find_preset_renamed(), find_preset_renamed(), Slic3r::PresetBundle::load_configbundle(), load_external_preset(), load_preset(), load_preset(), load_presets(), Slic3r::GUI::Tab::name(), select_preset_by_name(), and select_preset_by_name_strict().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
References m_num_default_presets.
Referenced by Slic3r::ExtruderFilaments::first_compatible_idx(), Slic3r::GUI::PlaterPresetComboBox::update(), Slic3r::GUI::TabPresetComboBox::update(), Slic3r::GUI::PresetComboBox::update(), and Slic3r::ExtruderFilaments::update_compatible_internal().
Here is the caller graph for this function:
|
inline |
|
protecteddefault |
| std::string Slic3r::PresetCollection::path_from_name | ( | const std::string & | new_name | ) | const |
References m_dir_path.
Referenced by get_preset_with_name(), Slic3r::PresetBundle::load_config_file_config(), and save_current_preset().
Here is the caller graph for this function:
|
inline |
References m_edited_preset, m_idx_selected, and m_presets.
Referenced by Slic3r::PresetBundle::PresetBundle(), Slic3r::GUI::Tab::compatible_widget_create(), delete_preset(), find_preset(), Slic3r::PrinterPresetCollection::find_system_preset_by_model_and_variant(), first_compatible(), first_compatible(), first_compatible(), Slic3r::ExtruderFilaments::first_compatible_idx(), first_visible(), first_visible(), get_preset_parent(), get_preset_with_name(), get_preset_with_vendor_profile(), get_selected_preset_parent(), load_external_preset(), load_preset(), load_presets(), merge_presets(), num_visible(), reset(), save_current_preset(), select_preset(), system_preset_names(), update_map_alias_to_profile_name(), update_map_system_profile_renamed(), and update_vendor_ptrs_after_copy().
Here is the caller graph for this function:
|
inline |
| void Slic3r::PresetCollection::reset | ( | bool | delete_files | ) |
References Slic3r::Preset::file, Slic3r::Preset::is_default, Slic3r::Preset::is_external, Slic3r::Preset::is_system, m_map_alias_to_profile_name, m_map_system_profile_renamed, m_num_default_presets, m_presets, preset(), and select_preset().
Referenced by Slic3r::PresetBundle::reset().
Here is the call graph for this function:
Here is the caller graph for this function:| bool Slic3r::PresetCollection::save_current_preset | ( | const std::string & | new_name, |
| bool | detach = false |
||
| ) |
References Slic3r::Preset::alias, Slic3r::Preset::config, Slic3r::Preset::file, find_preset_internal(), get_selected_preset(), Slic3r::Preset::inherits(), Slic3r::Preset::is_default, Slic3r::Preset::is_external, Slic3r::Preset::is_system, Slic3r::Preset::is_visible, m_edited_preset, m_presets, Slic3r::Preset::name, path_from_name(), preset(), Slic3r::Preset::renamed_from, Slic3r::Preset::save(), select_preset_by_name(), and Slic3r::Preset::vendor.
Referenced by Slic3r::PresetBundle::save_changes_for_preset().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
References get_edited_preset(), is_dirty(), and m_saved_preset.
Here is the call graph for this function:| std::string Slic3r::PresetCollection::section_name | ( | ) | const |
References type(), Slic3r::Preset::TYPE_FILAMENT, Slic3r::Preset::TYPE_PRINT, Slic3r::Preset::TYPE_PRINTER, Slic3r::Preset::TYPE_SLA_MATERIAL, and Slic3r::Preset::TYPE_SLA_PRINT.
Referenced by Slic3r::PresetBundle::load_configbundle().
Here is the call graph for this function:
Here is the caller graph for this function:| Preset & Slic3r::PresetCollection::select_preset | ( | size_t | idx | ) |
References first_visible_idx(), Slic3r::Preset::is_dirty, m_default_suppressed, m_edited_preset, m_idx_selected, m_num_default_presets, m_presets, and preset().
Referenced by Slic3r::PresetBundle::PresetBundle(), delete_current_preset(), load_external_preset(), load_presets(), reset(), select_preset_by_name(), select_preset_by_name_strict(), and update_compatible().
Here is the call graph for this function:
Here is the caller graph for this function:| bool Slic3r::PresetCollection::select_preset_by_name | ( | const std::string & | name, |
| bool | force | ||
| ) |
References find_preset_internal(), m_default_suppressed, m_idx_selected, m_num_default_presets, m_presets, name(), Slic3r::Preset::remove_suffix_modified(), and select_preset().
Referenced by delete_preset(), get_preset_with_name(), load_preset(), Slic3r::PresetBundle::load_selections(), save_current_preset(), and Slic3r::GUI::DiffPresetDialog::update_compatibility().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
References find_preset_internal(), m_idx_selected, m_presets, name(), and select_preset().
Referenced by Slic3r::PresetBundle::load_selections().
Here is the call graph for this function:
Here is the caller graph for this function:| void Slic3r::PresetCollection::set_default_suppressed | ( | bool | default_suppressed | ) |
References m_default_suppressed, m_idx_selected, m_num_default_presets, and m_presets.
|
inline |
References m_presets.
Referenced by Slic3r::GUI::Tab::compatible_widget_create(), Slic3r::PresetUpdater::priv::perform_updates(), and Slic3r::GUI::TabPresetComboBox::update().
Here is the caller graph for this function:| std::vector< std::string > Slic3r::PresetCollection::system_preset_names | ( | ) | const |
References Slic3r::Preset::is_system, m_presets, Slic3r::Preset::name, preset(), and Slic3r::Preset::renamed_from.
Referenced by Slic3r::flatten_configbundle_hierarchy().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
References m_type.
Referenced by Slic3r::GUI::UnsavedChangesDialog::UnsavedChangesDialog(), add_default_preset(), Slic3r::GUI::UnsavedChangesDialog::build(), Slic3r::PresetBundle::load_configbundle(), Slic3r::GUI::Tab::may_discard_current_dirty_preset(), name(), section_name(), and Slic3r::GUI::UnsavedChangesDialog::update().
Here is the caller graph for this function:
|
inline |
References update_compatible().
Here is the call graph for this function:
|
inline |
References first_compatible_idx(), select_preset(), and update_compatible_internal().
Referenced by update_compatible().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
References Slic3r::Always, Slic3r::Preset::config, get_preset_with_vendor_profile(), Slic3r::Preset::is_compatible, Slic3r::is_compatible_with_print(), Slic3r::is_compatible_with_printer(), Slic3r::Preset::is_visible, m_default_suppressed, m_edited_preset, m_idx_selected, m_num_default_presets, m_presets, Slic3r::Preset::name, Slic3r::OnlyIfWasCompatible, Slic3r::ConfigBase::option(), Slic3r::PresetWithVendorProfile::preset, Slic3r::DynamicConfig::set_key_value(), Slic3r::ConfigOptionVector< T >::size(), Slic3r::VendorProfile::templates_profile, and Slic3r::Preset::vendor.
Referenced by update_compatible().
Here is the call graph for this function:
Here is the caller graph for this function:| bool Slic3r::PresetCollection::update_dirty | ( | ) |
References current_is_dirty(), get_edited_preset(), get_selected_preset(), Slic3r::Preset::is_dirty, and is_dirty().
Referenced by load_external_preset(), and Slic3r::GUI::TabPresetComboBox::update_dirty().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
References Slic3r::Preset::alias, m_map_alias_to_profile_name, m_presets, Slic3r::Preset::name, and preset().
Referenced by Slic3r::PresetBundle::update_system_maps().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
References error, m_map_system_profile_renamed, m_presets, Slic3r::Preset::name, preset(), and Slic3r::Preset::renamed_from.
Referenced by Slic3r::PresetBundle::update_system_maps().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
References m_edited_preset, and m_saved_preset.
Referenced by PresetCollection().
Here is the caller graph for this function:References Slic3r::VendorProfile::id, Slic3r::Preset::is_default, Slic3r::Preset::is_external, m_presets, preset(), and Slic3r::Preset::vendor.
Referenced by Slic3r::PresetBundle::operator=().
Here is the call graph for this function:
Here is the caller graph for this function:
|
friend |
|
private |
|
private |
Referenced by load_presets(), and path_from_name().
|
private |
|
private |
Referenced by delete_current_preset(), discard_current_changes(), get_idx_selected(), get_preset_name_by_alias(), get_selected_idx(), get_selected_preset(), get_selected_preset(), get_selected_preset_name(), load_external_preset(), preset(), select_preset(), select_preset_by_name(), select_preset_by_name_strict(), set_default_suppressed(), and update_compatible_internal().
|
private |
Referenced by get_preset_name_by_alias(), map_alias_to_profile_name(), reset(), and update_map_alias_to_profile_name().
|
private |
Referenced by find_preset_renamed(), get_preset_name_renamed(), reset(), and update_map_system_profile_renamed().
|
private |
Referenced by add_default_preset(), begin(), begin(), cbegin(), default_preset(), default_preset(), find_preset_internal(), first_compatible_idx(), first_visible_idx(), has_defaults_only(), load_presets(), merge_presets(), num_default_presets(), reset(), select_preset(), select_preset_by_name(), set_default_suppressed(), and update_compatible_internal().
|
private |
Referenced by PresetCollection(), add_default_preset(), begin(), begin(), cbegin(), cend(), default_preset(), default_preset(), delete_current_preset(), delete_preset(), discard_current_changes(), end(), end(), find_preset(), find_preset_internal(), find_preset_renamed(), first_compatible_idx(), first_visible_idx(), get_preset_name_by_alias(), get_preset_parent(), get_preset_with_name(), get_presets(), get_selected_preset(), get_selected_preset(), get_selected_preset_parent(), has_defaults_only(), load_external_preset(), load_preset(), load_presets(), merge_presets(), num_visible(), operator()(), preset(), reset(), save_current_preset(), select_preset(), select_preset_by_name(), select_preset_by_name_strict(), set_default_suppressed(), size(), system_preset_names(), update_compatible_internal(), update_map_alias_to_profile_name(), update_map_system_profile_renamed(), and update_vendor_ptrs_after_copy().
|
private |
Referenced by saved_is_dirty(), and update_saved_preset_from_current_preset().
|
private |
Referenced by find_preset(), get_selected_preset_parent(), load_preset(), load_presets(), merge_presets(), and type().