Glade::PerlGenerate

Glade::PerlGenerate is a module that can generate Perl source from a Glade XML project file.
Download

Glade::PerlGenerate Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Dermot Musgrove
  • Publisher web site:
  • http://search.cpan.org/~dmusgr/Glade-Perl-0.61/Glade/PerlGenerate.pm

Glade::PerlGenerate Tags


Glade::PerlGenerate Description

Glade::PerlGenerate is a module that can generate Perl source from a Glade XML project file. Glade::PerlGenerate is a module that can generate Perl source from a Glade XML project file.SYNOPSISThe simplest way to run Glade::PerlGenerate is to use the supplied script 'glade2perl' that is also called by Glade when you hit the 'Build' button. glade2perl Project.glade 2Otherwise you can control every aspect of the source generation by calling the same methods that glade2perl calls: use Glade::PerlGenerate; Glade::PerlGenerate->Form_from_Glade_File( 'author' => 'Dermot Musgrove', 'description' => "This is an example of the Glade-Perlsource code generator", 'verbose' => 2, 'indent' => ' ', 'tabwidth' => 4, 'diag_wrap' => 0, 'write_source' => 'True', 'dont_show_UI' => 'True', 'autoflush' => 'True', 'use_modules' => 'Example::BusForm_mySUBS', 'log_file' => 'Test.log', 'glade_filename'=> "Example/BusForm.glade" );OR if you want to generate the UI directly from an XML string Glade::PerlGenerate->Form_from_XML( 'xml' => $xml_string, 'use_modules' => );Glade::PerlGenerate reads a < GTK-Interface > definition from a Glade file (or a string) using XML::Parser, converts it into a hash of hashes and works its way through this to show the UI using Gtk-Perl bindings. The module can also optionally generate Perl source code to show the UI and handle the signals. Any signal handlers that are specified in the project file but not visible at Generate time will be hijacked to show a 'missing_handler' message_box and a stub for it will be defined in the the UI class for dynamic AUTOLOAD()ing.The stub will simply show a message_box to prove that the handler has been called and you can write your own with the same name in another module. You then quote this module to the next Generate run and Glade::PerlGenerate will use these handlers and not define stubs. Requirements: · Perl


Glade::PerlGenerate Related Software