Expose all multi-extruder settings to the GUI

This commit is contained in:
Alessandro Ranellucci 2012-08-07 20:14:28 +02:00
parent 793301d319
commit 2548d5b993
4 changed files with 35 additions and 18 deletions

View file

@ -454,6 +454,13 @@ sub build {
},
]);
$self->add_options_page('Multiple Extruders', 'funnel.png', optgroups => [
{
title => 'Extruders',
options => [qw(perimeter_extruder infill_extruder support_material_extruder)],
},
]);
$self->add_options_page('Advanced', 'wrench.png', optgroups => [
{
title => 'Extrusion width',
@ -643,6 +650,17 @@ sub on_preset_loaded {
}
}
sub load_external_config {
my $self = shift;
$self->SUPER::load_external_config(@_);
Slic3r::GUI::warning_catcher($self)->(
"Your configuration was imported. However, Slic3r is currently only able to import settings "
. "for the first defined filament. We recommend you don't use exported configuration files "
. "for multi-extruder setups and rely on the built-in preset management system instead.")
if @{ $self->{config}->nozzle_diameter } > 1;
}
package Slic3r::GUI::Tab::Page;
use Wx qw(:misc :panel :sizer);
use base 'Wx::ScrolledWindow';