see plug-ins/perl/Changes
This commit is contained in:
@ -16,6 +16,8 @@ Revision history for Gimp-Perl extension.
|
|||||||
- fixed a few bugs in Gimp::Fu. PF_PATTERN & friends confused the
|
- fixed a few bugs in Gimp::Fu. PF_PATTERN & friends confused the
|
||||||
current with the default value and didn't restore it properly.
|
current with the default value and didn't restore it properly.
|
||||||
- gimpdoc can now output a html file tree.
|
- gimpdoc can now output a html file tree.
|
||||||
|
- moved the Perl-Server and Perl Control Center into the Perl submenu.
|
||||||
|
- Gimp::Parasite no longer has a search path.
|
||||||
|
|
||||||
1.1 Fri Jul 30 07:37:30 CEST 1999
|
1.1 Fri Jul 30 07:37:30 CEST 1999
|
||||||
- one of the most successful releases, in terms of features & bugfixes.
|
- one of the most successful releases, in terms of features & bugfixes.
|
||||||
|
@ -526,7 +526,7 @@ _pseudoclass qw(Gradients gimp_gradients_);
|
|||||||
_pseudoclass qw(Edit gimp_edit_);
|
_pseudoclass qw(Edit gimp_edit_);
|
||||||
_pseudoclass qw(Progress gimp_progress_);
|
_pseudoclass qw(Progress gimp_progress_);
|
||||||
_pseudoclass qw(Region );
|
_pseudoclass qw(Region );
|
||||||
_pseudoclass qw(Parasite parasite_ gimp_);
|
_pseudoclass qw(Parasite );
|
||||||
|
|
||||||
# "C"-Classes
|
# "C"-Classes
|
||||||
_pseudoclass qw(GDrawable gimp_gdrawable_ gimp_drawable_);
|
_pseudoclass qw(GDrawable gimp_gdrawable_ gimp_drawable_);
|
||||||
|
@ -180,11 +180,6 @@ that are checked are shown as well (the null prefix "" is implicit).
|
|||||||
|
|
||||||
gimp_patterns_
|
gimp_patterns_
|
||||||
|
|
||||||
=item Parasite
|
|
||||||
|
|
||||||
parasite_
|
|
||||||
gimp_
|
|
||||||
|
|
||||||
=back
|
=back
|
||||||
|
|
||||||
=head1 AUTHOR
|
=head1 AUTHOR
|
||||||
|
@ -304,7 +304,7 @@ sub query {
|
|||||||
Gimp->install_procedure("extension_perl_server", "Start the Gimp-Perl Server",
|
Gimp->install_procedure("extension_perl_server", "Start the Gimp-Perl Server",
|
||||||
"This is the server for plug-ins written using the Gimp::Net module",
|
"This is the server for plug-ins written using the Gimp::Net module",
|
||||||
"Marc Lehmann <pcg\@goof.com>", "Marc Lehmann", "1998-07-22",
|
"Marc Lehmann <pcg\@goof.com>", "Marc Lehmann", "1998-07-22",
|
||||||
"<Toolbox>/Xtns/Perl Server", "*",&Gimp::PROC_EXTENSION,
|
"<Toolbox>/Xtns/Perl/Server", "*",&Gimp::PROC_EXTENSION,
|
||||||
[
|
[
|
||||||
[&Gimp::PARAM_INT32, "run_mode", "Interactive, [non-interactive]"],
|
[&Gimp::PARAM_INT32, "run_mode", "Interactive, [non-interactive]"],
|
||||||
[&Gimp::PARAM_INT32, "flags", "internal flags (must be 0)"],
|
[&Gimp::PARAM_INT32, "flags", "internal flags (must be 0)"],
|
||||||
|
@ -152,7 +152,7 @@ sub query {
|
|||||||
Gimp->install_procedure("extension_perl_control_center", "the perl control center gives information about gimp-perl",
|
Gimp->install_procedure("extension_perl_control_center", "the perl control center gives information about gimp-perl",
|
||||||
"The perl control center gives information about the status of gimp-perl and allows configuration of important system parameters",
|
"The perl control center gives information about the status of gimp-perl and allows configuration of important system parameters",
|
||||||
"Marc Lehmann", "Marc Lehmann", $VERSION,
|
"Marc Lehmann", "Marc Lehmann", $VERSION,
|
||||||
"<Toolbox>/Xtns/Perl Control Center", "*", &Gimp::PROC_EXTENSION,
|
"<Toolbox>/Xtns/Perl/Control Center", "*", &Gimp::PROC_EXTENSION,
|
||||||
[[&Gimp::PARAM_INT32, "run_mode", "Interactive, [non-interactive]"]], []);
|
[[&Gimp::PARAM_INT32, "run_mode", "Interactive, [non-interactive]"]], []);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -100,8 +100,10 @@ EOF
|
|||||||
$_[0] =~ s/</</;
|
$_[0] =~ s/</</;
|
||||||
$_[0] =~ s/>/>/;
|
$_[0] =~ s/>/>/;
|
||||||
|
|
||||||
|
# FIX: the following three lines are only required for my m4 macro package.
|
||||||
$_[0] =~ s/{/_lbr/;
|
$_[0] =~ s/{/_lbr/;
|
||||||
$_[0] =~ s/}/_rbr/;
|
$_[0] =~ s/}/{}_rbr{}/;
|
||||||
|
$_[0] =~ s/_lbr/{}_lbr{}/;
|
||||||
|
|
||||||
# do a best effort to replace function names by links
|
# do a best effort to replace function names by links
|
||||||
$_[0] =~ s{\b([a-z_]+_[a-z_]+)\b}{
|
$_[0] =~ s{\b([a-z_]+_[a-z_]+)\b}{
|
||||||
@ -214,7 +216,11 @@ sub weight {
|
|||||||
}
|
}
|
||||||
|
|
||||||
sub gen_alternatives(\@$\@) {
|
sub gen_alternatives(\@$\@) {
|
||||||
my @new = [@_];
|
my @vals = @{+shift};
|
||||||
|
my $name = shift;
|
||||||
|
my @args = @{+shift};
|
||||||
|
killcounts(@vals); killcounts(@args);
|
||||||
|
my @new = [\@vals,$name,\@args];
|
||||||
my @res;
|
my @res;
|
||||||
do {
|
do {
|
||||||
my @prev = @new;
|
my @prev = @new;
|
||||||
@ -224,7 +230,6 @@ sub gen_alternatives(\@$\@) {
|
|||||||
my $name = $alt->[1];
|
my $name = $alt->[1];
|
||||||
my @args = @{$alt->[2]};
|
my @args = @{$alt->[2]};
|
||||||
# try to get rid of array counts
|
# try to get rid of array counts
|
||||||
push @new, [\@vals,$name,\@args] if killcounts(@vals) | killcounts(@args);
|
|
||||||
unless ($name =~ /[$ ]/) {
|
unless ($name =~ /[$ ]/) {
|
||||||
for my $class (qw(
|
for my $class (qw(
|
||||||
Gimp Layer Image Drawable Selection Channel Display
|
Gimp Layer Image Drawable Selection Channel Display
|
||||||
@ -232,9 +237,14 @@ sub gen_alternatives(\@$\@) {
|
|||||||
PixelRgn GDrawable Patterns Parasite
|
PixelRgn GDrawable Patterns Parasite
|
||||||
)) {
|
)) {
|
||||||
my @pre = @{$class."::PREFIXES"};
|
my @pre = @{$class."::PREFIXES"};
|
||||||
|
prefix:
|
||||||
for (@pre) {
|
for (@pre) {
|
||||||
my $n2 = $name;
|
my $n2 = $name;
|
||||||
if ($_ && $n2 =~ s/^$_//) {
|
if ($_ && $n2 =~ s/^$_//) {
|
||||||
|
for my $p (@pre) {
|
||||||
|
last if $_ eq $p;
|
||||||
|
last prefix if Gimp::_gimp_procedure_available($p.$n2);
|
||||||
|
}
|
||||||
if ($class eq "Drawable" && @args && $args[0][0] == &PARAM_DRAWABLE) {
|
if ($class eq "Drawable" && @args && $args[0][0] == &PARAM_DRAWABLE) {
|
||||||
push @new, [\@vals,"\$drawable->$n2",[@args[1..$#args]]];
|
push @new, [\@vals,"\$drawable->$n2",[@args[1..$#args]]];
|
||||||
} elsif ($class eq "Layer" && @args && $args[0][0] == &PARAM_LAYER) {
|
} elsif ($class eq "Layer" && @args && $args[0][0] == &PARAM_LAYER) {
|
||||||
@ -243,11 +253,17 @@ sub gen_alternatives(\@$\@) {
|
|||||||
push @new, [\@vals,"\$channel->$n2",[@args[1..$#args]]];
|
push @new, [\@vals,"\$channel->$n2",[@args[1..$#args]]];
|
||||||
} elsif ($class eq "Image" && @args && $args[0][0] == &PARAM_IMAGE) {
|
} elsif ($class eq "Image" && @args && $args[0][0] == &PARAM_IMAGE) {
|
||||||
push @new, [\@vals,"\$image->$n2",[@args[1..$#args]]];
|
push @new, [\@vals,"\$image->$n2",[@args[1..$#args]]];
|
||||||
} elsif ($class =~ /Gimp|Gradient|Palette|Edit|Patterns|Parasite|PixelRgn/) {
|
} elsif (@args < 1 or ($args[0][0] != &PARAM_IMAGE
|
||||||
push @new, [\@vals,"${class}->$n2",\@args];
|
&& $args[0][0] != &PARAM_DRAWABLE
|
||||||
} else {
|
&& $args[0][0] != &PARAM_CHANNEL
|
||||||
push @new, [\@vals,"$n2$nbsp$class",\@args];
|
&& $args[0][0] != &PARAM_LAYER)) {
|
||||||
|
if ($class =~ /Gimp|Gradient|Palette|Edit|Patterns|Parasite|PixelRgn/) {
|
||||||
|
push @new, [\@vals,"${class}->$n2",\@args];
|
||||||
|
} else {
|
||||||
|
push @new, [\@vals,"$n2$nbsp$class",\@args];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
last prefix;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user