NAME
Gtk2::GladeXML::OO - Object oriented interface to Glade.
SYNOPSIS
use Gtk2::GladeXML;
use Gtk2::GladeXML::OO;
our $gladexml = Gtk2::GladeXML->new('glade/example.glade');
$gladexml->signal_autoconnect_from_package('main');
sub AUTOLOAD { _autoload_gtk($gladexml, our $AUTOLOAD, @_); }
sub gtk_main_quit { Gtk2->main_quit; }
# Object _MUST_ be declared as "our"
our $myobject = MyObject->new();
Gtk2->main;
# ...and now callbacks in Glade can be:
#
# myobject->method <- Gtk2 will pass standard parameters to Your method
# myobject->method() <- without any parameters, ie. window->hide()
# myobject->method("param0", "param1") <- with Your parameters
#
# gtk_main_quit <- standard function interface, like before
# See example.glade and example.pl in example directory!
DESCRIPTION
This module provides object oriented interface in Glade callbacks. Now You can use in callbacks widget, Your objects or standard functions like before.
SUBROUTINES/METHODS
- _autoload_gtk($gladexml, our $AUTOLOAD, @_)
-
This method should be called with 3 parameters somewhere in AUTOLOAD sub in main package. In example:
sub AUTOLOAD { _autoload_gtk($gladexml, our $AUTOLOAD, @_); } # $galdexml - GladeXML object
- $Gtk2::GladeXML::OO::LOG
-
Set this variable to true for debug.
DEPENDENCIES
INCOMPATIBILITIES
None known.
BUGS AND LIMITATIONS
None known.
AUTHOR
Strzelecki £ukasz <strzelec@rswsystems.com>
LICENCE AND COPYRIGHT
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
See http://www.perl.com/perl/misc/Artistic.html
1 POD Error
The following errors were encountered while parsing the POD:
- Around line 153:
Non-ASCII character seen before =encoding in '£ukasz'. Assuming CP1252