#include </home/runner/work/OrcaSlicer/OrcaSlicer/src/slic3r/GUI/SettingsIndex.hpp>
Public Member Functions | |
| void | init (std::vector< InputInfo > input_values) |
| bool | apply (DynamicPrintConfig *config, Preset::Type type, ConfigOptionMode mode) |
| void | add_key (const std::string &opt_key, Preset::Type type, const wxString &group, const wxString &category, const wxString &icon=wxEmptyString) |
| void | set_path (const std::string &opt_key, Preset::Type type, const std::string &path) |
| void | set_line_label (const std::string &opt_key, Preset::Type type, const wxString &label, const wxString &label_en) |
| const std::vector< Option > & | options () const |
| const std::vector< Option > & | all_options () const |
| const Option & | option_at (size_t pos) const |
| const Option & | get_option (const std::string &opt_key, Preset::Type type, int &variant_index) const |
| Option | get_option (const std::string &opt_key, const wxString &label, Preset::Type type) const |
| const GroupAndCategory & | get_group_and_category (const std::string &opt_key) |
| void | sort_options_by_key () |
| void | sort_options_by_label () |
Private Member Functions | |
| void | append_options (DynamicPrintConfig *config, Preset::Type type, ConfigOptionMode mode) |
| void | sort_options () |
Private Attributes | |
| std::map< std::string, GroupAndCategory > | m_groups_and_categories |
| std::vector< Option > | m_options |
| std::vector< Option > | m_all_modes |
| void Slic3r::Search::SettingsIndex::add_key | ( | const std::string & | opt_key, |
| Preset::Type | type, | ||
| const wxString & | group, | ||
| const wxString & | category, | ||
| const wxString & | icon = wxEmptyString ) |
References Slic3r::Search::GroupAndCategory::category, Slic3r::Search::get_key(), Slic3r::Search::GroupAndCategory::group, Slic3r::Search::GroupAndCategory::icon, and m_groups_and_categories.
Referenced by Slic3r::GUI::TabPrinter::create_bed_shape_widget().
|
inline |
References m_all_modes.
|
private |
References _, Slic3r::Search::GroupAndCategory::category, Slic3r::Search::change_opt_key(), Slic3r::coBools, Slic3r::coEnums, Slic3r::coFloats, Slic3r::coFloatsOrPercents, Slic3r::coInts, Slic3r::coPercents, Slic3r::coPoints, Slic3r::coStrings, Slic3r::DynamicPrintConfig::def(), Slic3r::filament_options_with_variant, Slic3r::Search::get_key(), Slic3r::Search::GroupAndCategory::group, Slic3r::into_u8(), Slic3r::DynamicConfig::keys(), m_all_modes, m_groups_and_categories, m_options, Slic3r::Search::make_option(), Slic3r::ConfigBase::option(), Slic3r::ConfigDef::options, Slic3r::ConfigOption::type(), Slic3r::Preset::TYPE_FILAMENT, Slic3r::Preset::TYPE_PRINT, Slic3r::Preset::TYPE_PRINTER, and Slic3r::Preset::TYPE_SLA_MATERIAL.
Referenced by apply(), and init().
| bool Slic3r::Search::SettingsIndex::apply | ( | DynamicPrintConfig * | config, |
| Preset::Type | type, | ||
| ConfigOptionMode | mode ) |
References append_options(), m_all_modes, m_options, and sort_options().
|
inline |
References m_groups_and_categories.
Referenced by Slic3r::GUI::TabPrinter::create_bed_shape_widget().
| Option Slic3r::Search::SettingsIndex::get_option | ( | const std::string & | opt_key, |
| const wxString & | label, | ||
| Preset::Type | type ) const |
References Slic3r::Search::GroupAndCategory::category, Slic3r::Search::create_option(), Slic3r::Search::get_key(), Slic3r::Search::GroupAndCategory::group, m_groups_and_categories, and m_options.
| const Option & Slic3r::Search::SettingsIndex::get_option | ( | const std::string & | opt_key, |
| Preset::Type | type, | ||
| int & | variant_index ) const |
References Slic3r::filament_options_with_variant, Slic3r::Search::get_key(), L, m_options, Slic3r::print_options_with_variant, Slic3r::printer_options_with_variant_1, Slic3r::printer_options_with_variant_2, Slic3r::Preset::TYPE_FILAMENT, Slic3r::Preset::TYPE_PRINT, and Slic3r::Preset::TYPE_PRINTER.
Referenced by Slic3r::GUI::DiffPresetDialog::update_tree(), Slic3r::GUI::UnsavedChangesDialog::update_tree(), and Slic3r::GUI::UnsavedChangesDialog::update_tree().
| void Slic3r::Search::SettingsIndex::init | ( | std::vector< InputInfo > | input_values | ) |
References append_options(), m_all_modes, m_options, and sort_options().
|
inline |
|
inline |
| void Slic3r::Search::SettingsIndex::set_line_label | ( | const std::string & | opt_key, |
| Preset::Type | type, | ||
| const wxString & | label, | ||
| const wxString & | label_en ) |
References Slic3r::Search::get_key(), Slic3r::Search::GroupAndCategory::line_label, Slic3r::Search::GroupAndCategory::line_label_en, and m_groups_and_categories.
Referenced by Slic3r::GUI::OptionsGroup::append_line().
| void Slic3r::Search::SettingsIndex::set_path | ( | const std::string & | opt_key, |
| Preset::Type | type, | ||
| const std::string & | path ) |
References Slic3r::Search::get_key(), and m_groups_and_categories.
Referenced by Slic3r::GUI::OptionsGroup::append_line().
|
private |
References Slic3r::Search::Option::category, Slic3r::Search::Option::group, Slic3r::Search::Option::label, m_all_modes, m_options, Slic3r::Search::Option::multi_category, and Slic3r::Search::Option::type.
Referenced by apply(), init(), and sort_options_by_label().
|
inline |
References m_options.
Referenced by Slic3r::GUI::DiffPresetDialog::update_tree(), Slic3r::GUI::UnsavedChangesDialog::update_tree(), and Slic3r::GUI::UnsavedChangesDialog::update_tree().
|
inline |
References sort_options().
Referenced by Slic3r::GUI::DiffPresetDialog::update_tree(), and Slic3r::GUI::UnsavedChangesDialog::update_tree().
|
private |
Referenced by all_options(), append_options(), apply(), init(), and sort_options().
|
private |
Referenced by add_key(), append_options(), get_group_and_category(), get_option(), set_line_label(), and set_path().
|
private |
Referenced by append_options(), apply(), get_option(), get_option(), init(), option_at(), options(), sort_options(), and sort_options_by_key().