mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-12 09:17:52 -06:00
More work on print controller
This commit is contained in:
parent
c06ce3b58c
commit
2c0d216c1a
15 changed files with 626 additions and 63 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue