| 1 | package TUI::Help::Const; | ||
| 2 | # ABSTRACT: constants for the help system | ||
| 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.000003'; | |
| 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 | MAXHELPTOPICID | ||
| 16 | ); | ||
| 17 | |||
| 18 | 8 | our %EXPORT_TAGS = ( | |
| 19 | |||
| 20 | cXXXX => [qw( | ||
| 21 | cHelpViewer | ||
| 22 | cHelpWindow | ||
| 23 | )], | ||
| 24 | |||
| 25 | wrapXXXX => [qw( | ||
| 26 | undefined | ||
| 27 | wrapping | ||
| 28 | notWrapping | ||
| 29 | )], | ||
| 30 | |||
| 31 | ); | ||
| 32 | |||
| 33 | # add all the other %EXPORT_TAGS ":class" tags to the ":all" class and | ||
| 34 | # @EXPORT_OK, deleting duplicates | ||
| 35 | { | ||
| 36 | 8 | my %seen; | |
| 37 | push | ||
| 38 | @EXPORT_OK, | ||
| 39 | 40 | grep {!$seen{$_}++} @{$EXPORT_TAGS{$_}} | |
| 40 | 8 | foreach keys %EXPORT_TAGS; | |
| 41 | push | ||
| 42 | 8 | @{$EXPORT_TAGS{all}}, | |
| 43 | @EXPORT_OK; | ||
| 44 | } | ||
| 45 | |||
| 46 | # When building helpfiles for 16-bit programs, a topic should never | ||
| 47 | # be assigned a number higher than 16379. In 32-bit programs there | ||
| 48 | # is no such limitation, but it is recommended that the numbers used | ||
| 49 | # be kept low for efficiency reasons. | ||
| 50 | 8 | ▶ | use constant MAXHELPTOPICID => 16379 << 16; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 51 | |||
| 52 | 8 | ▶ | use constant { |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 53 | 8 | undefined => 0, | |
| 54 | wrapping => 1, | ||
| 55 | notWrapping => 2, | ||
| 56 | 8 | }; | |
| 57 | |||
| 58 | 8 | ▶ | use constant { |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 59 | 8 | cHelpViewer => "\x06\x07\x08", | |
| 60 | cHelpWindow => "\x80\x81\x82\x83\x84\x85\x86\x87", | ||
| 61 | 8 | }; | |
| 62 | |||
| 63 | 8 | 1 | |
| 64 | |||
| 65 | __END__ | ||