Refactored the options group building to allow for more flexible layouts

This commit is contained in:
Alessandro Ranellucci 2012-10-25 11:24:56 +02:00
parent 31c2e50fc6
commit bbd7765f40
2 changed files with 119 additions and 79 deletions

View file

@ -397,6 +397,12 @@ sub build {
{
title => 'Horizontal shells',
options => [qw(solid_layers)],
lines => [
{
label => 'Solid layers',
options => [qw(solid_layers)],
},
],
},
]);
@ -722,7 +728,8 @@ sub append_optgroup {
my $self = shift;
my %params = @_;
my $optgroup = Slic3r::GUI::ConfigOptionsGroup->new(
my $class = $params{class} || 'Slic3r::GUI::ConfigOptionsGroup';
my $optgroup = $class->new(
parent => $self,
config => $self->GetParent->{config},
label_width => 200,