lib/TUI/Gadgets/Const.pm

filter: Statementstmt 100% 39 / 39 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 9 / 9 Podpod n/a totaltotal 100% 48 / 48 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« lib/TUI/Editors.pm ↑ Summary lib/TUI/Help.pm »
1 package TUI::Gadgets::Const;
2 # ABSTRACT: constants for gadget components
3
4 8 ▶use 5.010;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 8 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 8 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
7
8 8 our $VERSION = '2.000002';
9 8 $VERSION =~ tr/_//d;
10 8 our $AUTHORITY = 'cpan:BRICKPOOL';
11
12 8 ▶use Exporter 'import';
Subroutine BEGIN: called CC=1 SCAR=0.0
13
14 8 our @EXPORT_OK = qw(
15 maxLineLength
16 );
17
18 8 our %EXPORT_TAGS = (
19
20 cmXXXX => [qw(
21 cmFndEventView
22 )],
23
24 cpXXXX => [qw(
25 cpMousePalette
26 )],
27
28 hlXXXX => [qw(
29 hlChangeDir
30 )],
31
32 );
33
34 8 ▶use TUI::StdDlg::Const qw( cmChangeDir );
Subroutine BEGIN: called CC=1 SCAR=0.0
35
36 # add all the other %EXPORT_TAGS ":class" tags to the ":all" class and
37 # @EXPORT_OK, deleting duplicates
38 {
39 8 my %seen;
40 push
41 @EXPORT_OK,
42 24 grep {!$seen{$_}++} @{$EXPORT_TAGS{$_}}
43 8 foreach keys %EXPORT_TAGS;
44 push
45 8 @{$EXPORT_TAGS{all}},
46 @EXPORT_OK;
47 }
48
49 # Constants for Gadgets events
50 8 ▶use constant {
Subroutine BEGIN: called CC=1 SCAR=0.0
51 8 cmFndEventView => 114,
52 8 };
53
54 # History id for the change directory dialog
55 8 ▶use constant {
Subroutine BEGIN: called CC=1 SCAR=0.0
56 8 hlChangeDir => cmChangeDir,
57 8 };
58
59 # Maximum line length inside TFileViewer
60 8 ▶use constant {
Subroutine BEGIN: called CC=1 SCAR=0.0
61 8 maxLineLength => 256,
62 8 };
63
64 # Palette for TClickTester
65 8 ▶use constant {
Subroutine BEGIN: called CC=1 SCAR=0.0
66 8 cpMousePalette => "\x07\x08",
67 8 };
68
69 8 1
70
71 __END__
« lib/TUI/Editors.pm ↑ Summary lib/TUI/Help.pm »