Classes | |
| struct | PresetEditor |
| struct | SelectionCancelled |
| struct | PresetUpdateResult |
| struct | PresetTransaction |
| struct | ComboPresetMatch |
Functions | |
| py::list | current_filament_presets (PresetBundle &bundle) |
| PresetCollection & | printer_presets (PresetBundle &bundle) |
| const char * | preset_tab_name (Preset::Type type) |
| PresetCollection & | collection_for (PresetBundle &bundle, Preset::Type type) |
| GUI::GUI_App & | require_gui_app () |
| GUI::Tab * | require_tab (GUI::GUI_App &app, Preset::Type type) |
| bool | combo_item_is_marker (GUI::PresetComboBox &combo, int item) |
| ComboPresetMatch | resolve_combo_preset (GUI::PresetComboBox &combo, const std::string &requested) |
| int | combo_item_for_preset (GUI::PresetComboBox &combo, const std::string &preset_name) |
| std::string | resolve_preset_in_combo (GUI::PresetComboBox &combo, const std::string &requested, const std::string &category, const std::string &selector) |
| std::string | resolved_slot_preset (PresetBundle &bundle, int slot_number) |
| void | bind_preset_target (Preset::Type type, const std::string &preset_name, PresetTransaction &transaction) |
| PresetTransaction | begin_preset_update (Preset::Type type, const std::string &preset_name) |
| void | bind_filament_target (int slot_number, const std::string &preset_name, PresetTransaction &transaction) |
| PresetTransaction | begin_filament_update (int slot_number, const std::string &preset_name) |
| void | update_edited_preset (Preset::Type type, const std::string &key, const std::string &value) |
| void | update_filament_slot (int slot_number, const std::string &key, const std::string &value) |
| void | reload_local_bundle (const std::string &bundle_id) |
| std::vector< std::string > | list_bundle_ids () |
| struct Slic3r::anonymous_namespace{PluginHostPresets.cpp}::PresetEditor |
| Class Members | ||
|---|---|---|
| Type | type = Preset::TYPE_INVALID | |
| struct Slic3r::anonymous_namespace{PluginHostPresets.cpp}::PresetUpdateResult |
| Class Members | ||
|---|---|---|
| bool | dirty = false | |
| vector< string > | keys | |
| bool | selection_changed = false | |
| vector< int > | shared_slots | |
| bool | slot_assignment_changed = false | |
| int | slot_number = -1 | |
| string | target_name | |
| Type | type = Preset::TYPE_INVALID | |
| struct Slic3r::anonymous_namespace{PluginHostPresets.cpp}::ComboPresetMatch |
| PresetTransaction Slic3r::anonymous_namespace{PluginHostPresets.cpp}::begin_filament_update | ( | int | slot_number, |
| const std::string & | preset_name ) |
References begin_filament_update(), bind_filament_target(), and Slic3r::PluginHostUi::run_on_ui_thread().
Referenced by begin_filament_update(), and update_filament_slot().
| PresetTransaction Slic3r::anonymous_namespace{PluginHostPresets.cpp}::begin_preset_update | ( | Preset::Type | type, |
| const std::string & | preset_name ) |
References begin_preset_update(), bind_preset_target(), and Slic3r::PluginHostUi::run_on_ui_thread().
Referenced by begin_preset_update(), and update_edited_preset().
| void Slic3r::anonymous_namespace{PluginHostPresets.cpp}::bind_filament_target | ( | int | slot_number, |
| const std::string & | preset_name, | ||
| PresetTransaction & | transaction ) |
References Slic3r::anonymous_namespace{PluginHostPresets.cpp}::ComboPresetMatch::ambiguous, Slic3r::GUI::GUI_App::app_config, Slic3r::GUI::Sidebar::auto_calc_flushing_volumes(), bind_filament_target(), combo_item_for_preset(), Slic3r::GUI::Sidebar::combos_filament(), Slic3r::PresetBundle::export_selections(), Slic3r::anonymous_namespace{PluginHostPresets.cpp}::PresetTransaction::filament, Slic3r::PresetBundle::filament_presets, Slic3r::PresetBundle::filaments, Slic3r::PresetCollection::find_preset(), Slic3r::GUI::PresetComboBox::FROM_AMS, Slic3r::AppConfig::get(), Slic3r::GUI::Tab::get_combo_box(), Slic3r::PresetCollection::get_edited_preset(), Slic3r::PresetCollection::get_preset_name_by_alias(), ComboBox::GetCount(), ComboBox::GetFlag(), Slic3r::anonymous_namespace{PluginHostPresets.cpp}::ComboPresetMatch::internal_name, Slic3r::PresetBundle::is_mixed_filament(), Slic3r::GUI::is_support_filament(), Slic3r::anonymous_namespace{PluginHostPresets.cpp}::ComboPresetMatch::item, Slic3r::Preset::name, Slic3r::GUI::Plater::on_filament_change(), Slic3r::GUI::GUI_App::plater(), Slic3r::GUI::GUI_App::preset_bundle, require_gui_app(), require_tab(), resolve_combo_preset(), resolve_preset_in_combo(), resolved_slot_preset(), Slic3r::GUI::Tab::select_preset(), Slic3r::anonymous_namespace{PluginHostPresets.cpp}::PresetTransaction::selection_changed, Slic3r::PresetBundle::set_filament_preset(), Slic3r::GUI::PlaterPresetComboBox::set_sync_badge(), Slic3r::GUI::Plater::sidebar(), Slic3r::anonymous_namespace{PluginHostPresets.cpp}::PresetTransaction::slot_assignment_changed, Slic3r::anonymous_namespace{PluginHostPresets.cpp}::PresetTransaction::slot_assignment_snapshot, Slic3r::anonymous_namespace{PluginHostPresets.cpp}::PresetTransaction::slot_number, Slic3r::anonymous_namespace{PluginHostPresets.cpp}::PresetTransaction::target_name, Slic3r::anonymous_namespace{PluginHostPresets.cpp}::PresetTransaction::type, Slic3r::Preset::TYPE_FILAMENT, Slic3r::GUI::PlaterPresetComboBox::update(), Slic3r::GUI::Sidebar::update_dynamic_filament_list(), and Slic3r::GUI::Plater::update_project_dirty_from_presets().
Referenced by begin_filament_update(), and bind_filament_target().
| void Slic3r::anonymous_namespace{PluginHostPresets.cpp}::bind_preset_target | ( | Preset::Type | type, |
| const std::string & | preset_name, | ||
| PresetTransaction & | transaction ) |
References bind_preset_target(), collection_for(), Slic3r::PresetCollection::find_preset(), Slic3r::GUI::Tab::get_combo_box(), Slic3r::PresetCollection::get_edited_preset(), ComboBox::GetCount(), Slic3r::Preset::name, Slic3r::GUI::GUI_App::preset_bundle, preset_tab_name(), require_gui_app(), require_tab(), resolve_preset_in_combo(), Slic3r::GUI::Tab::select_preset(), Slic3r::anonymous_namespace{PluginHostPresets.cpp}::PresetTransaction::selection_changed, Slic3r::anonymous_namespace{PluginHostPresets.cpp}::PresetTransaction::target_name, and Slic3r::anonymous_namespace{PluginHostPresets.cpp}::PresetTransaction::type.
Referenced by begin_preset_update(), and bind_preset_target().
| PresetCollection & Slic3r::anonymous_namespace{PluginHostPresets.cpp}::collection_for | ( | PresetBundle & | bundle, |
| Preset::Type | type ) |
References collection_for(), Slic3r::PresetBundle::filaments, printer_presets(), Slic3r::PresetBundle::prints, Slic3r::Preset::TYPE_FILAMENT, Slic3r::Preset::TYPE_PRINT, and Slic3r::Preset::TYPE_PRINTER.
Referenced by bind_preset_target(), collection_for(), and Slic3r::anonymous_namespace{PluginHostPresets.cpp}::PresetTransaction::commit().
| int Slic3r::anonymous_namespace{PluginHostPresets.cpp}::combo_item_for_preset | ( | GUI::PresetComboBox & | combo, |
| const std::string & | preset_name ) |
References combo_item_for_preset(), combo_item_is_marker(), ComboBox::GetCount(), ComboBox::GetItemAlias(), and Slic3r::Preset::remove_suffix_modified().
Referenced by bind_filament_target(), and combo_item_for_preset().
| bool Slic3r::anonymous_namespace{PluginHostPresets.cpp}::combo_item_is_marker | ( | GUI::PresetComboBox & | combo, |
| int | item ) |
References combo_item_is_marker(), Slic3r::GUI::PresetComboBox::LABEL_ITEM_DISABLED, and Slic3r::GUI::PresetComboBox::LABEL_ITEM_MAX.
Referenced by combo_item_for_preset(), combo_item_is_marker(), and resolve_combo_preset().
| py::list Slic3r::anonymous_namespace{PluginHostPresets.cpp}::current_filament_presets | ( | PresetBundle & | bundle | ) |
References current_filament_presets(), Slic3r::PresetBundle::filament_presets, Slic3r::PresetBundle::filaments, and Slic3r::PresetCollection::find_preset().
Referenced by current_filament_presets().
| std::vector< std::string > Slic3r::anonymous_namespace{PluginHostPresets.cpp}::list_bundle_ids | ( | ) |
References Slic3r::GUI::GUI_App::app_config, Slic3r::AppConfig::get(), Slic3r::GUI::GUI_App::is_closing(), list_bundle_ids(), Slic3r::PresetBundle::list_local_bundle_ids(), Slic3r::GUI::GUI_App::preset_bundle, and Slic3r::PluginHostUi::run_on_ui_thread().
Referenced by list_bundle_ids().
| const char * Slic3r::anonymous_namespace{PluginHostPresets.cpp}::preset_tab_name | ( | Preset::Type | type | ) |
References preset_tab_name(), Slic3r::Preset::TYPE_FILAMENT, Slic3r::Preset::TYPE_PRINT, and Slic3r::Preset::TYPE_PRINTER.
Referenced by bind_preset_target(), Slic3r::anonymous_namespace{PluginHostPresets.cpp}::PresetTransaction::commit(), preset_tab_name(), and require_tab().
| PresetCollection & Slic3r::anonymous_namespace{PluginHostPresets.cpp}::printer_presets | ( | PresetBundle & | bundle | ) |
References printer_presets(), and Slic3r::PresetBundle::printers.
Referenced by collection_for(), and printer_presets().
| void Slic3r::anonymous_namespace{PluginHostPresets.cpp}::reload_local_bundle | ( | const std::string & | bundle_id | ) |
References Slic3r::GUI::GUI_App::app_config, Slic3r::AppConfig::get(), Slic3r::GUI::GUI_App::is_closing(), Slic3r::GUI::GUI_App::mainframe, Slic3r::GUI::GUI_App::plater(), Slic3r::GUI::GUI_App::preset_bundle, Slic3r::GUI::Tab::reload_config(), reload_local_bundle(), Slic3r::PresetBundle::reload_local_bundle(), Slic3r::PluginHostUi::run_on_ui_thread(), Slic3r::GUI::GUI_App::tabs_list, Slic3r::GUI::Tab::update_changed_ui(), and Slic3r::GUI::MainFrame::update_side_preset_ui().
Referenced by reload_local_bundle().
| GUI::GUI_App & Slic3r::anonymous_namespace{PluginHostPresets.cpp}::require_gui_app | ( | ) |
References Slic3r::GUI::GUI_App::is_closing(), Slic3r::GUI::GUI_App::plater(), Slic3r::GUI::GUI_App::preset_bundle, and require_gui_app().
Referenced by bind_filament_target(), bind_preset_target(), Slic3r::anonymous_namespace{PluginHostPresets.cpp}::PresetTransaction::commit(), and require_gui_app().
| GUI::Tab * Slic3r::anonymous_namespace{PluginHostPresets.cpp}::require_tab | ( | GUI::GUI_App & | app, |
| Preset::Type | type ) |
References Slic3r::PresetCollection::get_selected_preset(), Slic3r::GUI::GUI_App::get_tab(), Slic3r::GUI::GUI_App::preset_bundle, preset_tab_name(), Slic3r::Preset::printer_technology(), Slic3r::PresetBundle::printers, require_tab(), and Slic3r::GUI::Tab::supports_printer_technology().
Referenced by bind_filament_target(), bind_preset_target(), Slic3r::anonymous_namespace{PluginHostPresets.cpp}::PresetTransaction::commit(), and require_tab().
| ComboPresetMatch Slic3r::anonymous_namespace{PluginHostPresets.cpp}::resolve_combo_preset | ( | GUI::PresetComboBox & | combo, |
| const std::string & | requested ) |
References Slic3r::anonymous_namespace{PluginHostPresets.cpp}::ComboPresetMatch::ambiguous, combo_item_is_marker(), ComboBox::GetCount(), ComboBox::GetItemAlias(), ComboBox::GetString(), Slic3r::anonymous_namespace{PluginHostPresets.cpp}::ComboPresetMatch::internal_name, Slic3r::anonymous_namespace{PluginHostPresets.cpp}::ComboPresetMatch::item, Slic3r::Preset::remove_suffix_modified(), and resolve_combo_preset().
Referenced by bind_filament_target(), resolve_combo_preset(), and resolve_preset_in_combo().
| std::string Slic3r::anonymous_namespace{PluginHostPresets.cpp}::resolve_preset_in_combo | ( | GUI::PresetComboBox & | combo, |
| const std::string & | requested, | ||
| const std::string & | category, | ||
| const std::string & | selector ) |
References Slic3r::anonymous_namespace{PluginHostPresets.cpp}::ComboPresetMatch::ambiguous, Slic3r::anonymous_namespace{PluginHostPresets.cpp}::ComboPresetMatch::internal_name, Slic3r::anonymous_namespace{PluginHostPresets.cpp}::ComboPresetMatch::item, resolve_combo_preset(), and resolve_preset_in_combo().
Referenced by bind_filament_target(), bind_preset_target(), and resolve_preset_in_combo().
| std::string Slic3r::anonymous_namespace{PluginHostPresets.cpp}::resolved_slot_preset | ( | PresetBundle & | bundle, |
| int | slot_number ) |
References Slic3r::PresetBundle::filament_presets, Slic3r::PresetBundle::filaments, Slic3r::PresetCollection::find_preset(), Slic3r::Preset::name, and resolved_slot_preset().
Referenced by bind_filament_target(), Slic3r::anonymous_namespace{PluginHostPresets.cpp}::PresetTransaction::commit(), and resolved_slot_preset().
| void Slic3r::anonymous_namespace{PluginHostPresets.cpp}::update_edited_preset | ( | Preset::Type | type, |
| const std::string & | key, | ||
| const std::string & | value ) |
References begin_preset_update(), Slic3r::anonymous_namespace{PluginHostPresets.cpp}::PresetTransaction::commit(), Slic3r::anonymous_namespace{PluginHostPresets.cpp}::PresetTransaction::set(), and update_edited_preset().
Referenced by update_edited_preset().
| void Slic3r::anonymous_namespace{PluginHostPresets.cpp}::update_filament_slot | ( | int | slot_number, |
| const std::string & | key, | ||
| const std::string & | value ) |
References begin_filament_update(), Slic3r::anonymous_namespace{PluginHostPresets.cpp}::PresetTransaction::commit(), Slic3r::anonymous_namespace{PluginHostPresets.cpp}::PresetTransaction::set(), and update_filament_slot().
Referenced by update_filament_slot().