NAME

Tk::AppWindow::Ext::SideBars - Basic functionality for side bars.

SYNOPSIS

my $app = new Tk::AppWindow(@options,
   -extensions => ['SideBars'],
);
$app->MainLoop;

DESCRIPTION

Provides a primer for panels that contain a resizable YANoteBook for selecting various tools.

It inherits Tk::AppWindow::BaseClasses::Extension

CONFIG VARIABLES

Switch: -sidebariconsize

Default value 32.

METHODS

canRotateText

Returns true if facilities for rotating text are in place. On linux this means the command 'fc-list' works.

IconSize(?$size?)

Set and return the iconsize in the tabs of the notebooks

nbAdd($name, $panel, $tabside)

Creates a new notebook widget and assigns it to $panel. If you do not specify $tabside it is set to 'top'.

nbDelete($name)

Destroys notebook $name.

nbGetI($name)>

Returns a reference to notebook widget $name.

nbMaximize($name, $tab)

Maximizes notebook $name at the requested size of $tab

nbMinimize($name, $tab)

Minimizes notebook $name and saves the size of $tab.

nbTextSideI($name, $side)>

Specifies where the text should be shown relative to the image in the page tags of sidebar $name. Posible values are 'left', 'right', 'top', 'bottom' and 'none'. If you do not call this method for a notebook it will be treated as 'none'.

nbTextRotateI($name, $degrees)>

Specifies with how many degrees text on tags of sidebar $name should be rotated. If you do not call this method for a notebook it will be treated as 0 degrees.

pageAdd($notebook, $name, $image, $text, $statustext, $initialsize)

Adds a page to a notebook.

pageCount($notebook)

Returns the number of pages in $notebook.

pageDelete($notebook, $name)

Deletes a page from a notebook.

pageExists($notebook, $name)

Returns true if $name exists in $notebook.

pageSelectCall($page, @callback)

Creates a callback called when $page is selected.

pageUnselectCall($page, @callback)

Creates a callback called when $page is unselected.

AUTHOR

Hans Jeuken (hanje at cpan dot org)

BUGS

Unknown. If you find any, please contact the author.

SEE ALSO

Tk::AppWindow::BaseClasses::Extension
Tk::AppWindow::BaseClasses::PanelExtension
Tk::AppWindow