lib/TUI/App/Const.pm

filter: Statementstmt 100% 48 / 48 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 12 / 12 Podpod n/a totaltotal 100% 60 / 60 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« lib/TUI/Gadgets/LineCollection.pm ↑ Summary lib/TUI/ColorSel/Const.pm »
1 package TUI::App::Const;
2 # ABSTRACT: constants for TUI::App and related components
3
4 55 ▶use 5.010;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 55 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 55 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
7
8 55 our $VERSION = '2.000002';
9 55 $VERSION =~ tr/_//d;
10 55 our $AUTHORITY = 'cpan:BRICKPOOL';
11
12 55 ▶use Exporter 'import';
Subroutine BEGIN: called CC=1 SCAR=0.0
13
14 55 our @EXPORT_OK = qw(
15 );
16
17 55 our %EXPORT_TAGS = (
18
19 cpXXXX => [qw(
20 cpBackground
21 cpAppColor
22 cpAppBlackWhite
23 cpAppMonochrome
24 )],
25
26 hcXXXX => [qw(
27 hcNew
28 hcOpen
29 hcSave
30 hcSaveAs
31 hcSaveAll
32 hcChangeDir
33 hcDosShell
34 hcExit
35
36 hcUndo
37 hcCut
38 hcCopy
39 hcPaste
40 hcClear
41
42 hcTile
43 hcCascade
44 hcCloseAll
45 hcResize
46 hcZoom
47 hcNext
48 hcPrev
49 hcClose
50 )],
51
52 apXXXX => [qw(
53 apColor
54 apBlackWhite
55 apMonochrome
56 )],
57
58 );
59
60 # add all the other %EXPORT_TAGS ":class" tags to the ":all" class and
61 # @EXPORT_OK, deleting duplicates
62 {
63 55 my %seen;
64 push
65 @EXPORT_OK,
66 1540 grep {!$seen{$_}++} @{$EXPORT_TAGS{$_}}
67 55 foreach keys %EXPORT_TAGS;
68 push
69 55 @{$EXPORT_TAGS{all}},
70 @EXPORT_OK;
71 }
72
73 # Turbo Vision 2.0 Color Palettes
74
75 55 ▶use constant cpBackground => "\x01"; # background palette
Subroutine BEGIN: called CC=1 SCAR=0.0
76
77 55 ▶use constant cpAppColor =>
Subroutine BEGIN: called CC=1 SCAR=0.0
78 "\x71\x70\x78\x74\x20\x28\x24\x17\x1F\x1A\x31\x31\x1E\x71\x1F".
79 "\x37\x3F\x3A\x13\x13\x3E\x21\x3F\x70\x7F\x7A\x13\x13\x70\x7F\x7E".
80 "\x70\x7F\x7A\x13\x13\x70\x70\x7F\x7E\x20\x2B\x2F\x78\x2E\x70\x30".
81 "\x3F\x3E\x1F\x2F\x1A\x20\x72\x31\x31\x30\x2F\x3E\x31\x13\x38\x00".
82 "\x17\x1F\x1A\x71\x71\x1E\x17\x1F\x1E\x20\x2B\x2F\x78\x2E\x10\x30".
83 "\x3F\x3E\x70\x2F\x7A\x20\x12\x31\x31\x30\x2F\x3E\x31\x13\x38\x00".
84 "\x37\x3F\x3A\x13\x13\x3E\x30\x3F\x3E\x20\x2B\x2F\x78\x2E\x30\x70".
85 "\x7F\x7E\x1F\x2F\x1A\x20\x32\x31\x71\x70\x2F\x7E\x71\x13\x78\x00".
86 55 "\x37\x3F\x3A\x13\x13\x30\x3E\x1E"; # help colors
87
88 55 ▶use constant cpAppBlackWhite =>
Subroutine BEGIN: called CC=1 SCAR=0.0
89 "\x70\x70\x78\x7F\x07\x07\x0F\x07\x0F\x07\x70\x70\x07\x70\x0F".
90 "\x07\x0F\x07\x70\x70\x07\x70\x0F\x70\x7F\x7F\x70\x07\x70\x07\x0F".
91 "\x70\x7F\x7F\x70\x07\x70\x70\x7F\x7F\x07\x0F\x0F\x78\x0F\x78\x07".
92 "\x0F\x0F\x0F\x70\x0F\x07\x70\x70\x70\x07\x70\x0F\x07\x07\x08\x00".
93 "\x07\x0F\x0F\x07\x70\x07\x07\x0F\x0F\x70\x78\x7F\x08\x7F\x08\x70".
94 "\x7F\x7F\x7F\x0F\x70\x70\x07\x70\x70\x70\x07\x7F\x70\x07\x78\x00".
95 "\x70\x7F\x7F\x70\x07\x70\x70\x7F\x7F\x07\x0F\x0F\x78\x0F\x78\x07".
96 "\x0F\x0F\x0F\x70\x0F\x07\x70\x70\x70\x07\x70\x0F\x07\x07\x08\x00".
97 55 "\x07\x0F\x07\x70\x70\x07\x0F\x70"; # help colors
98
99 55 ▶use constant cpAppMonochrome =>
Subroutine BEGIN: called CC=1 SCAR=0.0
100 "\x70\x07\x07\x0F\x70\x70\x70\x07\x0F\x07\x70\x70\x07\x70\x00".
101 "\x07\x0F\x07\x70\x70\x07\x70\x00\x70\x70\x70\x07\x07\x70\x07\x00".
102 "\x70\x70\x70\x07\x07\x70\x70\x70\x0F\x07\x07\x0F\x70\x0F\x70\x07".
103 "\x0F\x0F\x07\x70\x07\x07\x70\x07\x07\x07\x70\x0F\x07\x07\x70\x00".
104 "\x70\x70\x70\x07\x07\x70\x70\x70\x0F\x07\x07\x0F\x70\x0F\x70\x07".
105 "\x0F\x0F\x07\x70\x07\x07\x70\x07\x07\x07\x70\x0F\x07\x07\x01\x00".
106 "\x70\x70\x70\x07\x07\x70\x70\x70\x0F\x07\x07\x0F\x70\x0F\x70\x07".
107 "\x0F\x0F\x07\x70\x07\x07\x70\x07\x07\x07\x70\x0F\x07\x07\x01\x00".
108 55 "\x07\x0F\x07\x70\x70\x07\x0F\x70"; # help colors
109
110 # Standard application help contexts
111
112 # Note: range 0xFF00 - 0xFFFF of help contexts are reserved by Borland
113 55 ▶use constant {
Subroutine BEGIN: called CC=1 SCAR=0.0
114 55 hcNew => 0xFF01,
115 hcOpen => 0xFF02,
116 hcSave => 0xFF03,
117 hcSaveAs => 0xFF04,
118 hcSaveAll => 0xFF05,
119 hcChangeDir => 0xFF06,
120 hcDosShell => 0xFF07,
121 hcExit => 0xFF08,
122 55 };
123
124 55 ▶use constant {
Subroutine BEGIN: called CC=1 SCAR=0.0
125 55 hcUndo => 0xFF10,
126 hcCut => 0xFF11,
127 hcCopy => 0xFF12,
128 hcPaste => 0xFF13,
129 hcClear => 0xFF14,
130 55 };
131
132 55 ▶use constant {
Subroutine BEGIN: called CC=1 SCAR=0.0
133 55 hcTile => 0xFF20,
134 hcCascade => 0xFF21,
135 hcCloseAll => 0xFF22,
136 hcResize => 0xFF23,
137 hcZoom => 0xFF24,
138 hcNext => 0xFF25,
139 hcPrev => 0xFF26,
140 hcClose => 0xFF27,
141 55 };
142
143 # TApplication palette entries
144
145 55 ▶use constant {
Subroutine BEGIN: called CC=1 SCAR=0.0
146 55 apColor => 0,
147 apBlackWhite => 1,
148 apMonochrome => 2,
149 55 };
150
151 55 1
152
153 __END__
« lib/TUI/Gadgets/LineCollection.pm ↑ Summary lib/TUI/ColorSel/Const.pm »