NAME
TUI::StdDlg::FileInfoPane - view displaying information about the focused file
HIERARCHY
TObject
TView
TFileInfoPane
SYNOPSIS
use TUI::StdDlg;
my $info = new_TFileInfoPane(
$bounds
);
DESCRIPTION
TFileInfoPane implements a view used by standard Turbo Vision file dialogs to display information about the currently focused file or directory.
The pane renders metadata such as name, size, date, and attributes of the active entry and updates its display automatically when the file selection changes. It is typically embedded alongside a file list within a TFileDialog.
The view is display-only and does not allow direct user interaction.
VARIABLES
The following global variables define the textual and date-related rendering used by TFileInfoPane.
$pmText
Text used to indicate post meridiem (PM) time.
$amText
Text used to indicate ante meridiem (AM) time.
$months
Array reference containing abbreviated month names. The first element is unused to allow 1-based month indexing.
CONSTRUCTOR
new
my $pane = TFileInfoPane->new(
bounds => $bounds
);
Creates a new file information pane.
- bounds
-
Bounding rectangle defining the position and size of the pane (TRect).
new_TFileInfoPane
my $pane = new_TFileInfoPane($bounds);
Factory-style constructor using positional arguments.
METHODS
draw
$pane->draw();
Renders the file information pane.
This method draws the textual representation of the currently focused file using an internal draw buffer.
getPalette
my $palette = $pane->getPalette();
Returns the palette used for rendering the file information pane.
handleEvent
$pane->handleEvent($event);
Processes events relevant to updating the displayed file information.
The pane reacts to selection and focus changes originating from other dialog components.
SEE ALSO
TUI::StdDlg::FileDialog, TUI::StdDlg::FileList, TUI::Views::View, TUI::Views::DrawBuffer
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).