NAME
TDirEntry - directory entry record used by standard dialogs
SYNOPSIS
use TUI::StdDlg;
my $entry = TDirEntry->new(
displayText => 'etc',
directory => '/etc'
);
my $text = $entry->text;
my $dir = $entry->dir;
DESCRIPTION
TDirEntry represents a single directory entry used by the standard dialog subsystem. It is a lightweight data object that stores the display text and the associated directory path.
This class is not derived from TObject and does not participate in the view hierarchy. It exists solely as a structured data container and is used by collections and list boxes to represent directory items.
CONSTRUCTOR
new
my $entry = TDirEntry->new(
displayText => $text,
directory => $dir
);
Creates a new directory entry.
- displayText
-
Text shown to the user for this directory entry (Str).
- directory
-
Filesystem path associated with this entry (Str).
new_TDirEntry
my $entry = new_TDirEntry($txt, $dir);
Factory-style constructor using positional arguments.
METHODS
text
my $text = $entry->text;
Returns the display text of the directory entry.
dir
my $dir = $entry->dir;
Returns the directory path associated with the entry.
SEE ALSO
TDirCollection, TDirListBox, TChDirDialog
AUTHORS
Borland International (original Turbo Vision design)
J. Schneider <brickpool@cpan.org> (Perl implementation and maintenance)
COPYRIGHT AND LICENSE
Copyright (c) 1990-1994, 1997 by Borland International
Copyright (c) 2026 the "AUTHORS" as listed above.
This software is licensed under the MIT license (see the LICENSE file, which is part of the distribution).