Curie/Component/MainWindow/Role/TTSWindow.pm untested

filter: Statementstmt 0.0% 0 / 27 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 6 Podpod n/a totaltotal 0.0% 0 / 35 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 use Renard::Incunabula::Common::Setup;
2 package Renard::Curie::Component::MainWindow::Role::TTSWindow;
3 # ABSTRACT: Role for TTS window
4 $Renard::Curie::Component::MainWindow::Role::TTSWindow::VERSION = '0.005';
5 use Moo::Role;
6 use Renard::Curie::Component::Outline;
7 use Renard::Incunabula::Common::Types qw(InstanceOf);
8 use Renard::Incunabula::Document::Types qw(DocumentModel);
9  
10 use Glib 'TRUE', 'FALSE';
11  
12 requires 'content_box';
13  
14 has tts_window => (
15 is => 'ro',
16 required => 1,
17 isa => InstanceOf['Renard::Curie::Component::TTSWindow'],
18 );
19  
20 after setup_window => method() {
21 if( $^O ne 'MSWin32' ) {
22 $self->tts_window->show_all;
23 $self->loop->add( $self->tts_window->synth_function );
24 }
25 };
26  
27 1;
28  
29 __END__