Gtk2::Ex::FormFactory 0.65 review

Download
by rbytes.net on

Gtk2::Ex::FormFactory is a Perl module that makes building complex GUI's easy. SYNOPSIS #-- Refer to http://www.exit1.org/ fo

License: GPL (GNU General Public License)
File size: 99K
Developer: Jorn Reder
0 stars award from rbytes.net

Gtk2::Ex::FormFactory is a Perl module that makes building complex GUI's easy.

SYNOPSIS

#-- Refer to http://www.exit1.org/ for
#-- a comprehensive online documentation.

#-- Read Gtk2::Ex::FormFactory::Intro

use Gtk2::Ex::FormFactory;

my $context = Gtk2::Ex::FormFactory::Context->new;

$context->add_object (
name => "worksheet",
object => My::Worksheet->new,
);

# derived from Gtk2::Ex::FormFactory::Layout
my $layouter = My::Layout->new;

# derived from Gtk2::Ex::FormFactory::Rules
my $rule_checker = My::Rules->new;

my $ff = Gtk2::Ex::FormFactory->new (
context => $context,
layouter => $layouter,
rule_checker => $rule_checker,
content => [
Gtk2::Ex::FormFactory::Window->new (
title => "Worksheet Editor",
content => [
Gtk2::Ex::FormFactory::Form->new (
title => "Main data",
content => [
Gtk2::Ex::FormFactory::Entry->new (
label => "Worksheet title",
attr => "worksheet.title",
tip => "Title of this worksheet",
),
#-- More widgets...
],
),
Gtk2::Ex::FormFactory->DialogButtons->new,
],
),
],
);

$ff->open;
$ff->update;

Gtk2->main;

ABSTRACT

With Gtk2::Ex::FormFactory you can build a GUI which consistently represents the data of your application.

This is a framework which tries to make building complex GUI's easy, by offering these two main features:

* Consistent looking GUI without the need to code resp. tune each widget by hand. Instead you declare the structure of your GUI, connect it to the data of your program (which should be a well defined set of objects) and control how this structure is transformed into a specific layout in a very generic way.

* Automatically keep widget and object states in sync (in both directions), even with complex data structures with a lot of internal dependencies, object nesting etc.

This manpage describes the facilities of Gtk2::Ex::FormFactory objects which are only a small part of the whole framework. To get a full introduction and overview of how this framework works refer to Gtk2::Ex::FormFactory::Intro.

Requirements:
Perl

Gtk2::Ex::FormFactory 0.65 keywords