mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-10-20 07:11:12 -06:00 
			
		
		
		
	Merge branch 'SoftFever' into feature/small_perimeter
This commit is contained in:
		
						commit
						397e0f0a29
					
				
					 151 changed files with 7256 additions and 357 deletions
				
			
		|  | @ -72,18 +72,18 @@ static t_config_enum_values s_keys_map_PrinterTechnology { | |||
| }; | ||||
| CONFIG_OPTION_ENUM_DEFINE_STATIC_MAPS(PrinterTechnology) | ||||
| 
 | ||||
| static t_config_enum_values s_keys_map_PrintHostType{ | ||||
| static t_config_enum_values s_keys_map_PrintHostType { | ||||
|     { "prusalink",      htPrusaLink }, | ||||
|     { "octoprint",      htOctoPrint }, | ||||
|     //{ "duet",           htDuet },
 | ||||
|     //{ "flashair",       htFlashAir },
 | ||||
|     //{ "astrobox",       htAstroBox },
 | ||||
|     //{ "repetier",       htRepetier },
 | ||||
|     //{ "mks",            htMKS }
 | ||||
|     { "duet",           htDuet }, | ||||
|     { "flashair",       htFlashAir }, | ||||
|     { "astrobox",       htAstroBox }, | ||||
|     { "repetier",       htRepetier }, | ||||
|     { "mks",            htMKS } | ||||
| }; | ||||
| CONFIG_OPTION_ENUM_DEFINE_STATIC_MAPS(PrintHostType) | ||||
| 
 | ||||
| static t_config_enum_values s_keys_map_AuthorizationType{ | ||||
| static t_config_enum_values s_keys_map_AuthorizationType { | ||||
|     { "key",            atKeyPassword }, | ||||
|     { "user",           atUserPassword } | ||||
| }; | ||||
|  | @ -98,6 +98,7 @@ static t_config_enum_values s_keys_map_GCodeFlavor { | |||
|     { "makerware",      gcfMakerWare }, | ||||
|     { "marlin2",        gcfMarlinFirmware }, | ||||
|     { "sailfish",       gcfSailfish }, | ||||
|     { "klipper",        gcfKlipper }, | ||||
|     { "smoothie",       gcfSmoothie }, | ||||
|     { "mach3",          gcfMach3 }, | ||||
|     { "machinekit",     gcfMachinekit }, | ||||
|  | @ -105,6 +106,15 @@ static t_config_enum_values s_keys_map_GCodeFlavor { | |||
| }; | ||||
| CONFIG_OPTION_ENUM_DEFINE_STATIC_MAPS(GCodeFlavor) | ||||
| 
 | ||||
| 
 | ||||
| static t_config_enum_values s_keys_map_LiftType { | ||||
|     { "NormalLift",         int(LiftType::NormalLift) }, | ||||
|     { "LazyLift",           int(LiftType::LazyLift) }, | ||||
|     { "SpiralLift",         int(LiftType::SpiralLift) } | ||||
| }; | ||||
| CONFIG_OPTION_ENUM_DEFINE_STATIC_MAPS(LiftType) | ||||
| 
 | ||||
| 
 | ||||
| static t_config_enum_values s_keys_map_FuzzySkinType { | ||||
|     { "none",           int(FuzzySkinType::None) }, | ||||
|     { "external",       int(FuzzySkinType::External) }, | ||||
|  | @ -317,7 +327,7 @@ void PrintConfigDef::init_common_params() | |||
|     def = this->add("printable_area", coPoints); | ||||
|     def->label = L("Printable area"); | ||||
|     //BBS
 | ||||
|     def->mode = comDevelop; | ||||
|     def->mode = comAdvanced; | ||||
|     def->set_default_value(new ConfigOptionPoints{ Vec2d(0, 0), Vec2d(200, 0), Vec2d(200, 200), Vec2d(0, 200) }); | ||||
| 
 | ||||
|     //BBS: add "bed_exclude_area"
 | ||||
|  | @ -575,7 +585,7 @@ void PrintConfigDef::init_fff_params() | |||
|     def->multiline = true; | ||||
|     def->full_width = true; | ||||
|     def->height = 5; | ||||
|     def->mode = comDevelop; | ||||
|     def->mode = comAdvanced; | ||||
|     def->set_default_value(new ConfigOptionString("")); | ||||
| 
 | ||||
|     def = this->add("bottom_shell_layers", coInt); | ||||
|  | @ -644,12 +654,38 @@ void PrintConfigDef::init_fff_params() | |||
|     def->mode = comAdvanced; | ||||
|     def->set_default_value(new ConfigOptionFloat(1)); | ||||
| 
 | ||||
|     def = this->add("top_solid_infill_flow_ratio", coFloat); | ||||
|     def->label = L("Top surface flow ratio"); | ||||
|     def->category = L("Advanced"); | ||||
|     def->tooltip = L("This factor affects the amount of material for top solid infill. " | ||||
|                    "You can decrease it slightly to have smooth surface finish"); | ||||
|     def->min = 0; | ||||
|     def->max = 2; | ||||
|     def->mode = comAdvanced; | ||||
|     def->set_default_value(new ConfigOptionFloat(1)); | ||||
| 
 | ||||
|     def = this->add("bottom_solid_infill_flow_ratio", coFloat); | ||||
|     def->label = L("Bottom surface flow ratio"); | ||||
|     def->category = L("Advanced"); | ||||
|     def->tooltip = L("This factor affects the amount of material for bottom solid infill"); | ||||
|     def->min = 0; | ||||
|     def->max = 2; | ||||
|     def->mode = comAdvanced; | ||||
|     def->set_default_value(new ConfigOptionFloat(1)); | ||||
| 
 | ||||
|      | ||||
|     def = this->add("only_one_wall_top", coBool); | ||||
|     def->label = L("Only one wall on top surfaces"); | ||||
|     def->category = L("Quality"); | ||||
|     def->tooltip = L("Use only one wall on flat top surface, to give more space to the top infill pattern"); | ||||
|     def->set_default_value(new ConfigOptionBool(false)); | ||||
| 
 | ||||
|     def = this->add("only_one_wall_first_layer", coBool); | ||||
|     def->label = L("Only one wall on first layer"); | ||||
|     def->category = L("Quality"); | ||||
|     def->tooltip = L("Use only one wall on first layer, to give more space to the bottom infill pattern"); | ||||
|     def->set_default_value(new ConfigOptionBool(false)); | ||||
| 
 | ||||
|     def = this->add("enable_overhang_speed", coBool); | ||||
|     def->label = L("Slow down for overhang"); | ||||
|     def->category = L("Speed"); | ||||
|  | @ -975,7 +1011,7 @@ void PrintConfigDef::init_fff_params() | |||
|     def->enum_labels.push_back("3"); | ||||
|     def->enum_labels.push_back("4"); | ||||
|     def->enum_labels.push_back("5"); | ||||
|     def->mode = comDevelop; | ||||
|     def->mode = comAdvanced; | ||||
| 
 | ||||
|     def = this->add("extruder_clearance_height_to_rod", coFloat); | ||||
|     def->label = L("Height to rod"); | ||||
|  | @ -1009,7 +1045,7 @@ void PrintConfigDef::init_fff_params() | |||
|     def->tooltip = L("Only used as a visual help on UI"); | ||||
|     def->gui_type = ConfigOptionDef::GUIType::color; | ||||
|     // Empty string means no color assigned yet.
 | ||||
|     def->mode = comDevelop; | ||||
|     def->mode = comAdvanced; | ||||
|     def->set_default_value(new ConfigOptionStrings { "" }); | ||||
| 
 | ||||
|     def = this->add("extruder_offset", coPoints); | ||||
|  | @ -1019,7 +1055,7 @@ void PrintConfigDef::init_fff_params() | |||
|     //               "with respect to the first one. It expects positive coordinates (they will be subtracted "
 | ||||
|     //               "from the XY coordinate).");
 | ||||
|     def->sidetext = L("mm"); | ||||
|     def->mode = comDevelop; | ||||
|     def->mode = comAdvanced; | ||||
|     def->set_default_value(new ConfigOptionPoints { Vec2d(0,0) }); | ||||
| 
 | ||||
|     def = this->add("filament_flow_ratio", coFloats); | ||||
|  | @ -1032,6 +1068,18 @@ void PrintConfigDef::init_fff_params() | |||
|     def->mode = comAdvanced; | ||||
|     def->set_default_value(new ConfigOptionFloats { 1. }); | ||||
| 
 | ||||
|     def = this->add("enable_pressure_advance", coBool); | ||||
|     def->label = L("Enable pressure advance"); | ||||
|     def->tooltip = L("Enable pressure advance, auto calibration result will be overwriten once enabled."); | ||||
|     def->set_default_value(new ConfigOptionBool(false)); | ||||
| 
 | ||||
|     def = this->add("pressure_advance", coFloats); | ||||
|     def->label = L("Pressure advance"); | ||||
|     def->tooltip = L("Pressure advnce(Klipper) AKA Linear advance factor(Marlin)"); | ||||
|     def->max = 2; | ||||
|     def->mode = comAdvanced; | ||||
|     def->set_default_value(new ConfigOptionFloats { 0.02 }); | ||||
| 
 | ||||
|     def = this->add("line_width", coFloat); | ||||
|     def->label = L("Default"); | ||||
|     def->category = L("Quality"); | ||||
|  | @ -1062,7 +1110,7 @@ void PrintConfigDef::init_fff_params() | |||
|     def->label = L("Color"); | ||||
|     def->tooltip = L("Only used as a visual help on UI"); | ||||
|     def->gui_type = ConfigOptionDef::GUIType::color; | ||||
|     def->mode = comDevelop; | ||||
|     def->mode = comAdvanced; | ||||
|     def->set_default_value(new ConfigOptionStrings{ "#00AE42" }); | ||||
| 
 | ||||
|     def = this->add("filament_max_volumetric_speed", coFloats); | ||||
|  | @ -1077,13 +1125,13 @@ void PrintConfigDef::init_fff_params() | |||
| 
 | ||||
|     def = this->add("filament_minimal_purge_on_wipe_tower", coFloats); | ||||
|     def->label = L("Minimal purge on wipe tower"); | ||||
|     //def->tooltip = L("After a tool change, the exact position of the newly loaded filament inside "
 | ||||
|     //                 "the nozzle may not be known, and the filament pressure is likely not yet stable. "
 | ||||
|     //                 "Before purging the print head into an infill or a sacrificial object, Slic3r will always prime "
 | ||||
|     //                 "this amount of material into the wipe tower to produce successive infill or sacrificial object extrusions reliably.");
 | ||||
|     def->tooltip = L("After a tool change, the exact position of the newly loaded filament inside " | ||||
|                     "the nozzle may not be known, and the filament pressure is likely not yet stable. " | ||||
|                     "Before purging the print head into an infill or a sacrificial object, Slic3r will always prime " | ||||
|                     "this amount of material into the wipe tower to produce successive infill or sacrificial object extrusions reliably."); | ||||
|     def->sidetext = L("mm³"); | ||||
|     def->min = 0; | ||||
|     def->mode = comDevelop; | ||||
|     def->mode = comAdvanced; | ||||
|     def->set_default_value(new ConfigOptionFloats { 15. }); | ||||
| 
 | ||||
|     def = this->add("machine_load_filament_time", coFloat); | ||||
|  | @ -1139,13 +1187,13 @@ void PrintConfigDef::init_fff_params() | |||
|     def = this->add("filament_soluble", coBools); | ||||
|     def->label = L("Soluble material"); | ||||
|     def->tooltip = L("Soluble material is commonly used to print support and support interface"); | ||||
|     def->mode = comDevelop; | ||||
|     def->mode = comAdvanced; | ||||
|     def->set_default_value(new ConfigOptionBools { false }); | ||||
| 
 | ||||
|     def = this->add("filament_is_support", coBools); | ||||
|     def->label = L("Support material"); | ||||
|     def->tooltip = L("Support material is commonly used to print support and support interface"); | ||||
|     def->mode = comDevelop; | ||||
|     def->mode = comAdvanced; | ||||
|     def->set_default_value(new ConfigOptionBools { false }); | ||||
| 
 | ||||
|     // BBS
 | ||||
|  | @ -1186,6 +1234,16 @@ void PrintConfigDef::init_fff_params() | |||
|     def->mode = comAdvanced; | ||||
|     def->set_default_value(new ConfigOptionFloat(45)); | ||||
| 
 | ||||
|     def = this->add("bridge_angle", coFloat); | ||||
|     def->label = L("Bridge infill direction"); | ||||
|     def->category = L("Strength"); | ||||
|     def->tooltip = L("Angle for bridge infill pattern, which controls the start or main direction of line"); | ||||
|     def->sidetext = L("°"); | ||||
|     def->min = 0; | ||||
|     def->max = 360; | ||||
|     def->mode = comAdvanced; | ||||
|     def->set_default_value(new ConfigOptionFloat(0)); | ||||
| 
 | ||||
|     def = this->add("sparse_infill_density", coPercent); | ||||
|     def->label = L("Sparse infill density"); | ||||
|     def->category = L("Strength"); | ||||
|  | @ -1240,6 +1298,30 @@ void PrintConfigDef::init_fff_params() | |||
| #endif // HAS_LIGHTNING_INFILL
 | ||||
|     def->set_default_value(new ConfigOptionEnum<InfillPattern>(ipCubic)); | ||||
| 
 | ||||
|     def = this->add("outer_wall_acceleration", coFloat); | ||||
|     def->label = L("Outer wall"); | ||||
|     def->tooltip = L("Acceleration of outer walls"); | ||||
|     def->sidetext = L("mm/s²"); | ||||
|     def->min = 0; | ||||
|     def->mode = comAdvanced; | ||||
|     def->set_default_value(new ConfigOptionFloat(10000)); | ||||
| 
 | ||||
|     def = this->add("inner_wall_acceleration", coFloat); | ||||
|     def->label = L("Inner wall"); | ||||
|     def->tooltip = L("Acceleration of inner walls"); | ||||
|     def->sidetext = L("mm/s²"); | ||||
|     def->min = 0; | ||||
|     def->mode = comAdvanced; | ||||
|     def->set_default_value(new ConfigOptionFloat(10000)); | ||||
| 
 | ||||
|     def = this->add("travel_acceleration", coFloat); | ||||
|     def->label = L("Travel"); | ||||
|     def->tooltip = L("Acceleration of travel moves"); | ||||
|     def->sidetext = L("mm/s²"); | ||||
|     def->min = 0; | ||||
|     def->mode = comAdvanced; | ||||
|     def->set_default_value(new ConfigOptionFloat(10000)); | ||||
| 
 | ||||
|     def = this->add("top_surface_acceleration", coFloat); | ||||
|     def->label = L("Top surface"); | ||||
|     def->tooltip = L("Acceleration of top surface infill. Using a lower value may improve top surface quality"); | ||||
|  | @ -1256,6 +1338,54 @@ void PrintConfigDef::init_fff_params() | |||
|     def->mode = comAdvanced; | ||||
|     def->set_default_value(new ConfigOptionFloat(300)); | ||||
| 
 | ||||
|     def = this->add("default_jerk", coFloat); | ||||
|     def->label = L("Default"); | ||||
|     def->tooltip = L("Default"); | ||||
|     def->sidetext = L("mm/s"); | ||||
|     def->min = 0; | ||||
|     def->mode = comAdvanced; | ||||
|     def->set_default_value(new ConfigOptionFloat(0)); | ||||
| 
 | ||||
|     def = this->add("outer_wall_jerk", coFloat); | ||||
|     def->label = L("Outer wall"); | ||||
|     def->tooltip = L("Jerk of outer walls"); | ||||
|     def->sidetext = L("mm/s"); | ||||
|     def->min = 0; | ||||
|     def->mode = comAdvanced; | ||||
|     def->set_default_value(new ConfigOptionFloat(9)); | ||||
| 
 | ||||
|     def = this->add("inner_wall_jerk", coFloat); | ||||
|     def->label = L("Inner wall"); | ||||
|     def->tooltip = L("Jerk of inner walls"); | ||||
|     def->sidetext = L("mm/s"); | ||||
|     def->min = 0; | ||||
|     def->mode = comAdvanced; | ||||
|     def->set_default_value(new ConfigOptionFloat(9)); | ||||
| 
 | ||||
|     def = this->add("top_surface_jerk", coFloat); | ||||
|     def->label = L("Top surface"); | ||||
|     def->tooltip = L("Jerk for top surface"); | ||||
|     def->sidetext = L("mm/s"); | ||||
|     def->min = 1; | ||||
|     def->mode = comAdvanced; | ||||
|     def->set_default_value(new ConfigOptionFloat(9)); | ||||
| 
 | ||||
|     def = this->add("initial_layer_jerk", coFloat); | ||||
|     def->label = L("Initial layer"); | ||||
|     def->tooltip = L("Jerk for initial layer"); | ||||
|     def->sidetext = L("mm/s"); | ||||
|     def->min = 1; | ||||
|     def->mode = comAdvanced; | ||||
|     def->set_default_value(new ConfigOptionFloat(9)); | ||||
| 
 | ||||
|     def = this->add("travel_jerk", coFloat); | ||||
|     def->label = L("Travel"); | ||||
|     def->tooltip = L("Jerk for travel"); | ||||
|     def->sidetext = L("mm/s"); | ||||
|     def->min = 1; | ||||
|     def->mode = comAdvanced; | ||||
|     def->set_default_value(new ConfigOptionFloat(12)); | ||||
| 
 | ||||
|     def = this->add("initial_layer_line_width", coFloat); | ||||
|     def->label = L("Initial layer"); | ||||
|     def->category = L("Quality"); | ||||
|  | @ -1338,7 +1468,7 @@ void PrintConfigDef::init_fff_params() | |||
|     def->tooltip = L("The width within which to jitter. It's adversed to be below outer wall line width"); | ||||
|     def->sidetext = L("mm"); | ||||
|     def->min = 0; | ||||
|     def->mode = comDevelop; | ||||
|     def->mode = comAdvanced; | ||||
|     def->set_default_value(new ConfigOptionFloat(0.3)); | ||||
| 
 | ||||
|     def = this->add("fuzzy_skin_point_distance", coFloat); | ||||
|  | @ -1346,7 +1476,7 @@ void PrintConfigDef::init_fff_params() | |||
|     def->category = L("Others"); | ||||
|     def->tooltip = L("The average diatance between the random points introducded on each line segment"); | ||||
|     def->sidetext = L("mm"); | ||||
|     def->mode = comDevelop; | ||||
|     def->mode = comAdvanced; | ||||
|     def->set_default_value(new ConfigOptionFloat(0.8)); | ||||
| 
 | ||||
|     def = this->add("gap_infill_speed", coFloat); | ||||
|  | @ -1376,7 +1506,7 @@ void PrintConfigDef::init_fff_params() | |||
|     def = this->add("scan_first_layer", coBool); | ||||
|     def->label = L("Scan first layer"); | ||||
|     def->tooltip = L("Enable this to enable the camera on printer to check the quality of first layer"); | ||||
|     def->mode = comDevelop; | ||||
|     def->mode = comAdvanced; | ||||
|     def->set_default_value(new ConfigOptionBool(false)); | ||||
|     //BBS
 | ||||
|     // def = this->add("spaghetti_detector", coBool);
 | ||||
|  | @ -1398,13 +1528,13 @@ void PrintConfigDef::init_fff_params() | |||
|     def->enum_labels.push_back(L("Hardened steel")); | ||||
|     def->enum_labels.push_back(L("Stainless steel")); | ||||
|     def->enum_labels.push_back(L("Brass")); | ||||
|     def->mode = comDevelop; | ||||
|     def->mode = comAdvanced; | ||||
|     def->set_default_value(new ConfigOptionEnum<NozzleType>(ntUndefine)); | ||||
| 
 | ||||
|     def = this->add("auxiliary_fan", coBool); | ||||
|     def->label = L("Auxiliary part cooling fan"); | ||||
|     def->tooltip = L("Enable this option if machine has auxiliary part cooling fan"); | ||||
|     def->mode = comDevelop; | ||||
|     def->mode = comAdvanced; | ||||
|     def->set_default_value(new ConfigOptionBool(false)); | ||||
| 
 | ||||
|     def = this->add("gcode_flavor", coEnum); | ||||
|  | @ -1412,7 +1542,7 @@ void PrintConfigDef::init_fff_params() | |||
|     def->tooltip = L("What kind of gcode the printer is compatible with"); | ||||
|     def->enum_keys_map = &ConfigOptionEnum<GCodeFlavor>::get_enum_values(); | ||||
|     def->enum_values.push_back("marlin"); | ||||
|     //def->enum_values.push_back("reprap");
 | ||||
|     def->enum_values.push_back("klipper"); | ||||
|     //def->enum_values.push_back("reprapfirmware");
 | ||||
|     //def->enum_values.push_back("repetier");
 | ||||
|     //def->enum_values.push_back("teacup");
 | ||||
|  | @ -1435,6 +1565,7 @@ void PrintConfigDef::init_fff_params() | |||
|     //def->enum_labels.push_back("Machinekit");
 | ||||
|     //def->enum_labels.push_back("Smoothie");
 | ||||
|     //def->enum_labels.push_back(L("No extrusion"));
 | ||||
|     def->enum_labels.push_back(L("Klipper")); | ||||
|     def->mode = comAdvanced; | ||||
|     def->readonly = false; | ||||
|     def->set_default_value(new ConfigOptionEnum<GCodeFlavor>(gcfMarlinLegacy)); | ||||
|  | @ -1500,13 +1631,13 @@ void PrintConfigDef::init_fff_params() | |||
|     def->cli = ConfigOptionDef::nocli; | ||||
| 
 | ||||
|     def = this->add("interface_shells", coBool); | ||||
|     //def->label = L("Interface shells");
 | ||||
|     def->label = L("Interface shells"); | ||||
|     def->label = "Interface shells"; | ||||
|     //def->tooltip = L("Force the generation of solid shells between adjacent materials/volumes. "
 | ||||
|     //               "Useful for multi-extruder prints with translucent materials or manual soluble "
 | ||||
|     //               "support material");
 | ||||
|     def->tooltip = L("Force the generation of solid shells between adjacent materials/volumes. " | ||||
|                   "Useful for multi-extruder prints with translucent materials or manual soluble " | ||||
|                   "support material"); | ||||
|     def->category = L("Quality"); | ||||
|     def->mode = comDevelop; | ||||
|     def->mode = comAdvanced; | ||||
|     def->set_default_value(new ConfigOptionBool(false)); | ||||
| 
 | ||||
|     def = this->add("ironing_type", coEnum); | ||||
|  | @ -1554,7 +1685,7 @@ void PrintConfigDef::init_fff_params() | |||
|     def->tooltip = L("Print speed of ironing lines"); | ||||
|     def->sidetext = L("mm/s"); | ||||
|     def->min = 0; | ||||
|     def->mode = comDevelop; | ||||
|     def->mode = comAdvanced; | ||||
|     def->set_default_value(new ConfigOptionFloat(20)); | ||||
| 
 | ||||
|     def = this->add("layer_change_gcode", coString); | ||||
|  | @ -1715,7 +1846,7 @@ void PrintConfigDef::init_fff_params() | |||
|     def->tooltip = L("Maximum acceleration for travel (M204 T)"); | ||||
|     def->sidetext = L("mm/s²"); | ||||
|     def->min = 0; | ||||
|     def->readonly = true; | ||||
|     def->readonly = false; | ||||
|     def->mode = comDevelop; | ||||
|     def->set_default_value(new ConfigOptionFloats{ 1500., 1250. }); | ||||
| 
 | ||||
|  | @ -1735,7 +1866,7 @@ void PrintConfigDef::init_fff_params() | |||
|                      "the maximum layer hight when enable adaptive layer height"); | ||||
|     def->sidetext = L("mm"); | ||||
|     def->min = 0; | ||||
|     def->mode = comDevelop; | ||||
|     def->mode = comAdvanced; | ||||
|     def->set_default_value(new ConfigOptionFloats { 0. }); | ||||
| 
 | ||||
| #ifdef HAS_PRESSURE_EQUALIZER | ||||
|  | @ -1787,7 +1918,7 @@ void PrintConfigDef::init_fff_params() | |||
|                      "the minimum layer hight when enable adaptive layer height"); | ||||
|     def->sidetext = L("mm"); | ||||
|     def->min = 0; | ||||
|     def->mode = comDevelop; | ||||
|     def->mode = comAdvanced; | ||||
|     def->set_default_value(new ConfigOptionFloats { 0.07 }); | ||||
| 
 | ||||
|     def = this->add("slow_down_min_speed", coFloats); | ||||
|  | @ -1795,44 +1926,45 @@ void PrintConfigDef::init_fff_params() | |||
|     def->tooltip = L("The minimum printing speed when slow down for cooling"); | ||||
|     def->sidetext = L("mm/s"); | ||||
|     def->min = 0; | ||||
|     def->mode = comDevelop; | ||||
|     def->mode = comAdvanced; | ||||
|     def->set_default_value(new ConfigOptionFloats { 10. }); | ||||
| 
 | ||||
|     def = this->add("nozzle_diameter", coFloats); | ||||
|     def->label = L("Nozzle diameter"); | ||||
|     def->tooltip = L("Diameter of nozzle"); | ||||
|     def->sidetext = L("mm"); | ||||
|     def->mode = comDevelop; | ||||
|     def->mode = comAdvanced; | ||||
|     def->set_default_value(new ConfigOptionFloats { 0.4 }); | ||||
| 
 | ||||
|     def = this->add("host_type", coEnum); | ||||
|     def->label = L("Host Type"); | ||||
|     def->tooltip = L("Slic3r can upload G-code files to a printer host. This field must contain " | ||||
|         "the kind of the host."); | ||||
|                    "the kind of the host."); | ||||
|     def->enum_keys_map = &ConfigOptionEnum<PrintHostType>::get_enum_values(); | ||||
|     def->enum_values.push_back("prusalink"); | ||||
|     def->enum_values.push_back("octoprint"); | ||||
|     //def->enum_values.push_back("duet");
 | ||||
|     //def->enum_values.push_back("flashair");
 | ||||
|     //def->enum_values.push_back("astrobox");
 | ||||
|     //def->enum_values.push_back("repetier");
 | ||||
|     //def->enum_values.push_back("mks");
 | ||||
|     def->enum_values.push_back("duet"); | ||||
|     def->enum_values.push_back("flashair"); | ||||
|     def->enum_values.push_back("astrobox"); | ||||
|     def->enum_values.push_back("repetier"); | ||||
|     def->enum_values.push_back("mks"); | ||||
|     def->enum_labels.push_back("PrusaLink"); | ||||
|     def->enum_labels.push_back("OctoPrint"); | ||||
|     //def->enum_labels.push_back("Duet");
 | ||||
|     //def->enum_labels.push_back("FlashAir");
 | ||||
|     //def->enum_labels.push_back("AstroBox");
 | ||||
|     //def->enum_labels.push_back("Repetier");
 | ||||
|     //def->enum_labels.push_back("MKS");
 | ||||
|     def->enum_labels.push_back("Duet"); | ||||
|     def->enum_labels.push_back("FlashAir"); | ||||
|     def->enum_labels.push_back("AstroBox"); | ||||
|     def->enum_labels.push_back("Repetier"); | ||||
|     def->enum_labels.push_back("MKS"); | ||||
|     def->mode = comAdvanced; | ||||
|     def->cli = ConfigOptionDef::nocli; | ||||
|     def->set_default_value(new ConfigOptionEnum<PrintHostType>(htOctoPrint)); | ||||
|      | ||||
| 
 | ||||
|     def = this->add("nozzle_volume", coFloat); | ||||
|     def->label = L("Nozzle volume"); | ||||
|     def->tooltip = L("Volume of nozzle between the cutter and the end of nozzle"); | ||||
|     def->sidetext = L("mm³"); | ||||
|     def->mode = comDevelop; | ||||
|     def->mode = comAdvanced; | ||||
|     def->readonly = true; | ||||
|     def->set_default_value(new ConfigOptionFloat { 0.0 }); | ||||
| 
 | ||||
|  | @ -1856,15 +1988,15 @@ 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"); | ||||
|     def->category = L("Quality"); | ||||
|     def->tooltip = L("Detect the overhang percentage relative to line width and use different speed to print. " | ||||
|                      "For 100%% overhang, bridge speed is used."); | ||||
|     def->mode = comDevelop; | ||||
|     def->mode = comAdvanced; | ||||
|     def->set_default_value(new ConfigOptionBool(true)); | ||||
| 
 | ||||
|     def = this->add("wall_filament", coInt); | ||||
|  | @ -1936,7 +2068,7 @@ void PrintConfigDef::init_fff_params() | |||
|     def->tooltip = L("Z gap between object and raft. Ignored for soluble interface"); | ||||
|     def->sidetext = L("mm"); | ||||
|     def->min = 0; | ||||
|     def->mode = comDevelop; | ||||
|     def->mode = comAdvanced; | ||||
|     def->set_default_value(new ConfigOptionFloat(0.1)); | ||||
| 
 | ||||
|     def = this->add("raft_expansion", coFloat); | ||||
|  | @ -1945,7 +2077,7 @@ void PrintConfigDef::init_fff_params() | |||
|     def->tooltip = L("Expand all raft layers in XY plane"); | ||||
|     def->sidetext = L("mm"); | ||||
|     def->min = 0; | ||||
|     def->mode = comDevelop; | ||||
|     def->mode = comAdvanced; | ||||
|     def->set_default_value(new ConfigOptionFloat(1.5)); | ||||
| 
 | ||||
|     def = this->add("raft_first_layer_density", coPercent); | ||||
|  | @ -1955,7 +2087,7 @@ void PrintConfigDef::init_fff_params() | |||
|     def->sidetext = L("%"); | ||||
|     def->min = 10; | ||||
|     def->max = 100; | ||||
|     def->mode = comDevelop; | ||||
|     def->mode = comAdvanced; | ||||
|     def->set_default_value(new ConfigOptionPercent(90)); | ||||
| 
 | ||||
|     def = this->add("raft_first_layer_expansion", coFloat); | ||||
|  | @ -1964,7 +2096,7 @@ void PrintConfigDef::init_fff_params() | |||
|     def->tooltip = L("Expand the first raft or support layer to improve bed plate adhesion"); | ||||
|     def->sidetext = L("mm"); | ||||
|     def->min = 0; | ||||
|     def->mode = comDevelop; | ||||
|     def->mode = comAdvanced; | ||||
|     //BBS: change from 3.0 to 2.0
 | ||||
|     def->set_default_value(new ConfigOptionFloat(2.0)); | ||||
| 
 | ||||
|  | @ -1976,7 +2108,7 @@ void PrintConfigDef::init_fff_params() | |||
|     def->sidetext = L("layers"); | ||||
|     def->min = 0; | ||||
|     def->max = 100; | ||||
|     def->mode = comDevelop; | ||||
|     def->mode = comAdvanced; | ||||
|     def->set_default_value(new ConfigOptionInt(0)); | ||||
| 
 | ||||
|     def = this->add("resolution", coFloat); | ||||
|  | @ -1999,7 +2131,7 @@ void PrintConfigDef::init_fff_params() | |||
|     def->label = L("Retract amount before wipe"); | ||||
|     def->tooltip = L("The length of fast retraction before wipe, relative to retraction length"); | ||||
|     def->sidetext = L("%"); | ||||
|     def->mode = comDevelop; | ||||
|     def->mode = comAdvanced; | ||||
|     def->set_default_value(new ConfigOptionPercents { 100 }); | ||||
| 
 | ||||
|     def = this->add("retract_when_changing_layer", coBools); | ||||
|  | @ -2025,7 +2157,7 @@ void PrintConfigDef::init_fff_params() | |||
|     //               "by the specified amount (the length is measured on raw filament, before it enters "
 | ||||
|     //               "the extruder).");
 | ||||
|     def->sidetext = L("mm"); | ||||
|     def->mode = comDevelop; | ||||
|     def->mode = comAdvanced; | ||||
|     def->set_default_value(new ConfigOptionFloats { 10. }); | ||||
| 
 | ||||
|     def = this->add("z_hop", coFloats); | ||||
|  | @ -2038,21 +2170,21 @@ void PrintConfigDef::init_fff_params() | |||
|     def->set_default_value(new ConfigOptionFloats { 0.4 }); | ||||
| 
 | ||||
|     def = this->add("retract_restart_extra", coFloats); | ||||
|     //def->label = L("Extra length on restart");
 | ||||
|     def->label = L("Extra length on restart"); | ||||
|     def->label = "Extra length on restart"; | ||||
|     //def->tooltip = L("When the retraction is compensated after the travel move, the extruder will push "
 | ||||
|     //               "this additional amount of filament. This setting is rarely needed.");
 | ||||
|     def->tooltip = L("When the retraction is compensated after the travel move, the extruder will push " | ||||
|                   "this additional amount of filament. This setting is rarely needed."); | ||||
|     def->sidetext = L("mm"); | ||||
|     def->mode = comDevelop; | ||||
|     def->mode = comAdvanced; | ||||
|     def->set_default_value(new ConfigOptionFloats { 0. }); | ||||
| 
 | ||||
|     def = this->add("retract_restart_extra_toolchange", coFloats); | ||||
|     //def->label = L("Extra length on restart");
 | ||||
|     def->label = L("Extra length on restart"); | ||||
|     def->label = "Extra length on restart"; | ||||
|     //def->tooltip = L("When the retraction is compensated after changing tool, the extruder will push "
 | ||||
|     //               "this additional amount of filament.");
 | ||||
|     def->tooltip = L("When the retraction is compensated after changing tool, the extruder will push " | ||||
|                   "this additional amount of filament."); | ||||
|     def->sidetext = L("mm"); | ||||
|     def->mode = comDevelop; | ||||
|     def->mode = comAdvanced; | ||||
|     def->set_default_value(new ConfigOptionFloats { 0. }); | ||||
| 
 | ||||
|     def = this->add("retraction_speed", coFloats); | ||||
|  | @ -2093,7 +2225,7 @@ void PrintConfigDef::init_fff_params() | |||
|     def->sidetext = L("mm"); | ||||
|     def->min = 0; | ||||
|     def->max = 10; | ||||
|     def->mode = comDevelop; | ||||
|     def->mode = comAdvanced; | ||||
|     def->set_default_value(new ConfigOptionFloat(2)); | ||||
| 
 | ||||
|     def = this->add("skirt_height", coInt); | ||||
|  | @ -2101,7 +2233,7 @@ void PrintConfigDef::init_fff_params() | |||
|     def->label = "Skirt height"; | ||||
|     //def->tooltip = L("How many layers of skirt. Usually only one layer");
 | ||||
|     def->sidetext = L("layers"); | ||||
|     def->mode = comDevelop; | ||||
|     def->mode = comAdvanced; | ||||
|     def->max = 10000; | ||||
|     def->set_default_value(new ConfigOptionInt(1)); | ||||
| 
 | ||||
|  | @ -2303,7 +2435,7 @@ void PrintConfigDef::init_fff_params() | |||
|     def->sidetext = L("°"); | ||||
|     def->min = 0; | ||||
|     def->max = 359; | ||||
|     def->mode = comDevelop; | ||||
|     def->mode = comAdvanced; | ||||
|     def->set_default_value(new ConfigOptionFloat(0)); | ||||
| 
 | ||||
|     def = this->add("support_on_build_plate_only", coBool); | ||||
|  | @ -2419,7 +2551,7 @@ void PrintConfigDef::init_fff_params() | |||
|     //TRN To be shown in Print Settings "Bottom interface layers". Have to be as short as possible
 | ||||
|     def->enum_labels.push_back("-1"); | ||||
|     append(def->enum_labels, support_interface_top_layers->enum_labels); | ||||
|     def->mode = comDevelop; | ||||
|     def->mode = comAdvanced; | ||||
|     def->set_default_value(new ConfigOptionInt(0)); | ||||
| 
 | ||||
|     def = this->add("support_interface_spacing", coFloat); | ||||
|  | @ -2438,7 +2570,7 @@ void PrintConfigDef::init_fff_params() | |||
|     def->tooltip = L("Spacing of bottom interface lines. Zero means solid interface"); | ||||
|     def->sidetext = L("mm"); | ||||
|     def->min = 0; | ||||
|     def->mode = comDevelop; | ||||
|     def->mode = comAdvanced; | ||||
|     def->set_default_value(new ConfigOptionFloat(0.5)); | ||||
| 
 | ||||
|     def = this->add("support_interface_speed", coFloat); | ||||
|  | @ -2515,7 +2647,7 @@ void PrintConfigDef::init_fff_params() | |||
|     def->enum_values.push_back("snug"); | ||||
|     def->enum_labels.push_back(L("Grid")); | ||||
|     def->enum_labels.push_back(L("Snug")); | ||||
|     def->mode = comDevelop; | ||||
|     def->mode = comAdvanced; | ||||
|     def->set_default_value(new ConfigOptionEnum<SupportMaterialStyle>(smsGrid)); | ||||
| 
 | ||||
|     def = this->add("independent_support_layer_height", coBool); | ||||
|  | @ -2581,6 +2713,15 @@ void PrintConfigDef::init_fff_params() | |||
|     def->mode = comAdvanced; | ||||
|     def->set_default_value(new ConfigOptionBool(false)); | ||||
| 
 | ||||
|     def = this->add("chamber_temperature", coInt); | ||||
|     def->label = L("Chamber temperature"); | ||||
|     def->tooltip = L("Target chamber temperature"); | ||||
|     def->sidetext = L("°C"); | ||||
|     def->full_label = L("Chamber temperature"); | ||||
|     def->min = 0; | ||||
|     def->max = max_temp; | ||||
|     def->set_default_value(new ConfigOptionInt(0)); | ||||
| 
 | ||||
|     def = this->add("nozzle_temperature", coInts); | ||||
|     def->label = L("Other layers"); | ||||
|     def->tooltip = L("Nozzle temperature for layers after the initial one"); | ||||
|  | @ -2697,6 +2838,19 @@ void PrintConfigDef::init_fff_params() | |||
|     def->mode = comAdvanced; | ||||
|     def->set_default_value(new ConfigOptionBools { false }); | ||||
| 
 | ||||
|     def = this->add("z_lift_type", coEnum); | ||||
|     def->label = L("Z hop type"); | ||||
|     def->tooltip = L("Z hop type"); | ||||
|     def->enum_keys_map = &ConfigOptionEnum<LiftType>::get_enum_values(); | ||||
|     def->enum_values.push_back("NormalLift"); | ||||
|     def->enum_values.push_back("SpiralLift"); | ||||
|     // def->enum_values.push_back("LazyLift");
 | ||||
|     def->enum_labels.push_back(L("NormalLift")); | ||||
|     def->enum_labels.push_back(L("SpiralLift")); | ||||
|     // def->enum_labels.push_back(L("LazyLift"));
 | ||||
|     def->mode = comAdvanced; | ||||
|     def->set_default_value(new ConfigOptionEnum<LiftType>(LiftType::SpiralLift)); | ||||
| 
 | ||||
|     def = this->add("wipe_distance", coFloats); | ||||
|     def->label = L("Wipe Distance"); | ||||
|     def->tooltip = L("Discribe how long the nozzle will move along the last path when retracting"); | ||||
|  | @ -2735,7 +2889,7 @@ void PrintConfigDef::init_fff_params() | |||
|     def->label = L("Flush multiplier"); | ||||
|     def->tooltip = L(""); | ||||
|     def->sidetext = L(""); | ||||
|     def->mode = comDevelop; | ||||
|     def->mode = comAdvanced; | ||||
|     def->min = 0; | ||||
|     def->set_default_value(new ConfigOptionFloat(1.0)); | ||||
| 
 | ||||
|  | @ -2836,6 +2990,13 @@ void PrintConfigDef::init_fff_params() | |||
|     def->mode = comAdvanced; | ||||
|     def->set_default_value(new ConfigOptionFloat(0)); | ||||
| 
 | ||||
|     def = this->add("thumbnails", coPoints); | ||||
|     def->label = L("G-code thumbnails"); | ||||
|     def->tooltip = L("Picture sizes to be stored into a .gcode and .sl1 / .sl1s files, in the following format: \"XxY, XxY, ...\""); | ||||
|     def->mode = comAdvanced; | ||||
|     def->gui_type = ConfigOptionDef::GUIType::one_string; | ||||
|     def->set_default_value(new ConfigOptionPoints{Vec2d(300, 300)}); | ||||
|      | ||||
|     // Declare retract values for filament profile, overriding the printer's extruder profile.
 | ||||
|     for (const char *opt_key : { | ||||
|         // floats
 | ||||
|  | @ -2857,8 +3018,6 @@ void PrintConfigDef::init_fff_params() | |||
|         if ((strcmp(opt_key, "retraction_length") == 0) || | ||||
|             (strcmp(opt_key, "z_hop") == 0)) | ||||
|             def->mode       = comSimple; | ||||
|         else if (strcmp(opt_key, "retract_before_wipe") == 0) | ||||
|             def->mode       = comDevelop; | ||||
|         else | ||||
|             def->mode       = comAdvanced; | ||||
|         switch (def->type) { | ||||
|  | @ -2875,7 +3034,7 @@ void PrintConfigDef::init_fff_params() | |||
|     def->tooltip = L("This option will auto detect narrow internal solid infill area." | ||||
|                    " If enabled, concentric pattern will be used for the area to speed printing up." | ||||
|                    " Otherwise, rectilinear pattern is used defaultly."); | ||||
|     def->mode = comDevelop; | ||||
|     def->mode = comAdvanced; | ||||
|     def->set_default_value(new ConfigOptionBool(true)); | ||||
| } | ||||
| 
 | ||||
|  | @ -3629,7 +3788,7 @@ void PrintConfigDef::handle_legacy(t_config_option_key &opt_key, std::string &va | |||
|     static std::set<std::string> ignore = { | ||||
|         "acceleration", "scale", "rotate", "duplicate", "duplicate_grid", | ||||
|         "bed_size", | ||||
|         "print_center", "g0", "pressure_advance", "wipe_tower_per_color_wipe" | ||||
|         "print_center", "g0", "wipe_tower_per_color_wipe" | ||||
| #ifndef HAS_PRESSURE_EQUALIZER | ||||
|         , "max_volumetric_extrusion_rate_slope_positive", "max_volumetric_extrusion_rate_slope_negative" | ||||
| #endif /* HAS_PRESSURE_EQUALIZER */ | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 SoftFever
						SoftFever