You can subscribe to this list here.
| 2002 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(27) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2003 |
Jan
(198) |
Feb
(260) |
Mar
(196) |
Apr
(131) |
May
(158) |
Jun
(29) |
Jul
(14) |
Aug
(19) |
Sep
(43) |
Oct
(68) |
Nov
(61) |
Dec
(157) |
| 2004 |
Jan
(129) |
Feb
(147) |
Mar
(93) |
Apr
(59) |
May
(20) |
Jun
(130) |
Jul
(118) |
Aug
(136) |
Sep
(153) |
Oct
(19) |
Nov
(9) |
Dec
(24) |
| 2005 |
Jan
(45) |
Feb
(69) |
Mar
(98) |
Apr
(40) |
May
(47) |
Jun
(66) |
Jul
(30) |
Aug
(35) |
Sep
(37) |
Oct
(73) |
Nov
(62) |
Dec
(34) |
| 2006 |
Jan
(17) |
Feb
(72) |
Mar
(133) |
Apr
(60) |
May
(91) |
Jun
(44) |
Jul
(4) |
Aug
(16) |
Sep
(19) |
Oct
(1) |
Nov
|
Dec
|
| 2007 |
Jan
|
Feb
|
Mar
(8) |
Apr
|
May
|
Jun
(4) |
Jul
|
Aug
(4) |
Sep
(8) |
Oct
(33) |
Nov
|
Dec
(11) |
| 2008 |
Jan
(6) |
Feb
|
Mar
(8) |
Apr
(4) |
May
|
Jun
|
Jul
|
Aug
(3) |
Sep
(7) |
Oct
|
Nov
|
Dec
|
| 2009 |
Jan
(1) |
Feb
(6) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2010 |
Jan
(1) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2011 |
Jan
(4) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2012 |
Jan
|
Feb
(1) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2013 |
Jan
(1) |
Feb
(3) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
|
From: <har...@us...> - 2013-02-25 21:02:18
|
Revision: 4735
http://net-policy.svn.sourceforge.net/net-policy/?rev=4735&view=rev
Author: hardaker
Date: 2013-02-25 21:02:11 +0000 (Mon, 25 Feb 2013)
Log Message:
-----------
tag of version 0.93
Added Paths:
-----------
tags/Getopt-GUI-Long-0.93-CPAN/
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <har...@us...> - 2013-02-25 21:02:06
|
Revision: 4734
http://net-policy.svn.sourceforge.net/net-policy/?rev=4734&view=rev
Author: hardaker
Date: 2013-02-25 21:01:56 +0000 (Mon, 25 Feb 2013)
Log Message:
-----------
Update Version Number: 0.93
Modified Paths:
--------------
trunk/net-policy/perl/Getopt_GUI/Long.pm
Modified: trunk/net-policy/perl/Getopt_GUI/Long.pm
===================================================================
--- trunk/net-policy/perl/Getopt_GUI/Long.pm 2013-02-25 20:52:00 UTC (rev 4733)
+++ trunk/net-policy/perl/Getopt_GUI/Long.pm 2013-02-25 21:01:56 UTC (rev 4734)
@@ -8,7 +8,7 @@
use Getopt::Long qw();
use File::Temp qw(tempfile);
-our $VERSION="0.92";
+our $VERSION="0.93";
require Exporter;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <har...@us...> - 2013-02-25 20:52:07
|
Revision: 4733
http://net-policy.svn.sourceforge.net/net-policy/?rev=4733&view=rev
Author: hardaker
Date: 2013-02-25 20:52:00 +0000 (Mon, 25 Feb 2013)
Log Message:
-----------
added text describing how to force a generator from Jeremy Squires
Modified Paths:
--------------
trunk/net-policy/perl/Getopt_GUI/Long.pm
Modified: trunk/net-policy/perl/Getopt_GUI/Long.pm
===================================================================
--- trunk/net-policy/perl/Getopt_GUI/Long.pm 2013-01-02 17:13:31 UTC (rev 4732)
+++ trunk/net-policy/perl/Getopt_GUI/Long.pm 2013-02-25 20:52:00 UTC (rev 4733)
@@ -1251,6 +1251,23 @@
return @opts;
}
+=head2 Forcing a Particular Generator
+
+There a times where you may want to force a particular generator to be
+used. This can be accomplished by setting the QWIZARD_GENERATOR
+environmental variable. this can actually be done in code within
+something like LocalGetOptions function as well:
+
+ sub LocalGetOptions {
+ # force the library by using $ENV{'QWIZARD_GENERATOR'}
+ # if Gtk2, Tk, HTML or Readline generators are required, set the
+ # QWIZARD_GENERATOR ENV variable either externally or in this
+ # script Example: Force QWizard to use Tk instead of the
+ # preferred default of Gtk2 like this:
+ $ENV{'QWIZARD_GENERATOR'} = 'Tk' if (not exists($ENV{'QWIZARD_GENERATOR'}));
+
+ # ... conitune with the rest of the LocalGetOptions shown above
+
=head1 Usage as a CGI Script
If a Getopt::GUI::Long script is installed as a CGI script, then the
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <har...@us...> - 2013-01-02 17:13:39
|
Revision: 4732
http://net-policy.svn.sourceforge.net/net-policy/?rev=4732&view=rev
Author: hardaker
Date: 2013-01-02 17:13:31 +0000 (Wed, 02 Jan 2013)
Log Message:
-----------
copyright update
Modified Paths:
--------------
trunk/net-policy/perl/QWizard/QWizard.pm
Modified: trunk/net-policy/perl/QWizard/QWizard.pm
===================================================================
--- trunk/net-policy/perl/QWizard/QWizard.pm 2012-02-23 05:09:28 UTC (rev 4731)
+++ trunk/net-policy/perl/QWizard/QWizard.pm 2013-01-02 17:13:31 UTC (rev 4732)
@@ -3306,9 +3306,9 @@
=head1 COPYRIGHT and LICENSE
-Copyright (c) 2003-2012, SPARTA, Inc. All rights reserved
+Copyright (c) 2003-2013, SPARTA, Inc. All rights reserved
-Copyright (c) 2006-2012, Wes Hardaker. All rights reserved
+Copyright (c) 2006-2013, Wes Hardaker. All rights reserved
QWizard is free software; you can redistribute it and/or modify it under
the same terms as Perl itself.
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <har...@us...> - 2012-02-23 05:09:34
|
Revision: 4731
http://net-policy.svn.sourceforge.net/net-policy/?rev=4731&view=rev
Author: hardaker
Date: 2012-02-23 05:09:28 +0000 (Thu, 23 Feb 2012)
Log Message:
-----------
copyright update
Modified Paths:
--------------
trunk/net-policy/perl/QWizard/QWizard.pm
Modified: trunk/net-policy/perl/QWizard/QWizard.pm
===================================================================
--- trunk/net-policy/perl/QWizard/QWizard.pm 2011-01-06 19:28:11 UTC (rev 4730)
+++ trunk/net-policy/perl/QWizard/QWizard.pm 2012-02-23 05:09:28 UTC (rev 4731)
@@ -3306,9 +3306,9 @@
=head1 COPYRIGHT and LICENSE
-Copyright (c) 2003-2011, SPARTA, Inc. All rights reserved
+Copyright (c) 2003-2012, SPARTA, Inc. All rights reserved
-Copyright (c) 2006-2011, Wes Hardaker. All rights reserved
+Copyright (c) 2006-2012, Wes Hardaker. All rights reserved
QWizard is free software; you can redistribute it and/or modify it under
the same terms as Perl itself.
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <har...@us...> - 2011-01-06 19:28:17
|
Revision: 4730
http://net-policy.svn.sourceforge.net/net-policy/?rev=4730&view=rev
Author: hardaker
Date: 2011-01-06 19:28:11 +0000 (Thu, 06 Jan 2011)
Log Message:
-----------
tag of version 0.92
Added Paths:
-----------
tags/Getopt-GUI-Long-0.92-CPAN/
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <har...@us...> - 2011-01-06 19:27:46
|
Revision: 4729
http://net-policy.svn.sourceforge.net/net-policy/?rev=4729&view=rev
Author: hardaker
Date: 2011-01-06 19:27:40 +0000 (Thu, 06 Jan 2011)
Log Message:
-----------
Update Version Number: 0.92
Modified Paths:
--------------
trunk/net-policy/perl/Getopt_GUI/Long.pm
Modified: trunk/net-policy/perl/Getopt_GUI/Long.pm
===================================================================
--- trunk/net-policy/perl/Getopt_GUI/Long.pm 2011-01-06 19:23:26 UTC (rev 4728)
+++ trunk/net-policy/perl/Getopt_GUI/Long.pm 2011-01-06 19:27:40 UTC (rev 4729)
@@ -8,7 +8,7 @@
use Getopt::Long qw();
use File::Temp qw(tempfile);
-our $VERSION="0.91";
+our $VERSION="0.92";
require Exporter;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <har...@us...> - 2011-01-06 19:23:32
|
Revision: 4728
http://net-policy.svn.sourceforge.net/net-policy/?rev=4728&view=rev
Author: hardaker
Date: 2011-01-06 19:23:26 +0000 (Thu, 06 Jan 2011)
Log Message:
-----------
updated the http site for the example picture
Modified Paths:
--------------
trunk/net-policy/perl/Getopt_GUI/Long.pm
Modified: trunk/net-policy/perl/Getopt_GUI/Long.pm
===================================================================
--- trunk/net-policy/perl/Getopt_GUI/Long.pm 2011-01-04 18:37:28 UTC (rev 4727)
+++ trunk/net-policy/perl/Getopt_GUI/Long.pm 2011-01-06 19:23:26 UTC (rev 4728)
@@ -37,7 +37,7 @@
(
display_results =>
{
- title => "$ARGV Output",
+ title => (defined($ARGV) ? $ARGV : "") . " Output",
questions =>
[
{ type => 'paragraph',
@@ -85,8 +85,9 @@
my $firstarg = "";
- if ($main::ARGV[0] =~ /--*gui/ || $main::ARGV[0] =~ /--*no-gui/ ||
- $main::ARGV[0] =~ /--*nogui/) {
+ if ($#main::ARGV > -1 &&
+ ($main::ARGV[0] =~ /--*gui/ || $main::ARGV[0] =~ /--*no-gui/ ||
+ $main::ARGV[0] =~ /--*nogui/)) {
$firstarg = shift @main::ARGV;
$firstarg = '-' . $firstarg if ($firstarg =~ /^-[^-]/);
}
@@ -809,7 +810,7 @@
# or a GUI screen:
- (see http://net-policy.sourceforge.net/images/getopt_example.png )
+ (see http://www.dnssec-tools.org/images/getopt_example.png )
=head1 DESCRIPTION
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <har...@us...> - 2011-01-04 18:37:36
|
Revision: 4727
http://net-policy.svn.sourceforge.net/net-policy/?rev=4727&view=rev
Author: hardaker
Date: 2011-01-04 18:37:28 +0000 (Tue, 04 Jan 2011)
Log Message:
-----------
copyright update
Modified Paths:
--------------
trunk/net-policy/perl/QWizard/QWizard.pm
Modified: trunk/net-policy/perl/QWizard/QWizard.pm
===================================================================
--- trunk/net-policy/perl/QWizard/QWizard.pm 2010-01-22 01:03:41 UTC (rev 4726)
+++ trunk/net-policy/perl/QWizard/QWizard.pm 2011-01-04 18:37:28 UTC (rev 4727)
@@ -3306,9 +3306,9 @@
=head1 COPYRIGHT and LICENSE
-Copyright (c) 2003-2010, SPARTA, Inc. All rights reserved
+Copyright (c) 2003-2011, SPARTA, Inc. All rights reserved
-Copyright (c) 2006-2010, Wes Hardaker. All rights reserved
+Copyright (c) 2006-2011, Wes Hardaker. All rights reserved
QWizard is free software; you can redistribute it and/or modify it under
the same terms as Perl itself.
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <har...@us...> - 2010-01-22 01:03:48
|
Revision: 4726
http://net-policy.svn.sourceforge.net/net-policy/?rev=4726&view=rev
Author: hardaker
Date: 2010-01-22 01:03:41 +0000 (Fri, 22 Jan 2010)
Log Message:
-----------
copyright update
Modified Paths:
--------------
trunk/net-policy/perl/QWizard/Generator/Gtk2.pm
trunk/net-policy/perl/QWizard/Generator_base/Generator.pm
trunk/net-policy/perl/QWizard/QWizard.pm
Modified: trunk/net-policy/perl/QWizard/Generator/Gtk2.pm
===================================================================
--- trunk/net-policy/perl/QWizard/Generator/Gtk2.pm 2009-02-23 19:44:14 UTC (rev 4725)
+++ trunk/net-policy/perl/QWizard/Generator/Gtk2.pm 2010-01-22 01:03:41 UTC (rev 4726)
@@ -1,5 +1,6 @@
package QWizard::Generator::Gtk2;
+use utf8;
use strict;
my $VERSION = '3.15';
use Gtk2 -init;
@@ -126,7 +127,7 @@
$self->init_default_storage();
# force some default image search paths
- $self->{'imgpaths'} = [] if (!exists($self->{'imgpaths'}));
+ $self->{'imgpaths'} = ['.'] if (!exists($self->{'imgpaths'}));
$self->{'imgpaths'} = [$self->{'imgpaths'}]
if (ref($self->{'imgpaths'}) ne 'ARRAY');
push @{$self->{'imgpaths'}}, '/usr/share/icons/Bluecurve/16x16/stock/';
@@ -244,6 +245,9 @@
# be a widget.
sub goto_next {
my $self = shift;
+ print STDERR "HERE: $self\n";
+ print STDERR "HERE: ",join(",",@_),"\n";
+ print STDERR "HERE: ",$self->x,"\n";
my $generator = $self->{'generator'};
if ($self->{'qbuttonname'}) {
$self->{'generator'}->qwparam($self->{'qbuttonname'},
@@ -1503,19 +1507,29 @@
$hb->pack_end($but, FALSE, FALSE, 0);
}
+sub got_here {
+ print STDERR "got here!!!\n";
+ use Data::Dumper;
+ print Dumper(\@_);
+}
+
sub do_image {
my $self = shift;
my ($q, $wiz, $p, $datastr, $filestr, $imgalt, $scaleopts) = @_;
my $img;
+ print "trying to load image $filestr\n; $img\n";
if ($datastr) {
$filestr = $self->create_temp_file('.png',$datastr);
} else {
+ print "trying to find path for $filestr\n;\n";
$filestr = $self->find_image_path($filestr);
+ print "trying to find path for $filestr\n;\n";
}
# image file
$img = Gtk2::Image->new_from_file($filestr);
+ print "trying to load image $filestr\n; $img\n";
if ($img) {
my $vb = Gtk2::VBox->new();
my $but;
@@ -1536,6 +1550,8 @@
$vb->pack_end($hb, FALSE, FALSE, 0);
}
+ $vb->signal_connect('button-press-event' => \&got_here);
+
$vb->pack_end($img, FALSE, FALSE, 0);
$img->{'currentsize'} = 1;
Modified: trunk/net-policy/perl/QWizard/Generator_base/Generator.pm
===================================================================
--- trunk/net-policy/perl/QWizard/Generator_base/Generator.pm 2009-02-23 19:44:14 UTC (rev 4725)
+++ trunk/net-policy/perl/QWizard/Generator_base/Generator.pm 2010-01-22 01:03:41 UTC (rev 4726)
@@ -463,6 +463,7 @@
# return it if it's already a fullyqualified path
# XXX: win32 issues
+ print "finding path: $file\n";
return if (!defined($file));
return $file if ($file eq '' || $file =~ /^\//);
Modified: trunk/net-policy/perl/QWizard/QWizard.pm
===================================================================
--- trunk/net-policy/perl/QWizard/QWizard.pm 2009-02-23 19:44:14 UTC (rev 4725)
+++ trunk/net-policy/perl/QWizard/QWizard.pm 2010-01-22 01:03:41 UTC (rev 4726)
@@ -3306,9 +3306,9 @@
=head1 COPYRIGHT and LICENSE
-Copyright (c) 2003-2009, SPARTA, Inc. All rights reserved
+Copyright (c) 2003-2010, SPARTA, Inc. All rights reserved
-Copyright (c) 2006-2009, Wes Hardaker. All rights reserved
+Copyright (c) 2006-2010, Wes Hardaker. All rights reserved
QWizard is free software; you can redistribute it and/or modify it under
the same terms as Perl itself.
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <har...@us...> - 2009-02-23 19:44:17
|
Revision: 4725
http://net-policy.svn.sourceforge.net/net-policy/?rev=4725&view=rev
Author: hardaker
Date: 2009-02-23 19:44:14 +0000 (Mon, 23 Feb 2009)
Log Message:
-----------
tag of version 0.91
Added Paths:
-----------
tags/Getopt-GUI-Long-0.91-CPAN/
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <har...@us...> - 2009-02-23 19:43:26
|
Revision: 4724
http://net-policy.svn.sourceforge.net/net-policy/?rev=4724&view=rev
Author: hardaker
Date: 2009-02-23 19:43:22 +0000 (Mon, 23 Feb 2009)
Log Message:
-----------
Update Version Number: 0.91
Modified Paths:
--------------
trunk/net-policy/perl/Getopt_GUI/Long.pm
Modified: trunk/net-policy/perl/Getopt_GUI/Long.pm
===================================================================
--- trunk/net-policy/perl/Getopt_GUI/Long.pm 2009-02-23 19:42:21 UTC (rev 4723)
+++ trunk/net-policy/perl/Getopt_GUI/Long.pm 2009-02-23 19:43:22 UTC (rev 4724)
@@ -8,7 +8,7 @@
use Getopt::Long qw();
use File::Temp qw(tempfile);
-our $VERSION="0.9";
+our $VERSION="0.91";
require Exporter;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <har...@us...> - 2009-02-23 19:42:34
|
Revision: 4723
http://net-policy.svn.sourceforge.net/net-policy/?rev=4723&view=rev
Author: hardaker
Date: 2009-02-23 19:42:21 +0000 (Mon, 23 Feb 2009)
Log Message:
-----------
create a allow_zero flag
Modified Paths:
--------------
trunk/net-policy/perl/Getopt_GUI/Long.pm
Modified: trunk/net-policy/perl/Getopt_GUI/Long.pm
===================================================================
--- trunk/net-policy/perl/Getopt_GUI/Long.pm 2009-02-14 17:11:48 UTC (rev 4722)
+++ trunk/net-policy/perl/Getopt_GUI/Long.pm 2009-02-23 19:42:21 UTC (rev 4723)
@@ -25,6 +25,7 @@
capture_output => 0,
display_help => 0,
no_gui => 0,
+ allow_zero => 0,
);
my @pass_to_qwizard_qs = qw(helpdesc helptext values labels default
@@ -93,7 +94,7 @@
# If the user didn't specify any arguments, we display a GUI for them.
if ($firstarg ne '--nogui' &&
$firstarg ne '--no-gui' &&
- (($#main::ARGV == -1 && !$config{'no_gui'}) ||
+ (($#main::ARGV == -1 && !$config{'no_gui'} && !$config{'allow_zero'}) ||
$firstarg eq '--gui') &&
eval "require QWizard") {
@@ -466,7 +467,7 @@
$h->();
}
}
- } elsif ($#main::ARGV == -1) {
+ } elsif ($#main::ARGV == -1 && !$config{'allow_zero'}) {
# no qwizard, but no args so force usage
$dohelp = 1;
$opts[0]{'h'} = 1;
@@ -1188,6 +1189,14 @@
out B<unless> they specify --gui as the first and only argument on the
command line.
+=item allow_zero
+
+By default the GUI will always pop up if zero-arguments have been
+specified (or the help info will be displayed if no_gui is set). This
+options specifies that zero arguments is a normal usage case. Thus
+the only way to force the GUI or help to appear will be the command
+line --gui flag.
+
=back
=head1 Using the QWizard object for other purposes
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <har...@us...> - 2009-02-14 17:11:51
|
Revision: 4722
http://net-policy.svn.sourceforge.net/net-policy/?rev=4722&view=rev
Author: hardaker
Date: 2009-02-14 17:11:48 +0000 (Sat, 14 Feb 2009)
Log Message:
-----------
tag of version 0.9
Added Paths:
-----------
tags/Getopt-GUI-Long-0.9-CPAN/
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <har...@us...> - 2009-02-14 17:09:05
|
Revision: 4721
http://net-policy.svn.sourceforge.net/net-policy/?rev=4721&view=rev
Author: hardaker
Date: 2009-02-14 17:08:54 +0000 (Sat, 14 Feb 2009)
Log Message:
-----------
Update Version Number: 0.9
Modified Paths:
--------------
trunk/net-policy/perl/Getopt_GUI/Long.pm
Modified: trunk/net-policy/perl/Getopt_GUI/Long.pm
===================================================================
--- trunk/net-policy/perl/Getopt_GUI/Long.pm 2009-02-14 16:59:46 UTC (rev 4720)
+++ trunk/net-policy/perl/Getopt_GUI/Long.pm 2009-02-14 17:08:54 UTC (rev 4721)
@@ -8,7 +8,7 @@
use Getopt::Long qw();
use File::Temp qw(tempfile);
-our $VERSION="0.8";
+our $VERSION="0.9";
require Exporter;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <har...@us...> - 2009-02-14 16:59:50
|
Revision: 4720
http://net-policy.svn.sourceforge.net/net-policy/?rev=4720&view=rev
Author: hardaker
Date: 2009-02-14 16:59:46 +0000 (Sat, 14 Feb 2009)
Log Message:
-----------
allow for a no_gui option and new --nogui and --gui flags to user-control the option a bit more
Modified Paths:
--------------
trunk/net-policy/perl/Getopt_GUI/Long.pm
Modified: trunk/net-policy/perl/Getopt_GUI/Long.pm
===================================================================
--- trunk/net-policy/perl/Getopt_GUI/Long.pm 2009-01-06 22:27:27 UTC (rev 4719)
+++ trunk/net-policy/perl/Getopt_GUI/Long.pm 2009-02-14 16:59:46 UTC (rev 4720)
@@ -24,6 +24,7 @@
my %config = (
capture_output => 0,
display_help => 0,
+ no_gui => 0,
);
my @pass_to_qwizard_qs = qw(helpdesc helptext values labels default
@@ -81,8 +82,20 @@
my %GUI_info;
my $dohelp;
+ my $firstarg = "";
+
+ if ($main::ARGV[0] =~ /--*gui/ || $main::ARGV[0] =~ /--*no-gui/ ||
+ $main::ARGV[0] =~ /--*nogui/) {
+ $firstarg = shift @main::ARGV;
+ $firstarg = '-' . $firstarg if ($firstarg =~ /^-[^-]/);
+ }
+
# If the user didn't specify any arguments, we display a GUI for them.
- if ($#main::ARGV == -1 && eval "require QWizard") {
+ if ($firstarg ne '--nogui' &&
+ $firstarg ne '--no-gui' &&
+ (($#main::ARGV == -1 && !$config{'no_gui'}) ||
+ $firstarg eq '--gui') &&
+ eval "require QWizard") {
require QWizard;
import QWizard;
@@ -627,6 +640,10 @@
'Display help options -- long flags preferred');
_display_help_option_long('help-full','',
'Display all help options -- short and long');
+ _display_help_option_long('gui','',
+ 'Display a help GUI');
+ _display_help_option_long('no-gui','',
+ 'Do not display the default help GUI');
_display_help_option_long('version','',
'Display the version number')
if ($GUI_info->{'VERSION'});
@@ -698,7 +715,7 @@
}
sub GetInternalOptions {
- return ('getopt-to-pod');
+ return ('getopt-to-pod', 'gui', 'no-gui|nogui');
}
#
@@ -1145,6 +1162,18 @@
Shows all available option names for a given option
+=item --gui
+
+If the default GUI is not showing up because no_gui has been
+specified, a sure can still call the application with only the --gui
+flag to make it appear.
+
+=item --no-gui
+
+If the no_gui option hasn't been set and the user doesn't want to see
+the GUI then they can use the --no-gui flag as the only argument to
+ensure it doesn't appear.
+
=back
=item capture_output
@@ -1153,6 +1182,12 @@
resulting STDOUT and STDERR results from the script and display the
results in a window once the script has finished.
+=item no_gui
+
+This option defaults to not presenting a GUI form for the user to fill
+out B<unless> they specify --gui as the first and only argument on the
+command line.
+
=back
=head1 Using the QWizard object for other purposes
@@ -1241,7 +1276,7 @@
=head1 COPYRIGHT and LICENSE
-Copyright (c) 2006-2007, SPARTA, Inc. All rights reserved
+Copyright (c) 2006-2009, SPARTA, Inc. All rights reserved
Copyright (c) 2006-2007, Wes Hardaker. All rights reserved
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <har...@us...> - 2009-01-06 22:27:33
|
Revision: 4719
http://net-policy.svn.sourceforge.net/net-policy/?rev=4719&view=rev
Author: hardaker
Date: 2009-01-06 22:27:27 +0000 (Tue, 06 Jan 2009)
Log Message:
-----------
update copyright
Modified Paths:
--------------
trunk/net-policy/perl/QWizard/QWizard.pm
Modified: trunk/net-policy/perl/QWizard/QWizard.pm
===================================================================
--- trunk/net-policy/perl/QWizard/QWizard.pm 2008-09-17 15:24:10 UTC (rev 4718)
+++ trunk/net-policy/perl/QWizard/QWizard.pm 2009-01-06 22:27:27 UTC (rev 4719)
@@ -3306,9 +3306,9 @@
=head1 COPYRIGHT and LICENSE
-Copyright (c) 2003-2007, SPARTA, Inc. All rights reserved
+Copyright (c) 2003-2009, SPARTA, Inc. All rights reserved
-Copyright (c) 2006-2007, Wes Hardaker. All rights reserved
+Copyright (c) 2006-2009, Wes Hardaker. All rights reserved
QWizard is free software; you can redistribute it and/or modify it under
the same terms as Perl itself.
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <har...@us...> - 2008-09-17 15:23:59
|
Revision: 4718
http://net-policy.svn.sourceforge.net/net-policy/?rev=4718&view=rev
Author: hardaker
Date: 2008-09-17 15:24:10 +0000 (Wed, 17 Sep 2008)
Log Message:
-----------
tag of version 3.15
Added Paths:
-----------
tags/QWizard-3.15-CPAN/
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <har...@us...> - 2008-09-17 15:10:57
|
Revision: 4717
http://net-policy.svn.sourceforge.net/net-policy/?rev=4717&view=rev
Author: hardaker
Date: 2008-09-17 15:11:06 +0000 (Wed, 17 Sep 2008)
Log Message:
-----------
Update Version Number: 3.15
Modified Paths:
--------------
trunk/net-policy/perl/QWizard/API/API.pm
trunk/net-policy/perl/QWizard/Generator/Best.pm
trunk/net-policy/perl/QWizard/Generator/Gtk2.pm
trunk/net-policy/perl/QWizard/Generator/HTML/Vertical.pm
trunk/net-policy/perl/QWizard/Generator/HTML.pm
trunk/net-policy/perl/QWizard/Generator/ReadLine.pm
trunk/net-policy/perl/QWizard/Generator/Tk.pm
trunk/net-policy/perl/QWizard/Generator_base/Generator.pm
trunk/net-policy/perl/QWizard/Plugins/Bookmarks.pm
trunk/net-policy/perl/QWizard/Plugins/History.pm
trunk/net-policy/perl/QWizard/QWizard.pm
trunk/net-policy/perl/QWizard/Storage/Base.pm
trunk/net-policy/perl/QWizard/Storage/CGICookie.pm
trunk/net-policy/perl/QWizard/Storage/CGIParam.pm
trunk/net-policy/perl/QWizard/Storage/File.pm
trunk/net-policy/perl/QWizard/Storage/Memory.pm
trunk/net-policy/perl/QWizard/Storage/SQL.pm
trunk/net-policy/perl/QWizard/windows/QWizard.ppd
Modified: trunk/net-policy/perl/QWizard/API/API.pm
===================================================================
--- trunk/net-policy/perl/QWizard/API/API.pm 2008-09-17 15:10:34 UTC (rev 4716)
+++ trunk/net-policy/perl/QWizard/API/API.pm 2008-09-17 15:11:06 UTC (rev 4717)
@@ -2,7 +2,7 @@
use strict;
-our $VERSION = '3.14';
+our $VERSION = '3.15';
require Exporter;
our @ISA = qw(Exporter);
Modified: trunk/net-policy/perl/QWizard/Generator/Best.pm
===================================================================
--- trunk/net-policy/perl/QWizard/Generator/Best.pm 2008-09-17 15:10:34 UTC (rev 4716)
+++ trunk/net-policy/perl/QWizard/Generator/Best.pm 2008-09-17 15:11:06 UTC (rev 4717)
@@ -2,7 +2,7 @@
use strict;
use Config;
-our $VERSION = '3.14';
+our $VERSION = '3.15';
sub new {
my $type = shift;
Modified: trunk/net-policy/perl/QWizard/Generator/Gtk2.pm
===================================================================
--- trunk/net-policy/perl/QWizard/Generator/Gtk2.pm 2008-09-17 15:10:34 UTC (rev 4716)
+++ trunk/net-policy/perl/QWizard/Generator/Gtk2.pm 2008-09-17 15:11:06 UTC (rev 4717)
@@ -1,7 +1,7 @@
package QWizard::Generator::Gtk2;
use strict;
-my $VERSION = '3.14';
+my $VERSION = '3.15';
use Gtk2 -init;
require Exporter;
use QWizard::Generator;
Modified: trunk/net-policy/perl/QWizard/Generator/HTML/Vertical.pm
===================================================================
--- trunk/net-policy/perl/QWizard/Generator/HTML/Vertical.pm 2008-09-17 15:10:34 UTC (rev 4716)
+++ trunk/net-policy/perl/QWizard/Generator/HTML/Vertical.pm 2008-09-17 15:11:06 UTC (rev 4717)
@@ -5,7 +5,7 @@
use Exporter;
use CGI qw(escapeHTML);
-our $VERSION = '3.14';
+our $VERSION = '3.15';
@QWizard::Generator::HTML::Vertical::ISA =
qw(Exporter QWizard::Generator::HTML);
Modified: trunk/net-policy/perl/QWizard/Generator/HTML.pm
===================================================================
--- trunk/net-policy/perl/QWizard/Generator/HTML.pm 2008-09-17 15:10:34 UTC (rev 4716)
+++ trunk/net-policy/perl/QWizard/Generator/HTML.pm 2008-09-17 15:11:06 UTC (rev 4717)
@@ -12,7 +12,7 @@
use strict;
-our $VERSION = '3.14';
+our $VERSION = '3.15';
use CGI qw(escapeHTML);
use CGI::Cookie;
require Exporter;
Modified: trunk/net-policy/perl/QWizard/Generator/ReadLine.pm
===================================================================
--- trunk/net-policy/perl/QWizard/Generator/ReadLine.pm 2008-09-17 15:10:34 UTC (rev 4716)
+++ trunk/net-policy/perl/QWizard/Generator/ReadLine.pm 2008-09-17 15:11:06 UTC (rev 4717)
@@ -5,7 +5,7 @@
use QWizard::Generator;
use strict;
-our $VERSION = '3.14';
+our $VERSION = '3.15';
@QWizard::Generator::ReadLine::ISA = qw(Exporter QWizard::Generator);
Modified: trunk/net-policy/perl/QWizard/Generator/Tk.pm
===================================================================
--- trunk/net-policy/perl/QWizard/Generator/Tk.pm 2008-09-17 15:10:34 UTC (rev 4716)
+++ trunk/net-policy/perl/QWizard/Generator/Tk.pm 2008-09-17 15:11:06 UTC (rev 4717)
@@ -7,7 +7,7 @@
# - left/right side support
use strict;
-my $VERSION = '3.14';
+my $VERSION = '3.15';
use Tk;
use Tk::Table;
use Tk::Pane;
Modified: trunk/net-policy/perl/QWizard/Generator_base/Generator.pm
===================================================================
--- trunk/net-policy/perl/QWizard/Generator_base/Generator.pm 2008-09-17 15:10:34 UTC (rev 4716)
+++ trunk/net-policy/perl/QWizard/Generator_base/Generator.pm 2008-09-17 15:11:06 UTC (rev 4717)
@@ -3,7 +3,7 @@
use AutoLoader;
use POSIX qw(isprint);
use strict;
-our $VERSION = '3.14';
+our $VERSION = '3.15';
use QWizard::Storage::Memory;
require Exporter;
use File::Temp qw(tempfile);
Modified: trunk/net-policy/perl/QWizard/Plugins/Bookmarks.pm
===================================================================
--- trunk/net-policy/perl/QWizard/Plugins/Bookmarks.pm 2008-09-17 15:10:34 UTC (rev 4716)
+++ trunk/net-policy/perl/QWizard/Plugins/Bookmarks.pm 2008-09-17 15:11:06 UTC (rev 4717)
@@ -1,6 +1,6 @@
package QWizard::Plugins::Bookmarks;
-our $VERSION = '3.14';
+our $VERSION = '3.15';
require Exporter;
use strict;
Modified: trunk/net-policy/perl/QWizard/Plugins/History.pm
===================================================================
--- trunk/net-policy/perl/QWizard/Plugins/History.pm 2008-09-17 15:10:34 UTC (rev 4716)
+++ trunk/net-policy/perl/QWizard/Plugins/History.pm 2008-09-17 15:11:06 UTC (rev 4717)
@@ -1,6 +1,6 @@
package QWizard::Plugins::History;
-our $VERSION = '3.14';
+our $VERSION = '3.15';
require Exporter;
use strict;
Modified: trunk/net-policy/perl/QWizard/QWizard.pm
===================================================================
--- trunk/net-policy/perl/QWizard/QWizard.pm 2008-09-17 15:10:34 UTC (rev 4716)
+++ trunk/net-policy/perl/QWizard/QWizard.pm 2008-09-17 15:11:06 UTC (rev 4717)
@@ -1,6 +1,6 @@
package QWizard;
-our $VERSION = '3.14';
+our $VERSION = '3.15';
require Exporter;
our @ISA = qw(Exporter);
Modified: trunk/net-policy/perl/QWizard/Storage/Base.pm
===================================================================
--- trunk/net-policy/perl/QWizard/Storage/Base.pm 2008-09-17 15:10:34 UTC (rev 4716)
+++ trunk/net-policy/perl/QWizard/Storage/Base.pm 2008-09-17 15:11:06 UTC (rev 4717)
@@ -2,7 +2,7 @@
use strict;
-our $VERSION = '3.14';
+our $VERSION = '3.15';
sub new {
my $class = shift;
Modified: trunk/net-policy/perl/QWizard/Storage/CGICookie.pm
===================================================================
--- trunk/net-policy/perl/QWizard/Storage/CGICookie.pm 2008-09-17 15:10:34 UTC (rev 4716)
+++ trunk/net-policy/perl/QWizard/Storage/CGICookie.pm 2008-09-17 15:11:06 UTC (rev 4717)
@@ -6,7 +6,7 @@
our %cached_cookies = ();
-our $VERSION = '3.14';
+our $VERSION = '3.15';
use CGI qw(escapeHTML);
sub new {
Modified: trunk/net-policy/perl/QWizard/Storage/CGIParam.pm
===================================================================
--- trunk/net-policy/perl/QWizard/Storage/CGIParam.pm 2008-09-17 15:10:34 UTC (rev 4716)
+++ trunk/net-policy/perl/QWizard/Storage/CGIParam.pm 2008-09-17 15:11:06 UTC (rev 4717)
@@ -4,7 +4,7 @@
use QWizard::Storage::Base;
our @ISA = qw(QWizard::Storage::Base);
-our $VERSION = '3.14';
+our $VERSION = '3.15';
use CGI;
our %cached_params = ();
Modified: trunk/net-policy/perl/QWizard/Storage/File.pm
===================================================================
--- trunk/net-policy/perl/QWizard/Storage/File.pm 2008-09-17 15:10:34 UTC (rev 4716)
+++ trunk/net-policy/perl/QWizard/Storage/File.pm 2008-09-17 15:11:06 UTC (rev 4717)
@@ -5,7 +5,7 @@
our @ISA = qw(QWizard::Storage::Memory);
-our $VERSION = '3.14';
+our $VERSION = '3.15';
sub new {
my $class = shift;
Modified: trunk/net-policy/perl/QWizard/Storage/Memory.pm
===================================================================
--- trunk/net-policy/perl/QWizard/Storage/Memory.pm 2008-09-17 15:10:34 UTC (rev 4716)
+++ trunk/net-policy/perl/QWizard/Storage/Memory.pm 2008-09-17 15:11:06 UTC (rev 4717)
@@ -5,7 +5,7 @@
our @ISA = qw(QWizard::Storage::Base);
-our $VERSION = '3.14';
+our $VERSION = '3.15';
sub new {
my $class = shift;
Modified: trunk/net-policy/perl/QWizard/Storage/SQL.pm
===================================================================
--- trunk/net-policy/perl/QWizard/Storage/SQL.pm 2008-09-17 15:10:34 UTC (rev 4716)
+++ trunk/net-policy/perl/QWizard/Storage/SQL.pm 2008-09-17 15:11:06 UTC (rev 4717)
@@ -5,7 +5,7 @@
our @ISA = qw(QWizard::Storage::Base);
-our $VERSION = '3.14';
+our $VERSION = '3.15';
our %default_opts =
(
Modified: trunk/net-policy/perl/QWizard/windows/QWizard.ppd
===================================================================
--- trunk/net-policy/perl/QWizard/windows/QWizard.ppd 2008-09-17 15:10:34 UTC (rev 4716)
+++ trunk/net-policy/perl/QWizard/windows/QWizard.ppd 2008-09-17 15:11:06 UTC (rev 4717)
@@ -1,4 +1,4 @@
-<SOFTPKG NAME="QWizard" VERSION="3,14,0,0">
+<SOFTPKG NAME="QWizard" VERSION="3,15,0,0">
<TITLE>QWizard</TITLE>
<ABSTRACT>Ask the user questions, get answers, and act on the answers</ABSTRACT>
<AUTHOR>Wes Hardaker (hardaker AT users DOT sourceforge DOT net)</AUTHOR>
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <har...@us...> - 2008-09-17 15:10:23
|
Revision: 4716
http://net-policy.svn.sourceforge.net/net-policy/?rev=4716&view=rev
Author: hardaker
Date: 2008-09-17 15:10:34 +0000 (Wed, 17 Sep 2008)
Log Message:
-----------
Updating Widgets pod for version 3.15
Modified Paths:
--------------
trunk/net-policy/perl/QWizard/QWizard_Widgets.pod
Modified: trunk/net-policy/perl/QWizard/QWizard_Widgets.pod
===================================================================
--- trunk/net-policy/perl/QWizard/QWizard_Widgets.pod 2008-09-10 19:34:23 UTC (rev 4715)
+++ trunk/net-policy/perl/QWizard/QWizard_Widgets.pod 2008-09-17 15:10:34 UTC (rev 4716)
@@ -93,14 +93,13 @@
=head1 WIDGET SUPPORT SUMMARY MATRIX
-
+--------------+----+----+--+--------+
| |HTML|Gtk2|Tk|ReadLine|
+--------------+----+----+--+--------+
|bar |X |X | | |
|button |X |X |X | |
|checkbox |X |X |X |X |
- |filedownload | |X |X | |
+ |filedownload |X |X |X | |
|fileupload |X |X |X |X |
|graph |X |X |X | |
|hidetext |X |X |X | |
@@ -159,6 +158,24 @@
=back
+=item filedownload
+
+=over
+
+=item name => single
+
+=item default => single
+
+=item data => single
+
+=item datafn => noexpand
+
+=item extension => single
+
+=item linktext => single
+
+=back
+
=item fileupload
=over
@@ -345,7 +362,6 @@
-
=head2 QWizard::Generator::Gtk2
These are the question types known to the QWizard::Generator::Gtk2 generator class:
@@ -370,6 +386,10 @@
=item icon => single
+=item padding => single
+
+=item runcode => noexpand
+
=back
=item checkbox
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <har...@us...> - 2008-09-10 19:34:13
|
Revision: 4715
http://net-policy.svn.sourceforge.net/net-policy/?rev=4715&view=rev
Author: hardaker
Date: 2008-09-10 19:34:23 +0000 (Wed, 10 Sep 2008)
Log Message:
-----------
CHANGES update for next publish
Modified Paths:
--------------
trunk/net-policy/perl/QWizard/CHANGES
Modified: trunk/net-policy/perl/QWizard/CHANGES
===================================================================
--- trunk/net-policy/perl/QWizard/CHANGES 2008-09-10 19:14:09 UTC (rev 4714)
+++ trunk/net-policy/perl/QWizard/CHANGES 2008-09-10 19:34:23 UTC (rev 4715)
@@ -1,4 +1,9 @@
-3.14:
+* 3.15:
+ - Multiple misc perl warnings squashed
+ - Allow a 'runcode' option to buttons for at least Gtk2; use sparingly
+ - Make the back-button gray if there is no state to go back to
+
+* 3.14:
HTML Generator:
- defaults to using minimal included css
- the "nocss" option can turn this off
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <har...@us...> - 2008-09-10 19:13:58
|
Revision: 4714
http://net-policy.svn.sourceforge.net/net-policy/?rev=4714&view=rev
Author: hardaker
Date: 2008-09-10 19:14:09 +0000 (Wed, 10 Sep 2008)
Log Message:
-----------
allow a runcode function to a button; breaks the qwizard concept a touch but...
Modified Paths:
--------------
trunk/net-policy/perl/QWizard/Generator/Gtk2.pm
Modified: trunk/net-policy/perl/QWizard/Generator/Gtk2.pm
===================================================================
--- trunk/net-policy/perl/QWizard/Generator/Gtk2.pm 2008-09-10 19:13:38 UTC (rev 4713)
+++ trunk/net-policy/perl/QWizard/Generator/Gtk2.pm 2008-09-10 19:14:09 UTC (rev 4714)
@@ -112,7 +112,7 @@
['default'],
['single','icon'],
['single','padding'],
- ['single','runonly']]);
+ ['noexpand','runcode']]);
$self->add_handler('fileupload',
\&QWizard::Generator::Gtk2::do_fileupload,
[['single','name'],
@@ -858,7 +858,7 @@
}
sub do_button {
- my ($self, $q, $wiz, $p, $vals, $def, $icon, $padding) = @_;
+ my ($self, $q, $wiz, $p, $vals, $def, $icon, $padding, $runcode) = @_;
$vals = $self->add_accelerator($vals);
my $but = Gtk2::Button->new();
@@ -872,7 +872,15 @@
# $but->set_relief('GTK_RELIEF_NONE');
# $but->set_size_request(40,32);
- $but->signal_connect(clicked => \&goto_next);
+ # this is breaking the QWizard spirit somewhat because it can't
+ # work easily via the web and must-refresh pages, but for GUI only
+ # allow their own callback function instead
+ if (defined($runcode) && ref($runcode) eq 'CODE') {
+ $but->signal_connect(clicked => $runcode);
+ } else {
+ $but->signal_connect(clicked => \&goto_next);
+ }
+
$but->{'qbuttonname'} = $q->{'name'};
$but->{'qbuttonval'} = $def || $q->{'default'}; # XXX: hack for refresh; doesn't deal with code refs properly though. ugh.
$but->{'generator'} = $self;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <har...@us...> - 2008-09-10 19:13:31
|
Revision: 4713
http://net-policy.svn.sourceforge.net/net-policy/?rev=4713&view=rev
Author: hardaker
Date: 2008-09-10 19:13:38 +0000 (Wed, 10 Sep 2008)
Log Message:
-----------
one more warning squash
Modified Paths:
--------------
trunk/net-policy/perl/QWizard/QWizard.pm
Modified: trunk/net-policy/perl/QWizard/QWizard.pm
===================================================================
--- trunk/net-policy/perl/QWizard/QWizard.pm 2008-09-10 17:08:12 UTC (rev 4712)
+++ trunk/net-policy/perl/QWizard/QWizard.pm 2008-09-10 19:13:38 UTC (rev 4713)
@@ -472,7 +472,8 @@
# remap from the values clause which was the text to
# the default clause which is the expected value.
my $vals = $self->get_value($q->{values});
- if ($self->qwparam($q->{'name'}) eq $vals) {
+ if (defined ($self->qwparam($q->{'name'})) &&
+ $self->qwparam($q->{'name'}) eq $vals) {
$self->qwparam($q->{'name'},
$self->get_value($q->{'default'}, undef, [$p, $q]));
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <har...@us...> - 2008-09-10 17:08:02
|
Revision: 4712
http://net-policy.svn.sourceforge.net/net-policy/?rev=4712&view=rev
Author: hardaker
Date: 2008-09-10 17:08:12 +0000 (Wed, 10 Sep 2008)
Log Message:
-----------
Fixed a bunch of warnings reported in a CPAN and Fedora bug report
Modified Paths:
--------------
trunk/net-policy/perl/QWizard/Generator/Gtk2.pm
trunk/net-policy/perl/QWizard/Generator_base/Generator.pm
trunk/net-policy/perl/QWizard/QWizard.pm
Modified: trunk/net-policy/perl/QWizard/Generator/Gtk2.pm
===================================================================
--- trunk/net-policy/perl/QWizard/Generator/Gtk2.pm 2008-08-26 03:06:21 UTC (rev 4711)
+++ trunk/net-policy/perl/QWizard/Generator/Gtk2.pm 2008-09-10 17:08:12 UTC (rev 4712)
@@ -111,7 +111,8 @@
[['single','values'],
['default'],
['single','icon'],
- ['single','padding']]);
+ ['single','padding'],
+ ['single','runonly']]);
$self->add_handler('fileupload',
\&QWizard::Generator::Gtk2::do_fileupload,
[['single','name'],
@@ -125,7 +126,7 @@
$self->init_default_storage();
# force some default image search paths
- print "$self->{'imgpaths'}\n";
+ $self->{'imgpaths'} = [] if (!exists($self->{'imgpaths'}));
$self->{'imgpaths'} = [$self->{'imgpaths'}]
if (ref($self->{'imgpaths'}) ne 'ARRAY');
push @{$self->{'imgpaths'}}, '/usr/share/icons/Bluecurve/16x16/stock/';
@@ -140,6 +141,7 @@
sub create_qw_label {
my ($self, $text, $indent, $icon, $activatewidget, $noimagespacing) = @_;
my $label = Gtk2::Label->new($text);
+ $noimagespacing ||= 0;
$label->set_line_wrap(TRUE);
$label->set_justify('GTK_JUSTIFY_LEFT');
$label->set_padding(($indent ? 30 : 10), 1);
@@ -286,12 +288,11 @@
sub add_qframe {
my ($self, $title, $where) = @_;
$where ||= $self->{'vbox'};
- $self->{'qtable'} = Gtk2::Table->new(3, $self->{'qtable_height'}, FALSE);
+ $self->{'qtable'} = Gtk2::Table->new(3, 3, FALSE);
push @{$self->{'tables'}}, $self->{'qtable'};
if (defined($title)) {
$self->{'qframe'} = Gtk2::Frame->new($title);
$self->{'qframe'}->set_border_width(5);
- $self->{'qtable_height'} = 10;
$self->{'qframe'}->add($self->{'qtable'});
$self->{'qframe'}{'removefrom'} = $where;
$where->pack_start($self->{'qframe'}, FALSE, FALSE, 0);
@@ -592,7 +593,8 @@
sub set_default {
my ($self, $q, $def) = @_;
- $self->qwparam($q->{'name'}, $def) if ($def && $self->qwparam($q->{'name'}) ne $def);
+ return if (!exists($q->{'name'}) || !defined($def));
+ $self->qwparam($q->{'name'}, $def);
}
######################################################################
@@ -734,6 +736,7 @@
}
$self->{radiogroups} = {};
+ $self->{'qadd'} = 0;
return;
# XXX: intro
@@ -1036,7 +1039,7 @@
$self->{'lastquestion'}->set_markup_with_mnemonic($text);
$self->{'lastquestion'}->set_mnemonic_widget($cb);
}
- if ($def eq $vals->[0]) {
+ if (defined($def) && $def eq $vals->[0]) {
$cb->set_active(TRUE);
}
@{$cb->{'qwvals'}} = @$vals;
Modified: trunk/net-policy/perl/QWizard/Generator_base/Generator.pm
===================================================================
--- trunk/net-policy/perl/QWizard/Generator_base/Generator.pm 2008-08-26 03:06:21 UTC (rev 4711)
+++ trunk/net-policy/perl/QWizard/Generator_base/Generator.pm 2008-09-10 17:08:12 UTC (rev 4712)
@@ -463,6 +463,7 @@
# return it if it's already a fullyqualified path
# XXX: win32 issues
+ return if (!defined($file));
return $file if ($file eq '' || $file =~ /^\//);
# get a path list
Modified: trunk/net-policy/perl/QWizard/QWizard.pm
===================================================================
--- trunk/net-policy/perl/QWizard/QWizard.pm 2008-08-26 03:06:21 UTC (rev 4711)
+++ trunk/net-policy/perl/QWizard/QWizard.pm 2008-09-10 17:08:12 UTC (rev 4712)
@@ -41,6 +41,8 @@
eval { require QWizard::Generator::Best; };
$self->{'generator'} =
new QWizard::Generator::Best(@{$self->{'generator_args'}});
+ die "Can't create a suitable QWizard generator"
+ if (!defined($self->{'generator'}));
}
bless($self, $class);
@@ -50,7 +52,7 @@
#
# Get the URI preference option and set our preferences.
#
- my $npprefs = $self->{'npprefs'};
+ my $npprefs = $self->{'npprefs'} || "";
$npprefs =~ s/&np-prefs=//;
parseprefs($self,$npprefs);
@@ -225,9 +227,9 @@
do {
qwdebug("------------------------------------------------------------------");
qwdebug("incoming: " . ref($self->{'generator'}) . " :"
- . $self->qwparam('pass_vars'));
- qwdebug("incoming variables: " . $self->qwparam('pass_vars'));
- qwdebug("incoming stack: " . $self->qwparam('qwizard_tree'));
+ . ($self->qwparam('pass_vars') || ""));
+ qwdebug("incoming variables: " . ($self->qwparam('pass_vars') || ""));
+ qwdebug("incoming stack: " . ($self->qwparam('qwizard_tree') || ""));
if ($self->qwparam('disp_help_p')) {
$self->display_help();
} elsif (!$self->qwparam('qw_cancel') && $self->qwparam('pass_vars')) {
@@ -429,7 +431,7 @@
#
# Handle any auto-updating that's required.
#
- my $aupd = qwpref('updateflag');
+ my $aupd = qwpref('updateflag') || 0;
if($aupd > 0)
{
# warn "keep_working: aupd: $aupd > 0\n";
@@ -623,7 +625,7 @@
my $it = shift @a;
die "fatal spec error. not an action..." if (ref($it) ne 'CODE');
$result = $it->($self, @a);
- } else {
+ } elsif (defined($action)) {
$result = "msg:" . $action;
$result =~ s/\@([^\@]+)\@/$self->qwparam($1)/eg;
}
@@ -671,7 +673,8 @@
my $p = $self->get_primary($pdesc->{'name'});
return if (!$p);
- qwdebug("running actions for $p->{name} for confirm=$confirmonly\n");
+ qwdebug("running actions for ", $p->{name}, " for confirm=",
+ $confirmonly, "\n");
$self->maybe_start_remap($pdesc->{'remap'}, $p);
if ($confirmonly) {
if (exists($p->{'actions_descr'})) {
@@ -857,7 +860,7 @@
# passes known list of hidden tags.
sub pass_vars {
my $self = shift;
- my $vars = $self->qwparam('pass_vars');
+ my $vars = $self->qwparam('pass_vars') || "";
my $newvars = shift;
qwdebug("vars to process: $vars");
@@ -1149,7 +1152,7 @@
$self->run_hooks('ask_questions_begin');
$self->{'generator'}->start_questions($self, $p,
$self->unparamstr($self->get_value($p->{title},undef,[$p])),
- (qwpref('pref_intro') ne '0' ? $self->unparamstr($self->get_value($p->{introduction},undef,[$p])) : ""));
+ ((defined(qwpref('pref_intro')) && qwpref('pref_intro') ne '0') ? $self->unparamstr($self->get_value($p->{introduction},undef,[$p])) : ""));
$self->run_hooks('ask_questions_started');
my @questions = @{$p->{'questions'}};
my ($q, @newqs);
@@ -1201,10 +1204,12 @@
qwdebug("Done with questions... Getting user input\n");
# figure out the value of the next button so we can pass it down
- my $next = (qwparam('no_actions') ne '' ||
+ my $next = ((defined(qwparam('no_actions'))
+ && qwparam('no_actions') ne '') ||
!$self->has_actions_or_post_answers()) ?
'_Finished' : '_Next';
- if (qwparam('no_actions') ne '' ||
+ if ((defined(qwparam('no_actions')) &&
+ qwparam('no_actions') ne '') ||
!$self->has_actions_or_post_answers()) {
$self->{'last_screen'} = 1;
}
@@ -1623,7 +1628,7 @@
my ($self, $top) = @_;
$top = $self->{'active'} if (!$top);
- return $top if ($top->{'done'} == $PRIM_NOTDONE);
+ return $top if (!exists($top->{'done'}) || $top->{'done'} == $PRIM_NOTDONE);
if ($top->{'children'}) {
foreach my $c (@{$top->{'children'}}) {
my $it = $self->get_next_primary($c);
@@ -1747,7 +1752,7 @@
# be turned off. If the debugging preference has been set, we'll get it
# and set the QWizard global debugging flag to that value.
#
- if($prefval eq "")
+ if(!defined($prefval) || $prefval eq "")
{
$qwdebug = 0;
$self->qwpref('pref_debug','No');
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <har...@us...> - 2008-08-26 03:06:11
|
Revision: 4711
http://net-policy.svn.sourceforge.net/net-policy/?rev=4711&view=rev
Author: hardaker
Date: 2008-08-26 03:06:21 +0000 (Tue, 26 Aug 2008)
Log Message:
-----------
disable the back button when there is nothing to go back to
Modified Paths:
--------------
trunk/net-policy/perl/QWizard/Generator/Tk.pm
Modified: trunk/net-policy/perl/QWizard/Generator/Tk.pm
===================================================================
--- trunk/net-policy/perl/QWizard/Generator/Tk.pm 2008-08-25 04:25:40 UTC (rev 4710)
+++ trunk/net-policy/perl/QWizard/Generator/Tk.pm 2008-08-26 03:06:21 UTC (rev 4711)
@@ -279,6 +279,13 @@
QWizard::Generator::remove_accelerator($nexttext || 'Ok');
$self->{'nextbut'}->configure(-text => $text);
}
+
+ # see if we have backup places to get to. If not, grey out the button
+ if ($#{$self->{'backupvars'}} > -1) {
+ $self->{'prevbut'}->configure(-state => 'normal');
+ } else {
+ $self->{'prevbut'}->configure(-state => 'disabled');
+ }
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|