Gtk2::ImageView::Browser - A image browser and widget based off of 'Gtk2::ImageView'
Version 0.0.0
use Gtk2::ImageView::Browser; my $ivb = Gtk2::ImageView::Browser->new(); ...
my $ivb = = Gtk2::ImageView::Browser->new();
A internal function that is called when a directory is double clicked on.
Determines if it should show files matching /^./ or not.
If a arguement is given, it will set it to that. The value is a perl boolean.
With out an arguement, it gets the current setting.
When the object is originally created, this defaults to 0.
#don't displat dot files $ivb->dotfiles(0); #displat dot files $ivb->dotfiles(0); my $dotfiles=$ivb->dotfiles();
A internal function that is called when a file is double clicked on.
A internal function that is called when a file selection is changed.
Minimizes the sidebar, by setting HPaned to a position of 1. If the position of the the HPaned is greater than 1, it sets it to 1, else it sets it to a position of 230.
$ivb->fullscreen;
Called by the 'f' button.
This causes it to move to the next image. If there is no next image, it goes back to the first one.
$ivb->next;
This is called by the 'n' button.
This is called by various things when it is resized.
This calls invokes the windows methode and runs it.
#starts it in the current directory my $ivb->run; #starts it in a different directory my $ivb->run('/arc/pics');
This causes it to move to the previous image.
$ivb->prev;
This is called by the 'p' button.
This sets the directory to the specified one.
$ivb->setdir('/arc/pics'); if($self->{error}){ print "Error!\n"; }
This is called by the window created by run when it is closed.
This returns the widget that contains it all.
If this is called manually, you will need to add the accel stuff to the windows you use for the hot keys to work.
#starts it in the current directory my $widget=$ivb->widget(); #starts it in '/arc/pics' my $widget=$ivb->widget('/arc/pics'); #adds the accel stuff to the window for the hot keys to work. $window->add($ivb->{widget}); $window->add_accel_group($ivb->{widgets}{accels});
This retuns a window with the widget in it.
#starts it in the current direcotry my $window=$ivb->window(); #starts it in '/arc/pics' my $window=$ivb->window('/arc/pics');
This is called when the zoom button is clicked.
This is called by the 'zr' button for resetting the zoom.
This returns the current zoom type.
my $zoom=$ivb->zoomget;
This sets the zoom to a desired type.
#sets the zoom type to fit it to width $ivb->zoomset('w') #this only happens if you set it to something it does not support if($ivb->{error}){ print "Error!\n"; } #reset the zoom of the current image to $ivb->zoomset;
This blanks the error storage and is only meant for internal usage.
It does the following.
$self->{error}=undef; $self->{errorString}="";
The file path specified does not exist.
Invalid zoom type.
Toggle minimizing of the sidebar.
Resize the image to what the zoom level should be.
Cycle zoom types.
Go to the previous image.
Go to the next image.
The current level will be displayed to the right of the equals sign on the zoom button or may be fetched using '$ivb->zoomget'.
This zooms it to the width of the image.
This zooms the image to fit the window.
This sets the zoom to 1.
Zane C. Bowers, <vvelox at vvelox.net>
<vvelox at vvelox.net>
Please report any bugs or feature requests to bug-gtk2-imageview-browser at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Gtk2-ImageView-Browser. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
bug-gtk2-imageview-browser at rt.cpan.org
You can find documentation for this module with the perldoc command.
perldoc Gtk2::ImageView::Browser
You can also look for information at:
RT: CPAN's request tracker
http://rt.cpan.org/NoAuth/Bugs.html?Dist=Gtk2-ImageView-Browser
AnnoCPAN: Annotated CPAN documentation
http://annocpan.org/dist/Gtk2-ImageView-Browser
CPAN Ratings
http://cpanratings.perl.org/d/Gtk2-ImageView-Browser
Search CPAN
http://search.cpan.org/dist/Gtk2-ImageView-Browser/
Copyright 2009 Zane C. Bowers, all rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Gtk2::ImageView::Browser, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Gtk2::ImageView::Browser
CPAN shell
perl -MCPAN -e shell install Gtk2::ImageView::Browser
For more information on module installation, please visit the detailed CPAN module installation guide.