Refactored the options group building to allow for more flexible layouts

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

No files matched your search

+8 -1
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,