#include </home/runner/work/OrcaSlicer/OrcaSlicer/src/slic3r/GUI/UnsavedChangesDialog.hpp>
Classes | |
| struct | PresetData |
| struct | SyncExtruderParams |
Public Member Functions | |
| int | getUpdateItemCount () |
| UnsavedChangesDialog (Preset::Type type, PresetCollection *dependent_presets, const std::string &new_selected_preset, bool no_transfer=false) | |
| UnsavedChangesDialog (const wxString &caption, const wxString &header, const std::string &app_config_key, int act_buttons) | |
| UnsavedChangesDialog (const wxString &caption, const wxString &header, DynamicConfig *config, int from, int to, bool left_to_right, NozzleVolumeType nozzle) | |
| ~UnsavedChangesDialog () override=default | |
| int | ShowModal () override |
| void | build (Preset::Type type, PresetCollection *dependent_presets, const std::string &new_selected_preset, const wxString &header="") |
| void | update (Preset::Type type, PresetCollection *dependent_presets, const std::string &new_selected_preset, const wxString &header) |
| void | update_list (SyncExtruderParams *params=nullptr) |
| std::string | subreplace (std::string resource_str, std::string sub_str, std::string new_str) |
| void | update_tree (Preset::Type type, PresetCollection *presets) |
| void | update_tree (Preset::Type type, DynamicConfig *config, int from, int to) |
| void | show_info_line (Action action, std::string preset_name="") |
| void | update_config (Action action) |
| void | close (Action action) |
| bool | save (PresetCollection *dependent_presets, bool show_save_preset_dialog=true) |
| bool | save_preset () const |
| bool | transfer_changes () const |
| bool | discard () const |
| const std::vector< UnsavedChangesDialog::PresetData > & | get_names_and_types () |
| bool | get_save_to_project_option () |
| std::string | get_preset_name () |
| std::vector< std::string > | get_unselected_options (Preset::Type type) |
| std::vector< std::string > | get_selected_options (Preset::Type type) |
| std::vector< std::string > | get_selected_options () |
| bool | has_unselected_options () |
| void | EndModal (int retCode) override |
| float | scale_factor () const |
| float | prev_scale_factor () const |
| void | set_scale_factor (float v) |
| void | set_prev_scale_factor (float v) |
| void | set_em_unit (int v) |
| bool | force_rescale () const |
| int | em_unit () const |
| const wxFont & | normal_font () const |
| void | enable_force_rescale () |
Protected Member Functions | |
| void | on_dpi_changed (const wxRect &suggested_rect) override |
| void | on_sys_color_changed () override |
| bool | check_option_valid () |
Protected Attributes | |
| wxPanel * | m_top_line |
| wxPanel * | m_panel_tab |
| wxPanel * | m_table_top |
| wxPanel * | title_block_middle |
| wxPanel * | title_block_right |
| wxStaticText * | static_temp_title |
| wxStaticText * | static_oldv_title |
| wxStaticText * | static_newv_title |
| wxBoxSizer * | m_sizer_bottom |
| Button * | m_save_btn { nullptr } |
| Button * | m_transfer_btn { nullptr } |
| Button * | m_discard_btn { nullptr } |
| Button * | m_cancel_btn { nullptr } |
| wxStaticText * | m_action_line { nullptr } |
| wxStaticText * | m_info_line { nullptr } |
| wxScrolledWindow * | m_scrolledWindow { nullptr } |
| bool | m_has_long_strings { false } |
| int | m_save_btn_id { wxID_ANY } |
| int | m_move_btn_id { wxID_ANY } |
| int | m_continue_btn_id { wxID_ANY } |
| std::string | m_app_config_key |
| Action | m_exit_action {Action::Undef} |
Static Protected Attributes | |
| static constexpr char | ActTransfer [] = "transfer" |
| static constexpr char | ActDiscard [] = "discard" |
| static constexpr char | ActSave [] = "save" |
Private Member Functions | |
| void | update_em_unit () |
| bool | is_new_scale_factor () const |
| void | rescale (const wxRect &suggested_rect) |
Private Attributes | |
| std::vector< PresetItem > | m_presetitems |
| std::vector< PresetData > | names_and_types |
| int | m_buttons { ActionButtons::TRANSFER | ActionButtons::SAVE } |
| std::string | m_new_selected_preset_name |
| float | m_scale_factor |
| int | m_em_unit |
| wxFont | m_normal_font |
| float | m_prev_scale_factor |
| bool | m_can_rescale |
| bool | m_force_rescale |
| int | m_new_font_point_size |
| struct Slic3r::GUI::UnsavedChangesDialog::SyncExtruderParams |
| Class Members | ||
|---|---|---|
| DynamicConfig * | config | |
| int | from | |
| bool | left_to_right | |
| NozzleVolumeType | nozzle | |
| int | to | |
| Slic3r::GUI::UnsavedChangesDialog::UnsavedChangesDialog | ( | Preset::Type | type, |
| PresetCollection * | dependent_presets, | ||
| const std::string & | new_selected_preset, | ||
| bool | no_transfer = false ) |
References _L, build(), m_buttons, m_new_selected_preset_name, and Slic3r::GUI::TRANSFER.
| Slic3r::GUI::UnsavedChangesDialog::UnsavedChangesDialog | ( | const wxString & | caption, |
| const wxString & | header, | ||
| const std::string & | app_config_key, | ||
| int | act_buttons ) |
References _L, build(), m_app_config_key, m_buttons, and Slic3r::Preset::TYPE_INVALID.
| Slic3r::GUI::UnsavedChangesDialog::UnsavedChangesDialog | ( | const wxString & | caption, |
| const wxString & | header, | ||
| DynamicConfig * | config, | ||
| int | from, | ||
| int | to, | ||
| bool | left_to_right, | ||
| NozzleVolumeType | nozzle ) |
References build(), Slic3r::GUI::DONT_SAVE, m_buttons, Slic3r::GUI::SAVE, and Slic3r::Preset::TYPE_PRINT.
|
overridedefault |
| void Slic3r::GUI::UnsavedChangesDialog::build | ( | Preset::Type | type, |
| PresetCollection * | dependent_presets, | ||
| const std::string & | new_selected_preset, | ||
| const wxString & | header = "" ) |
References _L, Label::Body_13, Choice, ButtonProps::ChoiceButtonGap(), Circle, close(), Slic3r::GUI::UnsavedChangesDialog::SyncExtruderParams::config, Confirm, StateColor::darkModeColorFor(), DEPUTY_EXTRUDER_ID, Slic3r::GUI::Discard, Slic3r::GUI::DONT_SAVE, Slic3r::PresetCollection::find_preset(), Slic3r::GUI::format_wxstr(), Slic3r::GUI::UnsavedChangesDialog::SyncExtruderParams::from, Slic3r::GUI::from_u8(), Slic3r::PresetCollection::get_edited_preset(), Slic3r::GUI::get_nozzle_volume_type_name(), Slic3r::DevPrinterConfigUtil::get_toolhead_display_name(), GREY200, Slic3r::GUI::KEEP, Slic3r::GUI::UnsavedChangesDialog::SyncExtruderParams::left_to_right, m_action_line, m_app_config_key, m_buttons, m_continue_btn_id, m_discard_btn, m_move_btn_id, m_panel_tab, m_save_btn, m_save_btn_id, m_scrolledWindow, m_sizer_bottom, m_table_top, m_top_line, m_transfer_btn, MAIN_EXTRUDER_ID, Slic3r::Preset::name, Slic3r::Nozzle, Slic3r::GUI::UnsavedChangesDialog::SyncExtruderParams::nozzle, Slic3r::Preset::printer_technology(), Regular, Slic3r::GUI::REMEMBER_CHOISE, Slic3r::GUI::SAVE, Slic3r::GUI::Save, save(), Slic3r::SentenceCase, show_info_line(), static_newv_title, static_oldv_title, static_temp_title, title_block_middle, title_block_right, Slic3r::GUI::UnsavedChangesDialog::SyncExtruderParams::to, Slic3r::GUI::TRANSFER, Slic3r::GUI::Transfer, Slic3r::PresetCollection::type(), Slic3r::Preset::TYPE_INVALID, Slic3r::GUI::Undef, UNSAVE_CHANGE_DIALOG_ACTION_LINE_SIZE, UNSAVE_CHANGE_DIALOG_FIRST_VALUE_WIDTH, UNSAVE_CHANGE_DIALOG_SCROLL_WINDOW_SIZE, UNSAVE_CHANGE_DIALOG_VALUE_WIDTH, update(), update_list(), update_tree(), Slic3r::GUI::wxMouseEvent, and wxStaticText.
Referenced by UnsavedChangesDialog(), UnsavedChangesDialog(), and UnsavedChangesDialog().
|
protected |
| void Slic3r::GUI::UnsavedChangesDialog::close | ( | Action | action | ) |
References check_option_valid(), Slic3r::GUI::DPIDialog::EndModal(), m_exit_action, and Slic3r::GUI::Transfer.
Referenced by build().
|
inline |
References Slic3r::GUI::Discard, and m_exit_action.
Referenced by Slic3r::GUI::GUI_App::check_and_keep_current_preset_changes().
|
inlineinherited |
Referenced by Slic3r::GUI::AuxiliaryDialog::AuxiliaryDialog(), Slic3r::GUI::CopyrightsDialog::CopyrightsDialog(), Slic3r::GUI::DesignTextDialog::DesignTextDialog(), Slic3r::GUI::EditGCodeDialog::EditGCodeDialog(), Slic3r::GUI::FileArchiveDialog::FileArchiveDialog(), Slic3r::GUI::MsgNoUpdates::MsgNoUpdates(), Slic3r::GUI::MsgUpdateForced::MsgUpdateForced(), Slic3r::GUI::OAuthDialog::OAuthDialog(), Slic3r::GUI::ParamsDialog::ParamsDialog(), Slic3r::GUI::PhysicalPrinterDialog::PhysicalPrinterDialog(), Slic3r::GUI::SettingsDialog::SettingsDialog(), anonymous_namespace{3DPrinterOS.cpp}::TokenAuthDialog::TokenAuthDialog(), anonymous_namespace{3DPrinterOS.cpp}::UploadOptionsDialog::UploadOptionsDialog(), Slic3r::GUI::PublishSettingsDialog::add_row_ui(), Slic3r::GUI::DiffPresetDialog::complete_dialog_creation(), Slic3r::GUI::DiffPresetDialog::create_edit_sizer(), Slic3r::GUI::DiffPresetDialog::create_presets_sizer(), Slic3r::GUI::DiffPresetDialog::create_tree(), Slic3r::GUI::ElegooPrintHostSendDialog::init(), Slic3r::GUI::FlashforgePrintHostSendDialog::init(), Slic3r::GUI::PrintHostSendDialog::init(), Slic3r::GUI::AboutDialog::on_dpi_changed(), Slic3r::GUI::AuxiliaryDialog::on_dpi_changed(), Slic3r::GUI::BedShapeDialog::on_dpi_changed(), Slic3r::GUI::ConfigWizard::on_dpi_changed(), Slic3r::GUI::CopyrightsDialog::on_dpi_changed(), Slic3r::GUI::DiffPresetDialog::on_dpi_changed(), Slic3r::GUI::EditGCodeDialog::on_dpi_changed(), Slic3r::GUI::FileArchiveDialog::on_dpi_changed(), Slic3r::GUI::OAuthDialog::on_dpi_changed(), Slic3r::GUI::ObjectTableDialog::on_dpi_changed(), Slic3r::GUI::ParamsDialog::on_dpi_changed(), Slic3r::GUI::PhysicalPrinterDialog::on_dpi_changed(), Slic3r::GUI::PrintHostQueueDialog::on_dpi_changed(), Slic3r::GUI::PurgeModeDialog::on_dpi_changed(), Slic3r::GUI::SavePresetDialog::on_dpi_changed(), Slic3r::GUI::SendSystemInfoDialog::on_dpi_changed(), Slic3r::GUI::SettingsDialog::on_dpi_changed(), and Slic3r::GUI::UnsavedChangesDialog::on_dpi_changed().
|
inlineinherited |
|
inlineoverrideinherited |
References Slic3r::GUI::dialogStack.
Referenced by Slic3r::GUI::CloneDialog::CloneDialog(), Slic3r::GUI::ConfigWizard::ConfigWizard(), Slic3r::GUI::CreatePresetSuccessfulDialog::CreatePresetSuccessfulDialog(), Slic3r::GUI::DeleteConfirmDialog::DeleteConfirmDialog(), Slic3r::GUI::DesignVariableDialog::DesignVariableDialog(), Slic3r::GUI::anonymous_namespace{PrintHostDialogs.cpp}::FlashforgeSlotDialog::FlashforgeSlotDialog(), Slic3r::GUI::GuideFrame::GuideFrame(), Slic3r::GUI::InputIpAddressDialog::InputIpAddressDialog(), Slic3r::GUI::ManualNozzleCountDialog::ManualNozzleCountDialog(), Slic3r::GUI::MsgUpdateConfig::MsgUpdateConfig(), Slic3r::GUI::MsgUpdateForced::MsgUpdateForced(), Slic3r::GUI::MultiChoiceDialog::MultiChoiceDialog(), Slic3r::GUI::NetworkErrorDialog::NetworkErrorDialog(), Slic3r::GUI::NetworkPluginRestartDialog::NetworkPluginRestartDialog(), Slic3r::GUI::PartSkipConfirmDialog::PartSkipConfirmDialog(), Slic3r::GUI::PhysicalPrinterDialog::PhysicalPrinterDialog(), Slic3r::GUI::PlateNameEditDialog::PlateNameEditDialog(), Slic3r::GUI::PlateSettingsDialog::PlateSettingsDialog(), Slic3r::GUI::PublishSettingsDialog::PublishSettingsDialog(), Slic3r::GUI::SelectMachineDialog::SelectMachineDialog(), Slic3r::GUI::SendFailedConfirm::SendFailedConfirm(), Slic3r::GUI::SendSystemInfoDialog::SendSystemInfoDialog(), Slic3r::GUI::ShortcutCaptureDialog::ShortcutCaptureDialog(), Slic3r::GUI::SingleChoiceDialog::SingleChoiceDialog(), StepMeshDialog::StepMeshDialog(), Slic3r::GUI::SyncAmsInfoDialog::SyncAmsInfoDialog(), anonymous_namespace{3DPrinterOS.cpp}::TokenAuthDialog::TokenAuthDialog(), Slic3r::GUI::UpdatePluginDialog::UpdatePluginDialog(), Slic3r::GUI::UpdateVersionDialog::UpdateVersionDialog(), Slic3r::GUI::wgtDeviceNozzleRackUpgradeDlg::wgtDeviceNozzleRackUpgradeDlg(), Slic3r::GUI::SavePresetDialog::accept(), Slic3r::GUI::MsgDialog::add_button(), Slic3r::GUI::TipsDialog::add_button(), Slic3r::GUI::FilamentPickerDialog::BindEvents(), Slic3r::GUI::PluginPickerDialog::build_capability_ui(), Slic3r::GUI::BedShapeDialog::build_dialog(), Slic3r::GUI::PluginPickerDialog::build_ui(), Slic3r::GUI::UnsavedChangesDialog::close(), Slic3r::GUI::FileArchiveDialog::create_btn_sizer(), Slic3r::GUI::ColorDecomposeDialog::create_button_panel(), Slic3r::GUI::MixedFilamentDialog::create_button_panel(), Slic3r::GUI::CreateFilamentPresetDialog::create_dialog_buttons(), Slic3r::GUI::CreatePresetForPrinterDialog::create_dialog_buttons(), Slic3r::GUI::EditFilamentPresetDialog::create_dialog_buttons(), Slic3r::GUI::ExportConfigsDialog::create_dialog_buttons(), Slic3r::GUI::PreferencesDialog::create_item_language_combobox(), Slic3r::GUI::PreferencesDialog::create_item_region_combobox(), Slic3r::GUI::PreferencesDialog::create_items(), Slic3r::GUI::CreatePrinterPresetDialog::create_page1_dialog_buttons(), Slic3r::GUI::CreatePrinterPresetDialog::create_page2_dialog_buttons(), Slic3r::GUI::ExportConfigsDialog::data_init(), Slic3r::GUI::WebDialog::destroy_silently(), Slic3r::GUI::EditFilamentPresetDialog::edit_preset(), Slic3r::GUI::ConnectPrinterDialog::end_modal(), Slic3r::GUI::PrintHostSendDialog::EndModal(), Slic3r::GUI::ColorPickerDialog::finish(), Slic3r::GUI::WebDialog::finish(), Slic3r::GUI::Newer3mfVersionDialog::get_btn_sizer(), Slic3r::GUI::ScoreDialog::get_button_sizer(), Slic3r::GUI::WebViewHostDialog::handle_common_script_command(), Slic3r::GUI::ExportPresetBundleDialog::InitExportData(), Slic3r::GUI::SelectMachineDialog::navigate_to_timelapse_page(), Slic3r::GUI::BindMachineDialog::on_bind_success(), Slic3r::GUI::ConnectPrinterDialog::on_button_confirm(), Slic3r::GUI::RecenterDialog::on_button_confirm(), Slic3r::GUI::BindMachineDialog::on_cancel(), Slic3r::GUI::EditCalibrationHistoryDialog::on_cancel(), Slic3r::GUI::InputIpAddressDialog::on_cancel(), Slic3r::GUI::NewCalibrationHistoryDialog::on_cancel(), Slic3r::GUI::OAuthDialog::on_cancel(), Slic3r::GUI::PingCodeBindDialog::on_cancel(), Slic3r::GUI::SelectMachineDialog::on_cancel(), Slic3r::GUI::SendToPrinterDialog::on_cancel(), Slic3r::GUI::SyncAmsInfoDialog::on_cancel(), Slic3r::GUI::UnBindMachineDialog::on_cancel(), Slic3r::GUI::WebDialog::on_close_window(), Slic3r::GUI::NetworkPluginDownloadDialog::on_dont_ask(), Slic3r::GUI::NetworkPluginDownloadDialog::on_download(), Slic3r::GUI::EditDevNameDialog::on_edit_name(), Slic3r::GUI::ConfirmBeforeSendDialog::on_hide(), Slic3r::GUI::PrivacyUpdateDialog::on_hide(), Slic3r::GUI::ShortcutCaptureDialog::on_key(), Slic3r::GUI::TextureImportDialog::on_ok_clicked(), Slic3r::GUI::FileArchiveDialog::on_open_button(), Slic3r::GUI::NetworkPluginDownloadDialog::on_remind_later(), Slic3r::GUI::ProjectDropDialog::on_select_cancel(), Slic3r::GUI::SavePresetDialog::on_select_cancel(), Slic3r::GUI::ProjectDropDialog::on_select_ok(), Slic3r::GUI::SendMultiMachinePage::on_send(), Slic3r::GUI::NetworkPluginDownloadDialog::on_skip(), Slic3r::GUI::TextureImportDialog::on_skip_clicked(), Slic3r::GUI::NetworkPluginDownloadDialog::on_skip_version(), Slic3r::GUI::Cornering_Test_Dlg::on_start(), Slic3r::GUI::FlowRateCalibrationDialog::on_start(), Slic3r::GUI::Input_Shaping_Damp_Test_Dlg::on_start(), Slic3r::GUI::Input_Shaping_Freq_Test_Dlg::on_start(), Slic3r::GUI::MaxVolumetricSpeed_Test_Dlg::on_start(), Slic3r::GUI::PA_Calibration_Dlg::on_start(), Slic3r::GUI::Retraction_Test_Dlg::on_start(), Slic3r::GUI::Temp_Calibration_Dlg::on_start(), Slic3r::GUI::VFA_Test_Dlg::on_start(), Slic3r::GUI::CalibrationDialog::on_start_calibration(), Slic3r::GUI::UnBindMachineDialog::on_unbind_printer(), Slic3r::GUI::PartSkipDialog::OnApplyDialog(), anonymous_namespace{3DPrinterOS.cpp}::TokenAuthDialog::OnCancel(), Slic3r::GUI::AboutDialog::onCloseDialog(), Slic3r::GUI::CopyrightsDialog::onCloseDialog(), Slic3r::GUI::MultiNozzleSyncDialog::OnRackStatusReadingFinished(), Slic3r::GUI::GuideFrame::OnScriptMessage(), Slic3r::GUI::InputIpAddressDialog::OnTimer(), Slic3r::GUI::KBShortcutsDialog::open_mouse_preferences(), Slic3r::GUI::TroubleshootDialog::PackAll(), Slic3r::GUI::TroubleshootDialog::RebuildSystemProfiles(), Slic3r::GUI::SpeedDialWebDialog::run_action(), Slic3r::GUI::OAuthDialog::Show(), Slic3r::GUI::MultiNozzleSyncDialog::UpdateButton(), and Slic3r::GUI::CreatePrinterPresetDialog::validate_input_valid().
|
inlineinherited |
|
inline |
References names_and_types.
Referenced by Slic3r::GUI::GUI_App::check_and_keep_current_preset_changes(), and Slic3r::GUI::GUI_App::check_and_save_current_preset_changes().
|
inline |
References names_and_types.
Referenced by Slic3r::GUI::Tab::may_discard_current_dirty_preset().
|
inline |
References names_and_types.
Referenced by Slic3r::GUI::Tab::may_discard_current_dirty_preset().
|
inline |
References m_presetitems.
|
inline |
References m_presetitems.
Referenced by Slic3r::GUI::GUI_App::check_and_keep_current_preset_changes(), and Slic3r::GUI::Tab::may_discard_current_dirty_preset().
|
inline |
Referenced by Slic3r::GUI::GUI_App::check_and_keep_current_preset_changes(), Slic3r::GUI::GUI_App::check_and_save_current_preset_changes(), and Slic3r::GUI::Tab::may_discard_current_dirty_preset().
|
inline |
References m_presetitems.
Referenced by Slic3r::GUI::GUI_App::check_and_keep_current_preset_changes(), and Slic3r::GUI::GUI_App::check_and_save_current_preset_changes().
|
inline |
Referenced by Slic3r::GUI::GUI_App::check_and_keep_current_preset_changes().
|
inlineprivateinherited |
|
inlineinherited |
Referenced by Slic3r::GUI::AboutDialog::AboutDialog(), Slic3r::GUI::ConfigWizard::ConfigWizard(), Slic3r::GUI::CopyrightsDialog::CopyrightsDialog(), Slic3r::GUI::EditGCodeDialog::EditGCodeDialog(), Slic3r::GUI::anonymous_namespace{PrintHostDialogs.cpp}::FlashforgeSlotDialog::FlashforgeSlotDialog(), Slic3r::GUI::KBShortcutsDialog::KBShortcutsDialog(), Slic3r::GUI::MsgDialog::MsgDialog(), Slic3r::GUI::OAuthDialog::OAuthDialog(), Slic3r::GUI::PhysicalPrinterDialog::PhysicalPrinterDialog(), Slic3r::GUI::SelectMachineDialog::SelectMachineDialog(), Slic3r::GUI::SendSystemInfoDialog::SendSystemInfoDialog(), Slic3r::GUI::SendToPrinterDialog::SendToPrinterDialog(), Slic3r::GUI::SettingsDialog::SettingsDialog(), Slic3r::GUI::ShortcutCaptureDialog::ShortcutCaptureDialog(), Slic3r::GUI::SyncAmsInfoDialog::SyncAmsInfoDialog(), anonymous_namespace{3DPrinterOS.cpp}::TokenAuthDialog::TokenAuthDialog(), Slic3r::GUI::TroubleshootDialog::TroubleshootDialog(), anonymous_namespace{3DPrinterOS.cpp}::UploadOptionsDialog::UploadOptionsDialog(), Slic3r::GUI::SavePresetDialog::build(), Slic3r::GUI::BedShapeDialog::build_dialog(), and Slic3r::GUI::PhysicalPrinterDialog::build_printhost_settings().
|
overrideprotectedvirtual |
Implements Slic3r::GUI::DPIAware< wxDialog >.
References Slic3r::GUI::DPIAware< wxDialog >::em_unit(), m_discard_btn, m_save_btn, and m_transfer_btn.
|
overrideprotectedvirtual |
Reimplemented from Slic3r::GUI::DPIAware< wxDialog >.
|
inlineinherited |
|
inlineprivateinherited |
| bool Slic3r::GUI::UnsavedChangesDialog::save | ( | PresetCollection * | dependent_presets, |
| bool | show_save_preset_dialog = true ) |
References Slic3r::Preset::can_overwrite(), Slic3r::GUI::Discard, Slic3r::PresetCollection::get_edited_preset(), Slic3r::GUI::SavePresetDialog::get_name(), Slic3r::GUI::SavePresetDialog::get_save_to_project_selection(), Slic3r::Preset::is_project_embedded, m_exit_action, Slic3r::Preset::name, names_and_types, Slic3r::GUI::printer_technology(), Slic3r::GUI::DPIAware< P >::ShowModal(), and Slic3r::Preset::type.
Referenced by build().
|
inline |
References m_exit_action, and Slic3r::GUI::Save.
Referenced by Slic3r::GUI::GUI_App::check_and_keep_current_preset_changes(), Slic3r::GUI::GUI_App::check_and_save_current_preset_changes(), and Slic3r::GUI::Tab::may_discard_current_dirty_preset().
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
| void Slic3r::GUI::UnsavedChangesDialog::show_info_line | ( | Action | action, |
| std::string | preset_name = "" ) |
References _L, Slic3r::GUI::Discard, Slic3r::GUI::DONT_SAVE, Slic3r::GUI::format_wxstr(), Slic3r::GUI::KEEP, m_buttons, m_has_long_strings, m_info_line, Slic3r::GUI::Save, and Slic3r::GUI::Undef.
Referenced by build(), and update().
|
inlineoverride |
References Slic3r::GUI::DONT_SAVE, m_buttons, m_exit_action, Slic3r::GUI::REMEMBER_CHOISE, and Slic3r::GUI::DPIAware< wxDialog >::ShowModal().
Referenced by Slic3r::GUI::GUI_App::check_and_keep_current_preset_changes(), Slic3r::GUI::GUI_App::check_and_save_current_preset_changes(), Slic3r::GUI::Tab::may_discard_current_dirty_preset(), and Slic3r::GUI::Tab::sync_excluder().
| std::string Slic3r::GUI::UnsavedChangesDialog::subreplace | ( | std::string | resource_str, |
| std::string | sub_str, | ||
| std::string | new_str ) |
Referenced by update_list().
|
inline |
References m_exit_action, and Slic3r::GUI::Transfer.
Referenced by Slic3r::GUI::GUI_App::check_and_keep_current_preset_changes(), Slic3r::GUI::Tab::may_discard_current_dirty_preset(), and Slic3r::GUI::Tab::sync_excluder().
| void Slic3r::GUI::UnsavedChangesDialog::update | ( | Preset::Type | type, |
| PresetCollection * | dependent_presets, | ||
| const std::string & | new_selected_preset, | ||
| const wxString & | header ) |
References _L, Slic3r::GUI::Discard, Slic3r::GUI::format_wxstr(), Slic3r::PresetCollection::get_edited_preset(), Slic3r::PresetCollection::get_selected_preset(), m_action_line, m_discard_btn, m_save_btn, m_transfer_btn, Slic3r::Preset::name, Slic3r::GUI::printer_technology(), Slic3r::GUI::Save, show_info_line(), Slic3r::GUI::Transfer, Slic3r::PresetCollection::type(), Slic3r::Preset::TYPE_INVALID, Slic3r::Preset::TYPE_PRINTER, UNSAVE_CHANGE_DIALOG_SCROLL_WINDOW_SIZE, update_list(), update_tree(), and Slic3r::GUI::wxMouseEvent.
Referenced by build().
| void Slic3r::GUI::UnsavedChangesDialog::update_config | ( | Action | action | ) |
|
inlineprivateinherited |
| void Slic3r::GUI::UnsavedChangesDialog::update_list | ( | SyncExtruderParams * | params = nullptr | ) |
References Label::Body_13, Slic3r::category_name(), GREY200, GREY300, GREY700, GREY900, Label::Head_13, Slic3r::GUI::UnsavedChangesDialog::SyncExtruderParams::left_to_right, m_presetitems, m_scrolledWindow, subreplace(), UNSAVE_CHANGE_DIALOG_FIRST_VALUE_WIDTH, UNSAVE_CHANGE_DIALOG_ITEM_HEIGHT, UNSAVE_CHANGE_DIALOG_VALUE_WIDTH, and wxStaticText.
Referenced by build(), and update().
| void Slic3r::GUI::UnsavedChangesDialog::update_tree | ( | Preset::Type | type, |
| DynamicConfig * | config, | ||
| int | from, | ||
| int | to ) |
References _L, Slic3r::ConfigOptionDef::category, Slic3r::Search::Option::category_local, Slic3r::GUI::from_u8(), Slic3r::ConfigOptionDef::full_label, Slic3r::Search::SettingsIndex::get_option(), Slic3r::Search::Option::group_local, Slic3r::GUI::into_u8(), Slic3r::DynamicConfig::keys(), Slic3r::ConfigOptionDef::label, Slic3r::Search::Option::label_local, m_presetitems, Slic3r::ConfigBase::option(), Slic3r::print_config_def, Slic3r::Search::SettingsIndex::sort_options_by_key(), and Slic3r::GUI::Tab::translate_category().
| void Slic3r::GUI::UnsavedChangesDialog::update_tree | ( | Preset::Type | type, |
| PresetCollection * | presets ) |
References _L, Slic3r::Search::Option::category, Slic3r::Search::Option::category_local, Slic3r::GUI::from_u8(), Slic3r::Preset::get_iot_type_string(), Slic3r::Search::SettingsIndex::get_option(), Slic3r::GUI::get_pure_opt_key(), Slic3r::GUI::get_string_value(), Slic3r::Search::Option::group_local, L, Slic3r::Search::Option::label_local, m_presetitems, Slic3r::DynamicConfig::opt(), Slic3r::ConfigBase::option(), Slic3r::printer_options_with_variant_2, Slic3r::GUI::printer_technology(), Slic3r::ptFFF, Slic3r::Search::SettingsIndex::sort_options_by_key(), Slic3r::Search::SettingsIndex::sort_options_by_label(), Slic3r::GUI::Tab::translate_category(), Slic3r::Preset::TYPE_FILAMENT, Slic3r::Preset::TYPE_INVALID, Slic3r::Preset::TYPE_PRINT, Slic3r::Preset::TYPE_PRINTER, and Slic3r::Preset::TYPE_SLA_MATERIAL.
Referenced by build(), and update().
|
staticconstexprprotected |
|
staticconstexprprotected |
|
staticconstexprprotected |
|
protected |
|
protected |
Referenced by UnsavedChangesDialog(), and build().
|
private |
Referenced by UnsavedChangesDialog(), UnsavedChangesDialog(), UnsavedChangesDialog(), build(), show_info_line(), and ShowModal().
|
privateinherited |
|
protected |
Referenced by build().
Referenced by build(), on_dpi_changed(), and update().
|
privateinherited |
|
protected |
Referenced by close(), discard(), save(), save_preset(), ShowModal(), and transfer_changes().
|
privateinherited |
|
protected |
Referenced by show_info_line().
|
protected |
Referenced by show_info_line().
|
protected |
Referenced by build().
|
privateinherited |
|
private |
Referenced by UnsavedChangesDialog().
|
privateinherited |
|
protected |
Referenced by build().
|
private |
Referenced by get_selected_options(), get_selected_options(), getUpdateItemCount(), update_list(), update_tree(), and update_tree().
|
privateinherited |
Referenced by build(), on_dpi_changed(), and update().
|
protected |
Referenced by build().
|
privateinherited |
|
protected |
Referenced by build(), and update_list().
|
protected |
Referenced by build().
|
protected |
Referenced by build().
|
protected |
Referenced by build().
Referenced by build(), on_dpi_changed(), and update().
|
private |
Referenced by get_names_and_types(), get_preset_name(), get_save_to_project_option(), and save().
|
protected |
Referenced by build().
|
protected |
Referenced by build().
|
protected |
Referenced by build().
|
protected |
Referenced by build().
|
protected |
Referenced by build().