From d0c9bb0398823b7d0a57dd9bf11a72b1507d0d87 Mon Sep 17 00:00:00 2001 From: SoftFever Date: Thu, 13 Oct 2022 22:33:37 +0800 Subject: [PATCH] file format customization --- src/libslic3r/PrintConfig.cpp | 4 ++-- src/slic3r/GUI/Tab.cpp | 5 ++++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/libslic3r/PrintConfig.cpp b/src/libslic3r/PrintConfig.cpp index e33429d200b..7897194004a 100644 --- a/src/libslic3r/PrintConfig.cpp +++ b/src/libslic3r/PrintConfig.cpp @@ -1940,8 +1940,8 @@ void PrintConfigDef::init_fff_params() def->label = L("Filename format"); def->tooltip = L("User can self-define the project file name when export"); def->full_width = true; - def->mode = comDevelop; - def->set_default_value(new ConfigOptionString("[input_filename_base].gcode")); + def->mode = comAdvanced; + def->set_default_value(new ConfigOptionString("{input_filename_base}_{filament_type[0]}_{print_time}.gcode")); def = this->add("detect_overhang_wall", coBool); def->label = L("Detect overhang wall"); diff --git a/src/slic3r/GUI/Tab.cpp b/src/slic3r/GUI/Tab.cpp index d8e3c6d3274..bb853e961cc 100644 --- a/src/slic3r/GUI/Tab.cpp +++ b/src/slic3r/GUI/Tab.cpp @@ -1952,7 +1952,10 @@ void TabPrint::build() optgroup->append_single_option_line("reduce_infill_retraction"); optgroup->append_single_option_line("gcode_add_line_number"); Option option = optgroup->get_option("filename_format"); - option.opt.full_width = true; + // option.opt.full_width = true; + option.opt.is_code = true; + option.opt.multiline = true; + // option.opt.height = 5; optgroup->append_single_option_line(option); #if 0