mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-17 02:22:17 +00:00
ENH: enhance timelapse user interaction
Change-Id: I95e84d20cbb8973a76a5b5887399b4ccc293c78b (cherry picked from commit ade00ade11b285b69fb4a635274f5c6d16dc64aa)
This commit is contained in:
@@ -236,11 +236,10 @@ static const t_config_enum_values s_keys_map_BrimType = {
|
||||
};
|
||||
CONFIG_OPTION_ENUM_DEFINE_STATIC_MAPS(BrimType)
|
||||
|
||||
// using 0,1,2 to compatible with old files
|
||||
// using 0,1 to compatible with old files
|
||||
static const t_config_enum_values s_keys_map_TimelapseType = {
|
||||
{"0", tlNone},
|
||||
{"1", tlSmooth},
|
||||
{"2", tlTraditional}
|
||||
{"0", tlTraditional},
|
||||
{"1", tlSmooth}
|
||||
};
|
||||
CONFIG_OPTION_ENUM_DEFINE_STATIC_MAPS(TimelapseType)
|
||||
|
||||
@@ -2263,12 +2262,10 @@ void PrintConfigDef::init_fff_params()
|
||||
def->enum_keys_map = &ConfigOptionEnum<TimelapseType>::get_enum_values();
|
||||
def->enum_values.emplace_back("0");
|
||||
def->enum_values.emplace_back("1");
|
||||
def->enum_values.emplace_back("2");
|
||||
def->enum_labels.emplace_back(L("None"));
|
||||
def->enum_labels.emplace_back(L("Smooth"));
|
||||
def->enum_labels.emplace_back(L("Traditional"));
|
||||
def->enum_labels.emplace_back(L("Smooth"));
|
||||
def->mode = comSimple;
|
||||
def->set_default_value(new ConfigOptionEnum<TimelapseType>(tlNone));
|
||||
def->set_default_value(new ConfigOptionEnum<TimelapseType>(tlTraditional));
|
||||
|
||||
def = this->add("standby_temperature_delta", coInt);
|
||||
def->label = L("Temperature variation");
|
||||
@@ -3693,6 +3690,10 @@ void PrintConfigDef::handle_legacy(t_config_option_key &opt_key, std::string &va
|
||||
opt_key = "slow_down_for_layer_cooling";
|
||||
} else if (opt_key == "timelapse_no_toolhead") {
|
||||
opt_key = "timelapse_type";
|
||||
} else if (opt_key == "timelapse_type" && value == "2") {
|
||||
// old file "0" is None, "2" is Traditional
|
||||
// new file "0" is Traditional, erase "2"
|
||||
value = "0";
|
||||
} else if (opt_key == "different_settings_to_system") {
|
||||
std::string copy_value = value;
|
||||
copy_value.erase(std::remove(copy_value.begin(), copy_value.end(), '\"'), copy_value.end()); // remove '"' in string
|
||||
|
||||
@@ -146,9 +146,8 @@ enum BrimType {
|
||||
};
|
||||
|
||||
enum TimelapseType {
|
||||
tlNone,
|
||||
tlSmooth,
|
||||
tlTraditional
|
||||
tlTraditional,
|
||||
tlSmooth
|
||||
};
|
||||
|
||||
enum DraftShield {
|
||||
|
||||
@@ -1929,8 +1929,8 @@ void SelectMachineDialog::on_ok()
|
||||
m_checkbox_list["bed_leveling"]->GetValue(),
|
||||
m_checkbox_list["flow_cali"]->GetValue(),
|
||||
false,
|
||||
false,
|
||||
timelapse_option);
|
||||
timelapse_option,
|
||||
true);
|
||||
|
||||
if (obj_->has_ams()) {
|
||||
m_print_job->task_use_ams = ams_check->GetValue();
|
||||
|
||||
Reference in New Issue
Block a user