Padre::Wx::StatusBar - Encapsulates status bar customizations
Padre::Wx::StatusBar implements Padre's statusbar. It is the bottom pane holding various, err, status information on Padre.
Padre::Wx::StatusBar
The information shown are (in order):
Filename of current document, with a leading star if file has been updated and not saved
(Optional) Icon showing status of background tasks
(Optional) Mimetype of current document
Type of end of lines of current document
Position in current document
It inherits from Wx::StatusBar, so check wx documentation to see all the available methods that can be applied to it besides the added ones (see below).
Wx::StatusBar
my $statusbar = Padre::Wx::StatusBar->new( $main );
Create and return a new Padre statusbar. One should pass the $main Padre window as argument, to get a reference to the statusbar parent.
$main
$statusbar->clear;
Clear all the status bar fields, ie, they will display an empty string in all fields.
$statusbar->refresh;
Force an update of the document fields in the statusbar.
$statusbar->update_task_status;
Checks whether a task status icon update is in order and if so, changes the icon to one of the other states
$statusbar->update_pos;
Update the cursor position
$statusbar->on_resize( $event );
Handler for the EVT_SIZE $event. Used to move the task load bitmap to its position.
$event
Icons for background status courtesy of Mark James, at http://www.famfamfam.com/lab/icons/silk/.
Copyright 2008-2009 The Padre development team as listed in Padre.pm.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
The full text of the license can be found in the LICENSE file included with this module.
To install Padre, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Padre
CPAN shell
perl -MCPAN -e shell install Padre
For more information on module installation, please visit the detailed CPAN module installation guide.