Config-Model-CursesUI
view release on metacpan or search on metacpan
lib/Config/Model/CursesUI.pm view on Meta::CPAN
my $y = 0;
if ($leaf->value_type eq 'reference') {
$win -> add ( undef, 'Label',
'-y' => $y++,
-text => "Enum values are taken from:"
) ;
foreach my $c_obj ($leaf->reference_object->compute_obj) {
my $button ;
my $path = $c_obj -> user_formula ;
if (defined $path) {
my $target = $leaf->grab($path) ;
my $p_target = $target->parent ;
my $n_target = $target->element_name ;
my $go = sub { $self->scan('element',$p_target, $n_target) ; } ;
$button = { -label => "< go to '$path' >", -onpress => $go } ;
}
else {
my $go = sub {$self->{cui}->fatalerror( $c_obj->compute_info )} ;
$button = { -label => "< info on undef '$path' >",
( run in 0.595 second using v1.01-cache-2.11-cpan-3cd7ad12f66 )