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
|
@ -90,6 +90,17 @@ sub _build_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 {
|
||||
my $self = shift;
|
||||
my ($line, $grid_sizer) = @_;
|
||||
|
@ -112,7 +123,7 @@ sub _build_line {
|
|||
if (@fields > 1 || $line->{sidetext}) {
|
||||
my $sizer = Wx::BoxSizer->new(wxHORIZONTAL);
|
||||
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);
|
||||
$field_label->SetFont($self->{sidetext_font});
|
||||
$sizer->Add($field_label, 0, wxALIGN_CENTER_VERTICAL, 0);
|
||||
|
|
|
@ -462,6 +462,13 @@ sub build {
|
|||
{
|
||||
title => 'Sequential printing',
|
||||
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',
|
||||
|
@ -515,8 +522,18 @@ sub build {
|
|||
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)],
|
||||
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',
|
||||
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',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue