#include </home/runner/work/OrcaSlicer/OrcaSlicer/src/libslic3r/AppConfig.hpp>
Public Types | |
| enum class | EAppMode : unsigned char { Editor , GCodeViewer } |
| typedef std::map< std::string, std::map< std::string, std::set< std::string > > > | VendorMap |
| typedef std::map< std::string, std::map< std::string, std::string > > | MachineSettingMap |
Public Member Functions | |
| AppConfig () | |
| std::string | get_language_code () |
| std::string | get_hms_host () |
| bool | get_stealth_mode () |
| bool | get_hide_login_side_panel () |
| void | reset () |
| void | set_defaults () |
| std::string | load (bool read_only=false) |
| std::string | load_if_exists () |
| void | save () |
| bool | dirty () const |
| bool | save_due () const |
| void | set_dirty () |
| bool | get (const std::string §ion, const std::string &key, std::string &value) const |
| std::string | get (const std::string §ion, const std::string &key) const |
| std::string | get (const std::string &key) const |
| bool | get_bool (const std::string §ion, const std::string &key) const |
| bool | get_bool (const std::string &key) const |
| void | set (const std::string §ion, const std::string &key, const std::string &value) |
| void | set_str (const std::string §ion, const std::string &key, const std::string &value) |
| void | set (const std::string §ion, const std::string &key, const char *value) |
| void | set (const std::string §ion, const std::string &key, bool value) |
| void | set (const std::string &key, const std::string &value) |
| void | set_bool (const std::string &key, const bool &value) |
| bool | has (const std::string §ion, const std::string &key) const |
| bool | has (const std::string &key) const |
| void | erase (const std::string §ion, const std::string &key) |
| bool | has_section (const std::string §ion) const |
| const std::map< std::string, std::string > & | get_section (const std::string §ion) const |
| void | set_section (const std::string §ion, const std::map< std::string, std::string > &data) |
| void | clear_section (const std::string §ion) |
| bool | get_variant (const std::string &vendor, const std::string &model, const std::string &variant) const |
| void | set_variant (const std::string &vendor, const std::string &model, const std::string &variant, bool enable) |
| void | set_vendors (const AppConfig &from) |
| void | set_vendors (const VendorMap &vendors) |
| void | set_vendors (VendorMap &&vendors) |
| const VendorMap & | vendors () const |
| bool | has_printer_settings (std::string printer) const |
| void | clear_printer_settings (std::string printer) |
| bool | has_printer_setting (std::string printer, std::string name) |
| std::string | get_printer_setting (std::string printer, std::string name) |
| void | set_printer_setting (std::string printer, std::string name, std::string value) |
| const std::map< std::string, BBLocalMachine > & | get_local_machines () const |
| void | erase_local_machine (std::string dev_id) |
| void | update_local_machine (const BBLocalMachine &machine) |
| void | clear_local_machine_access_code (const std::string &dev_id, const std::string &agent_id) |
| const std::vector< std::string > & | get_filament_presets () const |
| void | set_filament_presets (const std::vector< std::string > &filament_presets) |
| const std::vector< std::string > & | get_filament_colors () const |
| void | set_filament_colors (const std::vector< std::string > &filament_colors) |
| const std::vector< PrinterCaliInfo > & | get_printer_cali_infos () const |
| void | save_printer_cali_infos (const PrinterCaliInfo &cali_info, bool need_change_status=true) |
| std::string | get_last_dir () const |
| void | update_config_dir (const std::string &dir) |
| void | update_skein_dir (const std::string &dir) |
| std::string | get_last_output_dir (const std::string &alt, const bool removable=false) const |
| void | update_last_output_dir (const std::string &dir, const bool removable=false) |
| std::string | get_last_backup_dir () const |
| void | update_last_backup_dir (const std::string &dir) |
| std::string | get_region () |
| std::string | get_country_code () |
| bool | is_engineering_region () |
| void | save_custom_color_to_config (const std::vector< std::string > &colors) |
| std::vector< std::string > | get_custom_color_from_config () |
| void | save_nozzle_volume_types_to_config (const std::string &printer_name, const std::string &nozzle_volume_types) |
| std::string | get_nozzle_volume_types_from_config (const std::string &printer_name) |
| void | reset_selections () |
| std::string | config_path () |
| std::string | lock_path () |
| bool | legacy_datadir () const |
| void | set_legacy_datadir (bool value) |
| std::string | version_check_url () const |
| std::string | profile_update_url () const |
| Semver | orig_version () const |
| bool | exists () |
| void | set_loading_path (const std::string &path) |
| std::string | loading_path () |
| std::vector< std::string > | get_recent_projects () const |
| void | set_recent_projects (const std::vector< std::string > &recent_projects) |
| void | set_mouse_device (const std::string &name, double translation_speed, double translation_deadzone, float rotation_speed, float rotation_deadzone, double zoom_speed, bool swap_yz, bool invert_x, bool invert_y, bool invert_z, bool invert_yaw, bool invert_pitch, bool invert_roll) |
| std::vector< std::string > | get_mouse_device_names () const |
| bool | get_mouse_device_translation_speed (const std::string &name, double &speed) const |
| bool | get_mouse_device_translation_deadzone (const std::string &name, double &deadzone) const |
| bool | get_mouse_device_rotation_speed (const std::string &name, float &speed) const |
| bool | get_mouse_device_rotation_deadzone (const std::string &name, float &deadzone) const |
| bool | get_mouse_device_zoom_speed (const std::string &name, double &speed) const |
| bool | get_mouse_device_swap_yz (const std::string &name, bool &swap) const |
| bool | get_mouse_device_invert_x (const std::string &name, bool &invert) const |
| bool | get_mouse_device_invert_y (const std::string &name, bool &invert) const |
| bool | get_mouse_device_invert_z (const std::string &name, bool &invert) const |
| bool | get_mouse_device_invert_yaw (const std::string &name, bool &invert) const |
| bool | get_mouse_device_invert_pitch (const std::string &name, bool &invert) const |
| bool | get_mouse_device_invert_roll (const std::string &name, bool &invert) const |
| std::string | get_network_plugin_version () const |
| void | set_network_plugin_version (const std::string &version) |
| int | get_plugin_pages_visible_count () const |
| int | get_speed_dial_recent_count () const |
| std::vector< std::string > | get_skipped_network_versions () const |
| void | add_skipped_network_version (const std::string &version) |
| bool | is_network_version_skipped (const std::string &version) const |
| void | clear_skipped_network_versions () |
| bool | is_network_update_prompt_disabled () const |
| void | set_network_update_prompt_disabled (bool disabled) |
| bool | should_remind_network_update_later () const |
| void | set_remind_network_update_later (bool remind) |
| void | clear_remind_network_update_later () |
| std::vector< std::string > | get_cloud_providers () const |
| void | set_cloud_providers (const std::vector< std::string > &providers) |
| bool | has_cloud_provider (const std::string &provider) const |
| void | add_cloud_provider (const std::string &provider) |
| void | remove_cloud_provider (const std::string &provider) |
Static Public Attributes | |
| static const std::string | SECTION_FILAMENTS = "filaments" |
| static const std::string | SECTION_MATERIALS = "sla_materials" |
| static const std::string | SECTION_EMBOSS_STYLE = "font" |
Private Member Functions | |
| template<typename T> | |
| bool | get_3dmouse_device_numeric_value (const std::string &device_name, const char *parameter_name, T &out) const |
| bool | write_config_file (const std::string &path, std::string body, const std::string &checksum_source) |
Private Attributes | |
| EAppMode | m_mode { EAppMode::Editor } |
| std::map< std::string, std::map< std::string, std::string > > | m_storage |
| VendorMap | m_vendors |
| MachineSettingMap | m_printer_settings |
| bool | m_dirty |
| std::chrono::steady_clock::time_point | m_retry_save_at {} |
| Semver | m_orig_version |
| bool | m_legacy_datadir |
| std::string | m_loading_path |
| std::vector< std::string > | m_filament_presets |
| std::vector< std::string > | m_filament_colors |
| std::vector< std::string > | m_filament_multi_colors |
| std::vector< std::string > | m_filament_color_types |
| std::vector< PrinterCaliInfo > | m_printer_cali_infos |
| std::map< std::string, BBLocalMachine > | m_local_machines |
| typedef std::map<std::string, std::map<std::string, std::string> > Slic3r::AppConfig::MachineSettingMap |
| typedef std::map<std::string, std::map<std::string, std::set<std::string> > > Slic3r::AppConfig::VendorMap |
|
strong |
| Enumerator | |
|---|---|
| Editor | |
| GCodeViewer | |
|
inlineexplicit |
References m_dirty, m_legacy_datadir, m_mode, m_orig_version, and reset().
Referenced by set_vendors().
| void Slic3r::AppConfig::add_cloud_provider | ( | const std::string & | provider | ) |
References get_cloud_providers(), and set_cloud_providers().
| void Slic3r::AppConfig::add_skipped_network_version | ( | const std::string & | version | ) |
References get_skipped_network_versions(), set(), and SETTING_NETWORK_PLUGIN_SKIPPED_VERSIONS.
| void Slic3r::AppConfig::clear_local_machine_access_code | ( | const std::string & | dev_id, |
| const std::string & | agent_id ) |
References erase(), m_dirty, and m_local_machines.
Referenced by Slic3r::MachineObject::set_access_code().
|
inline |
References m_dirty, and m_printer_settings.
Referenced by Slic3r::PresetBundle::export_selections().
| void Slic3r::AppConfig::clear_remind_network_update_later | ( | ) |
References set_bool(), and SETTING_NETWORK_PLUGIN_REMIND_LATER.
|
inline |
References m_storage.
Referenced by Slic3r::GUI::Config::Snapshot::export_selections(), Slic3r::PresetBundle::export_selections(), Slic3r::GUI::GuideFrame::run(), and anonymous_namespace{EmbossStyleManager.cpp}::store_styles().
| void Slic3r::AppConfig::clear_skipped_network_versions | ( | ) |
References set(), and SETTING_NETWORK_PLUGIN_SKIPPED_VERSIONS.
| std::string Slic3r::AppConfig::config_path | ( | ) |
References Slic3r::data_dir(), Editor, GCODEVIEWER_APP_KEY, and m_mode.
Referenced by exists(), loading_path(), lock_path(), and save().
|
inline |
References m_dirty, and m_storage.
Referenced by clear_local_machine_access_code(), Slic3r::instance_id::anonymous_namespace{InstanceID.cpp}::prune_config_value(), Slic3r::GUI::ShortcutRegistry::save(), Slic3r::MachineObject::set_access_code(), and set_defaults().
|
inline |
References m_dirty, and m_local_machines.
Referenced by Slic3r::DeviceManager::load_local_machines_from_config(), and Slic3r::DeviceManager::update_local_machine().
| bool Slic3r::AppConfig::exists | ( | ) |
|
inline |
References get().
|
inline |
|
inline |
References m_storage.
Referenced by Slic3r::GUI::ColorPickerDialog::ColorPickerDialog(), Slic3r::GUI::Sidebar::Sidebar(), Slic3r::GUI::Plater::priv::auto_slice_delay_seconds(), Slic3r::anonymous_namespace{PluginHostPresets.cpp}::bind_filament_target(), Slic3r::MachineObject::can_use_emmc_print(), Slic3r::OrcaCloudServiceAgent::configure_urls(), Slic3r::GUI::PreferencesDialog::create_item_region_combobox(), Slic3r::PresetBundle::export_selections(), Slic3r::GUI::Plater::export_stl(), get(), get(), anonymous_namespace{DevManager.cpp}::get_access_code_with_legacy_fallback(), get_bool(), get_cloud_providers(), get_hms_host(), get_language_code(), get_network_plugin_version(), Slic3r::GUI::Sidebar::priv::get_nozzle_options(), get_plugin_pages_visible_count(), get_region(), get_skipped_network_versions(), get_speed_dial_recent_count(), Slic3r::GUI::GUI_Run(), Slic3r::PresetBundle::import_presets(), Slic3r::GUI::CrealityPrintHostSendDialog::init(), Slic3r::GUI::ElegooPrintHostSendDialog::init(), Slic3r::GUI::FlashforgePrintHostSendDialog::init(), Slic3r::GUI::PrintHostSendDialog::init(), Slic3r::GUI::ConnectPrinterDialog::init_bitmap(), is_engineering_region(), Slic3r::GUI::Config::SnapshotDB::is_on_snapshot(), Slic3r::anonymous_namespace{PluginHostPresets.cpp}::list_bundle_ids(), load(), Slic3r::GUI::anonymous_namespace{ColorPickerDialog.cpp}::load_color_picker_favorites(), Slic3r::load_mixed_filament_settings(), Slic3r::GUI::SelectMachineDialog::load_option_vals(), Slic3r::PresetBundle::load_presets(), Slic3r::PresetBundle::load_selections(), Slic3r::anonymous_namespace{ElegooLink.cpp}::load_sn_from_config(), profile_update_url(), Slic3r::instance_id::anonymous_namespace{InstanceID.cpp}::read_config_value(), Slic3r::anonymous_namespace{PluginHostPresets.cpp}::reload_local_bundle(), Slic3r::PresetBundle::remove_users_preset(), Slic3r::GUI::anonymous_namespace{SceneBenchmark.cpp}::SceneBenchmarkDialog::report(), Slic3r::GUI::anonymous_namespace{ColorPickerDialog.cpp}::save_color_picker_favorites(), Slic3r::PresetBundle::save_user_presets(), Slic3r::GUI::Plater::send_gcode(), set_defaults(), Slic3r::GUI::Config::SnapshotDB::take_snapshot(), Slic3r::PresetBundle::update_subscribed_presets(), Slic3r::GUI::SyncAmsInfoDialog::update_timelapse_enable_status(), version_check_url(), and Slic3r::instance_id::anonymous_namespace{InstanceID.cpp}::write_config_value().
|
inlineprivate |
References m_storage, and Slic3r::string_to_double_decimal_point().
Referenced by get_mouse_device_invert_pitch(), get_mouse_device_invert_roll(), get_mouse_device_invert_x(), get_mouse_device_invert_y(), get_mouse_device_invert_yaw(), get_mouse_device_invert_z(), get_mouse_device_rotation_deadzone(), get_mouse_device_rotation_speed(), get_mouse_device_swap_yz(), get_mouse_device_translation_deadzone(), get_mouse_device_translation_speed(), and get_mouse_device_zoom_speed().
|
inline |
References get_bool().
|
inline |
References get().
Referenced by Slic3r::GUI::GLCanvas3D::_is_realistic_view_enabled(), Slic3r::GUI::GLCanvas3D::_render_canvas_toolbar(), Slic3r::GUI::GLCanvas3D::_render_gcode(), Slic3r::GUI::anonymous_namespace{NativeCommands.cpp}::build_command_catalog(), Slic3r::OrcaCloudServiceAgent::configure_urls(), get_bool(), get_hide_login_side_panel(), get_stealth_mode(), is_network_update_prompt_disabled(), load(), Slic3r::GUI::GCodeViewer::load_as_gcode(), Slic3r::GUI::anonymous_namespace{SceneBenchmark.cpp}::SceneBenchmarkDialog::report(), Slic3r::GUI::Plater::priv::schedule_auto_reslice_if_needed(), set_defaults(), Slic3r::PresetUpdater::priv::set_download_prefs(), should_disable_hms(), should_remind_network_update_later(), and Slic3r::GUI::Plater::priv::trigger_auto_reslice_now().
| std::vector< std::string > Slic3r::AppConfig::get_cloud_providers | ( | ) | const |
References get(), and SETTING_CLOUD_PROVIDERS.
Referenced by add_cloud_provider(), Slic3r::create_agent_from_config(), has_cloud_provider(), and remove_cloud_provider().
| std::string Slic3r::AppConfig::get_country_code | ( | ) |
References get_region().
Referenced by Slic3r::GUI::PreferencesDialog::create_debug_page(), Slic3r::GUI::PreferencesDialog::create_item_region_combobox(), and Slic3r::GUI::GuideFrame::OnScriptMessage().
| std::vector< std::string > Slic3r::AppConfig::get_custom_color_from_config | ( | ) |
References get_section(), and has_section().
Referenced by Slic3r::GUI::anonymous_namespace{ColorPickerDialog.cpp}::load_color_picker_favorites().
|
inline |
References m_filament_colors.
|
inline |
References m_filament_presets.
| bool Slic3r::AppConfig::get_hide_login_side_panel | ( | ) |
| std::string Slic3r::AppConfig::get_hms_host | ( | ) |
References get().
Referenced by Slic3r::GUI::HMSQuery::download_hms_related(), Slic3r::GUI::get_hms_info_version(), and Slic3r::GUI::get_hms_wiki_url().
| std::string Slic3r::AppConfig::get_language_code | ( | ) |
References get().
Referenced by Slic3r::GUI::HMSQuery::hms_language_code().
| std::string Slic3r::AppConfig::get_last_backup_dir | ( | ) | const |
| std::string Slic3r::AppConfig::get_last_dir | ( | ) | const |
References m_storage.
Referenced by get_last_output_dir().
| std::string Slic3r::AppConfig::get_last_output_dir | ( | const std::string & | alt, |
| const bool | removable = false ) const |
References get_last_dir(), Slic3r::is_shapes_dir(), and m_storage.
Referenced by Slic3r::GUI::Plater::export_gcode(), and Slic3r::GUI::Plater::export_gcode_3mf().
|
inline |
References m_local_machines.
Referenced by anonymous_namespace{DevManager.cpp}::get_access_code_with_legacy_fallback(), and Slic3r::DeviceManager::load_local_machines_from_config().
|
inline |
References get_3dmouse_device_numeric_value().
Referenced by Slic3r::GUI::Mouse3DController::load_config().
|
inline |
References get_3dmouse_device_numeric_value().
Referenced by Slic3r::GUI::Mouse3DController::load_config().
|
inline |
References get_3dmouse_device_numeric_value().
Referenced by Slic3r::GUI::Mouse3DController::load_config().
|
inline |
References get_3dmouse_device_numeric_value().
Referenced by Slic3r::GUI::Mouse3DController::load_config().
|
inline |
References get_3dmouse_device_numeric_value().
Referenced by Slic3r::GUI::Mouse3DController::load_config().
|
inline |
References get_3dmouse_device_numeric_value().
Referenced by Slic3r::GUI::Mouse3DController::load_config().
| std::vector< std::string > Slic3r::AppConfig::get_mouse_device_names | ( | ) | const |
References m_storage.
Referenced by Slic3r::GUI::Mouse3DController::load_config().
|
inline |
References get_3dmouse_device_numeric_value().
Referenced by Slic3r::GUI::Mouse3DController::load_config().
|
inline |
References get_3dmouse_device_numeric_value().
Referenced by Slic3r::GUI::Mouse3DController::load_config().
|
inline |
References get_3dmouse_device_numeric_value().
Referenced by Slic3r::GUI::Mouse3DController::load_config().
|
inline |
References get_3dmouse_device_numeric_value().
Referenced by Slic3r::GUI::Mouse3DController::load_config().
|
inline |
References get_3dmouse_device_numeric_value().
Referenced by Slic3r::GUI::Mouse3DController::load_config().
|
inline |
References get_3dmouse_device_numeric_value().
Referenced by Slic3r::GUI::Mouse3DController::load_config().
| std::string Slic3r::AppConfig::get_network_plugin_version | ( | ) | const |
References get(), and SETTING_NETWORK_PLUGIN_VERSION.
| std::string Slic3r::AppConfig::get_nozzle_volume_types_from_config | ( | const std::string & | printer_name | ) |
References get_section(), and has_section().
Referenced by Slic3r::PresetBundle::load_selections().
| int Slic3r::AppConfig::get_plugin_pages_visible_count | ( | ) | const |
References get(), PLUGIN_PAGES_VISIBLE_COUNT_DEFAULT, PLUGIN_PAGES_VISIBLE_COUNT_MAX, PLUGIN_PAGES_VISIBLE_COUNT_MIN, and SETTING_PLUGIN_PAGES_VISIBLE_COUNT.
Referenced by set_defaults().
|
inline |
References m_printer_cali_infos.
|
inline |
References has_printer_setting(), and m_printer_settings.
Referenced by Slic3r::load_mixed_filament_settings(), Slic3r::PresetBundle::load_selections(), and Slic3r::PresetBundle::update_selections().
| std::vector< std::string > Slic3r::AppConfig::get_recent_projects | ( | ) | const |
References m_storage.
| std::string Slic3r::AppConfig::get_region | ( | ) |
References get().
Referenced by get_country_code().
|
inline |
References m_storage.
Referenced by Slic3r::GUI::ConfigWizard::priv::apply_config(), Slic3r::GUI::GuideFrame::apply_config(), Slic3r::PresetBundle::apply_vendor_config(), get_custom_color_from_config(), get_nozzle_volume_types_from_config(), Slic3r::GUI::ShortcutRegistry::load(), Slic3r::PresetBundle::load_installed_filaments(), anonymous_namespace{EmbossStyleManager.cpp}::load_style_index(), anonymous_namespace{EmbossStyleManager.cpp}::load_styles(), Slic3r::GUI::ConfigWizard::priv::load_vendors(), save_custom_color_to_config(), save_nozzle_volume_types_to_config(), and Slic3r::Preset::set_visible_from_appconfig().
| std::vector< std::string > Slic3r::AppConfig::get_skipped_network_versions | ( | ) | const |
References get(), and SETTING_NETWORK_PLUGIN_SKIPPED_VERSIONS.
Referenced by add_skipped_network_version(), and is_network_version_skipped().
| int Slic3r::AppConfig::get_speed_dial_recent_count | ( | ) | const |
References get(), SETTING_SPEED_DIAL_RECENT_COUNT, SPEED_DIAL_RECENT_COUNT_DEFAULT, SPEED_DIAL_RECENT_COUNT_MAX, and SPEED_DIAL_RECENT_COUNT_MIN.
Referenced by set_defaults().
| bool Slic3r::AppConfig::get_stealth_mode | ( | ) |
References get_bool().
Referenced by Slic3r::anonymous_namespace{PluginHostApp.cpp}::app_info(), and should_disable_hms().
| bool Slic3r::AppConfig::get_variant | ( | const std::string & | vendor, |
| const std::string & | model, | ||
| const std::string & | variant ) const |
References m_vendors.
Referenced by Slic3r::GUI::PrinterPicker::PrinterPicker(), set_variant(), and Slic3r::Preset::set_visible_from_appconfig().
|
inline |
References has().
|
inline |
References m_storage.
Referenced by has(), Slic3r::GUI::FlashforgePrintHostSendDialog::init(), Slic3r::load_mixed_filament_settings(), Slic3r::instance_id::anonymous_namespace{InstanceID.cpp}::prune_config_value(), Slic3r::GUI::Config::SnapshotDB::take_snapshot(), and Slic3r::GUI::PageMaterials::update_lists().
| bool Slic3r::AppConfig::has_cloud_provider | ( | const std::string & | provider | ) | const |
References get_cloud_providers().
|
inline |
References has_printer_settings(), and m_printer_settings.
Referenced by get_printer_setting(), Slic3r::load_mixed_filament_settings(), Slic3r::PresetBundle::load_selections(), and Slic3r::PresetBundle::update_selections().
|
inline |
References m_printer_settings.
Referenced by has_printer_setting().
|
inline |
References m_storage.
Referenced by Slic3r::GUI::ConfigWizard::priv::apply_config(), Slic3r::GUI::GuideFrame::apply_config(), Slic3r::PresetBundle::apply_vendor_config(), get_custom_color_from_config(), Slic3r::GUI::Sidebar::priv::get_nozzle_options(), get_nozzle_volume_types_from_config(), Slic3r::GUI::ShortcutRegistry::load(), Slic3r::GUI::anonymous_namespace{ColorPickerDialog.cpp}::load_color_picker_favorites(), Slic3r::PresetBundle::load_installed_filaments(), Slic3r::PresetBundle::load_installed_sla_materials(), anonymous_namespace{EmbossStyleManager.cpp}::load_style_index(), anonymous_namespace{EmbossStyleManager.cpp}::load_styles(), Slic3r::GUI::ConfigWizard::priv::load_vendors(), Slic3r::GUI::anonymous_namespace{ColorPickerDialog.cpp}::save_color_picker_favorites(), save_custom_color_to_config(), save_nozzle_volume_types_to_config(), Slic3r::Preset::set_visible_from_appconfig(), and anonymous_namespace{EmbossStyleManager.cpp}::store_styles().
| bool Slic3r::AppConfig::is_engineering_region | ( | ) |
References ENV_DEV_HOST, ENV_PRE_HOST, ENV_QAT_HOST, and get().
| bool Slic3r::AppConfig::is_network_update_prompt_disabled | ( | ) | const |
References get_bool(), and SETTING_NETWORK_PLUGIN_UPDATE_DISABLED.
| bool Slic3r::AppConfig::is_network_version_skipped | ( | const std::string & | version | ) | const |
References get_skipped_network_versions().
|
inline |
References m_legacy_datadir.
Referenced by Slic3r::GUI::ConfigWizard::priv::load_vendors().
| std::string Slic3r::AppConfig::load | ( | bool | read_only = false | ) |
References Slic3r::BBLocalMachine::access_code, Slic3r::CaliPresetInfo::bed_type, Slic3r::PrinterCaliInfo::cache_flow_rate_calibration_type, Slic3r::PrinterCaliInfo::cache_flow_ratio, Slic3r::PrinterCaliInfo::cali_finished, Slic3r::copy_file(), Slic3r::BBLocalMachine::dev_id, Slic3r::PrinterCaliInfo::dev_id, Slic3r::BBLocalMachine::dev_ip, Slic3r::BBLocalMachine::dev_name, Editor, Slic3r::empty(), Slic3r::CaliPresetInfo::extruder_id, Slic3r::CaliPresetInfo::filament_id, Slic3r::format(), get(), get_bool(), loading_path(), lock_path(), m_dirty, m_filament_color_types, m_filament_colors, m_filament_multi_colors, m_filament_presets, m_legacy_datadir, m_local_machines, m_mode, m_orig_version, m_printer_cali_infos, m_printer_settings, m_storage, m_vendors, Slic3r::MODELS_STR, Slic3r::CaliPresetInfo::name, Slic3r::CaliPresetInfo::nozzle_diameter, Slic3r::CaliPresetInfo::nozzle_pos_id, Slic3r::CaliPresetInfo::nozzle_sn, Slic3r::CaliPresetInfo::nozzle_volume_type, Slic3r::Semver::parse(), Slic3r::BBLocalMachine::printer_agent_id, Slic3r::BBLocalMachine::printer_type, SECTION_FILAMENTS, Slic3r::PrinterCaliInfo::selected_presets, set(), set_defaults(), SETTING_CLOUD_PROVIDERS, Slic3r::CaliPresetInfo::setting_id, Slic3r::SUCCESS, Slic3r::CaliPresetInfo::tray_id, and Slic3r::unescape_strings_cstyle().
Referenced by load_if_exists().
| std::string Slic3r::AppConfig::load_if_exists | ( | ) |
References load(), and loading_path().
Referenced by Slic3r::CLI::run().
|
inline |
References config_path(), and m_loading_path.
Referenced by load(), and load_if_exists().
| std::string Slic3r::AppConfig::lock_path | ( | ) |
References config_path(), and Slic3r::data_dir().
Referenced by load(), and write_config_file().
|
inline |
References m_orig_version.
Referenced by Slic3r::PresetUpdater::priv::check_new_vendors().
| std::string Slic3r::AppConfig::profile_update_url | ( | ) | const |
References Slic3r::CONFIG_ORCA_UPDATER_URL, get(), and Slic3r::PROFILE_UPDATE_URL.
Referenced by Slic3r::PresetUpdater::priv::check_new_vendors(), Slic3r::PresetUpdater::priv::set_download_prefs(), and Slic3r::PresetUpdater::priv::sync_vendor_config().
| void Slic3r::AppConfig::remove_cloud_provider | ( | const std::string & | provider | ) |
References get_cloud_providers(), and set_cloud_providers().
| void Slic3r::AppConfig::reset | ( | ) |
References m_storage, and set_defaults().
Referenced by AppConfig(), and Slic3r::CLI::run().
| void Slic3r::AppConfig::reset_selections | ( | ) |
References m_dirty, m_storage, PRESET_FILAMENT_NAME, PRESET_PRINT_NAME, and PRESET_PRINTER_NAME.
| void Slic3r::AppConfig::save | ( | ) |
References config_path(), Editor, Slic3r::escape_strings_cstyle(), Slic3r::header_gcodeviewer_generated(), Slic3r::header_slic3r_generated(), Slic3r::is_main_thread_active(), m_dirty, m_filament_color_types, m_filament_colors, m_filament_multi_colors, m_filament_presets, m_local_machines, m_mode, m_printer_cali_infos, m_printer_settings, m_storage, m_vendors, Slic3r::MODELS_STR, SECTION_FILAMENTS, and write_config_file().
Referenced by Slic3r::GUI::anonymous_namespace{NativeCommands.cpp}::build_command_catalog(), Slic3r::GUI::anonymous_namespace{ColorPickerDialog.cpp}::save_color_picker_favorites(), and update_last_backup_dir().
| void Slic3r::AppConfig::save_custom_color_to_config | ( | const std::vector< std::string > & | colors | ) |
References get_section(), has_section(), and set_section().
|
inline |
References m_retry_save_at.
| void Slic3r::AppConfig::save_nozzle_volume_types_to_config | ( | const std::string & | printer_name, |
| const std::string & | nozzle_volume_types ) |
References get_section(), has_section(), and set_section().
| void Slic3r::AppConfig::save_printer_cali_infos | ( | const PrinterCaliInfo & | cali_info, |
| bool | need_change_status = true ) |
References Slic3r::PrinterCaliInfo::cache_flow_rate_calibration_type, Slic3r::PrinterCaliInfo::cache_flow_ratio, Slic3r::PrinterCaliInfo::cali_finished, m_dirty, m_printer_cali_infos, and Slic3r::PrinterCaliInfo::selected_presets.
|
inline |
|
inline |
|
inline |
|
inline |
References m_dirty, and m_storage.
Referenced by Slic3r::GUI::Sidebar::Sidebar(), add_skipped_network_version(), clear_skipped_network_versions(), Slic3r::GUI::PreferencesDialog::create_item_region_combobox(), Slic3r::GUI::ElegooPrintHostSendDialog::EndModal(), Slic3r::GUI::FlashforgePrintHostSendDialog::EndModal(), Slic3r::GUI::PrintHostSendDialog::EndModal(), Slic3r::GUI::Config::Snapshot::export_selections(), Slic3r::PresetBundle::export_selections(), Slic3r::GUI::Sidebar::priv::get_nozzle_options(), Slic3r::GUI::ColorPickerDialog::handle_web_command(), Slic3r::GUI::CrealityPrintHostSendDialog::init(), Slic3r::GUI::Config::SnapshotDB::is_on_snapshot(), load(), Slic3r::GUI::Plater::priv::load_files(), Slic3r::PresetBundle::load_installed_filaments(), Slic3r::PresetBundle::load_installed_sla_materials(), Slic3r::PresetBundle::load_selections(), main(), Slic3r::GUI::Plater::priv::on_select_bed_type(), Slic3r::GUI::ShortcutRegistry::save(), Slic3r::GUI::SelectMachineDialog::save_option_vals(), set(), set(), set(), set_bool(), set_cloud_providers(), set_defaults(), set_network_plugin_version(), anonymous_namespace{OrcaSlicer_profile_validator.cpp}::slice_all_printers(), Slic3r::GUI::Plater::priv::undo_redo_to(), update_config_dir(), update_last_backup_dir(), update_last_output_dir(), Slic3r::GUI::PageMaterials::update_lists(), update_skein_dir(), and Slic3r::instance_id::anonymous_namespace{InstanceID.cpp}::write_config_value().
|
inline |
References set().
Referenced by Slic3r::GUI::anonymous_namespace{NativeCommands.cpp}::build_command_catalog(), clear_remind_network_update_later(), set_defaults(), set_network_update_prompt_disabled(), and set_remind_network_update_later().
| void Slic3r::AppConfig::set_cloud_providers | ( | const std::vector< std::string > & | providers | ) |
References set(), and SETTING_CLOUD_PROVIDERS.
Referenced by add_cloud_provider(), and remove_cloud_provider().
| void Slic3r::AppConfig::set_defaults | ( | ) |
References BAMBU_NETWORK_AGENT_VERSION_LEGACY, DRC_BITS_DEFAULT_STR, Editor, Slic3r::empty(), erase(), Slic3r::fmmAutoForFlush, get(), get_bool(), Slic3r::ConfigOptionEnum< T >::get_enum_names(), get_plugin_pages_visible_count(), get_speed_dial_recent_count(), m_mode, OPTION_PROJECT_LOAD_BEHAVIOUR_ASK_WHEN_RELEVANT, set(), set_bool(), set_network_plugin_version(), set_str(), SETTING_OPENGL_AA_SAMPLES, SETTING_OPENGL_FPS_CAP, SETTING_OPENGL_FXAA_ENABLED, SETTING_OPENGL_PHONG_BASIC_PLATE_SHADOWS, SETTING_OPENGL_PHONG_SMOOTH_NORMALS, SETTING_OPENGL_PHONG_SSAO, SETTING_OPENGL_REALISTIC_GLOSS, SETTING_OPENGL_REALISTIC_MODE, SETTING_OPENGL_REALISTIC_PHONG, SETTING_OPENGL_REALISTIC_PREVIEW, SETTING_OPENGL_REALISTIC_SHADOWS, SETTING_OPENGL_SCENE_CACHE, SETTING_OPENGL_SHADING_MODEL, SETTING_OPENGL_SHOW_FPS_OVERLAY, SETTING_OPENGL_SHOW_RENDER_TIMINGS, SETTING_OPENGL_SKIP_IDENTICAL_FRAMES, SETTING_PLUGIN_PAGES_VISIBLE_COUNT, SETTING_PROJECT_LOAD_BEHAVIOUR, SETTING_SPEED_DIAL_RECENT_COUNT, SETTING_USE_ENCRYPTED_TOKEN_FILE, and Slic3r::to_string().
Referenced by load(), and reset().
|
inline |
References m_dirty.
Referenced by Slic3r::GUI::anonymous_namespace{ColorPickerDialog.cpp}::save_color_picker_favorites().
|
inline |
References m_dirty, and m_filament_colors.
|
inline |
References m_dirty, and m_filament_presets.
|
inline |
References m_legacy_datadir.
Referenced by Slic3r::GUI::ConfigWizard::run(), and Slic3r::GUI::GuideFrame::run().
|
inline |
References m_loading_path.
| void Slic3r::AppConfig::set_mouse_device | ( | const std::string & | name, |
| double | translation_speed, | ||
| double | translation_deadzone, | ||
| float | rotation_speed, | ||
| float | rotation_deadzone, | ||
| double | zoom_speed, | ||
| bool | swap_yz, | ||
| bool | invert_x, | ||
| bool | invert_y, | ||
| bool | invert_z, | ||
| bool | invert_yaw, | ||
| bool | invert_pitch, | ||
| bool | invert_roll ) |
References Slic3r::float_to_string_decimal_point(), m_dirty, and m_storage.
Referenced by Slic3r::GUI::Mouse3DController::save_config().
| void Slic3r::AppConfig::set_network_plugin_version | ( | const std::string & | version | ) |
References set(), and SETTING_NETWORK_PLUGIN_VERSION.
Referenced by set_defaults().
| void Slic3r::AppConfig::set_network_update_prompt_disabled | ( | bool | disabled | ) |
References set_bool(), and SETTING_NETWORK_PLUGIN_UPDATE_DISABLED.
|
inline |
References m_dirty, and m_printer_settings.
Referenced by Slic3r::PresetBundle::export_selections(), and Slic3r::GUI::Plater::priv::on_select_bed_type().
| void Slic3r::AppConfig::set_recent_projects | ( | const std::vector< std::string > & | recent_projects | ) |
References m_storage.
| void Slic3r::AppConfig::set_remind_network_update_later | ( | bool | remind | ) |
References set_bool(), and SETTING_NETWORK_PLUGIN_REMIND_LATER.
|
inline |
References m_storage.
Referenced by Slic3r::GUI::ConfigWizard::priv::apply_config(), Slic3r::PresetBundle::apply_vendor_config(), Slic3r::GUI::Sidebar::priv::get_nozzle_options(), Slic3r::GUI::anonymous_namespace{ColorPickerDialog.cpp}::save_color_picker_favorites(), save_custom_color_to_config(), save_nozzle_volume_types_to_config(), anonymous_namespace{EmbossStyleManager.cpp}::store_style(), and anonymous_namespace{EmbossStyleManager.cpp}::store_style_index().
|
inline |
References m_dirty, and m_storage.
Referenced by Slic3r::anonymous_namespace{ElegooLink.cpp}::persist_sn(), Slic3r::MachineObject::set_access_code(), set_defaults(), and Slic3r::GUI::SyncAmsInfoDialog::update_timelapse_enable_status().
| void Slic3r::AppConfig::set_variant | ( | const std::string & | vendor, |
| const std::string & | model, | ||
| const std::string & | variant, | ||
| bool | enable ) |
References get_variant(), m_dirty, and m_vendors.
Referenced by Slic3r::GUI::PagePrinters::PagePrinters(), Slic3r::GUI::GuideFrame::run(), and anonymous_namespace{OrcaSlicer_profile_validator.cpp}::slice_all_printers().
| void Slic3r::AppConfig::set_vendors | ( | const AppConfig & | from | ) |
References AppConfig(), m_dirty, and m_vendors.
Referenced by Slic3r::GUI::ConfigWizard::priv::apply_config(), Slic3r::PresetBundle::apply_vendor_config(), and Slic3r::GUI::Config::Snapshot::export_vendor_configs().
|
inline |
|
inline |
| bool Slic3r::AppConfig::should_remind_network_update_later | ( | ) | const |
References get_bool(), and SETTING_NETWORK_PLUGIN_REMIND_LATER.
| void Slic3r::AppConfig::update_config_dir | ( | const std::string & | dir | ) |
| void Slic3r::AppConfig::update_last_backup_dir | ( | const std::string & | dir | ) |
| void Slic3r::AppConfig::update_last_output_dir | ( | const std::string & | dir, |
| const bool | removable = false ) |
References set().
Referenced by Slic3r::GUI::Plater::export_gcode(), and Slic3r::GUI::Plater::export_gcode_3mf().
|
inline |
References Slic3r::BBLocalMachine::dev_id, m_dirty, and m_local_machines.
Referenced by Slic3r::DeviceManager::update_local_machine().
| void Slic3r::AppConfig::update_skein_dir | ( | const std::string & | dir | ) |
References Slic3r::is_shapes_dir(), and set().
|
inline |
References m_vendors.
Referenced by Slic3r::GUI::ConfigWizard::priv::apply_config(), Slic3r::GUI::GuideFrame::apply_config(), Slic3r::PresetBundle::apply_vendor_config(), Slic3r::PresetUpdater::priv::check_installed_vendor_profiles(), Slic3r::GUI::Config::Snapshot::equal_to_active(), set_vendors(), set_vendors(), and Slic3r::GUI::Config::SnapshotDB::take_snapshot().
| std::string Slic3r::AppConfig::version_check_url | ( | ) | const |
References get(), and Slic3r::VERSION_CHECK_URL.
Referenced by Slic3r::PresetUpdater::priv::set_download_prefs().
|
private |
References lock_path(), m_retry_save_at, and Slic3r::write_file_atomically().
Referenced by save().
|
private |
Referenced by AppConfig(), clear_local_machine_access_code(), clear_printer_settings(), dirty(), erase(), erase_local_machine(), load(), reset_selections(), save(), save_printer_cali_infos(), set(), set_dirty(), set_filament_colors(), set_filament_presets(), set_mouse_device(), set_printer_setting(), set_str(), set_variant(), set_vendors(), set_vendors(), set_vendors(), and update_local_machine().
|
private |
|
private |
Referenced by get_filament_colors(), load(), save(), and set_filament_colors().
|
private |
|
private |
Referenced by get_filament_presets(), load(), save(), and set_filament_presets().
|
private |
Referenced by AppConfig(), legacy_datadir(), load(), and set_legacy_datadir().
|
private |
Referenced by loading_path(), and set_loading_path().
|
private |
Referenced by clear_local_machine_access_code(), erase_local_machine(), get_local_machines(), load(), save(), and update_local_machine().
|
private |
Referenced by AppConfig(), config_path(), load(), save(), and set_defaults().
|
private |
Referenced by AppConfig(), load(), and orig_version().
|
private |
Referenced by get_printer_cali_infos(), load(), save(), and save_printer_cali_infos().
|
private |
Referenced by clear_printer_settings(), get_printer_setting(), has_printer_setting(), has_printer_settings(), load(), save(), and set_printer_setting().
|
private |
Referenced by save_due(), and write_config_file().
|
private |
Referenced by clear_section(), erase(), get(), get_3dmouse_device_numeric_value(), get_last_backup_dir(), get_last_dir(), get_last_output_dir(), get_mouse_device_names(), get_recent_projects(), get_section(), has(), has_section(), load(), reset(), reset_selections(), save(), set(), set_mouse_device(), set_recent_projects(), set_section(), and set_str().
|
private |
Referenced by get_variant(), load(), save(), set_variant(), set_vendors(), set_vendors(), set_vendors(), and vendors().
|
static |
|
static |
Referenced by Slic3r::GUI::Materials::appconfig_section(), Slic3r::GUI::ConfigWizard::priv::apply_config(), Slic3r::GUI::GuideFrame::apply_config(), Slic3r::PresetBundle::apply_vendor_config(), Slic3r::GUI::ConfigWizard::priv::check_and_install_missing_materials(), load(), Slic3r::PresetBundle::load_installed_filaments(), Slic3r::GUI::ConfigWizard::priv::load_vendors(), Slic3r::GUI::GuideFrame::run(), save(), Slic3r::GUI::GuideFrame::SaveProfile(), Slic3r::GUI::GuideFrame::SaveProfileData(), Slic3r::Preset::set_visible_from_appconfig(), and Slic3r::GUI::ConfigWizard::priv::update_presets_in_config().
|
static |