ZConf::RSS::GUI::GTK - Providees the GTK backend for ZConf::RSS::GUI.
Version 0.0.1
use ZConf::RSS::GUI::GTK; my $zcrssgtk = ZConf::RSS::GUI::GTK->new(); ...
This is object returned by ZConf::RSS.
my $zcrssgtk=ZConf::RSS::GUI::GTK->new({obj=>$obj}); if($zcrssgtk->{error}){ print "Error!\n"; }
This calls a dialog for creating a new feed. It will also init Gtk2 and start it's main loop.
If GTK is already inited and you don't want the main loop exited, use addFeedDialog.
One agruement is accepted and it is the URL to set it to by default. If not specified, '' is used.
$zcrssgtk->addFeed('http://foo.bar/rss.xml'); if($zcrssgtk->{error}){ print "Error!\n"; }
A dialog for adding a new feed.
One arguement is taken and it is a hash.
This is GUI ID to update after it is called. If this is not defined, no attempted to update it will be made.
This is the URL to set it to initially. If this is not defined, it is set to ''.
$zcrssgtk->addFeedDialog({ url=>'http://foo.bar/rss.xml', }) if($zcrssgtk->{error}){ print "Error!\n"; }
One arguement is taken and it is a the GUI ID for the manage VBox in question.
$zcrssgtk->addFeedDialog( $guiID ); if($zcrssgtk->{error}){ print "Error!\n"; }
Invokes the view window.
$zcrssgtk->manage; if($zcrssgtk->{error}){ print "Error!\n"; }
This creates a VBox for the manage GUI and returns the GUI ID of it.
If this is set to true, the quit selection under the misc functions menu will not be present.
my $guiID=$zcrssgtk->manageVBox; if($zcrssgtk->{error}){ print "Error!\n"; }else{ $window=Gtk2::Window->new; $window->set_default_size(750, 400); $window->set_title('ZConf::RSS: manage'); $window->add($zcrssgtk->{gui}{$guiID}{vbox}); }
This generates the manage window.
Do not show the quit selection in the menu.
If the window is closed, quit the main GTK loop.
Removes the GUI upon close.
Gtk2->init; my $guiID=$zcrssgtk->manageWindow; if($zcrssgtk->{error}){ print "Error!\n"; }else{ $zcrssgtk->{gui}{$guiID}{window}->show; $Gtk2->main; }
This is the modifies the currently selected feed.
Only one arguement is required and it is GUI ID.
$zcrssgtk->modifyFeedDialog($guiID); if($zcrssgtk->{error}){ print "Error!\n"; }
One arguement is taken and it is the GUI ID.
$zcrssgtk->removeFeedDialog($guiID); if($zcrssgtk->{error}){ print "Error!\n"; }
$zcrssgtk->removeTemplateDialog($guiID); if($zcrssgtk->{error}){ print "Error!\n"; }
$zcrssgtk->view; if($zcrssgtk->{error}){ print "Error!\n"; }
This creates a VBox for the view GUI and returns the GUI ID of it.
my $guiID=$zcrssgtk->viewVBox; if($zcrssgtk->{error}){ print "Error!\n"; }else{ $window=Gtk2::Window->new; $window->set_default_size(750, 400); $window->set_title('ZConf::RSS: view'); $window->add($zcrssgtk->{gui}{$guiID}{vbox}); }
This generates the view window.
Do not show the quit selection the menu.
Gtk2->init; my $guiID=$zcrssgtk->viewWindow; if($zcrssgtk->{error}){ print "Error!\n"; }else{ $zcrssgtk->{gui}{$guiID}{window}->show; $Gtk2->main; }
This updates the updates the feed view.
$zcrssgtk->updateFeed($guiID);
This updates the feed list.
This updates the template list for a manage window.
One arguement is required and it is a GUI ID for the manage window in question.
$zcrssgtk->updateTemplateList($guiID); if($zcrssgtk->{error}){ print "Error!\n"; }
This updates template text for the specified GUI ID.
$zcrssgtl->updateTemplateText($guiID); if($zcrssgtk->{error}){ print "Error!\n"; }
This returns a array of available dialogs.
my @dialogs=$zcrssgtk->dialogs; if($zcrssgtk->{error}){ print "Error!\n"; }
my @windows=$zcrssGui->windows; if($zcrssGui->{error}){ print "Error!\n"; }
This blanks the error storage and is only meant for internal usage.
It does the following.
$self->{error}=undef; $self->{errorString}="";
Failed to initiate ZConf::RSS.
Failed to initiate ZConf::GUI.
Adding the new feed failed.
No GUI ID specified.
Backend errored.
Removing the old feed for the purpose of renaming it failed.
Please not that unless working directly and specifically with a backend, windows and dialogs are effectively the same in that they don't return until the window exits, generally.
This adds a new a new feed.
This allows the RSS feeds to be managed along with the templates.
This allows the RSS feeds to be viewed.
Zane C. Bowers, <vvelox at vvelox.net>
<vvelox at vvelox.net>
Please report any bugs or feature requests to bug-zconf-devtemplate at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=ZConf-RSS-GUI-GTK. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
bug-zconf-devtemplate at rt.cpan.org
You can find documentation for this module with the perldoc command.
perldoc ZConf::RSS::GUI
You can also look for information at:
RT: CPAN's request tracker
http://rt.cpan.org/NoAuth/Bugs.html?Dist=ZConf::RSS::GUI::GTK
AnnoCPAN: Annotated CPAN documentation
http://annocpan.org/dist/ZConf::RSS::GUI::GTK
CPAN Ratings
http://cpanratings.perl.org/d/ZConf::RSS::GUI::GTK
Search CPAN
http://search.cpan.org/dist/ZConf::RSS::GUI::GTK/
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 ZConf::RSS::GUI::GTK, copy and paste the appropriate command in to your terminal.
cpanm
cpanm ZConf::RSS::GUI::GTK
CPAN shell
perl -MCPAN -e shell install ZConf::RSS::GUI::GTK
For more information on module installation, please visit the detailed CPAN module installation guide.