Adapt plater to the new split config
This commit is contained in:
parent
bfa2ee2770
commit
81663215c5
11 changed files with 153 additions and 65 deletions
|
@ -354,6 +354,7 @@ class ConfigOptionDef
|
|||
public:
|
||||
ConfigOptionType type;
|
||||
std::string label;
|
||||
std::string full_label;
|
||||
std::string category;
|
||||
std::string tooltip;
|
||||
std::string sidetext;
|
||||
|
@ -361,7 +362,6 @@ class ConfigOptionDef
|
|||
std::string scope;
|
||||
t_config_option_key ratio_over;
|
||||
bool multiline;
|
||||
bool full_label;
|
||||
bool full_width;
|
||||
bool readonly;
|
||||
int height;
|
||||
|
|
|
@ -33,4 +33,11 @@ PrintState::invalidate(PrintStep step)
|
|||
this->_done.erase(step);
|
||||
}
|
||||
|
||||
void
|
||||
PrintState::invalidate_all()
|
||||
{
|
||||
this->_started.clear();
|
||||
this->_done.clear();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -22,6 +22,7 @@ class PrintState
|
|||
void set_started(PrintStep step);
|
||||
void set_done(PrintStep step);
|
||||
void invalidate(PrintStep step);
|
||||
void invalidate_all();
|
||||
};
|
||||
|
||||
}
|
||||
|
|
|
@ -61,7 +61,7 @@ class PrintConfigDef
|
|||
Options["bed_temperature"].tooltip = "Bed temperature for layers after the first one. Set this to zero to disable bed temperature control commands in the output.";
|
||||
Options["bed_temperature"].sidetext = "°C";
|
||||
Options["bed_temperature"].cli = "bed-temperature=i";
|
||||
Options["bed_temperature"].full_label = true;
|
||||
Options["bed_temperature"].full_label = "Bed temperature";
|
||||
Options["bed_temperature"].max = 300;
|
||||
|
||||
Options["bottom_solid_layers"].type = coInt;
|
||||
|
@ -70,7 +70,7 @@ class PrintConfigDef
|
|||
Options["bottom_solid_layers"].tooltip = "Number of solid layers to generate on bottom surfaces.";
|
||||
Options["bottom_solid_layers"].cli = "bottom-solid-layers=i";
|
||||
Options["bottom_solid_layers"].scope = "object";
|
||||
Options["bottom_solid_layers"].full_label = true;
|
||||
Options["bottom_solid_layers"].full_label = "Bottom solid layers";
|
||||
|
||||
Options["bridge_acceleration"].type = coFloat;
|
||||
Options["bridge_acceleration"].label = "Bridge";
|
||||
|
@ -346,7 +346,7 @@ class PrintConfigDef
|
|||
Options["infill_every_layers"].sidetext = "layers";
|
||||
Options["infill_every_layers"].cli = "infill-every-layers=i";
|
||||
Options["infill_every_layers"].scope = "object";
|
||||
Options["infill_every_layers"].full_label = true;
|
||||
Options["infill_every_layers"].full_label = "Combine infill every n layers";
|
||||
Options["infill_every_layers"].min = 1;
|
||||
|
||||
Options["infill_extruder"].type = coInt;
|
||||
|
@ -715,7 +715,7 @@ class PrintConfigDef
|
|||
Options["support_material_enforce_layers"].sidetext = "layers";
|
||||
Options["support_material_enforce_layers"].cli = "support-material-enforce-layers=f";
|
||||
Options["support_material_enforce_layers"].scope = "object";
|
||||
Options["support_material_enforce_layers"].full_label = true;
|
||||
Options["support_material_enforce_layers"].full_label = "Enforce support for the first n layers";
|
||||
|
||||
Options["support_material_extruder"].type = coInt;
|
||||
Options["support_material_extruder"].label = "Support material extruder";
|
||||
|
@ -789,7 +789,7 @@ class PrintConfigDef
|
|||
Options["temperature"].tooltip = "Extruder temperature for layers after the first one. Set this to zero to disable temperature control commands in the output.";
|
||||
Options["temperature"].sidetext = "°C";
|
||||
Options["temperature"].cli = "temperature=i@";
|
||||
Options["temperature"].full_label = true;
|
||||
Options["temperature"].full_label = "Temperature";
|
||||
Options["temperature"].max = 400;
|
||||
|
||||
Options["thin_walls"].type = coBool;
|
||||
|
@ -835,7 +835,7 @@ class PrintConfigDef
|
|||
Options["top_solid_layers"].tooltip = "Number of solid layers to generate on top surfaces.";
|
||||
Options["top_solid_layers"].cli = "top-solid-layers=i";
|
||||
Options["top_solid_layers"].scope = "object";
|
||||
Options["top_solid_layers"].full_label = true;
|
||||
Options["top_solid_layers"].full_label = "Top solid layers";
|
||||
|
||||
Options["travel_speed"].type = coFloat;
|
||||
Options["travel_speed"].label = "Travel";
|
||||
|
|
|
@ -142,6 +142,7 @@ print_config_def()
|
|||
}
|
||||
(void)hv_stores( hv, "type", newSVpv(opt_type, 0) );
|
||||
(void)hv_stores( hv, "label", newSVpvn(optdef->label.c_str(), optdef->label.length()) );
|
||||
(void)hv_stores( hv, "full_label", newSVpvn(optdef->full_label.c_str(), optdef->full_label.length()) );
|
||||
(void)hv_stores( hv, "category", newSVpvn(optdef->category.c_str(), optdef->category.length()) );
|
||||
(void)hv_stores( hv, "tooltip", newSVpvn(optdef->tooltip.c_str(), optdef->tooltip.length()) );
|
||||
(void)hv_stores( hv, "sidetext", newSVpvn(optdef->sidetext.c_str(), optdef->sidetext.length()) );
|
||||
|
@ -149,7 +150,6 @@ print_config_def()
|
|||
(void)hv_stores( hv, "scope", newSVpvn(optdef->scope.c_str(), optdef->scope.length()) );
|
||||
(void)hv_stores( hv, "ratio_over", newSVpvn(optdef->ratio_over.c_str(), optdef->ratio_over.length()) );
|
||||
(void)hv_stores( hv, "multiline", newSViv(optdef->multiline ? 1 : 0) );
|
||||
(void)hv_stores( hv, "full_label", newSViv(optdef->full_label ? 1 : 0) );
|
||||
(void)hv_stores( hv, "full_width", newSViv(optdef->full_width ? 1 : 0) );
|
||||
(void)hv_stores( hv, "readonly", newSViv(optdef->readonly ? 1 : 0) );
|
||||
(void)hv_stores( hv, "height", newSViv(optdef->height) );
|
||||
|
|
|
@ -13,6 +13,7 @@
|
|||
void set_started(PrintStep step);
|
||||
void set_done(PrintStep step);
|
||||
void invalidate(PrintStep step);
|
||||
void invalidate_all();
|
||||
%{
|
||||
|
||||
%}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue