Gtk2::Ex::FormFactory::Intro

Gtk2::Ex::FormFactory::Intro is an introduction into the FormFactory framework.
Download

Gtk2::Ex::FormFactory::Intro Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Jrn Reder
  • Publisher web site:
  • http://search.cpan.org/~jred/

Gtk2::Ex::FormFactory::Intro Tags


Gtk2::Ex::FormFactory::Intro Description

Gtk2::Ex::FormFactory::Intro is an introduction into the FormFactory framework. Gtk2::Ex::FormFactory::Intro is an introduction into the FormFactory framework.The Gtk2::Ex::FormFactory framework is for Perl Gtk2 developers who (at least partially agree with these statements:GUI programming is fun but often boringA lot of tasks in GUI programming are similar and misleads the lazy programmer to do too much Copy'n PasteRAD tools like Glade are fine for small applications but not if you want to have a consistent look and feel in bigger and modular applicationsGtk2::Ex::FormFactory tries to help you with these issues byStrictly separating GUI design, application logic and data structuresGiving the developer a more declarative style of defining the structure of your GUIGiving the developer the possibility of definiting the design of the GUI at a single spot in your programBeing lightweight and easy to learn.Enough buzzwordsImagine you want to build a configuration dialog for your application, which consists of a notebook, to distinguish several topics, each containing a bunch of simpler widgets (in the following example a single text entry). Also it should have the usual Ok and Cancel buttons.The straight approach often is to code all the stuff by hand or "draw" all widgets using Glade. At any rate you need to take care of:Consistent look and feel, e.g. labels should be bold and properly aligned to the widgets; the widgets iteslf should have some space around them, buttons should always be aligned to the form above etc.Initializing the widgets with the actual content of your configuration dataEither connecting a lot of signals to track the changes the user made. This would apply all changes straight to your internal data structure, which may make implementing the Cancel button difficult or impossibleOr grabbing all (changed) data from the widgets, when the user hit the Ok button resp. simply close the window, when the user hit the Cancel buttonThat's a lot of stuff, which needs to be repeated for every single dialog in your application. No fun anymore. Requirements: · Perl


Gtk2::Ex::FormFactory::Intro Related Software