mirror of
https://github.com/QIDITECH/QIDISlicer.git
synced 2026-01-30 23:48:44 +03:00
Modify variable name
This commit is contained in:
@@ -1784,7 +1784,7 @@ void PerimeterGenerator::process_classic(
|
|||||||
//w16
|
//w16
|
||||||
ExPolygons fill_clip;
|
ExPolygons fill_clip;
|
||||||
ExPolygons top_fills;
|
ExPolygons top_fills;
|
||||||
if (loop_number > 0 && params.object_config.top_one_wall_type != TopOneWallType::None && upper_slices == nullptr)
|
if (loop_number > 0 && params.object_config.top_one_wall_type != TopOneWallType::Disable && upper_slices == nullptr)
|
||||||
loop_number = 0;
|
loop_number = 0;
|
||||||
if (loop_number >= 0) {
|
if (loop_number >= 0) {
|
||||||
// In case no perimeters are to be generated, loop_number will equal to -1.
|
// In case no perimeters are to be generated, loop_number will equal to -1.
|
||||||
|
|||||||
@@ -237,9 +237,9 @@ static t_config_enum_values s_keys_map_PerimeterGeneratorType {
|
|||||||
CONFIG_OPTION_ENUM_DEFINE_STATIC_MAPS(PerimeterGeneratorType)
|
CONFIG_OPTION_ENUM_DEFINE_STATIC_MAPS(PerimeterGeneratorType)
|
||||||
|
|
||||||
//w16
|
//w16
|
||||||
static t_config_enum_values s_keys_map_TopOneWallType{{"not apply", int(TopOneWallType::None)},
|
static t_config_enum_values s_keys_map_TopOneWallType{{"Disable", int(TopOneWallType::Disable)},
|
||||||
{"all top", int(TopOneWallType::Alltop)},
|
{"all_top", int(TopOneWallType::Alltop)},
|
||||||
{"Only top most", int(TopOneWallType::Onlytopmost)}};
|
{"Only_top_most", int(TopOneWallType::Onlytopmost)}};
|
||||||
CONFIG_OPTION_ENUM_DEFINE_STATIC_MAPS(TopOneWallType)
|
CONFIG_OPTION_ENUM_DEFINE_STATIC_MAPS(TopOneWallType)
|
||||||
|
|
||||||
static void assign_printer_technology_to_unknown(t_optiondef_map &options, PrinterTechnology printer_technology)
|
static void assign_printer_technology_to_unknown(t_optiondef_map &options, PrinterTechnology printer_technology)
|
||||||
@@ -3543,12 +3543,12 @@ void PrintConfigDef::init_fff_params()
|
|||||||
def->category = L("Layers and Perimeters");
|
def->category = L("Layers and Perimeters");
|
||||||
def->tooltip = L("Use only one wall on flat top surface, to give more space to the top infill pattern. Could be applyed on topmost surface or all top surface.");
|
def->tooltip = L("Use only one wall on flat top surface, to give more space to the top infill pattern. Could be applyed on topmost surface or all top surface.");
|
||||||
def->set_enum<TopOneWallType>({
|
def->set_enum<TopOneWallType>({
|
||||||
{ "none", L("None") },
|
{ "Disable", L("Disable") },
|
||||||
{ "Only top most", L("Onlytopmost") },
|
{ "all_top", L("All top") },
|
||||||
{ "all top", L("Alltop") }
|
{ "Only_top_most", L("Only top most") }
|
||||||
});
|
});
|
||||||
def->mode = comAdvanced;
|
def->mode = comAdvanced;
|
||||||
def->set_default_value(new ConfigOptionEnum<TopOneWallType>(TopOneWallType::None));
|
def->set_default_value(new ConfigOptionEnum<TopOneWallType>(TopOneWallType::Disable));
|
||||||
|
|
||||||
def = this->add("wall_transition_length", coFloatOrPercent);
|
def = this->add("wall_transition_length", coFloatOrPercent);
|
||||||
def->label = L("Perimeter transition length");
|
def->label = L("Perimeter transition length");
|
||||||
|
|||||||
@@ -145,7 +145,7 @@ enum class PerimeterGeneratorType
|
|||||||
enum class GCodeThumbnailsFormat { QIDI,PNG, JPG, QOI };
|
enum class GCodeThumbnailsFormat { QIDI,PNG, JPG, QOI };
|
||||||
|
|
||||||
//w16
|
//w16
|
||||||
enum class TopOneWallType { None, Alltop, Onlytopmost };
|
enum class TopOneWallType { Disable, Alltop, Onlytopmost };
|
||||||
|
|
||||||
#define CONFIG_OPTION_ENUM_DECLARE_STATIC_MAPS(NAME) \
|
#define CONFIG_OPTION_ENUM_DECLARE_STATIC_MAPS(NAME) \
|
||||||
template<> const t_config_enum_names& ConfigOptionEnum<NAME>::get_enum_names(); \
|
template<> const t_config_enum_names& ConfigOptionEnum<NAME>::get_enum_names(); \
|
||||||
|
|||||||
Reference in New Issue
Block a user