File: path_tre.pm

package info (click to toggle)
tetex-base 3.0.dfsg.3-5etch1
  • links: PTS
  • area: main
  • in suites: etch
  • size: 239,592 kB
  • ctags: 10,610
  • sloc: xml: 103,461; perl: 9,398; ruby: 2,850; python: 1,551; php: 1,067; sh: 981; lisp: 494; makefile: 371; awk: 88
file content (36 lines) | stat: -rw-r--r-- 851 bytes parent folder | download | duplicates (13)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#D \module
#D   [       file=path\_tre.pm,
#D        version=1999.05.05,
#D          title=Path modules, 
#D       subtitle=selecting a path, 
#D         author=Hans Hagen,
#D           date=\currentdate,
#D      copyright={PRAGMA / Hans Hagen \& Ton Otten}]
#C
#C This module is part of the \CONTEXT\ macro||package and is
#C therefore copyrighted by \PRAGMA. See licen-en.pdf for 
#C details. 

#D Not yet documented, source will be cleaned up. 

package Tk::path_tre ; 

use Tk;
require Tk::DirTree ;

use base  qw(Tk::DirTree);
use strict;

Construct Tk::Widget 'PathTree';

sub ClassInit
  { my ($class,$mw) = @_ ;
    return $class -> SUPER::ClassInit ($mw) }

sub dirnames
  { my ( $w, $dir ) = @_ ;
    unless ($dir=~/\//) { $dir .= '/' }
    my @names = $w->Callback("-dircmd", $dir, $w->cget("-showhidden"));
    return( @names ) }

__END__