New --no-plater and --gui-mode options. #604

This commit is contained in:
Alessandro Ranellucci 2013-03-09 16:43:09 +01:00
parent af50272b3b
commit 9247b3e9f4
5 changed files with 41 additions and 19 deletions

View file

@ -39,6 +39,9 @@ use constant MI_WEBSITE => &Wx::NewId;
use constant MI_DOCUMENTATION => &Wx::NewId;
our $datadir;
our $no_plater;
our $mode;
our $Settings = {
_ => {
mode => 'simple',
@ -79,7 +82,10 @@ sub OnInit {
Wx::Image::AddHandler(Wx::PNGHandler->new);
my $frame = Wx::Frame->new(undef, -1, 'Slic3r', wxDefaultPosition, [760, 470], wxDEFAULT_FRAME_STYLE);
$frame->SetIcon(Wx::Icon->new("$Slic3r::var/Slic3r_128px.png", wxBITMAP_TYPE_PNG) );
$self->{skeinpanel} = Slic3r::GUI::SkeinPanel->new($frame, mode => $Settings->{_}{mode});
$self->{skeinpanel} = Slic3r::GUI::SkeinPanel->new($frame,
mode => $mode // $Settings->{_}{mode},
no_plater => $no_plater,
);
$self->SetTopWindow($frame);
# status bar