Files
OrcaSlicer-bambulab/lib/Slic3r/GUI/ProgressStatusBar.pm
T

19 lines
374 B
Perl
Raw Normal View History

# Status bar at the bottom of the main screen.
2018-08-30 11:40:06 +02:00
# Now it just implements cancel cb on perl side, every other functionality is
# in C++
2018-08-30 11:40:06 +02:00
package Slic3r::GUI::ProgressStatusBar;
2014-06-14 19:54:18 +02:00
use strict;
use warnings;
2018-08-29 18:02:10 +02:00
our $cancel_cb;
2014-06-14 19:54:18 +02:00
sub SetCancelCallback {
my $self = shift;
my ($cb) = @_;
2018-08-29 18:02:10 +02:00
$cancel_cb = $cb;
2018-08-30 11:40:06 +02:00
$cb ? $self->ShowCancelButton : $self->HideCancelButton;
2014-06-14 19:54:18 +02:00
}
1;