AppWindow/Ext/SDI.pm untested

filter: Statementstmt 0.0% 0 / 30 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 13 Podpod 0.0% 0 / 8 totaltotal 0.0% 0 / 53 CC 2 SCAR 9.4
CC
2
Cov
0%
CmdDocNew
6.0
new
2.0
CommandDocSaveAll
2.0
CRAP 2.6
1 package Tk::AppWindow::Ext::SDI;
2  
3 =head1 NAME
4  
5 Tk::AppWindow::Ext::SDI - single document interface
6  
7 =cut
8  
9 use strict;
10 use warnings;
11 use Carp;
12  
13 use vars qw($VERSION);
14 $VERSION="0.17";
15  
16 use base qw( Tk::AppWindow::Ext::MDI );
17  
18 =head1 SYNOPSIS
19  
20 my $app = new Tk::AppWindow(@options,
21 -contentmanagerclass => 'Tk::MyContentHandler',
22 -extensions => ['SDI'],
23 );
24 $app->MainLoop;
25  
26 =head1 DESCRIPTION
27  
28 Provides a single document interface to your application.
29 Inherits L<Tk::AppWindow::Ext::MDI>. See also there.
30  
31 =cut
32  
33 sub new {
34 my $class = shift;
35 my $self = $class->SUPER::new(@_);
36  
37 return $self;
38 }
39  
40 sub CmdDocNew {
41 my $self = shift;
42 if ($self->CmdDocClose) {
43 return $self->SUPER::CmdDocNew(@_)
44 }
45 return 0
46 }
47  
48 sub CommandDocSaveAll {
49 return ()
50 }
51  
52 sub ContentSpace {
53 return $_[0]->WorkSpace;
54 }
55  
56 sub CreateInterface {}
57  
58 sub docOpenDialog {
59 my $self = shift;
60 return $self->pickFileOpen(@_);
61 }
62  
63 sub MenuSaveAll {
64 return ()
65 }
66  
67 sub ToolSaveAll {
68 return ()
69 }
70  
71 =head1 AUTHOR
72  
73 Hans Jeuken (hanje at cpan dot org)
74  
75 =head1 BUGS
76  
77 Unknown. If you find any, please contact the author.
78  
79 =head1 SEE ALSO
80  
81 =over 4
82  
83 =item L<Tk::AppWindow>
84  
85 =item L<Tk::AppWindow::BaseClasses::Extension>
86  
87 =item L<Tk::AppWindow::Ext::MDI>
88  
89 =back
90  
91 =cut
92  
93 1;
94  
95 __END__