1 # This file is part of the DEPS/graph-includes package
3 # (c) 2005,2006 Yann Dirson <ydirson@altern.org>
4 # Distributed under version 2 of the GNU GPL.
6 package graphincludes
::project
::default;
10 use base
qw(graphincludes::project);
11 use Hash
::Util
qw(lock_keys unlock_keys);
12 use File
::Spec
::Functions
qw(splitpath);
14 use graphincludes
::params
;
20 $self = $class->SUPER::new
(@_);
23 bless ($self, $class);
24 $self->{IGNOREDDEPS
} = $self->ignored_deps();
30 sub nlevels
{ return 2; }
33 my ($file,$level) = @_;
34 $level = $graphincludes::params
::minshow
unless defined $level;
36 $file =~ s/^$self->{PFXSTRIP}// if defined $self->{PFXSTRIP
};
39 } elsif ($level == 1) {
40 $file =~ s/\.[^.]*$//;
42 } elsif ($level == 2) {
43 (undef, my $dirname, my $filename) = splitpath
($file);
47 return '<' . $self->filelabel($file, $level - 1) . '>';
65 my $lbl = $self->{IGNOREDEDGES
}->{$src}->{$dst};
67 my $special = $self->SUPER::special_edge
($src,$dst);
70 $special->{color
} = 'gray';
71 $special->{constraint
} = 'false';
72 $special->{label
} = [ $lbl ];