|
NB If you want to generate code from the old glade (versions <= 0.6.4) you need to download the old package Glade-Perl This is a collection of modules that will read a <GTK-Interface> XML file produced by Gtk+/Gnome UI builder Glade (versions <= 0.6.4), construct and optionally show the UI using the Gtk2-Perl bindings. It is possible, using Glade, for you to specify a language of 'Perl' and generate source code from Glade's 'Build' button. Glade-Perl-Two can write the perl modules to construct/run the UI together with a skeleton "App" and a working subclass for you to edit. The modules generated are pretty much OO code and can be combined and split in any way that you wish. Glade-Perl-Two will generate code to construct all the widgets that Glade-2 knows about apart from the Gnome and GnomeDb ones. You can read the online documentation or download Glade-Perl-Two and find software that we depend on. |
It use()s and respects any existing signal handler subs that you specify at Build time The point of this is that you can write the signal handlers one by one and supply them to the Build phase so that they are used instead of autoloaded stubs that would otherwise be called.
There are several support modules.
Glade::Two::App Controls the site/user/project options
Glade::Two::Gtk Handles the Gtk widget calls
Glade::Two::Gnome Handles the Gnome and extended widget calls (Not working yet)
Glade::Two::Source Writes the perl source code
Glade::Two::Project Handles the project options and sets the
defaults
| README | What the module does and how it works |
| INSTALL | How to install the modules |
| Changelog | What I have changed in each (recent) version |
You can download the latest versions of Glade-2 ( >= 1.1.0) from the Glade homepage .
The latest versions of Gtk2-Perl bindings are available for download at the Sourceforge project page (version 0.01 available soon after 16 November 2002)
There is a daily CVS snapshot or you can visit the CVS repository. The module is called 'gtk2-perl'.
You can download the latest versions of perl modules from CPAN or better still from your local mirror.
The tarballs below contain all Glade-Perl-Two modules needed to generate perl source code from a Glade-2 file and then run it.
Glade-Perl-Two is also available on CPAN although it is probably best to download it from your local CPAN mirror
If you download and try Glade-Perl-Two, PLEASE email me and let me know how you got on. I would really like some criticism, especially if you have problems or ideas for the FAQ. Also, please send me any real-world Glade-2 files (or widgets snipped from them) that fail or don't work as you expect.
You can email me at dermot at glade.perl.connectfree.co.uk or dermot.musgrove at virgin.net
This tarball can be unpacked by calling tar xzvf Glade-Perl-Two-LATEST.tar.gz
and will produce a directory with the name Glade-Perl-Two-M.mm (M is Major and mm is minor version number).
cd Glade-Perl-Two-M.mm/; perl Makefile.PL; make test; su; make install
will install the package in the usual way.
The tarball will not build RPMs until it is renamed to Glade-Perl-Two-M.mm.tar.gz