| 1 | package TUI::Outline::Const; | ||
| 2 | # ABSTRACT: constants for outline views | ||
| 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 | ); | ||
| 16 | |||
| 17 | 8 | our %EXPORT_TAGS = ( | |
| 18 | |||
| 19 | ovXXXX => [qw( | ||
| 20 | ovExpanded | ||
| 21 | ovChildren | ||
| 22 | ovLast | ||
| 23 | )], | ||
| 24 | |||
| 25 | cmXXXX => [qw( | ||
| 26 | cmOutlineItemSelected | ||
| 27 | )], | ||
| 28 | |||
| 29 | cpXXXX => [qw( | ||
| 30 | cpOutlineViewer | ||
| 31 | )], | ||
| 32 | |||
| 33 | ); | ||
| 34 | |||
| 35 | # add all the other %EXPORT_TAGS ":class" tags to the ":all" class and | ||
| 36 | # @EXPORT_OK, deleting duplicates | ||
| 37 | { | ||
| 38 | 8 | my %seen; | |
| 39 | push | ||
| 40 | @EXPORT_OK, | ||
| 41 | 40 | grep {!$seen{$_}++} @{$EXPORT_TAGS{$_}} | |
| 42 | 8 | foreach keys %EXPORT_TAGS; | |
| 43 | push | ||
| 44 | 8 | @{$EXPORT_TAGS{all}}, | |
| 45 | @EXPORT_OK; | ||
| 46 | } | ||
| 47 | |||
| 48 | # Outline viewer node flags (passed to TOutlineViewer::getGraph) | ||
| 49 | |||
| 50 | 8 | ▶ | use constant { |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 51 | 8 | ovExpanded => 0x01, | |
| 52 | ovChildren => 0x02, | ||
| 53 | ovLast => 0x04, | ||
| 54 | 8 | }; | |
| 55 | |||
| 56 | # Commands | ||
| 57 | |||
| 58 | 8 | ▶ | use constant { |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 59 | 8 | cmOutlineItemSelected => 301, | |
| 60 | 8 | }; | |
| 61 | |||
| 62 | # TOutlineViewer palette layout | ||
| 63 | |||
| 64 | 8 | ▶ | use constant cpOutlineViewer => "\x06\x07\x03\x08"; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 65 | |||
| 66 | 8 | 1 | |
| 67 | |||
| 68 | __END__ | ||