NAME

Tk::PodViewer - Simple ROText based pod viewer.

SYNOPSIS

my $podviewer = $app->PodViewer->pack;
$podviewer->load('SomePerlFileWithPod.pm');

DESCRIPTION

Tk::PodViewer is a simple pod viewer. It inherits Tk::Frame, but delegates all options and methods to Tk::ROText.

It supports most of the pod tags. It ignores the following tags:

    =begin
    =end
    =for
    X<>
    Z<>

OPTIONS

-fixedfontfamily

Default value 'Hack'. Specifies the font family for tags that require a fixed font family.

-linkcolor

Default value '#0000FF' (blue). Specifies the foreground color for link tags.

METHODS

clear

Deletes all content and resets all stacks except the.

clearHistory

Resets the history stack.

configureTags

Call after widget initialization and in all zoom methods. Call this method after you make changes to any of the font options.

load($source)

Parses $source. $source can be a file name, a module name or a reference tp a string.

next

Only works after previous has been called. Loads the next source in the history.

previous

Only works after a link tag has been clicked. Loads the previous source in the history.

zoomIn

Increases font sizes by two pixels.

zoomNew($zoom)

Sets a new zoom size of original font sizes + $zoom pixels.

zoomOut

Decreases font sizes by two pixels.

zoomReset

Resets font sizes to zoom 0.

LICENSE

Same as Perl.

AUTHOR

Hans Jeuken (hanje at cpan dot org)

BUGS AND CAVEATS

Calling the configureTags method takes ages.

If you find any bugs, please contact the author.

TODO

Change the S command into real non breakable spaces instead of just a wrap to none.

Configure tags as the need arises instead of all at once.

SEE ALSO

Pod::Simple
Tk::ROText