mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-09-27 10:51:22 +00:00
Add extruder sync button
Co-authored-by: chunmao.guo <chunmao.guo@bambulab.com>
This commit is contained in:
@@ -327,19 +327,30 @@ private:
|
||||
|
||||
public:
|
||||
|
||||
struct SyncExtruderParams
|
||||
{
|
||||
DynamicConfig *config;
|
||||
int from;
|
||||
int to;
|
||||
bool left_to_right;
|
||||
NozzleVolumeType nozzle;
|
||||
};
|
||||
|
||||
// show unsaved changes when preset is switching
|
||||
UnsavedChangesDialog(Preset::Type type, PresetCollection* dependent_presets, const std::string& new_selected_preset, bool no_transfer = false);
|
||||
// show unsaved changes for all another cases
|
||||
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();
|
||||
|
||||
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();
|
||||
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);
|
||||
|
||||
Reference in New Issue
Block a user