ZConf::Cron::GUI::GTK - Implements a GTK backend for ZConf::Cron::GUI


ZConf-Cron-GUI-GTK documentation  | view source Contained in the ZConf-Cron-GUI-GTK distribution.

Index


NAME

Top

ZConf::Cron::GUI::GTK - Implements a GTK backend for ZConf::Cron::GUI

VERSION

Top

Version 1.0.0

SYNOPSIS

Top

    use ZConf::Cron::GUI::GTK;




    my $zcc=$ZConf::Cron->new;
    my $zccg=ZConf::Cron::GUI::GTK->new({zccron=>$zcc});




METHODS

Top

new

This initializes it.

One arguement is taken and that is a hash value.

hash values

zccron

This is a ZConf::Cron object to use. If it is not specified, a new one will be created.

zcgui

This is the ZConf::GUI object. If it is not passed, a new one will be created.

crontab

Allows the crontabs to be managed.

This method is blocking.

   $zccg->crontab;
   if($zccg->{error}){
       print "Error!\n";
   }

tray

Creates a tray icon and menu.

    use Gtk2;
    Gtk2->init;
    my $guiID=$zccg->tray;
    $trayicon->show_all;
    Gtk2->main;

xpm

This returns a XPM icon for this module.

    my $xpm=$zccg->xpm;

xpmGtk2Image

This returns a Gtk2::Image object with it. This is done as getting a Gtk2::Image object from raw data is not a straight forward processes. It requires access to "/tmp/" to write the scratch file.

    my $image=$zccg->xpmGtk2Image;

dialogs

This returns the available dailogs.

windows

This returns a list of available windows.

errorblank

This blanks the error storage and is only meant for internal usage.

It does the following.

    $self->{error}=undef;
    $self->{errorString}="";

tray Related Methods.

Top

refreshMenuItem

This method refresheses the menu.

It takes one arguement and it is a hash reference.

hash reference keys

gui

This is the GUI ID of the tray GUI.

self

This is the ZConf::Cron::GUI::GTK object.

DIALOGS

Top

ask

WINDOWS

Top

At this time, no windows are supported.

ERROR CODES

Top

1

Initializing ZConf::Cron failed.

2

Could not run "gtk-gzccrontab" as it was not found in the path.

3

'gtk-gzccrontab' exited with a non-zero.

AUTHOR

Top

Zane C. Bowers, <vvelox at vvelox.net>

BUGS

Top

Please report any bugs or feature requests to bug-zconf-runner at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=ZConf-Runner. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

SUPPORT

Top

You can find documentation for this module with the perldoc command.

    perldoc ZConf::Cron::GUI




You can also look for information at:

* RT: CPAN's request tracker

http://rt.cpan.org/NoAuth/Bugs.html?Dist=ZConf-Cron-GUI-GTK

* AnnoCPAN: Annotated CPAN documentation

http://annocpan.org/dist/ZConf-Cron-GUI-GTK

* CPAN Ratings

http://cpanratings.perl.org/d/ZConf-Cron-GUI-GTK

* Search CPAN

http://search.cpan.org/dist/ZConf-Cron-GUI-GTK

ACKNOWLEDGEMENTS

Top

COPYRIGHT & LICENSE

Top


ZConf-Cron-GUI-GTK documentation  | view source Contained in the ZConf-Cron-GUI-GTK distribution.