Reorder some options using the more compact layout
This commit is contained in:
parent
cee3864fc9
commit
667d88603e
3 changed files with 47 additions and 11 deletions
|
@ -155,7 +155,7 @@ our $Options = {
|
||||||
default => [1],
|
default => [1],
|
||||||
},
|
},
|
||||||
'temperature' => {
|
'temperature' => {
|
||||||
label => 'Temperature',
|
label => 'Other layers',
|
||||||
tooltip => 'Extruder temperature for layers after the first one. Set this to zero to disable temperature control commands in the output.',
|
tooltip => 'Extruder temperature for layers after the first one. Set this to zero to disable temperature control commands in the output.',
|
||||||
sidetext => '°C',
|
sidetext => '°C',
|
||||||
cli => 'temperature=i@',
|
cli => 'temperature=i@',
|
||||||
|
@ -166,7 +166,7 @@ our $Options = {
|
||||||
default => [200],
|
default => [200],
|
||||||
},
|
},
|
||||||
'first_layer_temperature' => {
|
'first_layer_temperature' => {
|
||||||
label => 'First layer temperature',
|
label => 'First layer',
|
||||||
tooltip => 'Extruder temperature for first layer. If you want to control temperature manually during print, set this to zero to disable temperature control commands in the output file.',
|
tooltip => 'Extruder temperature for first layer. If you want to control temperature manually during print, set this to zero to disable temperature control commands in the output file.',
|
||||||
sidetext => '°C',
|
sidetext => '°C',
|
||||||
cli => 'first-layer-temperature=i@',
|
cli => 'first-layer-temperature=i@',
|
||||||
|
@ -203,7 +203,7 @@ our $Options = {
|
||||||
|
|
||||||
# filament options
|
# filament options
|
||||||
'first_layer_bed_temperature' => {
|
'first_layer_bed_temperature' => {
|
||||||
label => 'First layer bed temperature',
|
label => 'First layer',
|
||||||
tooltip => 'Heated build plate temperature for the first layer. Set this to zero to disable bed temperature control commands in the output.',
|
tooltip => 'Heated build plate temperature for the first layer. Set this to zero to disable bed temperature control commands in the output.',
|
||||||
sidetext => '°C',
|
sidetext => '°C',
|
||||||
cli => 'first-layer-bed-temperature=i',
|
cli => 'first-layer-bed-temperature=i',
|
||||||
|
@ -212,7 +212,7 @@ our $Options = {
|
||||||
default => 0,
|
default => 0,
|
||||||
},
|
},
|
||||||
'bed_temperature' => {
|
'bed_temperature' => {
|
||||||
label => 'Bed Temperature',
|
label => 'Other layers',
|
||||||
tooltip => 'Bed temperature for layers after the first one. Set this to zero to disable bed temperature control commands in the output.',
|
tooltip => 'Bed temperature for layers after the first one. Set this to zero to disable bed temperature control commands in the output.',
|
||||||
sidetext => '°C',
|
sidetext => '°C',
|
||||||
cli => 'bed-temperature=i',
|
cli => 'bed-temperature=i',
|
||||||
|
@ -680,7 +680,7 @@ END
|
||||||
default => 0,
|
default => 0,
|
||||||
},
|
},
|
||||||
'min_fan_speed' => {
|
'min_fan_speed' => {
|
||||||
label => 'Min fan speed',
|
label => 'Min',
|
||||||
tooltip => 'This setting represents the minimum PWM your fan needs to work.',
|
tooltip => 'This setting represents the minimum PWM your fan needs to work.',
|
||||||
sidetext => '%',
|
sidetext => '%',
|
||||||
cli => 'min-fan-speed=i',
|
cli => 'min-fan-speed=i',
|
||||||
|
@ -689,7 +689,7 @@ END
|
||||||
default => 35,
|
default => 35,
|
||||||
},
|
},
|
||||||
'max_fan_speed' => {
|
'max_fan_speed' => {
|
||||||
label => 'Max fan speed',
|
label => 'Max',
|
||||||
tooltip => 'This setting represents the maximum speed of your fan.',
|
tooltip => 'This setting represents the maximum speed of your fan.',
|
||||||
sidetext => '%',
|
sidetext => '%',
|
||||||
cli => 'max-fan-speed=i',
|
cli => 'max-fan-speed=i',
|
||||||
|
@ -698,7 +698,7 @@ END
|
||||||
default => 100,
|
default => 100,
|
||||||
},
|
},
|
||||||
'bridge_fan_speed' => {
|
'bridge_fan_speed' => {
|
||||||
label => 'Bridge fan speed',
|
label => 'Bridges',
|
||||||
tooltip => 'This fan speed is enforced during all bridges.',
|
tooltip => 'This fan speed is enforced during all bridges.',
|
||||||
sidetext => '%',
|
sidetext => '%',
|
||||||
cli => 'bridge-fan-speed=i',
|
cli => 'bridge-fan-speed=i',
|
||||||
|
@ -844,7 +844,7 @@ END
|
||||||
default => 0,
|
default => 0,
|
||||||
},
|
},
|
||||||
'extruder_clearance_radius' => {
|
'extruder_clearance_radius' => {
|
||||||
label => 'Extruder clearance radius',
|
label => 'Radius',
|
||||||
tooltip => 'Set this to the clearance radius around your extruder. If the extruder is not centered, choose the largest value for safety. This setting is used to check for collisions and to display the graphical preview in the plater.',
|
tooltip => 'Set this to the clearance radius around your extruder. If the extruder is not centered, choose the largest value for safety. This setting is used to check for collisions and to display the graphical preview in the plater.',
|
||||||
sidetext => 'mm',
|
sidetext => 'mm',
|
||||||
cli => 'extruder-clearance-radius=f',
|
cli => 'extruder-clearance-radius=f',
|
||||||
|
@ -852,7 +852,7 @@ END
|
||||||
default => 20,
|
default => 20,
|
||||||
},
|
},
|
||||||
'extruder_clearance_height' => {
|
'extruder_clearance_height' => {
|
||||||
label => 'Extruder clearance height',
|
label => 'Height',
|
||||||
tooltip => 'Set this to the vertical distance between your nozzle tip and (usually) the X carriage rods. In other words, this is the height of the clearance cylinder around your extruder, and it represents the maximum depth the extruder can peek before colliding with other printed objects.',
|
tooltip => 'Set this to the vertical distance between your nozzle tip and (usually) the X carriage rods. In other words, this is the height of the clearance cylinder around your extruder, and it represents the maximum depth the extruder can peek before colliding with other printed objects.',
|
||||||
sidetext => 'mm',
|
sidetext => 'mm',
|
||||||
cli => 'extruder-clearance-height=f',
|
cli => 'extruder-clearance-height=f',
|
||||||
|
|
|
@ -90,6 +90,17 @@ sub _build_lines {
|
||||||
return $lines;
|
return $lines;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
sub single_option_line {
|
||||||
|
my $class = shift;
|
||||||
|
my ($opt_key) = @_;
|
||||||
|
|
||||||
|
return {
|
||||||
|
label => $Slic3r::Config::Options->{$opt_key}{label},
|
||||||
|
sidetext => $Slic3r::Config::Options->{$opt_key}{sidetext},
|
||||||
|
options => [$opt_key],
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
sub _build_line {
|
sub _build_line {
|
||||||
my $self = shift;
|
my $self = shift;
|
||||||
my ($line, $grid_sizer) = @_;
|
my ($line, $grid_sizer) = @_;
|
||||||
|
@ -112,7 +123,7 @@ sub _build_line {
|
||||||
if (@fields > 1 || $line->{sidetext}) {
|
if (@fields > 1 || $line->{sidetext}) {
|
||||||
my $sizer = Wx::BoxSizer->new(wxHORIZONTAL);
|
my $sizer = Wx::BoxSizer->new(wxHORIZONTAL);
|
||||||
for my $i (0 .. $#fields) {
|
for my $i (0 .. $#fields) {
|
||||||
if (@fields > 1) {
|
if (@fields > 1 && $field_labels[$i]) {
|
||||||
my $field_label = Wx::StaticText->new($self->parent, -1, "$field_labels[$i]:", wxDefaultPosition, wxDefaultSize);
|
my $field_label = Wx::StaticText->new($self->parent, -1, "$field_labels[$i]:", wxDefaultPosition, wxDefaultSize);
|
||||||
$field_label->SetFont($self->{sidetext_font});
|
$field_label->SetFont($self->{sidetext_font});
|
||||||
$sizer->Add($field_label, 0, wxALIGN_CENTER_VERTICAL, 0);
|
$sizer->Add($field_label, 0, wxALIGN_CENTER_VERTICAL, 0);
|
||||||
|
|
|
@ -462,6 +462,13 @@ sub build {
|
||||||
{
|
{
|
||||||
title => 'Sequential printing',
|
title => 'Sequential printing',
|
||||||
options => [qw(complete_objects extruder_clearance_radius extruder_clearance_height)],
|
options => [qw(complete_objects extruder_clearance_radius extruder_clearance_height)],
|
||||||
|
lines => [
|
||||||
|
Slic3r::GUI::OptionsGroup->single_option_line('complete_objects'),
|
||||||
|
{
|
||||||
|
label => 'Extruder clearance (mm)',
|
||||||
|
options => [qw(extruder_clearance_radius extruder_clearance_height)],
|
||||||
|
},
|
||||||
|
],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title => 'Output file',
|
title => 'Output file',
|
||||||
|
@ -515,8 +522,18 @@ sub build {
|
||||||
options => ['filament_diameter#0', 'extrusion_multiplier#0'],
|
options => ['filament_diameter#0', 'extrusion_multiplier#0'],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title => 'Temperature',
|
title => 'Temperature (°C)',
|
||||||
options => ['temperature#0', 'first_layer_temperature#0', qw(bed_temperature first_layer_bed_temperature)],
|
options => ['temperature#0', 'first_layer_temperature#0', qw(bed_temperature first_layer_bed_temperature)],
|
||||||
|
lines => [
|
||||||
|
{
|
||||||
|
label => 'Extruder',
|
||||||
|
options => ['first_layer_temperature#0', 'temperature#0'],
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label => 'Bed',
|
||||||
|
options => [qw(first_layer_bed_temperature bed_temperature)],
|
||||||
|
},
|
||||||
|
],
|
||||||
},
|
},
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
@ -528,6 +545,14 @@ sub build {
|
||||||
{
|
{
|
||||||
title => 'Fan settings',
|
title => 'Fan settings',
|
||||||
options => [qw(min_fan_speed max_fan_speed bridge_fan_speed disable_fan_first_layers fan_always_on)],
|
options => [qw(min_fan_speed max_fan_speed bridge_fan_speed disable_fan_first_layers fan_always_on)],
|
||||||
|
lines => [
|
||||||
|
{
|
||||||
|
label => 'Fan speed',
|
||||||
|
options => [qw(min_fan_speed max_fan_speed bridge_fan_speed)],
|
||||||
|
},
|
||||||
|
Slic3r::GUI::OptionsGroup->single_option_line('disable_fan_first_layers'),
|
||||||
|
Slic3r::GUI::OptionsGroup->single_option_line('fan_always_on'),
|
||||||
|
],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title => 'Cooling thresholds',
|
title => 'Cooling thresholds',
|
||||||
|
|
Loading…
Reference in a new issue