ex
Sponsored Links
Sponsored Links
Secleted [ 0 ] software to compare
Results 1 - 15 of about 164
OSSP ex 1.0.5
OSSP ex is a small ISO-C++ style exception handling library for use in the ISO-C language. more>>
OSSP ex is a small ISO-C++ style exception handling library for use in the ISO-C language. It allows you to use the paradigm of throwing and catching exceptions in order to reduce the amount of error handling code without making your program less robust.
This is achieved by directly transferring exceptional return codes (and the program control flow) from the location where the exception is raised (throw point) to the location where it is handled (catch point) -- usually from a deeply nested sub-routine to a parent routine.
All intermediate routines no longer have to make sure that the exceptional return codes from sub-routines are correctly passed back to the parent.
The OSSP ex facility also provides advanced exception handling features like shielded and deferred exceptions. Additionally, OSSP ex allows you to choose the used underlying machine context switching facility and optionally support multi-threading environments by allowing you to store the exception catching stack in a thread-safe way.
<<lessThis is achieved by directly transferring exceptional return codes (and the program control flow) from the location where the exception is raised (throw point) to the location where it is handled (catch point) -- usually from a deeply nested sub-routine to a parent routine.
All intermediate routines no longer have to make sure that the exceptional return codes from sub-routines are correctly passed back to the parent.
The OSSP ex facility also provides advanced exception handling features like shielded and deferred exceptions. Additionally, OSSP ex allows you to choose the used underlying machine context switching facility and optionally support multi-threading environments by allowing you to store the exception catching stack in a thread-safe way.
Download (0.30MB)
Added: 2005-10-03 License: MIT/X Consortium License Price:
1481 downloads
ex::override 1.1
ex::override is a Perl pragma to override core functions. more>>
ex::override is a Perl pragma to override core functions.
SYNOPSIS
use ex::override ucfirst => sub {
# make sure only the first
# letter is uppercased
ucfirst( lc( shift ) );
};
ucfirst( MAKE THIS RIGHT );
# Make this right
no ex::override ucfirst;
ucfirst( MAKE THIS RIGHT );
# MAKE THIS RIGHT
"ex::override" is an easy way to override core perl functions.
Overriding a function
use ex::override
length => &mylength,
open => &myopen;
Overriding a core function happens at compile time. Arguments are passed to "ex::override" in a name based, or hash style. The key is the name of the core function to override, the value is your subroutine to replace the cores.
Using an overriden funtion
Nothing changes on the surface. If you override "stat", then you still use "stat" the same way.
NOTE: This is only true if you are keeping the same prototype as the function youve overriden. To do this, you must define your prototype:
use ex::override values => sub (%) { values %{+shift} };
If you dont use this same prototype or force yourself to use the function the same, you can extend the functionality of a core function:
# length of all arguments passed to length()
use ex::override length => sub { length join , @_ };
Overriding a function globaly
Dont do this without a very good reason!
"ex::override" allows you the ability to override core functions globaly. Any packages that inherit from yours will use your function override. There are good reasons for doing this, if you think you need to, make sure you have a good reason.
use ex::override
GLOBAL_length => sub {
# prevent someone from passing a list
croak "Dont do that!" if @_ > 1;
length shift
};
NOTE: If you globaly override a function in a package, only that package can remove it.
Removing your override
This works the same way that "no strict" works.
no ex::override; # remove _all_ overrides
no ex::override values;
no ex::override GLOABL_length;
<<lessSYNOPSIS
use ex::override ucfirst => sub {
# make sure only the first
# letter is uppercased
ucfirst( lc( shift ) );
};
ucfirst( MAKE THIS RIGHT );
# Make this right
no ex::override ucfirst;
ucfirst( MAKE THIS RIGHT );
# MAKE THIS RIGHT
"ex::override" is an easy way to override core perl functions.
Overriding a function
use ex::override
length => &mylength,
open => &myopen;
Overriding a core function happens at compile time. Arguments are passed to "ex::override" in a name based, or hash style. The key is the name of the core function to override, the value is your subroutine to replace the cores.
Using an overriden funtion
Nothing changes on the surface. If you override "stat", then you still use "stat" the same way.
NOTE: This is only true if you are keeping the same prototype as the function youve overriden. To do this, you must define your prototype:
use ex::override values => sub (%) { values %{+shift} };
If you dont use this same prototype or force yourself to use the function the same, you can extend the functionality of a core function:
# length of all arguments passed to length()
use ex::override length => sub { length join , @_ };
Overriding a function globaly
Dont do this without a very good reason!
"ex::override" allows you the ability to override core functions globaly. Any packages that inherit from yours will use your function override. There are good reasons for doing this, if you think you need to, make sure you have a good reason.
use ex::override
GLOBAL_length => sub {
# prevent someone from passing a list
croak "Dont do that!" if @_ > 1;
length shift
};
NOTE: If you globaly override a function in a package, only that package can remove it.
Removing your override
This works the same way that "no strict" works.
no ex::override; # remove _all_ overrides
no ex::override values;
no ex::override GLOABL_length;
Download (0.004MB)
Added: 2007-05-14 License: Perl Artistic License Price:
893 downloads
Gtk2::Ex::DBI 2.0
Gtk2::Ex::DBI - Bind a Gtk2::GladeXML can generated window to a DBI data source. more>>
Gtk2::Ex::DBI - Bind a Gtk2::GladeXML can generated window to a DBI data source.
SYNOPSIS
use DBI; use Gtk2 -init; use Gtk2::GladeXML; use Gtk2::Ex::DBI;
my $dbh = DBI->connect ( "dbi:mysql:dbname=sales;host=screamer;port=3306", "some_username", "salespass", { PrintError => 0, RaiseError => 0, AutoCommit => 1, } );
my $prospects_form = Gtk2::GladeXML->new("/path/to/glade/file/my_form.glade", Prospects);
my $data_handler = Gtk2::Ex::DBI->new( { dbh => $dbh, schema => "sales", sql => { select => "*", from => "Prospects", where => "Actve=? and Employees>?", where_values => [ 1, 200 ], order_by => "ClientName", }, form => $prospects, formname => "Prospects", on_current => &Prospects_current, calc_fields => { calc_total => eval { $self->{form}->get_widget("value_1")->get_text + $self->{form}->get_widget("value_2")->get_text } }, default_values => { ContractYears => 5, Fee => 2000 } } );
sub Prospects_current {
# I get called when moving from one record to another ( see on_current key, above )
}
<<lessSYNOPSIS
use DBI; use Gtk2 -init; use Gtk2::GladeXML; use Gtk2::Ex::DBI;
my $dbh = DBI->connect ( "dbi:mysql:dbname=sales;host=screamer;port=3306", "some_username", "salespass", { PrintError => 0, RaiseError => 0, AutoCommit => 1, } );
my $prospects_form = Gtk2::GladeXML->new("/path/to/glade/file/my_form.glade", Prospects);
my $data_handler = Gtk2::Ex::DBI->new( { dbh => $dbh, schema => "sales", sql => { select => "*", from => "Prospects", where => "Actve=? and Employees>?", where_values => [ 1, 200 ], order_by => "ClientName", }, form => $prospects, formname => "Prospects", on_current => &Prospects_current, calc_fields => { calc_total => eval { $self->{form}->get_widget("value_1")->get_text + $self->{form}->get_widget("value_2")->get_text } }, default_values => { ContractYears => 5, Fee => 2000 } } );
sub Prospects_current {
# I get called when moving from one record to another ( see on_current key, above )
}
Download (0.028MB)
Added: 2006-07-19 License: Perl Artistic License Price:
1192 downloads
CGI::Ex::App 2.06
CGI::Ex::App is a anti-framework application framework. more>>
CGI::Ex::App is a anti-framework application framework.
Fill in the blanks and get a ready made web application. This module is somewhat similar in spirit to CGI::Application, CGI::Path, and CGI::Builder and any other "CGI framework." As with the others, CGI::Ex::App tries to do as much of the mundane things, in a simple manner, without getting in the developers way. Your mileage may vary.
If you build applications that submit user information, validate it, re-display it, fill in forms, or separate logic into separate modules, then this module may be for you. If all you need is a dispatch engine, then this still may be for you. If all want is to look at user passed information, then this may still be for you. If you like writing bare metal code, this could still be for you. If you dont want to write any code, this module will help - but you still need to provide you key actions.
<<lessFill in the blanks and get a ready made web application. This module is somewhat similar in spirit to CGI::Application, CGI::Path, and CGI::Builder and any other "CGI framework." As with the others, CGI::Ex::App tries to do as much of the mundane things, in a simple manner, without getting in the developers way. Your mileage may vary.
If you build applications that submit user information, validate it, re-display it, fill in forms, or separate logic into separate modules, then this module may be for you. If all you need is a dispatch engine, then this still may be for you. If all want is to look at user passed information, then this may still be for you. If you like writing bare metal code, this could still be for you. If you dont want to write any code, this module will help - but you still need to provide you key actions.
Download (0.21MB)
Added: 2006-10-07 License: Perl Artistic License Price:
1112 downloads
CGI::Ex::Conf 2.06
CGI::Ex::Conf is a Perl module with Conf Reader/Writer for many different data format types. more>>
CGI::Ex::Conf is a Perl module with Conf Reader/Writer for many different data format types.
SYNOPSIS
use CGI::Ex::Conf qw(conf_read conf_write);
my $hash = conf_read("/tmp/foo.yaml");
conf_write("/tmp/foo.yaml", {key1 => $val1, key2 => $val2});
### OOP interface
my $cob = CGI::Ex::Conf->new;
my $full_path_to_file = "/tmp/foo.val"; # supports ini, sto, val, pl, xml
my $hash = $cob->read($file);
local $cob->{default_ext} = conf; # default anyway
my @paths = qw(/tmp, /home/pauls);
local $cob->{paths} = @paths;
my $hash = $cob->read(My::NameSpace);
# will look in /tmp/My/NameSpace.conf and /home/pauls/My/NameSpace.conf
my $hash = $cob->read(My::NameSpace, {paths => [/tmp]});
# will look in /tmp/My/NameSpace.conf
local $cob->{directive} = MERGE;
my $hash = $cob->read(FooSpace);
# OR #
my $hash = $cob->read(FooSpace, {directive => MERGE});
# will return merged hashes from /tmp/FooSpace.conf and /home/pauls/FooSpace.conf
# immutable keys are preserved from originating files
local $cob->{directive} = FIRST;
my $hash = $cob->read(FooSpace);
# will return values from first found file in the path.
local $cob->{directive} = LAST; # default behavior
my $hash = $cob->read(FooSpace);
# will return values from last found file in the path.
### manipulate $hash
$cob->write(FooSpace); # will write it out the changes
There are half a million Conf readers out there. Why not add one more. Actually, this module provides a wrapper around the many file formats and the config modules that can handle them. It does not introduce any formats of its own.
This module also provides a preload ability which is useful in conjunction with mod_perl.
<<lessSYNOPSIS
use CGI::Ex::Conf qw(conf_read conf_write);
my $hash = conf_read("/tmp/foo.yaml");
conf_write("/tmp/foo.yaml", {key1 => $val1, key2 => $val2});
### OOP interface
my $cob = CGI::Ex::Conf->new;
my $full_path_to_file = "/tmp/foo.val"; # supports ini, sto, val, pl, xml
my $hash = $cob->read($file);
local $cob->{default_ext} = conf; # default anyway
my @paths = qw(/tmp, /home/pauls);
local $cob->{paths} = @paths;
my $hash = $cob->read(My::NameSpace);
# will look in /tmp/My/NameSpace.conf and /home/pauls/My/NameSpace.conf
my $hash = $cob->read(My::NameSpace, {paths => [/tmp]});
# will look in /tmp/My/NameSpace.conf
local $cob->{directive} = MERGE;
my $hash = $cob->read(FooSpace);
# OR #
my $hash = $cob->read(FooSpace, {directive => MERGE});
# will return merged hashes from /tmp/FooSpace.conf and /home/pauls/FooSpace.conf
# immutable keys are preserved from originating files
local $cob->{directive} = FIRST;
my $hash = $cob->read(FooSpace);
# will return values from first found file in the path.
local $cob->{directive} = LAST; # default behavior
my $hash = $cob->read(FooSpace);
# will return values from last found file in the path.
### manipulate $hash
$cob->write(FooSpace); # will write it out the changes
There are half a million Conf readers out there. Why not add one more. Actually, this module provides a wrapper around the many file formats and the config modules that can handle them. It does not introduce any formats of its own.
This module also provides a preload ability which is useful in conjunction with mod_perl.
Download (0.21MB)
Added: 2006-10-07 License: Perl Artistic License Price:
1113 downloads
Gtk2::Ex::Utils 0.09
Gtk2::Ex::Utils is a Perl module with extra Gtk2 Utilities for working with Gnome2/Gtk2 in Perl. more>>
Gtk2::Ex::Utils is a Perl module with extra Gtk2 Utilities for working with Gnome2/Gtk2 in Perl.
SYNOPSIS
use Gtk2::Ex::Utils qw( :main );
# do stuff
...
# Update the UI and react to pending events
process_pending_events();
# do more stuff
...
# Exit the program with a value of 255 for some reason
process_main_exit( 255 );
This module provides simple utility functions useful for Gnome2/Gtk2 Perl programming.
<<lessSYNOPSIS
use Gtk2::Ex::Utils qw( :main );
# do stuff
...
# Update the UI and react to pending events
process_pending_events();
# do more stuff
...
# Exit the program with a value of 255 for some reason
process_main_exit( 255 );
This module provides simple utility functions useful for Gnome2/Gtk2 Perl programming.
Download (0.014MB)
Added: 2007-03-06 License: Perl Artistic License Price:
962 downloads
Gtk2::Ex::Carp 0.01
Gtk2::Ex::Carp is a GTK+ friendly die() and warn() functions. more>>
Gtk2::Ex::Carp is a GTK+ friendly die() and warn() functions.
SYNOPSIS
use Gtk2::Ex::Carp;
# these override the standard Perl functions:
warn(i told you not to push that button!);
die(an ignominious death);
# new functions for showing extended error information:
# like warn(), but shows a dialog with extra information
# in an expandable text entry:
worry($SHORT_MESSAGE, $EXTENDED_INFORMATION);
# like worry(), but fatal:
wail($SHORT_MESSAGE, $EXTENDED_INFORMATION);
This module exports four functions, of which two override the standard die() and warn() functions, and two which allow for extended error reporting. When called, these functions display a user-friendly message dialog window.
The die() function in this module actually replaces the core die() function, so any modules youve loaded may die will use former instead of the latter. die() will also print the error message to STDERR and will exit the program (with the appropriate exit code) when the dialog is dismissed.
The warn() function will also print a message to STDERR, but will allow the program to continue running when the dialog is dismissed.
EXTRA FUNCTIONS
The worry() and wail() functions behave just like warn() and die(), respectively, except that they allow you to provide additional information. A second argument, which can contain additional error information, is used to fill a text box inside an expander.
HANDLING GLIB EXCEPTIONS
This module also installs warn() as a Glib exception handler. Any unhandled exceptions will be presented to the user in a warning dialog.
PROGRAM FLOW
Note that all the functions in this module create dialogs and use the run() method, so that the standard Glib main loop is blocked until the user responds to the dialog.
<<lessSYNOPSIS
use Gtk2::Ex::Carp;
# these override the standard Perl functions:
warn(i told you not to push that button!);
die(an ignominious death);
# new functions for showing extended error information:
# like warn(), but shows a dialog with extra information
# in an expandable text entry:
worry($SHORT_MESSAGE, $EXTENDED_INFORMATION);
# like worry(), but fatal:
wail($SHORT_MESSAGE, $EXTENDED_INFORMATION);
This module exports four functions, of which two override the standard die() and warn() functions, and two which allow for extended error reporting. When called, these functions display a user-friendly message dialog window.
The die() function in this module actually replaces the core die() function, so any modules youve loaded may die will use former instead of the latter. die() will also print the error message to STDERR and will exit the program (with the appropriate exit code) when the dialog is dismissed.
The warn() function will also print a message to STDERR, but will allow the program to continue running when the dialog is dismissed.
EXTRA FUNCTIONS
The worry() and wail() functions behave just like warn() and die(), respectively, except that they allow you to provide additional information. A second argument, which can contain additional error information, is used to fill a text box inside an expander.
HANDLING GLIB EXCEPTIONS
This module also installs warn() as a Glib exception handler. Any unhandled exceptions will be presented to the user in a warning dialog.
PROGRAM FLOW
Note that all the functions in this module create dialogs and use the run() method, so that the standard Glib main loop is blocked until the user responds to the dialog.
Download (0.04MB)
Added: 2006-07-12 License: GPL (GNU General Public License) Price:
1199 downloads
Gtk2::Ex::Dialogs 0.11
Gtk2::Ex::Dialogs is a Perl module with useful tools for Gnome2/Gtk2 Perl GUI design. more>>
Gtk2::Ex::Dialogs is a Perl module with useful tools for Gnome2/Gtk2 Perl GUI design.
SYNOPSIS
use Gtk2::Ex::Dialogs ( destroy_with_parent => TRUE,
modal => TRUE,
no_separator => FALSE );
# do some stuff like creating your apps main $window then,
# to ensure that all messages use the right parent, set it:
Gtk2::Ex::Dialogs->set_parent_window( $window );
# now popup a new dialog
my $r = ask Gtk2::Ex::Dialogs::Question ( "Is Perl only hackers glue?" );
if ( $r ) {
# end-user thinks so
} else {
# end-user does not think so
}
# now popup a new dialog ( blocking the main loop if there is one )
new_and_run
Gtk2::Ex::Dialogs::Message ( title => "Dialog Title",
text => "This is a simple message" );
# now popup a new dialog ( blocking the main loop if there is one )
new_and_run
Gtk2::Ex::Dialogs::ErrorMsg ( "Simple error message." );
This module provides the Gtk2::Ex::Dialogs::Message, Gtk2::Ex::Dialogs::ErrorMsg and Gtk2::Ex::Dialogs::Question classes to the main application while setting the initial defaults to those specified upon using Gtk2::Ex::Dialogs.
<<lessSYNOPSIS
use Gtk2::Ex::Dialogs ( destroy_with_parent => TRUE,
modal => TRUE,
no_separator => FALSE );
# do some stuff like creating your apps main $window then,
# to ensure that all messages use the right parent, set it:
Gtk2::Ex::Dialogs->set_parent_window( $window );
# now popup a new dialog
my $r = ask Gtk2::Ex::Dialogs::Question ( "Is Perl only hackers glue?" );
if ( $r ) {
# end-user thinks so
} else {
# end-user does not think so
}
# now popup a new dialog ( blocking the main loop if there is one )
new_and_run
Gtk2::Ex::Dialogs::Message ( title => "Dialog Title",
text => "This is a simple message" );
# now popup a new dialog ( blocking the main loop if there is one )
new_and_run
Gtk2::Ex::Dialogs::ErrorMsg ( "Simple error message." );
This module provides the Gtk2::Ex::Dialogs::Message, Gtk2::Ex::Dialogs::ErrorMsg and Gtk2::Ex::Dialogs::Question classes to the main application while setting the initial defaults to those specified upon using Gtk2::Ex::Dialogs.
Download (0.020MB)
Added: 2007-02-23 License: Perl Artistic License Price:
973 downloads
ex::constant::vars 0.01
ex::constant::vars is a Perl pragma to create readonly variables. more>>
ex::constant::vars is a Perl pragma to create readonly variables.
SYNOPSIS
Using the tie() interface:
use ex::constant::vars;
tie my $pi, ex::constant::vars, 4 * atan2( 1, 1 );
tie my @family, ex::constant::vars, qw( John Jane );
tie my %age, ex::constant::vars, John => 27,
Jane => Back off!;
Using the const() function:
use ex::constant::vars const;
const SCALAR my $pi, 4 * atan2( 1, 1 );
const ARRAY my @family, qw( John Jane );
const HASH my %age, John => 27, Jane => Back off!;
Using import() for compile time creation:
use ex::constant::vars (
$pi => 4 * atan2( 1, 1 ),
@family => [ qw( John Jane ) ],
%age => { John => 27, Jane => Back off! },
);
<<lessSYNOPSIS
Using the tie() interface:
use ex::constant::vars;
tie my $pi, ex::constant::vars, 4 * atan2( 1, 1 );
tie my @family, ex::constant::vars, qw( John Jane );
tie my %age, ex::constant::vars, John => 27,
Jane => Back off!;
Using the const() function:
use ex::constant::vars const;
const SCALAR my $pi, 4 * atan2( 1, 1 );
const ARRAY my @family, qw( John Jane );
const HASH my %age, John => 27, Jane => Back off!;
Using import() for compile time creation:
use ex::constant::vars (
$pi => 4 * atan2( 1, 1 ),
@family => [ qw( John Jane ) ],
%age => { John => 27, Jane => Back off! },
);
Download (0.004MB)
Added: 2007-05-14 License: Perl Artistic License Price:
893 downloads
Ex File for Plone 4.0.0
Ex File for Plone provides a Plone/AT content type with an attachment, supporting preview & indexing & lock. more>>
Ex File for Plone provides a Plone/AT content type with an attachment, supporting preview & indexing & lock.
PloneExFile is a replacement content type for the usual File (ATCT or CMF) with additional features for the file types supported by AttachmentField (MS Office, PDF, OpenOffice).
Main features:
- File content indexing
- File preview through the browser
<<lessPloneExFile is a replacement content type for the usual File (ATCT or CMF) with additional features for the file types supported by AttachmentField (MS Office, PDF, OpenOffice).
Main features:
- File content indexing
- File preview through the browser
Download (0.077MB)
Added: 2007-02-09 License: GPL (GNU General Public License) Price:
987 downloads
Gtk2::Ex::PodViewer 0.16
Gtk2::Ex::PodViewer is a Gtk2 widget for displaying Plain old Documentation (POD). more>>
Gtk2::Ex::PodViewer is a Gtk2 widget for displaying Plain old Documentation (POD). NB: This module used to be called Gtk2::PodViewer. That module is now a stub that points to this module.
SYNOPSIS
use Gtk2 -init;
use Gtk2::Ex::PodViewer;
my $viewer = Gtk2::Ex::PodViewer->new;
$viewer->load(/path/to/file.pod); # load a file
$viewer->load(IO::Scalar); # load a module
$viewer->load(perlvar); # load a perldoc
$viewer->load(bless); # load a function
$viewer->show; # see, its a widget!
my $window = Gtk2::Window->new;
$window->add($viewer);
$window->show;
Gtk2->main;
Gtk2::Ex::PodViewer is a widget for rendering Perl POD documents. It is based on the Gtk2::TextView widget and uses Pod::Parser for manipulating POD data.
<<lessSYNOPSIS
use Gtk2 -init;
use Gtk2::Ex::PodViewer;
my $viewer = Gtk2::Ex::PodViewer->new;
$viewer->load(/path/to/file.pod); # load a file
$viewer->load(IO::Scalar); # load a module
$viewer->load(perlvar); # load a perldoc
$viewer->load(bless); # load a function
$viewer->show; # see, its a widget!
my $window = Gtk2::Window->new;
$window->add($viewer);
$window->show;
Gtk2->main;
Gtk2::Ex::PodViewer is a widget for rendering Perl POD documents. It is based on the Gtk2::TextView widget and uses Pod::Parser for manipulating POD data.
Download (0.015MB)
Added: 2006-07-13 License: Perl Artistic License Price:
1198 downloads
Gtk2::Ex::PopupWindow 0.06
Gtk2::Ex::PopupWindow provides a Perl interface to the Mozilla embedding widget. more>>
Gtk2::Ex::PopupWindow provides a Perl interface to the Mozilla embedding widget.
Synopsys
#!/usr/bin/perl
use strict;
use warnings;
use Glib qw(TRUE FALSE);
use Gtk2 -init;
use Gtk2::MozEmbed;
Gtk2::MozEmbed -> set_profile_path($ENV{ HOME } . "/.mybrowser",
"MyBrowser");
my $window = Gtk2::Window -> new();
my $moz = Gtk2::MozEmbed -> new();
$window -> signal_connect(delete_event => sub {
Gtk2 -> main_quit;
return FALSE;
});
$window -> set_title("MyBrowser");
$window -> set_default_size(600, 400);
$window -> add($moz);
$window -> show_all();
$moz -> load_url("http://gtk2-perl.sf.net");
Gtk2 -> main;
This module allows a Perl developer to use the Mozilla embedding widget.
<<lessSynopsys
#!/usr/bin/perl
use strict;
use warnings;
use Glib qw(TRUE FALSE);
use Gtk2 -init;
use Gtk2::MozEmbed;
Gtk2::MozEmbed -> set_profile_path($ENV{ HOME } . "/.mybrowser",
"MyBrowser");
my $window = Gtk2::Window -> new();
my $moz = Gtk2::MozEmbed -> new();
$window -> signal_connect(delete_event => sub {
Gtk2 -> main_quit;
return FALSE;
});
$window -> set_title("MyBrowser");
$window -> set_default_size(600, 400);
$window -> add($moz);
$window -> show_all();
$moz -> load_url("http://gtk2-perl.sf.net");
Gtk2 -> main;
This module allows a Perl developer to use the Mozilla embedding widget.
Download (0.021MB)
Added: 2007-03-29 License: Perl Artistic License Price:
939 downloads
Gtk2::Ex::FormFactory 0.65
Gtk2::Ex::FormFactory is a Perl module that makes building complex GUIs easy. more>>
Gtk2::Ex::FormFactory is a Perl module that makes building complex GUIs 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 GUIs 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.
<<lessSYNOPSIS
#-- 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 GUIs 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.
Download (0.10MB)
Added: 2006-07-13 License: GPL (GNU General Public License) Price:
1199 downloads
Gtk2::Ex::PrintDialog 0.02
Gtk2::Ex::PrintDialog is a simple, pure Perl dialog for printing PostScript data in GTK+ applications. more>>
Gtk2::Ex::PrintDialog is a simple, pure Perl dialog for printing PostScript data in GTK+ applications.
SYNOPSIS
use Gtk2::Ex::PrintDialog;
my $dialog = Gtk2::Ex::PrintDialog->new; # a new dialog
$dialog->set_data($postscript_data); # supply some postscript data
$dialog->set_filename($postscript_file); # get postscript from a file
$dialog->run; # show the dialog to the user
This module implements a dialog widget that can be used to print PostScript data. It is intended to be a lightweight and pure-perl alternative to the Gnome2::Print libraries.
This module uses a simple system of operating-system specific backends that are used to do the job of printing. Currently, only a generic Linux/Unix backend (implemented using Net::CUPS) is available, more will be added in the future.
The dialog itself is intended to comply with the GNOME Human Interface Guidelines (HIG). It allows the user to print to any printer installed on the system, or to an external command such as lpr, or to print a PostScript or PDF file.
This module is UNSTABLE, the behaviour and API of its components may change in the future.
<<lessSYNOPSIS
use Gtk2::Ex::PrintDialog;
my $dialog = Gtk2::Ex::PrintDialog->new; # a new dialog
$dialog->set_data($postscript_data); # supply some postscript data
$dialog->set_filename($postscript_file); # get postscript from a file
$dialog->run; # show the dialog to the user
This module implements a dialog widget that can be used to print PostScript data. It is intended to be a lightweight and pure-perl alternative to the Gnome2::Print libraries.
This module uses a simple system of operating-system specific backends that are used to do the job of printing. Currently, only a generic Linux/Unix backend (implemented using Net::CUPS) is available, more will be added in the future.
The dialog itself is intended to comply with the GNOME Human Interface Guidelines (HIG). It allows the user to print to any printer installed on the system, or to an external command such as lpr, or to print a PostScript or PDF file.
This module is UNSTABLE, the behaviour and API of its components may change in the future.
Download (0.011MB)
Added: 2006-07-12 License: GPL (GNU General Public License) Price:
1199 downloads
Gtk2::Ex::FormFactory::Table 0.65
Gtk2::Ex::FormFactory::Table is a Perl module for complex table layouts made easy. more>>
SYNOPSIS
Gtk2::Ex::FormFactory::Table->new (
layout => "+-------%------+>>>>>>>>>>>>>>>+
| Name | |
+--------------~ Image |
| Keywords | |
+-------+------+[--------------+
^ More | Something |
^ | +-----+--------]+
_ Notes | | | Foo |
+-------+------+-----+---------+
^ Bar | Baz |
+--------------+---------------+",
content => [
Gtk2::Ex::FormFactory::Entry->new ( ... ),
Gtk2::Ex::FormFactory::Image->new ( ... ),
Gtk2::Ex::FormFactory::Entry->new ( ... ),
...
],
...
Gtk2::Ex::FormFactory::Container attributes
Gtk2::Ex::FormFactory::Widget attributes
);
This module implements a simple way of defining complex table layouts inside a Gtk2::Ex::FormFactory environment.
Download (0.10MB)
Added: 2006-08-01 License: Perl Artistic License Price:
1179 downloads
Secleted [ 0 ] software to compare
Copyright Notice:
Software piracy is theft, Using crack, password, serial numbers, registration codes, key generators is illegal and prevent future software development. The above ex search only lists software in full, demo and trial versions for free download. Download links are directly from our mirror sites or publisher sites, torrent files or links from rapidshare.com, yousendit.com or megaupload.com are not allowed