mirror of
https://github.com/QIDITECH/QIDISlicer.git
synced 2026-01-31 07:58:43 +03:00
PRUSA 2.7.0
This commit is contained in:
@@ -30,6 +30,10 @@
|
||||
|
||||
namespace Slic3r {
|
||||
|
||||
enum class ArcFittingType {
|
||||
Disabled,
|
||||
EmitCenter
|
||||
};
|
||||
enum GCodeFlavor : unsigned char {
|
||||
gcfRepRapSprinter, gcfRepRapFirmware, gcfRepetier, gcfTeacup, gcfMakerWare, gcfMarlinLegacy, gcfMarlinFirmware, gcfKlipper, gcfSailfish, gcfMach3, gcfMachinekit,
|
||||
gcfSmoothie, gcfNoExtrusion,
|
||||
@@ -124,6 +128,9 @@ enum DraftShield {
|
||||
dsDisabled, dsLimited, dsEnabled
|
||||
};
|
||||
|
||||
enum class LabelObjectsStyle {
|
||||
Disabled, Octoprint, Firmware
|
||||
};
|
||||
enum class PerimeterGeneratorType
|
||||
{
|
||||
// Classic perimeter generator using Clipper offsets with constant extrusion width.
|
||||
@@ -132,15 +139,15 @@ enum class PerimeterGeneratorType
|
||||
// "A framework for adaptive width control of dense contour-parallel toolpaths in fused deposition modeling" ported from Cura.
|
||||
Arachne
|
||||
};
|
||||
//B3
|
||||
enum class GCodeThumbnailsFormat {
|
||||
QIDI, PNG, JPG, QOI
|
||||
PNG, JPG, QOI
|
||||
};
|
||||
|
||||
#define CONFIG_OPTION_ENUM_DECLARE_STATIC_MAPS(NAME) \
|
||||
template<> const t_config_enum_names& ConfigOptionEnum<NAME>::get_enum_names(); \
|
||||
template<> const t_config_enum_values& ConfigOptionEnum<NAME>::get_enum_values();
|
||||
|
||||
CONFIG_OPTION_ENUM_DECLARE_STATIC_MAPS(ArcFittingType)
|
||||
CONFIG_OPTION_ENUM_DECLARE_STATIC_MAPS(PrinterTechnology)
|
||||
CONFIG_OPTION_ENUM_DECLARE_STATIC_MAPS(GCodeFlavor)
|
||||
CONFIG_OPTION_ENUM_DECLARE_STATIC_MAPS(MachineLimitsUsage)
|
||||
@@ -159,6 +166,7 @@ CONFIG_OPTION_ENUM_DECLARE_STATIC_MAPS(SLAPillarConnectionMode)
|
||||
CONFIG_OPTION_ENUM_DECLARE_STATIC_MAPS(SLASupportTreeType)
|
||||
CONFIG_OPTION_ENUM_DECLARE_STATIC_MAPS(BrimType)
|
||||
CONFIG_OPTION_ENUM_DECLARE_STATIC_MAPS(DraftShield)
|
||||
CONFIG_OPTION_ENUM_DECLARE_STATIC_MAPS(LabelObjectsStyle)
|
||||
CONFIG_OPTION_ENUM_DECLARE_STATIC_MAPS(GCodeThumbnailsFormat)
|
||||
CONFIG_OPTION_ENUM_DECLARE_STATIC_MAPS(ForwardCompatibilitySubstitutionRule)
|
||||
CONFIG_OPTION_ENUM_DECLARE_STATIC_MAPS(PerimeterGeneratorType)
|
||||
@@ -676,6 +684,7 @@ PRINT_CONFIG_CLASS_DEFINE(
|
||||
PRINT_CONFIG_CLASS_DEFINE(
|
||||
GCodeConfig,
|
||||
|
||||
((ConfigOptionEnum<ArcFittingType>, arc_fitting))
|
||||
((ConfigOptionBool, autoemit_temperature_commands))
|
||||
((ConfigOptionString, before_layer_gcode))
|
||||
((ConfigOptionString, between_objects_gcode))
|
||||
@@ -708,18 +717,23 @@ PRINT_CONFIG_CLASS_DEFINE(
|
||||
((ConfigOptionFloats, filament_multitool_ramming_flow))
|
||||
((ConfigOptionBool, gcode_comments))
|
||||
((ConfigOptionEnum<GCodeFlavor>, gcode_flavor))
|
||||
((ConfigOptionBool, gcode_label_objects))
|
||||
((ConfigOptionEnum<LabelObjectsStyle>, gcode_label_objects))
|
||||
// Triples of strings: "search pattern", "replace with pattern", "attribs"
|
||||
// where "attribs" are one of:
|
||||
// r - regular expression
|
||||
// i - case insensitive
|
||||
// w - whole word
|
||||
((ConfigOptionStrings, gcode_substitutions))
|
||||
((ConfigOptionBool, gcode_binary))
|
||||
((ConfigOptionString, layer_gcode))
|
||||
((ConfigOptionFloat, max_print_speed))
|
||||
((ConfigOptionFloat, max_volumetric_speed))
|
||||
((ConfigOptionFloat, max_volumetric_extrusion_rate_slope_positive))
|
||||
((ConfigOptionFloat, max_volumetric_extrusion_rate_slope_negative))
|
||||
((ConfigOptionBools, travel_ramping_lift))
|
||||
((ConfigOptionFloats, travel_max_lift))
|
||||
((ConfigOptionFloats, travel_slope))
|
||||
((ConfigOptionBools, travel_lift_before_obstacle))
|
||||
((ConfigOptionPercents, retract_before_wipe))
|
||||
((ConfigOptionFloats, retract_length))
|
||||
((ConfigOptionFloats, retract_length_toolchange))
|
||||
@@ -774,8 +788,6 @@ PRINT_CONFIG_CLASS_DERIVED_DEFINE(
|
||||
((ConfigOptionBool, avoid_crossing_perimeters))
|
||||
((ConfigOptionFloatOrPercent, avoid_crossing_perimeters_max_detour))
|
||||
((ConfigOptionPoints, bed_shape))
|
||||
//Y18
|
||||
((ConfigOptionPoints, bed_exclude_area))
|
||||
((ConfigOptionInts, bed_temperature))
|
||||
//Y16
|
||||
((ConfigOptionBool, chamber_temperature))
|
||||
@@ -856,7 +868,7 @@ PRINT_CONFIG_CLASS_DERIVED_DEFINE(
|
||||
((ConfigOptionInt, standby_temperature_delta))
|
||||
((ConfigOptionInts, temperature))
|
||||
((ConfigOptionInt, threads))
|
||||
((ConfigOptionPoints, thumbnails))
|
||||
((ConfigOptionString, thumbnails))
|
||||
((ConfigOptionEnum<GCodeThumbnailsFormat>, thumbnails_format))
|
||||
((ConfigOptionFloat, top_solid_infill_acceleration))
|
||||
((ConfigOptionFloat, travel_acceleration))
|
||||
@@ -1193,6 +1205,67 @@ public:
|
||||
CLIMiscConfigDef();
|
||||
};
|
||||
|
||||
typedef std::string t_custom_gcode_key;
|
||||
// This map containes list of specific placeholders for each custom G-code, if any exist
|
||||
const std::map<t_custom_gcode_key, t_config_option_keys>& custom_gcode_specific_placeholders();
|
||||
|
||||
// Next classes define placeholders used by GUI::EditGCodeDialog.
|
||||
|
||||
class ReadOnlySlicingStatesConfigDef : public ConfigDef
|
||||
{
|
||||
public:
|
||||
ReadOnlySlicingStatesConfigDef();
|
||||
};
|
||||
|
||||
class ReadWriteSlicingStatesConfigDef : public ConfigDef
|
||||
{
|
||||
public:
|
||||
ReadWriteSlicingStatesConfigDef();
|
||||
};
|
||||
|
||||
class OtherSlicingStatesConfigDef : public ConfigDef
|
||||
{
|
||||
public:
|
||||
OtherSlicingStatesConfigDef();
|
||||
};
|
||||
|
||||
class PrintStatisticsConfigDef : public ConfigDef
|
||||
{
|
||||
public:
|
||||
PrintStatisticsConfigDef();
|
||||
};
|
||||
|
||||
class ObjectsInfoConfigDef : public ConfigDef
|
||||
{
|
||||
public:
|
||||
ObjectsInfoConfigDef();
|
||||
};
|
||||
|
||||
class DimensionsConfigDef : public ConfigDef
|
||||
{
|
||||
public:
|
||||
DimensionsConfigDef();
|
||||
};
|
||||
|
||||
class TimestampsConfigDef : public ConfigDef
|
||||
{
|
||||
public:
|
||||
TimestampsConfigDef();
|
||||
};
|
||||
|
||||
class OtherPresetsConfigDef : public ConfigDef
|
||||
{
|
||||
public:
|
||||
OtherPresetsConfigDef();
|
||||
};
|
||||
|
||||
// This classes defines all custom G-code specific placeholders.
|
||||
class CustomGcodeSpecificConfigDef : public ConfigDef
|
||||
{
|
||||
public:
|
||||
CustomGcodeSpecificConfigDef();
|
||||
};
|
||||
extern const CustomGcodeSpecificConfigDef custom_gcode_specific_config_def;
|
||||
// This class defines the command line options representing actions.
|
||||
extern const CLIActionsConfigDef cli_actions_config_def;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user