More work on print controller

This commit is contained in:
Alessandro Ranellucci 2015-01-03 23:25:55 +01:00
parent c06ce3b58c
commit 2c0d216c1a
15 changed files with 626 additions and 63 deletions

View file

@ -68,6 +68,7 @@ our $small_font = Wx::SystemSettings::GetFont(wxSYS_DEFAULT_GUI_FONT);
$small_font->SetPointSize(11) if !&Wx::wxMSW;
our $medium_font = Wx::SystemSettings::GetFont(wxSYS_DEFAULT_GUI_FONT);
$medium_font->SetPointSize(12);
our $grey = Wx::Colour->new(100,100,100);
sub OnInit {
my ($self) = @_;
@ -297,9 +298,22 @@ sub CallAfter {
sub show_printer_controller {
my ($self) = @_;
$self->{controller_frame} = Slic3r::GUI::Controller::Frame->new;
$self->{controller_frame} //= Slic3r::GUI::Controller::Frame->new;
$self->{controller_frame}->Show;
return $self->{controller_frame};
}
sub scan_serial_ports {
my ($self) = @_;
my @ports = ();
# TODO: Windows ports
# UNIX and OS X
push @ports, glob '/dev/{ttyUSB,ttyACM,tty.,cu.,rfcomm}*';
return @ports;
}
1;