PPresenter
view release on metacpan or search on metacpan
PPresenter/Export/Website/HTML.pm view on Meta::CPAN
Starting the export of you presentation into a website.
Each of the slides will be shown, and then has its picture taken.
Do not touch your mouse while the processing is going on.
TEXT
, -bitmap => 'info'
, -buttons => [ 'OK', 'Cancel' ]
)->Show;
$show->busy(1);
my $dir = $export->{-outputDir};
-d $dir || mkdir $dir, 0755
or die "Cannot create directory $dir: $^E.\n";
my @slides = $export->selectedSlides($show);
my @viewports = $export->selectedViewports($show);
my (@slidelinks, @mainlinks);
$export->mapExportedPhases
PPresenter/Export/Website/HTML.pm view on Meta::CPAN
( $show
, sub { my ($export, $show, $slide, $viewports) = @_;
($previous, $this, $next) = ($this, $next, shift @slidelinks);
$export->makeSlide($show, $slide, $viewports
, $export->slide2filename($slide), $previous, $next);
}
);
$export->makeMainPage($show, $export->slide2filename, \@mainlinks );
$show->busy(0);
$parent->Dialog
( -title => 'Ready'
, -text => 'The website is ready.'
, -bitmap => 'info'
, -buttons => [ 'OK' ]
)->Show;
$export;
}
PPresenter/Show.pm view on Meta::CPAN
}
return unless defined $next_slide;
undef $show->{proceed_after};
print $show->timeStamp,": showing $next_slide->{number} \"$next_slide\".\n";
# Show new slide.
$show->busy(1);
$next_slide->prepare->show;
$show->busy(0);
$show->{current_slide} = $next_slide;
$show->{current_slide_number} = $next_slide->{number};
$show->{control}->update($show, $next_slide)->sync;
$next_slide->startProgram($show);
}
# Some of the information about the show will be copied to the presenter,
# but most not.
PPresenter/Show.pm view on Meta::CPAN
foreach (@{$show->{slides}})
{ if($_->isActive) {map {$set{$_}++; $count{$_}++} $_->tags}
else {map {$clear{$_}++; $count{$_}++} $_->tags}
}
map { [ $_, $count{$_}, $set{$_}||0, $clear{$_}||0 ] }
sort keys %count;
}
sub slideSelectionChanged() {shift->{control}->slideSelectionChanged}
sub busy($) {my ($show, $busy) = @_; $show->{control}->busy($busy)}
#
# TickTac
#
sub clockTic($)
{ my $show = shift;
my $interval = $show->{-clockTics};
my $slide = $show->{current_slide};
PPresenter/Viewport/Control.pm view on Meta::CPAN
$viewport->{-showNeighbours} = 1;
$viewport->packViewport;
}
sub showControls($)
{ my ($viewport, $do_show) = @_;
$do_show ? $viewport->add_controls : $viewport->remove_controls;
$viewport;
}
sub busy($)
{ my ($viewport, $on) = @_;
$on ? $viewport->{screen}->Busy : $viewport->{screen}->Unbusy;
$viewport;
}
sub packViewport()
{ my $viewport = shift;
# Take all widgets from the viewport.
my $screen = $viewport->{screen};
my @components = $screen->packSlaves;
@components && map {$_->packForget} @components;
( run in 0.342 second using v1.01-cache-2.11-cpan-3cd7ad12f66 )