lib/TUI/Gadgets/Const.pm

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