Gtk2::Ex::DateRange - A simple widget for specifying a range of dates. (For example, "before date1 and after date2")
A simple widget for specifying a range of dates. (For example, after '1965-03-12' and before '1989-02-14')
use Gtk2::Ex::DateRange; my $daterange = Gtk2::Ex::DateRange->new; $daterange->set_model([ 'after', '1965-03-12', 'and', 'before', '1989-02-14' ]); $daterange->signal_connect('changed' => sub { print Dumper $daterange->get_model; } );
The $model is a ref to a list with 5 parameters;
$model
$daterange->set_model([ 'before', '1965-03-12', 'or', 'after', '1989-02-14' ]);
This method returns a Gtk2::Ex::PopupWindow. The popup window will contain a Gtk2::Ex::DateRange widget and two buttons.
Gtk2::Ex::PopupWindow
Gtk2::Ex::DateRange
Converts the $model into an SQL condition so that it can be used directly in and SQL statement. $datefieldname is the fieldname that will be used inside the SQL condition.
$datefieldname
See the SIGNALS section to see the supported signals.
Copyright 2005 Ofey Aikon, All Rights Reserved.
This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details.
You should have received a copy of the GNU Library General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307 USA.
To install Gtk2::Ex::DateRange, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Gtk2::Ex::DateRange
CPAN shell
perl -MCPAN -e shell install Gtk2::Ex::DateRange
For more information on module installation, please visit the detailed CPAN module installation guide.