diff options
author | Alessandro Ranellucci <aar@cpan.org> | 2011-11-25 13:58:13 +0400 |
---|---|---|
committer | Alessandro Ranellucci <aar@cpan.org> | 2011-11-25 14:10:35 +0400 |
commit | 3c0ea0b57fe757b656d9a635c0d4786aee5ff827 (patch) | |
tree | e3db1244315c64b0fa37c0aa9fe7ae4461046e3d /lib/Slic3r/GUI | |
parent | 465bef17485bb167827c907a5ef6a71c05a45b47 (diff) |
New --extrusion-width-ratio option. #8
Diffstat (limited to 'lib/Slic3r/GUI')
-rw-r--r-- | lib/Slic3r/GUI/OptionsGroup.pm | 2 | ||||
-rw-r--r-- | lib/Slic3r/GUI/SkeinPanel.pm | 20 |
2 files changed, 15 insertions, 7 deletions
diff --git a/lib/Slic3r/GUI/OptionsGroup.pm b/lib/Slic3r/GUI/OptionsGroup.pm index 3f4f9a849..877aaae7e 100644 --- a/lib/Slic3r/GUI/OptionsGroup.pm +++ b/lib/Slic3r/GUI/OptionsGroup.pm @@ -32,7 +32,7 @@ sub new { $size = Wx::Size->new($opt->{width} || -1, $opt->{height} || -1); } - $field = Wx::TextCtrl->new($parent, -1, Slic3r::Config->get($opt_key), + $field = Wx::TextCtrl->new($parent, -1, Slic3r::Config->get($opt_key) || '', Wx::wxDefaultPosition, $size, $style); EVT_TEXT($parent, $field, sub { Slic3r::Config->set($opt_key, $field->GetValue) }); push @reload_callbacks, sub { $field->SetValue(Slic3r::Config->get($opt_key)) }; diff --git a/lib/Slic3r/GUI/SkeinPanel.pm b/lib/Slic3r/GUI/SkeinPanel.pm index 55459642d..f59d50316 100644 --- a/lib/Slic3r/GUI/SkeinPanel.pm +++ b/lib/Slic3r/GUI/SkeinPanel.pm @@ -51,6 +51,10 @@ sub new { title => 'Custom GCODE', options => [qw(start_gcode end_gcode)], }, + extrusion => { + title => 'Extrusion', + options => [qw(extrusion_width_ratio)], + }, ); $self->{panels} = \%panels; @@ -73,13 +77,17 @@ sub new { return $tab; }; - my $tab1 = $make_tab->([qw(transform accuracy skirt)], [qw(print retract)]); - my $tab2 = $make_tab->([qw(printer filament)], [qw(speed)]); - my $tab3 = $make_tab->([qw(gcode)]); + my @tabs = ( + $make_tab->([qw(transform accuracy skirt)], [qw(print retract)]), + $make_tab->([qw(printer filament)], [qw(speed)]), + $make_tab->([qw(gcode)]), + $make_tab->([qw(extrusion)]), + ); - $tabpanel->AddPage($tab1, "Print Settings"); - $tabpanel->AddPage($tab2, "Printer and Filament"); - $tabpanel->AddPage($tab3, "Start/End GCODE"); + $tabpanel->AddPage($tabs[0], "Print Settings"); + $tabpanel->AddPage($tabs[1], "Printer and Filament"); + $tabpanel->AddPage($tabs[2], "Start/End GCODE"); + $tabpanel->AddPage($tabs[3], "Advanced"); my $buttons_sizer; { |