Zane C. Bowers-Hadley > ZConf-Cron-GUI-GTK-1.0.0 > ZConf::Cron::GUI::GTK

Download:
ZConf-Cron-GUI-GTK-1.0.0.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Module Version: 1.0.0   Source  

NAME ^

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

VERSION ^

Version 1.0.0

SYNOPSIS ^

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


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

METHODS ^

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. ^

These methods are entirely related to the tray method.

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.

popup

This pops the menu up.

DIALOGS ^

ask

WINDOWS ^

At this time, no windows are supported.

ERROR CODES ^

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 ^

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

BUGS ^

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 ^

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

    perldoc ZConf::Cron::GUI

You can also look for information at:

ACKNOWLEDGEMENTS ^

COPYRIGHT & LICENSE ^

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.

syntax highlighting: