corrected a typo

1999-03-25  Michael Natterer  <mitschel@cs.tu-berlin.de>

	* unitrc: corrected a typo

	* app/commands.c
	* app/global_edit.c
	* app/gradient.c
	* app/interface.[ch]
	* app/palette.c
	* app/paths_dialog.c: the query_[string|..]_boxes connect their
	close callback to a user provided signal now.

	* libgimp/gimpimage.c: gimp_image_get_unit() doesn't need a
	g_return_if_fail()

	* libgimp/gimpunitmenu.c: memory leak & compiler warning

	* configure.in
	* gimprc.in
	* user_install
	* user_install.bat
	* plug-ins/Makefile.am
	* plug-ins/FractalExplorer/*: added the FractalExplorer plugin.

	* app/install.c: ditto and made the install help text more
	editable by moving it to an array.
This commit is contained in:
Michael Natterer 1999-03-25 23:14:36 +00:00 committed by Michael Natterer
parent 77ae13ef02
commit 737aa1a0de
122 changed files with 10200 additions and 1276 deletions

View File

@ -1,3 +1,30 @@
1999-03-25 Michael Natterer <mitschel@cs.tu-berlin.de>
* unitrc: corrected a typo
* app/commands.c
* app/global_edit.c
* app/gradient.c
* app/interface.[ch]
* app/palette.c
* app/paths_dialog.c: the query_[string|..]_boxes connect their
close callback to a user provided signal now.
* libgimp/gimpimage.c: gimp_image_get_unit() doesn't need a
g_return_if_fail()
* libgimp/gimpunitmenu.c: memory leak & compiler warning
* configure.in
* gimprc.in
* user_install
* user_install.bat
* plug-ins/Makefile.am
* plug-ins/FractalExplorer/*: added the FractalExplorer plugin.
* app/install.c: ditto and made the install help text more
editable by moving it to an array.
Thu Mar 25 22:44:36 GMT 1999 Andy Thomas <alt@gimp.org>
Ok. I'll add the file this time..
@ -212,7 +239,7 @@ Tue Mar 16 19:12:08 CET 1999 Marc Lehmann <pcg@goof.com>
* app/gdisplay.h: double the length of the cursor_format_str as
users may define strange units now
* app/xcf.c: forgot a sanity check when loading/saving the user
unit property
@ -220,7 +247,7 @@ Tue Mar 16 19:12:08 CET 1999 Marc Lehmann <pcg@goof.com>
This implements the rest of the unit system (unitrc loading and
saving and full PDB interface)
* Makefile.am
* gimp.1
* user_install

View File

@ -368,13 +368,13 @@ select_border_cmd_callback (GtkWidget *widget,
gdisp = gdisplay_active ();
query_size_box (N_("Border Selection"),
N_("Border selection by:"),
query_size_box (_("Border Selection"),
_("Border selection by:"),
gimage_mask_border_radius, 1, 32767, 0,
gdisp->dot_for_dot ? UNIT_PIXEL : gdisp->gimage->unit,
MIN(gdisp->gimage->xresolution, gdisp->gimage->yresolution),
GTK_OBJECT (gdisp->gimage), gimage_mask_border_callback,
gdisp->gimage);
GTK_OBJECT (gdisp->gimage), "destroy",
gimage_mask_border_callback, gdisp->gimage);
}
void
@ -385,13 +385,13 @@ select_feather_cmd_callback (GtkWidget *widget,
gdisp = gdisplay_active ();
query_size_box (N_("Feather Selection"),
N_("Feather selection by:"),
query_size_box (_("Feather Selection"),
_("Feather selection by:"),
gimage_mask_feather_radius, 0, 32767, 3,
gdisp->dot_for_dot ? UNIT_PIXEL : gdisp->gimage->unit,
MIN(gdisp->gimage->xresolution, gdisp->gimage->yresolution),
GTK_OBJECT (gdisp->gimage), gimage_mask_feather_callback,
gdisp->gimage);
GTK_OBJECT (gdisp->gimage), "destroy",
gimage_mask_feather_callback, gdisp->gimage);
}
void
@ -407,8 +407,8 @@ select_grow_cmd_callback (GtkWidget *widget,
gimage_mask_grow_pixels, 1, 32767, 0,
gdisp->dot_for_dot ? UNIT_PIXEL : gdisp->gimage->unit,
MIN(gdisp->gimage->xresolution, gdisp->gimage->yresolution),
GTK_OBJECT (gdisp->gimage), gimage_mask_grow_callback,
gdisp->gimage);
GTK_OBJECT (gdisp->gimage), "destroy",
gimage_mask_grow_callback, gdisp->gimage);
}
void
@ -424,8 +424,8 @@ select_shrink_cmd_callback (GtkWidget *widget,
gimage_mask_shrink_pixels, 1, 32767, 0,
gdisp->dot_for_dot ? UNIT_PIXEL : gdisp->gimage->unit,
MIN(gdisp->gimage->xresolution, gdisp->gimage->yresolution),
GTK_OBJECT (gdisp->gimage), gimage_mask_shrink_callback,
gdisp->gimage);
GTK_OBJECT (gdisp->gimage), "destroy",
gimage_mask_shrink_callback, gdisp->gimage);
}
void

View File

@ -368,13 +368,13 @@ select_border_cmd_callback (GtkWidget *widget,
gdisp = gdisplay_active ();
query_size_box (N_("Border Selection"),
N_("Border selection by:"),
query_size_box (_("Border Selection"),
_("Border selection by:"),
gimage_mask_border_radius, 1, 32767, 0,
gdisp->dot_for_dot ? UNIT_PIXEL : gdisp->gimage->unit,
MIN(gdisp->gimage->xresolution, gdisp->gimage->yresolution),
GTK_OBJECT (gdisp->gimage), gimage_mask_border_callback,
gdisp->gimage);
GTK_OBJECT (gdisp->gimage), "destroy",
gimage_mask_border_callback, gdisp->gimage);
}
void
@ -385,13 +385,13 @@ select_feather_cmd_callback (GtkWidget *widget,
gdisp = gdisplay_active ();
query_size_box (N_("Feather Selection"),
N_("Feather selection by:"),
query_size_box (_("Feather Selection"),
_("Feather selection by:"),
gimage_mask_feather_radius, 0, 32767, 3,
gdisp->dot_for_dot ? UNIT_PIXEL : gdisp->gimage->unit,
MIN(gdisp->gimage->xresolution, gdisp->gimage->yresolution),
GTK_OBJECT (gdisp->gimage), gimage_mask_feather_callback,
gdisp->gimage);
GTK_OBJECT (gdisp->gimage), "destroy",
gimage_mask_feather_callback, gdisp->gimage);
}
void
@ -407,8 +407,8 @@ select_grow_cmd_callback (GtkWidget *widget,
gimage_mask_grow_pixels, 1, 32767, 0,
gdisp->dot_for_dot ? UNIT_PIXEL : gdisp->gimage->unit,
MIN(gdisp->gimage->xresolution, gdisp->gimage->yresolution),
GTK_OBJECT (gdisp->gimage), gimage_mask_grow_callback,
gdisp->gimage);
GTK_OBJECT (gdisp->gimage), "destroy",
gimage_mask_grow_callback, gdisp->gimage);
}
void
@ -424,8 +424,8 @@ select_shrink_cmd_callback (GtkWidget *widget,
gimage_mask_shrink_pixels, 1, 32767, 0,
gdisp->dot_for_dot ? UNIT_PIXEL : gdisp->gimage->unit,
MIN(gdisp->gimage->xresolution, gdisp->gimage->yresolution),
GTK_OBJECT (gdisp->gimage), gimage_mask_shrink_callback,
gdisp->gimage);
GTK_OBJECT (gdisp->gimage), "destroy",
gimage_mask_shrink_callback, gdisp->gimage);
}
void

View File

@ -696,9 +696,10 @@ named_edit_cut (void *gdisp_ptr)
gdisp = (GDisplay *) gdisp_ptr;
active_tool_control (HALT, gdisp_ptr);
query_string_box (N_("Cut Named"),
N_("Enter a name for this buffer"),
NULL, GTK_OBJECT (gdisp->gimage),
query_string_box (_("Cut Named"),
_("Enter a name for this buffer"),
NULL,
GTK_OBJECT (gdisp->gimage), "destroy",
cut_named_buffer_callback, gdisp);
return TRUE;
}
@ -727,9 +728,10 @@ named_edit_copy (void *gdisp_ptr)
gdisp = (GDisplay *) gdisp_ptr;
query_string_box (N_("Copy Named"),
N_("Enter a name for this buffer"),
NULL, GTK_OBJECT (gdisp->gimage),
query_string_box (_("Copy Named"),
_("Enter a name for this buffer"),
NULL,
GTK_OBJECT (gdisp->gimage), "destroy",
copy_named_buffer_callback, gdisp);
return TRUE;
}

View File

@ -696,9 +696,10 @@ named_edit_cut (void *gdisp_ptr)
gdisp = (GDisplay *) gdisp_ptr;
active_tool_control (HALT, gdisp_ptr);
query_string_box (N_("Cut Named"),
N_("Enter a name for this buffer"),
NULL, GTK_OBJECT (gdisp->gimage),
query_string_box (_("Cut Named"),
_("Enter a name for this buffer"),
NULL,
GTK_OBJECT (gdisp->gimage), "destroy",
cut_named_buffer_callback, gdisp);
return TRUE;
}
@ -727,9 +728,10 @@ named_edit_copy (void *gdisp_ptr)
gdisp = (GDisplay *) gdisp_ptr;
query_string_box (N_("Copy Named"),
N_("Enter a name for this buffer"),
NULL, GTK_OBJECT (gdisp->gimage),
query_string_box (_("Copy Named"),
_("Enter a name for this buffer"),
NULL,
GTK_OBJECT (gdisp->gimage), "destroy",
copy_named_buffer_callback, gdisp);
return TRUE;
}

View File

@ -106,6 +106,138 @@ install_help (InstallCallback callback)
GdkFont *font_strong;
GdkFont *font_emphasis;
GdkFont *font;
static const struct {
gint font;
char *text;
} help_lines[] = {
{ 2, N_("The GIMP - GNU Image Manipulation Program\n\n") },
{ 1, N_("Copyright (C) 1995 Spencer Kimball and Peter Mattis\n") },
{ 0, "\n" },
{ 0, N_("This program is free software; you can redistribute it and/or modify\n") },
{ 0, N_("it under the terms of the GNU General Public License as published by\n") },
{ 0, N_("the Free Software Foundation; either version 2 of the License, or\n") },
{ 0, N_("(at your option) any later version.\n") },
{ 0, "\n" },
{ 0, N_("This program is distributed in the hope that it will be useful,\n") },
{ 0, N_("but WITHOUT ANY WARRANTY; without even the implied warranty of\n") },
{ 0, N_("MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n") },
{ 0, N_("See the GNU General Public License for more details.\n") },
{ 0, "\n" },
{ 0, N_("You should have received a copy of the GNU General Public License\n") },
{ 0, N_("along with this program; if not, write to the Free Software\n") },
{ 0, N_("Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\n") },
{ 0, "\n\n" },
{ 2, N_("Personal GIMP Installation\n\n") },
{ 0, N_("For a proper GIMP installation, a subdirectory called\n") },
{ 1, NULL }, /* will be replaced with gimp_directory() */
{ 0, N_(" needs to be created. This\n") },
{ 0, N_("subdirectory will contain a number of important files:\n\n") },
{ 1, N_("gimprc\n") },
{ 0, N_("\t\tThe gimprc is used to store personal preferences\n") },
{ 0, N_("\t\tsuch as default GIMP behaviors & plug-in hotkeys.\n") },
{ 0, N_("\t\tPaths to search for brushes, palettes, gradients\n") },
{ 0, N_("\t\tpatterns, plug-ins and modules are also configured here.\n") },
{ 1, N_("unitrc\n") },
{ 0, N_("\t\tThe unitrc is used to store your user units database.\n") },
{ 0, N_("\t\tYou can define additional units and use them just\n") },
{ 0, N_("\t\tlike you use the built-in units inches, millimeters,\n") },
{ 0, N_("\t\tpoints and picas. This file is overwritten each time\n") },
{ 0, N_("\t\tyou quit the GIMP.\n") },
{ 1, N_("pluginrc\n") },
{ 0, N_("\t\tPlug-ins and extensions are external programs run by\n") },
{ 0, N_("\t\tthe GIMP which provide additional functionality.\n") },
{ 0, N_("\t\tThese programs are searched for at run-time and\n") },
{ 0, N_("\t\tinformation about their functionality and mod-times\n") },
{ 0, N_("\t\tis cached in this file. This file is intended to\n") },
{ 0, N_("\t\tbe GIMP-readable only, and should not be edited.\n") },
{ 1, N_("brushes\n") },
{ 0, N_("\t\tThis is a subdirectory which can be used to store\n") },
{ 0, N_("\t\tuser defined brushes. The default gimprc file\n") },
{ 0, N_("\t\tchecks this subdirectory in addition to the system-\n") },
{ 0, N_("\t\twide gimp brushes installation when searching for\n") },
{ 0, N_("\t\tbrushes.\n") },
{ 1, N_("gradients\n") },
{ 0, N_("\t\tThis is a subdirectory which can be used to store\n") },
{ 0, N_("\t\tuser defined gradients. The default gimprc file\n") },
{ 0, N_("\t\tchecks this subdirectory in addition to the system-\n") },
{ 0, N_("\t\twide gimp gradients installation when searching for\n") },
{ 0, N_("\t\tgradients.\n") },
{ 1, N_("gfig\n") },
{ 0, N_("\t\tThis is a subdirectory which can be used to store\n") },
{ 0, N_("\t\tuser defined figures to be used by the gfig plug-in.\n") },
{ 0, N_("\t\tThe default gimprc file checks this subdirectory in\n") },
{ 0, N_("\t\taddition to the systemwide gimp gfig installation\n") },
{ 0, N_("\t\twhen searching for gfig figures.\n") },
{ 1, N_("gflares\n") },
{ 0, N_("\t\tThis is a subdirectory which can be used to store\n") },
{ 0, N_("\t\tuser defined gflares to be used by the gflare plug-in.\n") },
{ 0, N_("\t\tThe default gimprc file checks this subdirectory in\n") },
{ 0, N_("\t\taddition to the systemwide gimp gflares installation\n") },
{ 0, N_("\t\twhen searching for gflares.\n") },
{ 1, N_("fractalexplorer\n") },
{ 0, N_("\t\tThis is a subdirectory which can be used to store\n") },
{ 0, N_("\t\tuser defined fractals to be used by the FractalExplorer plug-in.\n") },
{ 0, N_("\t\tThe default gimprc file checks this subdirectory in\n") },
{ 0, N_("\t\taddition to the systemwide gimp FractalExplorer installation\n") },
{ 0, N_("\t\twhen searching for fractals.\n") },
{ 1, N_("palettes\n") },
{ 0, N_("\t\tThis is a subdirectory which can be used to store\n") },
{ 0, N_("\t\tuser defined palettes. The default gimprc file\n") },
{ 0, N_("\t\tchecks only this subdirectory (not the system-wide\n") },
{ 0, N_("\t\tinstallation) when searching for palettes. During\n") },
{ 0, N_("\t\tinstallation, the system palettes will be copied\n") },
{ 0, N_("\t\there. This is done to allow modifications made to\n") },
{ 0, N_("\t\tpalettes during GIMP execution to persist across\n") },
{ 0, N_("\t\tsessions.\n") },
{ 1, N_("patterns\n") },
{ 0, N_("\t\tThis is a subdirectory which can be used to store\n") },
{ 0, N_("\t\tuser defined patterns. The default gimprc file\n") },
{ 0, N_("\t\tchecks this subdirectory in addition to the system-\n") },
{ 0, N_("\t\twide gimp patterns installation when searching for\n") },
{ 0, N_("\t\tpatterns.\n") },
{ 1, N_("plug-ins\n") },
{ 0, N_("\t\tThis is a subdirectory which can be used to store\n") },
{ 0, N_("\t\tuser created, temporary, or otherwise non-system-\n") },
{ 0, N_("\t\tsupported plug-ins. The default gimprc file\n") },
{ 0, N_("\t\tchecks this subdirectory in addition to the system-\n") },
{ 0, N_("\t\twide GIMP plug-in directories when searching for\n") },
{ 0, N_("\t\tplug-ins.\n") },
{ 1, N_("modules\n") },
{ 0, N_("\t\tThis subdirectory can be used to store user created,\n") },
{ 0, N_("\t\ttemporary, or otherwise non-system-supported DLL modules.\n") },
{ 0, N_("\t\tThe default gimprc file checks this subdirectory\n") },
{ 0, N_("\t\tin addition to the system-wide GIMP module directory\n") },
{ 0, N_("\t\twhen searching for modules to load when initialising.\n") },
{ 1, N_("scripts\n") },
{ 0, N_("\t\tThis subdirectory is used by the GIMP to store \n") },
{ 0, N_("\t\tuser created and installed scripts. The default gimprc\n") },
{ 0, N_("\t\tfile checks this subdirectory in addition to the system\n") },
{ 0, N_("\t\t-wide gimp scripts subdirectory when searching for scripts\n") },
{ 1, N_("tmp\n") },
{ 0, N_("\t\tThis subdirectory is used by the GIMP to temporarily\n") },
{ 0, N_("\t\tstore undo buffers to reduce memory usage. If GIMP is\n") },
{ 0, N_("\t\tunceremoniously killed, files may persist in this directory\n") },
{ 0, N_("\t\tof the form: gimp<#>.<#>. These files are useless across\n") },
{ 0, N_("\t\tGIMP sessions and can be destroyed with impunity.\n") }
};
gint nhelp_lines = sizeof (help_lines) / sizeof (help_lines[0]);
gint i;
help_widget = gtk_dialog_new ();
gtk_signal_connect (GTK_OBJECT (help_widget), "delete_event",
@ -147,213 +279,20 @@ install_help (InstallCallback callback)
/* Realize the widget before allowing new text to be inserted */
gtk_widget_realize (text);
gtk_text_insert (GTK_TEXT (text), font_strong, NULL, NULL,
_("The GIMP - GNU Image Manipulation Program\n\n"), -1);
gtk_text_insert (GTK_TEXT (text), font_emphasis, NULL, NULL,
_("Copyright (C) 1995 Spencer Kimball and Peter Mattis\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
"\n", -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("This program is free software; you can redistribute it and/or modify\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("it under the terms of the GNU General Public License as published by\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("the Free Software Foundation; either version 2 of the License, or\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("(at your option) any later version.\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
"\n", -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("This program is distributed in the hope that it will be useful,\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("but WITHOUT ANY WARRANTY; without even the implied warranty of\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("See the GNU General Public License for more details.\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
"\n", -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("You should have received a copy of the GNU General Public License\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("along with this program; if not, write to the Free Software\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
"\n\n", -1);
gtk_text_insert (GTK_TEXT (text), font_strong, NULL, NULL,
_("Personal GIMP Installation\n\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("For a proper GIMP installation, a subdirectory called\n"), -1);
gtk_text_insert (GTK_TEXT (text), font_emphasis, NULL, NULL,
gimp_directory (), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_(" needs to be created. This\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("subdirectory will contain a number of important files:\n\n"), -1);
gtk_text_insert (GTK_TEXT (text), font_emphasis, NULL, NULL,
_("gimprc\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\tThe gimprc is used to store personal preferences\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\tsuch as default GIMP behaviors & plug-in hotkeys.\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\tPaths to search for brushes, palettes, gradients\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\tpatterns, plug-ins and modules are also configured here.\n"), -1);
gtk_text_insert (GTK_TEXT (text), font_emphasis, NULL, NULL,
_("unitrc\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\tThe unitrc is used to store your user units database.\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\tYou can define additional units and use them just\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\tlike you use the built-in units inches, millimeters,\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\tpoints and picas. This file is overwritten each time\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\tyou quit the GIMP.\n"), -1);
gtk_text_insert (GTK_TEXT (text), font_emphasis, NULL, NULL,
_("pluginrc\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\tPlug-ins and extensions are external programs run by\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\tthe GIMP which provide additional functionality.\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\tThese programs are searched for at run-time and\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\tinformation about their functionality and mod-times\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\tis cached in this file. This file is intended to\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\tbe GIMP-readable only, and should not be edited.\n"), -1);
gtk_text_insert (GTK_TEXT (text), font_emphasis, NULL, NULL,
_("brushes\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\tThis is a subdirectory which can be used to store\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\tuser defined brushes. The default gimprc file\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\tchecks this subdirectory in addition to the system-\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\twide gimp brushes installation when searching for\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\tbrushes.\n"), -1);
gtk_text_insert (GTK_TEXT (text), font_emphasis, NULL, NULL,
_("gradients\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\tThis is a subdirectory which can be used to store\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\tuser defined gradients. The default gimprc file\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\tchecks this subdirectory in addition to the system-\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\twide gimp gradients installation when searching for\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\tgradients.\n"), -1);
gtk_text_insert (GTK_TEXT (text), font_emphasis, NULL, NULL,
_("gfig\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\tThis is a subdirectory which can be used to store\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\tuser defined figures to be used by the gfig plug-in.\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\tThe default gimprc file checks this subdirectory in\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\taddition to the systemwide gimp gfig installation\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\twhen searching for gfig figures.\n"), -1);
gtk_text_insert (GTK_TEXT (text), font_emphasis, NULL, NULL,
_("gflares\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\tThis is a subdirectory which can be used to store\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\tuser defined gflares to be used by the gflare plug-in.\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\tThe default gimprc file checks this subdirectory in\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\taddition to the systemwide gimp gflares installation\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\twhen searching for gflares.\n"), -1);
gtk_text_insert (GTK_TEXT (text), font_emphasis, NULL, NULL,
_("palettes\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\tThis is a subdirectory which can be used to store\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\tuser defined palettes. The default gimprc file\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\tchecks only this subdirectory (not the system-wide\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\tinstallation) when searching for palettes. During\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\tinstallation, the system palettes will be copied\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\there. This is done to allow modifications made to\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\tpalettes during GIMP execution to persist across\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\tsessions.\n"), -1);
gtk_text_insert (GTK_TEXT (text), font_emphasis, NULL, NULL,
_("patterns\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\tThis is a subdirectory which can be used to store\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\tuser defined patterns. The default gimprc file\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\tchecks this subdirectory in addition to the system-\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\twide gimp patterns installation when searching for\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\tpatterns.\n"), -1);
gtk_text_insert (GTK_TEXT (text), font_emphasis, NULL, NULL,
_("plug-ins\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\tThis is a subdirectory which can be used to store\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\tuser created, temporary, or otherwise non-system-\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\tsupported plug-ins. The default gimprc file\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\tchecks this subdirectory in addition to the system-\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\twide GIMP plug-in directories when searching for\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\tplug-ins.\n"), -1);
gtk_text_insert (GTK_TEXT (text), font_emphasis, NULL, NULL,
_("modules\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\tThis subdirectory can be used to store user created,\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\ttemporary, or otherwise non-system-supported DLL modules. \n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\tThe default gimprc file checks this subdirectory\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\tin addition to the system-wide GIMP module directory\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\twhen searching for modules to load when initialising.\n"), -1);
gtk_text_insert (GTK_TEXT (text), font_emphasis, NULL, NULL,
_("scripts\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\tThis subdirectory is used by the GIMP to store \n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\tuser created and installed scripts. The default gimprc\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\tfile checks this subdirectory in addition to the system\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\t-wide gimp scripts subdirectory when searching for scripts\n"), -1);
gtk_text_insert (GTK_TEXT (text), font_emphasis, NULL, NULL,
_("tmp\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\tThis subdirectory is used by the GIMP to temporarily\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\tstore undo buffers to reduce memory usage. If GIMP is\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\tunceremoniously killed, files may persist in this directory\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\tof the form: gimp<#>.<#>. These files are useless across\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\tGIMP sessions and can be destroyed with impunity.\n"), -1);
for (i = 0; i < nhelp_lines; i++)
if (help_lines[i].text == NULL)
/* inserting gimp_directory () this way is a little ugly */
gtk_text_insert (GTK_TEXT (text),
(help_lines[i].font == 2) ? font_strong :
(help_lines[i].font == 1) ? font_emphasis : font,
NULL, NULL,
gimp_directory (), -1);
else
gtk_text_insert (GTK_TEXT (text),
(help_lines[i].font == 2) ? font_strong :
(help_lines[i].font == 1) ? font_emphasis : font,
NULL, NULL,
gettext (help_lines[i].text), -1);
/* scroll back to the top */
gtk_adjustment_set_value (GTK_ADJUSTMENT (vadj), 0.0);

View File

@ -809,8 +809,8 @@ struct _QueryBox
gpointer data;
};
static QueryBox * create_query_box (char *, char *, GtkObject *, QueryFunc,
gpointer);
static QueryBox * create_query_box (gchar *, gchar *, GtkObject *, gchar *,
QueryFunc, gpointer);
static gint query_box_delete_callback (GtkWidget *, GdkEvent *, gpointer);
static void query_box_cancel_callback (GtkWidget *, gpointer);
static void string_query_box_ok_callback (GtkWidget *, gpointer);
@ -822,9 +822,10 @@ static void size_query_box_ok_callback (GtkWidget *, gpointer);
*/
QueryBox *
create_query_box (char *title,
char *message,
create_query_box (gchar *title,
gchar *message,
GtkObject *object,
gchar *signal,
QueryFunc callback,
gpointer data)
{
@ -845,11 +846,10 @@ create_query_box (char *title,
(GtkSignalFunc) query_box_delete_callback,
query_box);
/* if we are associated with an object, connect to that object's
* "destroy" signal
/* if we are associated with an object, connect to the provided signal
*/
if (object && GTK_IS_OBJECT (object))
gtk_signal_connect (GTK_OBJECT (object), "destroy",
if (object && GTK_IS_OBJECT (object) && signal)
gtk_signal_connect (GTK_OBJECT (object), signal,
(GtkSignalFunc) query_box_cancel_callback,
query_box);
else
@ -894,17 +894,18 @@ create_query_box (char *title,
}
GtkWidget *
query_string_box (char *title,
char *message,
char *initial,
query_string_box (gchar *title,
gchar *message,
gchar *initial,
GtkObject *object,
gchar *signal,
QueryFunc callback,
gpointer data)
{
QueryBox *query_box;
GtkWidget *entry;
query_box = create_query_box (title, message, object, callback, data);
query_box = create_query_box (title, message, object, signal, callback, data);
gtk_signal_connect (GTK_OBJECT (query_box->ok_button), "clicked",
(GtkSignalFunc) string_query_box_ok_callback,
@ -925,12 +926,13 @@ query_string_box (char *title,
}
GtkWidget *
query_int_box (char *title,
char *message,
int initial,
int lower,
int upper,
query_int_box (gchar *title,
gchar *message,
gint initial,
gint lower,
gint upper,
GtkObject *object,
gchar *signal,
QueryFunc callback,
gpointer data)
{
@ -938,7 +940,7 @@ query_int_box (char *title,
GtkAdjustment* adjustment;
GtkWidget *spinbutton;
query_box = create_query_box (title, message, object, callback, data);
query_box = create_query_box (title, message, object, signal, callback, data);
gtk_signal_connect (GTK_OBJECT (query_box->ok_button), "clicked",
(GtkSignalFunc) int_query_box_ok_callback,
@ -959,13 +961,14 @@ query_int_box (char *title,
}
GtkWidget *
query_float_box (char *title,
char *message,
float initial,
float lower,
float upper,
int digits,
query_float_box (gchar *title,
gchar *message,
gfloat initial,
gfloat lower,
gfloat upper,
gint digits,
GtkObject *object,
gchar *signal,
QueryFunc callback,
gpointer data)
{
@ -973,7 +976,7 @@ query_float_box (char *title,
GtkAdjustment* adjustment;
GtkWidget *spinbutton;
query_box = create_query_box (title, message, object, callback, data);
query_box = create_query_box (title, message, object, signal, callback, data);
gtk_signal_connect (GTK_OBJECT (query_box->ok_button), "clicked",
(GtkSignalFunc) float_query_box_ok_callback,
@ -994,22 +997,23 @@ query_float_box (char *title,
}
GtkWidget *
query_size_box (char *title,
char *message,
float initial,
float lower,
float upper,
int digits,
query_size_box (gchar *title,
gchar *message,
gfloat initial,
gfloat lower,
gfloat upper,
gint digits,
GUnit unit,
float resolution,
gfloat resolution,
GtkObject *object,
gchar *signal,
QueryFunc callback,
gpointer data)
{
QueryBox *query_box;
GtkWidget *sizeentry;
query_box = create_query_box (title, message, object, callback, data);
query_box = create_query_box (title, message, object, signal, callback, data);
gtk_signal_connect (GTK_OBJECT (query_box->ok_button), "clicked",
(GtkSignalFunc) size_query_box_ok_callback,
@ -1054,7 +1058,7 @@ query_box_cancel_callback (GtkWidget *w,
query_box = (QueryBox *) client_data;
/* disconnect, if we are connected to some object's "destroy" signal */
/* disconnect, if we are connected to some signal */
if (query_box->object)
gtk_signal_disconnect_by_data (query_box->object, query_box);
@ -1069,11 +1073,11 @@ string_query_box_ok_callback (GtkWidget *w,
gpointer client_data)
{
QueryBox *query_box;
char *string;
gchar *string;
query_box = (QueryBox *) client_data;
/* disconnect, if we are connected to some object's "destroy" signal */
/* disconnect, if we are connected to some signal */
if (query_box->object)
gtk_signal_disconnect_by_data (query_box->object, query_box);
@ -1094,18 +1098,18 @@ int_query_box_ok_callback (GtkWidget *w,
gpointer client_data)
{
QueryBox *query_box;
int *integer_value;
gint *integer_value;
query_box = (QueryBox *) client_data;
/* disconnect, if we are connected to some object's "destroy" signal */
/* disconnect, if we are connected to some signal */
if (query_box->object)
gtk_signal_disconnect_by_data (query_box->object, query_box);
/* Get the spinbutton data */
integer_value = g_malloc(sizeof(int));
integer_value = g_malloc (sizeof (gint));
*integer_value =
gtk_spin_button_get_value_as_int(GTK_SPIN_BUTTON(query_box->entry));
gtk_spin_button_get_value_as_int (GTK_SPIN_BUTTON(query_box->entry));
/* Call the user defined callback */
(* query_box->callback) (w, query_box->data, (gpointer) integer_value);
@ -1121,16 +1125,16 @@ float_query_box_ok_callback (GtkWidget *w,
gpointer client_data)
{
QueryBox *query_box;
float *float_value;
gfloat *float_value;
query_box = (QueryBox *) client_data;
/* disconnect, if we are connected to some object's "destroy" signal */
/* disconnect, if we are connected to some signal */
if (query_box->object)
gtk_signal_disconnect_by_data (query_box->object, query_box);
/* Get the spinbutton data */
float_value = g_malloc(sizeof(float));
float_value = g_malloc (sizeof (gfloat));
*float_value =
gtk_spin_button_get_value_as_float(GTK_SPIN_BUTTON(query_box->entry));
@ -1148,16 +1152,16 @@ size_query_box_ok_callback (GtkWidget *w,
gpointer client_data)
{
QueryBox *query_box;
float *float_value;
gfloat *float_value;
query_box = (QueryBox *) client_data;
/* disconnect, if we are connected to some object's "destroy" signal */
/* disconnect, if we are connected to some signal */
if (query_box->object)
gtk_signal_disconnect_by_data (query_box->object, query_box);
/* Get the sizeentry data */
float_value = g_malloc(sizeof(float));
float_value = g_malloc (sizeof (gfloat));
*float_value =
gimp_size_entry_get_refval (GIMP_SIZE_ENTRY (query_box->entry), 0);

View File

@ -58,41 +58,45 @@ void create_display_shell (GDisplay *gdisp,
*/
/* some simple query dialogs
* if object != NULL then the query boxes will connect to the "destroy"
* signal of this object
* if object != NULL then the query boxes will connect their cancel callback
* to the provided signal of this object
*/
GtkWidget * query_string_box (char *title,
char *message,
char *initial,
GtkWidget * query_string_box (gchar *title,
gchar *message,
gchar *initial,
GtkObject *object,
gchar *signal,
QueryFunc callback,
gpointer data);
GtkWidget * query_int_box (char *title,
GtkWidget * query_int_box (gchar *title,
char *message,
int initial,
int lower,
int upper,
gint initial,
gint lower,
gint upper,
GtkObject *object,
gchar *signal,
QueryFunc callback,
gpointer data);
GtkWidget * query_float_box (char *title,
char *message,
float initial,
float lower,
float upper,
int digits,
GtkWidget * query_float_box (gchar *title,
gchar *message,
gfloat initial,
gfloat lower,
gfloat upper,
gint digits,
GtkObject *object,
gchar *signal,
QueryFunc callback,
gpointer data);
GtkWidget * query_size_box (char *title,
char *message,
float initial,
float lower,
float upper,
int digits,
GtkWidget * query_size_box (gchar *title,
gchar *message,
gfloat initial,
gfloat lower,
gfloat upper,
gint digits,
GUnit unit,
float resolution,
gfloat resolution,
GtkObject *object,
gchar *signal,
QueryFunc callback,
gpointer data);

View File

@ -809,8 +809,8 @@ struct _QueryBox
gpointer data;
};
static QueryBox * create_query_box (char *, char *, GtkObject *, QueryFunc,
gpointer);
static QueryBox * create_query_box (gchar *, gchar *, GtkObject *, gchar *,
QueryFunc, gpointer);
static gint query_box_delete_callback (GtkWidget *, GdkEvent *, gpointer);
static void query_box_cancel_callback (GtkWidget *, gpointer);
static void string_query_box_ok_callback (GtkWidget *, gpointer);
@ -822,9 +822,10 @@ static void size_query_box_ok_callback (GtkWidget *, gpointer);
*/
QueryBox *
create_query_box (char *title,
char *message,
create_query_box (gchar *title,
gchar *message,
GtkObject *object,
gchar *signal,
QueryFunc callback,
gpointer data)
{
@ -845,11 +846,10 @@ create_query_box (char *title,
(GtkSignalFunc) query_box_delete_callback,
query_box);
/* if we are associated with an object, connect to that object's
* "destroy" signal
/* if we are associated with an object, connect to the provided signal
*/
if (object && GTK_IS_OBJECT (object))
gtk_signal_connect (GTK_OBJECT (object), "destroy",
if (object && GTK_IS_OBJECT (object) && signal)
gtk_signal_connect (GTK_OBJECT (object), signal,
(GtkSignalFunc) query_box_cancel_callback,
query_box);
else
@ -894,17 +894,18 @@ create_query_box (char *title,
}
GtkWidget *
query_string_box (char *title,
char *message,
char *initial,
query_string_box (gchar *title,
gchar *message,
gchar *initial,
GtkObject *object,
gchar *signal,
QueryFunc callback,
gpointer data)
{
QueryBox *query_box;
GtkWidget *entry;
query_box = create_query_box (title, message, object, callback, data);
query_box = create_query_box (title, message, object, signal, callback, data);
gtk_signal_connect (GTK_OBJECT (query_box->ok_button), "clicked",
(GtkSignalFunc) string_query_box_ok_callback,
@ -925,12 +926,13 @@ query_string_box (char *title,
}
GtkWidget *
query_int_box (char *title,
char *message,
int initial,
int lower,
int upper,
query_int_box (gchar *title,
gchar *message,
gint initial,
gint lower,
gint upper,
GtkObject *object,
gchar *signal,
QueryFunc callback,
gpointer data)
{
@ -938,7 +940,7 @@ query_int_box (char *title,
GtkAdjustment* adjustment;
GtkWidget *spinbutton;
query_box = create_query_box (title, message, object, callback, data);
query_box = create_query_box (title, message, object, signal, callback, data);
gtk_signal_connect (GTK_OBJECT (query_box->ok_button), "clicked",
(GtkSignalFunc) int_query_box_ok_callback,
@ -959,13 +961,14 @@ query_int_box (char *title,
}
GtkWidget *
query_float_box (char *title,
char *message,
float initial,
float lower,
float upper,
int digits,
query_float_box (gchar *title,
gchar *message,
gfloat initial,
gfloat lower,
gfloat upper,
gint digits,
GtkObject *object,
gchar *signal,
QueryFunc callback,
gpointer data)
{
@ -973,7 +976,7 @@ query_float_box (char *title,
GtkAdjustment* adjustment;
GtkWidget *spinbutton;
query_box = create_query_box (title, message, object, callback, data);
query_box = create_query_box (title, message, object, signal, callback, data);
gtk_signal_connect (GTK_OBJECT (query_box->ok_button), "clicked",
(GtkSignalFunc) float_query_box_ok_callback,
@ -994,22 +997,23 @@ query_float_box (char *title,
}
GtkWidget *
query_size_box (char *title,
char *message,
float initial,
float lower,
float upper,
int digits,
query_size_box (gchar *title,
gchar *message,
gfloat initial,
gfloat lower,
gfloat upper,
gint digits,
GUnit unit,
float resolution,
gfloat resolution,
GtkObject *object,
gchar *signal,
QueryFunc callback,
gpointer data)
{
QueryBox *query_box;
GtkWidget *sizeentry;
query_box = create_query_box (title, message, object, callback, data);
query_box = create_query_box (title, message, object, signal, callback, data);
gtk_signal_connect (GTK_OBJECT (query_box->ok_button), "clicked",
(GtkSignalFunc) size_query_box_ok_callback,
@ -1054,7 +1058,7 @@ query_box_cancel_callback (GtkWidget *w,
query_box = (QueryBox *) client_data;
/* disconnect, if we are connected to some object's "destroy" signal */
/* disconnect, if we are connected to some signal */
if (query_box->object)
gtk_signal_disconnect_by_data (query_box->object, query_box);
@ -1069,11 +1073,11 @@ string_query_box_ok_callback (GtkWidget *w,
gpointer client_data)
{
QueryBox *query_box;
char *string;
gchar *string;
query_box = (QueryBox *) client_data;
/* disconnect, if we are connected to some object's "destroy" signal */
/* disconnect, if we are connected to some signal */
if (query_box->object)
gtk_signal_disconnect_by_data (query_box->object, query_box);
@ -1094,18 +1098,18 @@ int_query_box_ok_callback (GtkWidget *w,
gpointer client_data)
{
QueryBox *query_box;
int *integer_value;
gint *integer_value;
query_box = (QueryBox *) client_data;
/* disconnect, if we are connected to some object's "destroy" signal */
/* disconnect, if we are connected to some signal */
if (query_box->object)
gtk_signal_disconnect_by_data (query_box->object, query_box);
/* Get the spinbutton data */
integer_value = g_malloc(sizeof(int));
integer_value = g_malloc (sizeof (gint));
*integer_value =
gtk_spin_button_get_value_as_int(GTK_SPIN_BUTTON(query_box->entry));
gtk_spin_button_get_value_as_int (GTK_SPIN_BUTTON(query_box->entry));
/* Call the user defined callback */
(* query_box->callback) (w, query_box->data, (gpointer) integer_value);
@ -1121,16 +1125,16 @@ float_query_box_ok_callback (GtkWidget *w,
gpointer client_data)
{
QueryBox *query_box;
float *float_value;
gfloat *float_value;
query_box = (QueryBox *) client_data;
/* disconnect, if we are connected to some object's "destroy" signal */
/* disconnect, if we are connected to some signal */
if (query_box->object)
gtk_signal_disconnect_by_data (query_box->object, query_box);
/* Get the spinbutton data */
float_value = g_malloc(sizeof(float));
float_value = g_malloc (sizeof (gfloat));
*float_value =
gtk_spin_button_get_value_as_float(GTK_SPIN_BUTTON(query_box->entry));
@ -1148,16 +1152,16 @@ size_query_box_ok_callback (GtkWidget *w,
gpointer client_data)
{
QueryBox *query_box;
float *float_value;
gfloat *float_value;
query_box = (QueryBox *) client_data;
/* disconnect, if we are connected to some object's "destroy" signal */
/* disconnect, if we are connected to some signal */
if (query_box->object)
gtk_signal_disconnect_by_data (query_box->object, query_box);
/* Get the sizeentry data */
float_value = g_malloc(sizeof(float));
float_value = g_malloc (sizeof (gfloat));
*float_value =
gimp_size_entry_get_refval (GIMP_SIZE_ENTRY (query_box->entry), 0);

View File

@ -58,41 +58,45 @@ void create_display_shell (GDisplay *gdisp,
*/
/* some simple query dialogs
* if object != NULL then the query boxes will connect to the "destroy"
* signal of this object
* if object != NULL then the query boxes will connect their cancel callback
* to the provided signal of this object
*/
GtkWidget * query_string_box (char *title,
char *message,
char *initial,
GtkWidget * query_string_box (gchar *title,
gchar *message,
gchar *initial,
GtkObject *object,
gchar *signal,
QueryFunc callback,
gpointer data);
GtkWidget * query_int_box (char *title,
GtkWidget * query_int_box (gchar *title,
char *message,
int initial,
int lower,
int upper,
gint initial,
gint lower,
gint upper,
GtkObject *object,
gchar *signal,
QueryFunc callback,
gpointer data);
GtkWidget * query_float_box (char *title,
char *message,
float initial,
float lower,
float upper,
int digits,
GtkWidget * query_float_box (gchar *title,
gchar *message,
gfloat initial,
gfloat lower,
gfloat upper,
gint digits,
GtkObject *object,
gchar *signal,
QueryFunc callback,
gpointer data);
GtkWidget * query_size_box (char *title,
char *message,
float initial,
float lower,
float upper,
int digits,
GtkWidget * query_size_box (gchar *title,
gchar *message,
gfloat initial,
gfloat lower,
gfloat upper,
gint digits,
GUnit unit,
float resolution,
gfloat resolution,
GtkObject *object,
gchar *signal,
QueryFunc callback,
gpointer data);

View File

@ -696,9 +696,10 @@ named_edit_cut (void *gdisp_ptr)
gdisp = (GDisplay *) gdisp_ptr;
active_tool_control (HALT, gdisp_ptr);
query_string_box (N_("Cut Named"),
N_("Enter a name for this buffer"),
NULL, GTK_OBJECT (gdisp->gimage),
query_string_box (_("Cut Named"),
_("Enter a name for this buffer"),
NULL,
GTK_OBJECT (gdisp->gimage), "destroy",
cut_named_buffer_callback, gdisp);
return TRUE;
}
@ -727,9 +728,10 @@ named_edit_copy (void *gdisp_ptr)
gdisp = (GDisplay *) gdisp_ptr;
query_string_box (N_("Copy Named"),
N_("Enter a name for this buffer"),
NULL, GTK_OBJECT (gdisp->gimage),
query_string_box (_("Copy Named"),
_("Enter a name for this buffer"),
NULL,
GTK_OBJECT (gdisp->gimage), "destroy",
copy_named_buffer_callback, gdisp);
return TRUE;
}

View File

@ -1256,10 +1256,11 @@ ed_close_callback(GtkWidget *widget, gpointer client_data)
static void
ed_new_gradient_callback(GtkWidget *widget, gpointer client_data)
{
query_string_box(N_("New gradient"),
N_("Enter a name for the new gradient"),
N_("untitled"),
NULL, ed_do_new_gradient_callback, NULL);
query_string_box(_("New gradient"),
_("Enter a name for the new gradient"),
_("untitled"),
NULL, NULL,
ed_do_new_gradient_callback, NULL);
} /* ed_new_gradient_callback */
@ -1365,10 +1366,11 @@ ed_copy_gradient_callback(GtkWidget *widget, gpointer client_data)
name = g_strdup_printf(_("%s copy"), curr_gradient->name);
query_string_box(N_("Copy gradient"),
N_("Enter a name for the copied gradient"),
query_string_box(_("Copy gradient"),
_("Enter a name for the copied gradient"),
name,
NULL, ed_do_copy_gradient_callback, NULL);
NULL, NULL,
ed_do_copy_gradient_callback, NULL);
g_free(name);
} /* ed_copy_gradient_callback */
@ -1594,10 +1596,11 @@ ed_rename_grads_callback(GtkWidget *widget, gpointer client_data)
if(curr_gradient == NULL)
return;
query_string_box(N_("Rename gradient"),
N_("Enter a new name for the gradient"),
query_string_box(_("Rename gradient"),
_("Enter a new name for the gradient"),
curr_gradient->name,
NULL, ed_do_rename_gradient_callback, curr_gradient);
NULL, NULL,
ed_do_rename_gradient_callback, curr_gradient);
}
/*****/
@ -2246,16 +2249,16 @@ control_do_hint(gint x, gint y)
case GRAD_DRAG_LEFT:
if (seg != NULL) {
if (seg->prev != NULL)
ed_set_hint(N_("Drag: move Shift+drag: move & compress"));
ed_set_hint(_("Drag: move Shift+drag: move & compress"));
else
ed_set_hint(N_("Click: select Shift+click: extend selection"));
ed_set_hint(_("Click: select Shift+click: extend selection"));
} else
ed_set_hint(N_("Click: select Shift+click: extend selection"));
ed_set_hint(_("Click: select Shift+click: extend selection"));
break;
case GRAD_DRAG_MIDDLE:
ed_set_hint(N_("Click: select Shift+click: extend selection "
ed_set_hint(_("Click: select Shift+click: extend selection "
"Drag: move"));
break;
@ -2266,7 +2269,7 @@ control_do_hint(gint x, gint y)
break;
} /* switch */
} else
ed_set_hint(N_("Click: select Shift+click: extend selection "
ed_set_hint(_("Click: select Shift+click: extend selection "
"Drag: move Shift+drag: move & compress"));
} /* control_do_hint */

View File

@ -1256,10 +1256,11 @@ ed_close_callback(GtkWidget *widget, gpointer client_data)
static void
ed_new_gradient_callback(GtkWidget *widget, gpointer client_data)
{
query_string_box(N_("New gradient"),
N_("Enter a name for the new gradient"),
N_("untitled"),
NULL, ed_do_new_gradient_callback, NULL);
query_string_box(_("New gradient"),
_("Enter a name for the new gradient"),
_("untitled"),
NULL, NULL,
ed_do_new_gradient_callback, NULL);
} /* ed_new_gradient_callback */
@ -1365,10 +1366,11 @@ ed_copy_gradient_callback(GtkWidget *widget, gpointer client_data)
name = g_strdup_printf(_("%s copy"), curr_gradient->name);
query_string_box(N_("Copy gradient"),
N_("Enter a name for the copied gradient"),
query_string_box(_("Copy gradient"),
_("Enter a name for the copied gradient"),
name,
NULL, ed_do_copy_gradient_callback, NULL);
NULL, NULL,
ed_do_copy_gradient_callback, NULL);
g_free(name);
} /* ed_copy_gradient_callback */
@ -1594,10 +1596,11 @@ ed_rename_grads_callback(GtkWidget *widget, gpointer client_data)
if(curr_gradient == NULL)
return;
query_string_box(N_("Rename gradient"),
N_("Enter a new name for the gradient"),
query_string_box(_("Rename gradient"),
_("Enter a new name for the gradient"),
curr_gradient->name,
NULL, ed_do_rename_gradient_callback, curr_gradient);
NULL, NULL,
ed_do_rename_gradient_callback, curr_gradient);
}
/*****/
@ -2246,16 +2249,16 @@ control_do_hint(gint x, gint y)
case GRAD_DRAG_LEFT:
if (seg != NULL) {
if (seg->prev != NULL)
ed_set_hint(N_("Drag: move Shift+drag: move & compress"));
ed_set_hint(_("Drag: move Shift+drag: move & compress"));
else
ed_set_hint(N_("Click: select Shift+click: extend selection"));
ed_set_hint(_("Click: select Shift+click: extend selection"));
} else
ed_set_hint(N_("Click: select Shift+click: extend selection"));
ed_set_hint(_("Click: select Shift+click: extend selection"));
break;
case GRAD_DRAG_MIDDLE:
ed_set_hint(N_("Click: select Shift+click: extend selection "
ed_set_hint(_("Click: select Shift+click: extend selection "
"Drag: move"));
break;
@ -2266,7 +2269,7 @@ control_do_hint(gint x, gint y)
break;
} /* switch */
} else
ed_set_hint(N_("Click: select Shift+click: extend selection "
ed_set_hint(_("Click: select Shift+click: extend selection "
"Drag: move Shift+drag: move & compress"));
} /* control_do_hint */

View File

@ -368,13 +368,13 @@ select_border_cmd_callback (GtkWidget *widget,
gdisp = gdisplay_active ();
query_size_box (N_("Border Selection"),
N_("Border selection by:"),
query_size_box (_("Border Selection"),
_("Border selection by:"),
gimage_mask_border_radius, 1, 32767, 0,
gdisp->dot_for_dot ? UNIT_PIXEL : gdisp->gimage->unit,
MIN(gdisp->gimage->xresolution, gdisp->gimage->yresolution),
GTK_OBJECT (gdisp->gimage), gimage_mask_border_callback,
gdisp->gimage);
GTK_OBJECT (gdisp->gimage), "destroy",
gimage_mask_border_callback, gdisp->gimage);
}
void
@ -385,13 +385,13 @@ select_feather_cmd_callback (GtkWidget *widget,
gdisp = gdisplay_active ();
query_size_box (N_("Feather Selection"),
N_("Feather selection by:"),
query_size_box (_("Feather Selection"),
_("Feather selection by:"),
gimage_mask_feather_radius, 0, 32767, 3,
gdisp->dot_for_dot ? UNIT_PIXEL : gdisp->gimage->unit,
MIN(gdisp->gimage->xresolution, gdisp->gimage->yresolution),
GTK_OBJECT (gdisp->gimage), gimage_mask_feather_callback,
gdisp->gimage);
GTK_OBJECT (gdisp->gimage), "destroy",
gimage_mask_feather_callback, gdisp->gimage);
}
void
@ -407,8 +407,8 @@ select_grow_cmd_callback (GtkWidget *widget,
gimage_mask_grow_pixels, 1, 32767, 0,
gdisp->dot_for_dot ? UNIT_PIXEL : gdisp->gimage->unit,
MIN(gdisp->gimage->xresolution, gdisp->gimage->yresolution),
GTK_OBJECT (gdisp->gimage), gimage_mask_grow_callback,
gdisp->gimage);
GTK_OBJECT (gdisp->gimage), "destroy",
gimage_mask_grow_callback, gdisp->gimage);
}
void
@ -424,8 +424,8 @@ select_shrink_cmd_callback (GtkWidget *widget,
gimage_mask_shrink_pixels, 1, 32767, 0,
gdisp->dot_for_dot ? UNIT_PIXEL : gdisp->gimage->unit,
MIN(gdisp->gimage->xresolution, gdisp->gimage->yresolution),
GTK_OBJECT (gdisp->gimage), gimage_mask_shrink_callback,
gdisp->gimage);
GTK_OBJECT (gdisp->gimage), "destroy",
gimage_mask_shrink_callback, gdisp->gimage);
}
void

View File

@ -1256,10 +1256,11 @@ ed_close_callback(GtkWidget *widget, gpointer client_data)
static void
ed_new_gradient_callback(GtkWidget *widget, gpointer client_data)
{
query_string_box(N_("New gradient"),
N_("Enter a name for the new gradient"),
N_("untitled"),
NULL, ed_do_new_gradient_callback, NULL);
query_string_box(_("New gradient"),
_("Enter a name for the new gradient"),
_("untitled"),
NULL, NULL,
ed_do_new_gradient_callback, NULL);
} /* ed_new_gradient_callback */
@ -1365,10 +1366,11 @@ ed_copy_gradient_callback(GtkWidget *widget, gpointer client_data)
name = g_strdup_printf(_("%s copy"), curr_gradient->name);
query_string_box(N_("Copy gradient"),
N_("Enter a name for the copied gradient"),
query_string_box(_("Copy gradient"),
_("Enter a name for the copied gradient"),
name,
NULL, ed_do_copy_gradient_callback, NULL);
NULL, NULL,
ed_do_copy_gradient_callback, NULL);
g_free(name);
} /* ed_copy_gradient_callback */
@ -1594,10 +1596,11 @@ ed_rename_grads_callback(GtkWidget *widget, gpointer client_data)
if(curr_gradient == NULL)
return;
query_string_box(N_("Rename gradient"),
N_("Enter a new name for the gradient"),
query_string_box(_("Rename gradient"),
_("Enter a new name for the gradient"),
curr_gradient->name,
NULL, ed_do_rename_gradient_callback, curr_gradient);
NULL, NULL,
ed_do_rename_gradient_callback, curr_gradient);
}
/*****/
@ -2246,16 +2249,16 @@ control_do_hint(gint x, gint y)
case GRAD_DRAG_LEFT:
if (seg != NULL) {
if (seg->prev != NULL)
ed_set_hint(N_("Drag: move Shift+drag: move & compress"));
ed_set_hint(_("Drag: move Shift+drag: move & compress"));
else
ed_set_hint(N_("Click: select Shift+click: extend selection"));
ed_set_hint(_("Click: select Shift+click: extend selection"));
} else
ed_set_hint(N_("Click: select Shift+click: extend selection"));
ed_set_hint(_("Click: select Shift+click: extend selection"));
break;
case GRAD_DRAG_MIDDLE:
ed_set_hint(N_("Click: select Shift+click: extend selection "
ed_set_hint(_("Click: select Shift+click: extend selection "
"Drag: move"));
break;
@ -2266,7 +2269,7 @@ control_do_hint(gint x, gint y)
break;
} /* switch */
} else
ed_set_hint(N_("Click: select Shift+click: extend selection "
ed_set_hint(_("Click: select Shift+click: extend selection "
"Drag: move Shift+drag: move & compress"));
} /* control_do_hint */

View File

@ -368,13 +368,13 @@ select_border_cmd_callback (GtkWidget *widget,
gdisp = gdisplay_active ();
query_size_box (N_("Border Selection"),
N_("Border selection by:"),
query_size_box (_("Border Selection"),
_("Border selection by:"),
gimage_mask_border_radius, 1, 32767, 0,
gdisp->dot_for_dot ? UNIT_PIXEL : gdisp->gimage->unit,
MIN(gdisp->gimage->xresolution, gdisp->gimage->yresolution),
GTK_OBJECT (gdisp->gimage), gimage_mask_border_callback,
gdisp->gimage);
GTK_OBJECT (gdisp->gimage), "destroy",
gimage_mask_border_callback, gdisp->gimage);
}
void
@ -385,13 +385,13 @@ select_feather_cmd_callback (GtkWidget *widget,
gdisp = gdisplay_active ();
query_size_box (N_("Feather Selection"),
N_("Feather selection by:"),
query_size_box (_("Feather Selection"),
_("Feather selection by:"),
gimage_mask_feather_radius, 0, 32767, 3,
gdisp->dot_for_dot ? UNIT_PIXEL : gdisp->gimage->unit,
MIN(gdisp->gimage->xresolution, gdisp->gimage->yresolution),
GTK_OBJECT (gdisp->gimage), gimage_mask_feather_callback,
gdisp->gimage);
GTK_OBJECT (gdisp->gimage), "destroy",
gimage_mask_feather_callback, gdisp->gimage);
}
void
@ -407,8 +407,8 @@ select_grow_cmd_callback (GtkWidget *widget,
gimage_mask_grow_pixels, 1, 32767, 0,
gdisp->dot_for_dot ? UNIT_PIXEL : gdisp->gimage->unit,
MIN(gdisp->gimage->xresolution, gdisp->gimage->yresolution),
GTK_OBJECT (gdisp->gimage), gimage_mask_grow_callback,
gdisp->gimage);
GTK_OBJECT (gdisp->gimage), "destroy",
gimage_mask_grow_callback, gdisp->gimage);
}
void
@ -424,8 +424,8 @@ select_shrink_cmd_callback (GtkWidget *widget,
gimage_mask_shrink_pixels, 1, 32767, 0,
gdisp->dot_for_dot ? UNIT_PIXEL : gdisp->gimage->unit,
MIN(gdisp->gimage->xresolution, gdisp->gimage->yresolution),
GTK_OBJECT (gdisp->gimage), gimage_mask_shrink_callback,
gdisp->gimage);
GTK_OBJECT (gdisp->gimage), "destroy",
gimage_mask_shrink_callback, gdisp->gimage);
}
void

View File

@ -1348,8 +1348,11 @@ static void
palette_new_entries_callback (GtkWidget *w,
gpointer client_data)
{
query_string_box (_("New Palette"), _("Enter a name for new palette"),
NULL, NULL, palette_add_entries_callback, client_data);
query_string_box (_("New Palette"),
_("Enter a name for new palette"),
NULL,
NULL, NULL,
palette_add_entries_callback, client_data);
}
static void
@ -2709,10 +2712,13 @@ palette_merge_entries_callback (GtkWidget *w,
static void
palette_merge_dialog_callback (GtkWidget *w,
gpointer client_data)
gpointer client_data)
{
query_string_box (_("Merge Palette"), _("Enter a name for merged palette"),
NULL, NULL, palette_merge_entries_callback, client_data);
query_string_box (_("Merge Palette"),
_("Enter a name for merged palette"),
NULL,
NULL, NULL,
palette_merge_entries_callback, client_data);
}
static void
@ -2731,7 +2737,8 @@ palette_import_dialog_callback (GtkWidget *w,
}
static void
palette_import_fill_grad_preview(GtkWidget *preview,gradient_t *gradient)
palette_import_fill_grad_preview(GtkWidget *preview,
gradient_t *gradient)
{
guchar buffer[3*IMPORT_PREVIEW_WIDTH];
gint loop;

View File

@ -1053,10 +1053,11 @@ paths_dialog_edit_path_query(GtkWidget *widget)
NULL,
&mask);
query_string_box(N_("Rename path"),
N_("Enter a new name for the path"),
query_string_box(_("Rename path"),
_("Enter a new name for the path"),
text,
NULL, do_rename_paths_callback, widget);
NULL, NULL,
do_rename_paths_callback, widget);
}
static gint

View File

@ -106,6 +106,138 @@ install_help (InstallCallback callback)
GdkFont *font_strong;
GdkFont *font_emphasis;
GdkFont *font;
static const struct {
gint font;
char *text;
} help_lines[] = {
{ 2, N_("The GIMP - GNU Image Manipulation Program\n\n") },
{ 1, N_("Copyright (C) 1995 Spencer Kimball and Peter Mattis\n") },
{ 0, "\n" },
{ 0, N_("This program is free software; you can redistribute it and/or modify\n") },
{ 0, N_("it under the terms of the GNU General Public License as published by\n") },
{ 0, N_("the Free Software Foundation; either version 2 of the License, or\n") },
{ 0, N_("(at your option) any later version.\n") },
{ 0, "\n" },
{ 0, N_("This program is distributed in the hope that it will be useful,\n") },
{ 0, N_("but WITHOUT ANY WARRANTY; without even the implied warranty of\n") },
{ 0, N_("MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n") },
{ 0, N_("See the GNU General Public License for more details.\n") },
{ 0, "\n" },
{ 0, N_("You should have received a copy of the GNU General Public License\n") },
{ 0, N_("along with this program; if not, write to the Free Software\n") },
{ 0, N_("Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\n") },
{ 0, "\n\n" },
{ 2, N_("Personal GIMP Installation\n\n") },
{ 0, N_("For a proper GIMP installation, a subdirectory called\n") },
{ 1, NULL }, /* will be replaced with gimp_directory() */
{ 0, N_(" needs to be created. This\n") },
{ 0, N_("subdirectory will contain a number of important files:\n\n") },
{ 1, N_("gimprc\n") },
{ 0, N_("\t\tThe gimprc is used to store personal preferences\n") },
{ 0, N_("\t\tsuch as default GIMP behaviors & plug-in hotkeys.\n") },
{ 0, N_("\t\tPaths to search for brushes, palettes, gradients\n") },
{ 0, N_("\t\tpatterns, plug-ins and modules are also configured here.\n") },
{ 1, N_("unitrc\n") },
{ 0, N_("\t\tThe unitrc is used to store your user units database.\n") },
{ 0, N_("\t\tYou can define additional units and use them just\n") },
{ 0, N_("\t\tlike you use the built-in units inches, millimeters,\n") },
{ 0, N_("\t\tpoints and picas. This file is overwritten each time\n") },
{ 0, N_("\t\tyou quit the GIMP.\n") },
{ 1, N_("pluginrc\n") },
{ 0, N_("\t\tPlug-ins and extensions are external programs run by\n") },
{ 0, N_("\t\tthe GIMP which provide additional functionality.\n") },
{ 0, N_("\t\tThese programs are searched for at run-time and\n") },
{ 0, N_("\t\tinformation about their functionality and mod-times\n") },
{ 0, N_("\t\tis cached in this file. This file is intended to\n") },
{ 0, N_("\t\tbe GIMP-readable only, and should not be edited.\n") },
{ 1, N_("brushes\n") },
{ 0, N_("\t\tThis is a subdirectory which can be used to store\n") },
{ 0, N_("\t\tuser defined brushes. The default gimprc file\n") },
{ 0, N_("\t\tchecks this subdirectory in addition to the system-\n") },
{ 0, N_("\t\twide gimp brushes installation when searching for\n") },
{ 0, N_("\t\tbrushes.\n") },
{ 1, N_("gradients\n") },
{ 0, N_("\t\tThis is a subdirectory which can be used to store\n") },
{ 0, N_("\t\tuser defined gradients. The default gimprc file\n") },
{ 0, N_("\t\tchecks this subdirectory in addition to the system-\n") },
{ 0, N_("\t\twide gimp gradients installation when searching for\n") },
{ 0, N_("\t\tgradients.\n") },
{ 1, N_("gfig\n") },
{ 0, N_("\t\tThis is a subdirectory which can be used to store\n") },
{ 0, N_("\t\tuser defined figures to be used by the gfig plug-in.\n") },
{ 0, N_("\t\tThe default gimprc file checks this subdirectory in\n") },
{ 0, N_("\t\taddition to the systemwide gimp gfig installation\n") },
{ 0, N_("\t\twhen searching for gfig figures.\n") },
{ 1, N_("gflares\n") },
{ 0, N_("\t\tThis is a subdirectory which can be used to store\n") },
{ 0, N_("\t\tuser defined gflares to be used by the gflare plug-in.\n") },
{ 0, N_("\t\tThe default gimprc file checks this subdirectory in\n") },
{ 0, N_("\t\taddition to the systemwide gimp gflares installation\n") },
{ 0, N_("\t\twhen searching for gflares.\n") },
{ 1, N_("fractalexplorer\n") },
{ 0, N_("\t\tThis is a subdirectory which can be used to store\n") },
{ 0, N_("\t\tuser defined fractals to be used by the FractalExplorer plug-in.\n") },
{ 0, N_("\t\tThe default gimprc file checks this subdirectory in\n") },
{ 0, N_("\t\taddition to the systemwide gimp FractalExplorer installation\n") },
{ 0, N_("\t\twhen searching for fractals.\n") },
{ 1, N_("palettes\n") },
{ 0, N_("\t\tThis is a subdirectory which can be used to store\n") },
{ 0, N_("\t\tuser defined palettes. The default gimprc file\n") },
{ 0, N_("\t\tchecks only this subdirectory (not the system-wide\n") },
{ 0, N_("\t\tinstallation) when searching for palettes. During\n") },
{ 0, N_("\t\tinstallation, the system palettes will be copied\n") },
{ 0, N_("\t\there. This is done to allow modifications made to\n") },
{ 0, N_("\t\tpalettes during GIMP execution to persist across\n") },
{ 0, N_("\t\tsessions.\n") },
{ 1, N_("patterns\n") },
{ 0, N_("\t\tThis is a subdirectory which can be used to store\n") },
{ 0, N_("\t\tuser defined patterns. The default gimprc file\n") },
{ 0, N_("\t\tchecks this subdirectory in addition to the system-\n") },
{ 0, N_("\t\twide gimp patterns installation when searching for\n") },
{ 0, N_("\t\tpatterns.\n") },
{ 1, N_("plug-ins\n") },
{ 0, N_("\t\tThis is a subdirectory which can be used to store\n") },
{ 0, N_("\t\tuser created, temporary, or otherwise non-system-\n") },
{ 0, N_("\t\tsupported plug-ins. The default gimprc file\n") },
{ 0, N_("\t\tchecks this subdirectory in addition to the system-\n") },
{ 0, N_("\t\twide GIMP plug-in directories when searching for\n") },
{ 0, N_("\t\tplug-ins.\n") },
{ 1, N_("modules\n") },
{ 0, N_("\t\tThis subdirectory can be used to store user created,\n") },
{ 0, N_("\t\ttemporary, or otherwise non-system-supported DLL modules.\n") },
{ 0, N_("\t\tThe default gimprc file checks this subdirectory\n") },
{ 0, N_("\t\tin addition to the system-wide GIMP module directory\n") },
{ 0, N_("\t\twhen searching for modules to load when initialising.\n") },
{ 1, N_("scripts\n") },
{ 0, N_("\t\tThis subdirectory is used by the GIMP to store \n") },
{ 0, N_("\t\tuser created and installed scripts. The default gimprc\n") },
{ 0, N_("\t\tfile checks this subdirectory in addition to the system\n") },
{ 0, N_("\t\t-wide gimp scripts subdirectory when searching for scripts\n") },
{ 1, N_("tmp\n") },
{ 0, N_("\t\tThis subdirectory is used by the GIMP to temporarily\n") },
{ 0, N_("\t\tstore undo buffers to reduce memory usage. If GIMP is\n") },
{ 0, N_("\t\tunceremoniously killed, files may persist in this directory\n") },
{ 0, N_("\t\tof the form: gimp<#>.<#>. These files are useless across\n") },
{ 0, N_("\t\tGIMP sessions and can be destroyed with impunity.\n") }
};
gint nhelp_lines = sizeof (help_lines) / sizeof (help_lines[0]);
gint i;
help_widget = gtk_dialog_new ();
gtk_signal_connect (GTK_OBJECT (help_widget), "delete_event",
@ -147,213 +279,20 @@ install_help (InstallCallback callback)
/* Realize the widget before allowing new text to be inserted */
gtk_widget_realize (text);
gtk_text_insert (GTK_TEXT (text), font_strong, NULL, NULL,
_("The GIMP - GNU Image Manipulation Program\n\n"), -1);
gtk_text_insert (GTK_TEXT (text), font_emphasis, NULL, NULL,
_("Copyright (C) 1995 Spencer Kimball and Peter Mattis\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
"\n", -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("This program is free software; you can redistribute it and/or modify\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("it under the terms of the GNU General Public License as published by\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("the Free Software Foundation; either version 2 of the License, or\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("(at your option) any later version.\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
"\n", -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("This program is distributed in the hope that it will be useful,\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("but WITHOUT ANY WARRANTY; without even the implied warranty of\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("See the GNU General Public License for more details.\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
"\n", -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("You should have received a copy of the GNU General Public License\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("along with this program; if not, write to the Free Software\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
"\n\n", -1);
gtk_text_insert (GTK_TEXT (text), font_strong, NULL, NULL,
_("Personal GIMP Installation\n\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("For a proper GIMP installation, a subdirectory called\n"), -1);
gtk_text_insert (GTK_TEXT (text), font_emphasis, NULL, NULL,
gimp_directory (), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_(" needs to be created. This\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("subdirectory will contain a number of important files:\n\n"), -1);
gtk_text_insert (GTK_TEXT (text), font_emphasis, NULL, NULL,
_("gimprc\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\tThe gimprc is used to store personal preferences\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\tsuch as default GIMP behaviors & plug-in hotkeys.\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\tPaths to search for brushes, palettes, gradients\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\tpatterns, plug-ins and modules are also configured here.\n"), -1);
gtk_text_insert (GTK_TEXT (text), font_emphasis, NULL, NULL,
_("unitrc\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\tThe unitrc is used to store your user units database.\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\tYou can define additional units and use them just\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\tlike you use the built-in units inches, millimeters,\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\tpoints and picas. This file is overwritten each time\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\tyou quit the GIMP.\n"), -1);
gtk_text_insert (GTK_TEXT (text), font_emphasis, NULL, NULL,
_("pluginrc\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\tPlug-ins and extensions are external programs run by\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\tthe GIMP which provide additional functionality.\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\tThese programs are searched for at run-time and\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\tinformation about their functionality and mod-times\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\tis cached in this file. This file is intended to\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\tbe GIMP-readable only, and should not be edited.\n"), -1);
gtk_text_insert (GTK_TEXT (text), font_emphasis, NULL, NULL,
_("brushes\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\tThis is a subdirectory which can be used to store\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\tuser defined brushes. The default gimprc file\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\tchecks this subdirectory in addition to the system-\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\twide gimp brushes installation when searching for\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\tbrushes.\n"), -1);
gtk_text_insert (GTK_TEXT (text), font_emphasis, NULL, NULL,
_("gradients\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\tThis is a subdirectory which can be used to store\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\tuser defined gradients. The default gimprc file\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\tchecks this subdirectory in addition to the system-\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\twide gimp gradients installation when searching for\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\tgradients.\n"), -1);
gtk_text_insert (GTK_TEXT (text), font_emphasis, NULL, NULL,
_("gfig\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\tThis is a subdirectory which can be used to store\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\tuser defined figures to be used by the gfig plug-in.\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\tThe default gimprc file checks this subdirectory in\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\taddition to the systemwide gimp gfig installation\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\twhen searching for gfig figures.\n"), -1);
gtk_text_insert (GTK_TEXT (text), font_emphasis, NULL, NULL,
_("gflares\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\tThis is a subdirectory which can be used to store\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\tuser defined gflares to be used by the gflare plug-in.\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\tThe default gimprc file checks this subdirectory in\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\taddition to the systemwide gimp gflares installation\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\twhen searching for gflares.\n"), -1);
gtk_text_insert (GTK_TEXT (text), font_emphasis, NULL, NULL,
_("palettes\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\tThis is a subdirectory which can be used to store\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\tuser defined palettes. The default gimprc file\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\tchecks only this subdirectory (not the system-wide\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\tinstallation) when searching for palettes. During\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\tinstallation, the system palettes will be copied\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\there. This is done to allow modifications made to\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\tpalettes during GIMP execution to persist across\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\tsessions.\n"), -1);
gtk_text_insert (GTK_TEXT (text), font_emphasis, NULL, NULL,
_("patterns\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\tThis is a subdirectory which can be used to store\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\tuser defined patterns. The default gimprc file\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\tchecks this subdirectory in addition to the system-\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\twide gimp patterns installation when searching for\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\tpatterns.\n"), -1);
gtk_text_insert (GTK_TEXT (text), font_emphasis, NULL, NULL,
_("plug-ins\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\tThis is a subdirectory which can be used to store\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\tuser created, temporary, or otherwise non-system-\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\tsupported plug-ins. The default gimprc file\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\tchecks this subdirectory in addition to the system-\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\twide GIMP plug-in directories when searching for\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\tplug-ins.\n"), -1);
gtk_text_insert (GTK_TEXT (text), font_emphasis, NULL, NULL,
_("modules\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\tThis subdirectory can be used to store user created,\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\ttemporary, or otherwise non-system-supported DLL modules. \n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\tThe default gimprc file checks this subdirectory\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\tin addition to the system-wide GIMP module directory\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\twhen searching for modules to load when initialising.\n"), -1);
gtk_text_insert (GTK_TEXT (text), font_emphasis, NULL, NULL,
_("scripts\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\tThis subdirectory is used by the GIMP to store \n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\tuser created and installed scripts. The default gimprc\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\tfile checks this subdirectory in addition to the system\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\t-wide gimp scripts subdirectory when searching for scripts\n"), -1);
gtk_text_insert (GTK_TEXT (text), font_emphasis, NULL, NULL,
_("tmp\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\tThis subdirectory is used by the GIMP to temporarily\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\tstore undo buffers to reduce memory usage. If GIMP is\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\tunceremoniously killed, files may persist in this directory\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\tof the form: gimp<#>.<#>. These files are useless across\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\tGIMP sessions and can be destroyed with impunity.\n"), -1);
for (i = 0; i < nhelp_lines; i++)
if (help_lines[i].text == NULL)
/* inserting gimp_directory () this way is a little ugly */
gtk_text_insert (GTK_TEXT (text),
(help_lines[i].font == 2) ? font_strong :
(help_lines[i].font == 1) ? font_emphasis : font,
NULL, NULL,
gimp_directory (), -1);
else
gtk_text_insert (GTK_TEXT (text),
(help_lines[i].font == 2) ? font_strong :
(help_lines[i].font == 1) ? font_emphasis : font,
NULL, NULL,
gettext (help_lines[i].text), -1);
/* scroll back to the top */
gtk_adjustment_set_value (GTK_ADJUSTMENT (vadj), 0.0);

View File

@ -106,6 +106,138 @@ install_help (InstallCallback callback)
GdkFont *font_strong;
GdkFont *font_emphasis;
GdkFont *font;
static const struct {
gint font;
char *text;
} help_lines[] = {
{ 2, N_("The GIMP - GNU Image Manipulation Program\n\n") },
{ 1, N_("Copyright (C) 1995 Spencer Kimball and Peter Mattis\n") },
{ 0, "\n" },
{ 0, N_("This program is free software; you can redistribute it and/or modify\n") },
{ 0, N_("it under the terms of the GNU General Public License as published by\n") },
{ 0, N_("the Free Software Foundation; either version 2 of the License, or\n") },
{ 0, N_("(at your option) any later version.\n") },
{ 0, "\n" },
{ 0, N_("This program is distributed in the hope that it will be useful,\n") },
{ 0, N_("but WITHOUT ANY WARRANTY; without even the implied warranty of\n") },
{ 0, N_("MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n") },
{ 0, N_("See the GNU General Public License for more details.\n") },
{ 0, "\n" },
{ 0, N_("You should have received a copy of the GNU General Public License\n") },
{ 0, N_("along with this program; if not, write to the Free Software\n") },
{ 0, N_("Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\n") },
{ 0, "\n\n" },
{ 2, N_("Personal GIMP Installation\n\n") },
{ 0, N_("For a proper GIMP installation, a subdirectory called\n") },
{ 1, NULL }, /* will be replaced with gimp_directory() */
{ 0, N_(" needs to be created. This\n") },
{ 0, N_("subdirectory will contain a number of important files:\n\n") },
{ 1, N_("gimprc\n") },
{ 0, N_("\t\tThe gimprc is used to store personal preferences\n") },
{ 0, N_("\t\tsuch as default GIMP behaviors & plug-in hotkeys.\n") },
{ 0, N_("\t\tPaths to search for brushes, palettes, gradients\n") },
{ 0, N_("\t\tpatterns, plug-ins and modules are also configured here.\n") },
{ 1, N_("unitrc\n") },
{ 0, N_("\t\tThe unitrc is used to store your user units database.\n") },
{ 0, N_("\t\tYou can define additional units and use them just\n") },
{ 0, N_("\t\tlike you use the built-in units inches, millimeters,\n") },
{ 0, N_("\t\tpoints and picas. This file is overwritten each time\n") },
{ 0, N_("\t\tyou quit the GIMP.\n") },
{ 1, N_("pluginrc\n") },
{ 0, N_("\t\tPlug-ins and extensions are external programs run by\n") },
{ 0, N_("\t\tthe GIMP which provide additional functionality.\n") },
{ 0, N_("\t\tThese programs are searched for at run-time and\n") },
{ 0, N_("\t\tinformation about their functionality and mod-times\n") },
{ 0, N_("\t\tis cached in this file. This file is intended to\n") },
{ 0, N_("\t\tbe GIMP-readable only, and should not be edited.\n") },
{ 1, N_("brushes\n") },
{ 0, N_("\t\tThis is a subdirectory which can be used to store\n") },
{ 0, N_("\t\tuser defined brushes. The default gimprc file\n") },
{ 0, N_("\t\tchecks this subdirectory in addition to the system-\n") },
{ 0, N_("\t\twide gimp brushes installation when searching for\n") },
{ 0, N_("\t\tbrushes.\n") },
{ 1, N_("gradients\n") },
{ 0, N_("\t\tThis is a subdirectory which can be used to store\n") },
{ 0, N_("\t\tuser defined gradients. The default gimprc file\n") },
{ 0, N_("\t\tchecks this subdirectory in addition to the system-\n") },
{ 0, N_("\t\twide gimp gradients installation when searching for\n") },
{ 0, N_("\t\tgradients.\n") },
{ 1, N_("gfig\n") },
{ 0, N_("\t\tThis is a subdirectory which can be used to store\n") },
{ 0, N_("\t\tuser defined figures to be used by the gfig plug-in.\n") },
{ 0, N_("\t\tThe default gimprc file checks this subdirectory in\n") },
{ 0, N_("\t\taddition to the systemwide gimp gfig installation\n") },
{ 0, N_("\t\twhen searching for gfig figures.\n") },
{ 1, N_("gflares\n") },
{ 0, N_("\t\tThis is a subdirectory which can be used to store\n") },
{ 0, N_("\t\tuser defined gflares to be used by the gflare plug-in.\n") },
{ 0, N_("\t\tThe default gimprc file checks this subdirectory in\n") },
{ 0, N_("\t\taddition to the systemwide gimp gflares installation\n") },
{ 0, N_("\t\twhen searching for gflares.\n") },
{ 1, N_("fractalexplorer\n") },
{ 0, N_("\t\tThis is a subdirectory which can be used to store\n") },
{ 0, N_("\t\tuser defined fractals to be used by the FractalExplorer plug-in.\n") },
{ 0, N_("\t\tThe default gimprc file checks this subdirectory in\n") },
{ 0, N_("\t\taddition to the systemwide gimp FractalExplorer installation\n") },
{ 0, N_("\t\twhen searching for fractals.\n") },
{ 1, N_("palettes\n") },
{ 0, N_("\t\tThis is a subdirectory which can be used to store\n") },
{ 0, N_("\t\tuser defined palettes. The default gimprc file\n") },
{ 0, N_("\t\tchecks only this subdirectory (not the system-wide\n") },
{ 0, N_("\t\tinstallation) when searching for palettes. During\n") },
{ 0, N_("\t\tinstallation, the system palettes will be copied\n") },
{ 0, N_("\t\there. This is done to allow modifications made to\n") },
{ 0, N_("\t\tpalettes during GIMP execution to persist across\n") },
{ 0, N_("\t\tsessions.\n") },
{ 1, N_("patterns\n") },
{ 0, N_("\t\tThis is a subdirectory which can be used to store\n") },
{ 0, N_("\t\tuser defined patterns. The default gimprc file\n") },
{ 0, N_("\t\tchecks this subdirectory in addition to the system-\n") },
{ 0, N_("\t\twide gimp patterns installation when searching for\n") },
{ 0, N_("\t\tpatterns.\n") },
{ 1, N_("plug-ins\n") },
{ 0, N_("\t\tThis is a subdirectory which can be used to store\n") },
{ 0, N_("\t\tuser created, temporary, or otherwise non-system-\n") },
{ 0, N_("\t\tsupported plug-ins. The default gimprc file\n") },
{ 0, N_("\t\tchecks this subdirectory in addition to the system-\n") },
{ 0, N_("\t\twide GIMP plug-in directories when searching for\n") },
{ 0, N_("\t\tplug-ins.\n") },
{ 1, N_("modules\n") },
{ 0, N_("\t\tThis subdirectory can be used to store user created,\n") },
{ 0, N_("\t\ttemporary, or otherwise non-system-supported DLL modules.\n") },
{ 0, N_("\t\tThe default gimprc file checks this subdirectory\n") },
{ 0, N_("\t\tin addition to the system-wide GIMP module directory\n") },
{ 0, N_("\t\twhen searching for modules to load when initialising.\n") },
{ 1, N_("scripts\n") },
{ 0, N_("\t\tThis subdirectory is used by the GIMP to store \n") },
{ 0, N_("\t\tuser created and installed scripts. The default gimprc\n") },
{ 0, N_("\t\tfile checks this subdirectory in addition to the system\n") },
{ 0, N_("\t\t-wide gimp scripts subdirectory when searching for scripts\n") },
{ 1, N_("tmp\n") },
{ 0, N_("\t\tThis subdirectory is used by the GIMP to temporarily\n") },
{ 0, N_("\t\tstore undo buffers to reduce memory usage. If GIMP is\n") },
{ 0, N_("\t\tunceremoniously killed, files may persist in this directory\n") },
{ 0, N_("\t\tof the form: gimp<#>.<#>. These files are useless across\n") },
{ 0, N_("\t\tGIMP sessions and can be destroyed with impunity.\n") }
};
gint nhelp_lines = sizeof (help_lines) / sizeof (help_lines[0]);
gint i;
help_widget = gtk_dialog_new ();
gtk_signal_connect (GTK_OBJECT (help_widget), "delete_event",
@ -147,213 +279,20 @@ install_help (InstallCallback callback)
/* Realize the widget before allowing new text to be inserted */
gtk_widget_realize (text);
gtk_text_insert (GTK_TEXT (text), font_strong, NULL, NULL,
_("The GIMP - GNU Image Manipulation Program\n\n"), -1);
gtk_text_insert (GTK_TEXT (text), font_emphasis, NULL, NULL,
_("Copyright (C) 1995 Spencer Kimball and Peter Mattis\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
"\n", -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("This program is free software; you can redistribute it and/or modify\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("it under the terms of the GNU General Public License as published by\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("the Free Software Foundation; either version 2 of the License, or\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("(at your option) any later version.\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
"\n", -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("This program is distributed in the hope that it will be useful,\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("but WITHOUT ANY WARRANTY; without even the implied warranty of\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("See the GNU General Public License for more details.\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
"\n", -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("You should have received a copy of the GNU General Public License\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("along with this program; if not, write to the Free Software\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
"\n\n", -1);
gtk_text_insert (GTK_TEXT (text), font_strong, NULL, NULL,
_("Personal GIMP Installation\n\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("For a proper GIMP installation, a subdirectory called\n"), -1);
gtk_text_insert (GTK_TEXT (text), font_emphasis, NULL, NULL,
gimp_directory (), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_(" needs to be created. This\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("subdirectory will contain a number of important files:\n\n"), -1);
gtk_text_insert (GTK_TEXT (text), font_emphasis, NULL, NULL,
_("gimprc\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\tThe gimprc is used to store personal preferences\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\tsuch as default GIMP behaviors & plug-in hotkeys.\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\tPaths to search for brushes, palettes, gradients\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\tpatterns, plug-ins and modules are also configured here.\n"), -1);
gtk_text_insert (GTK_TEXT (text), font_emphasis, NULL, NULL,
_("unitrc\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\tThe unitrc is used to store your user units database.\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\tYou can define additional units and use them just\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\tlike you use the built-in units inches, millimeters,\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\tpoints and picas. This file is overwritten each time\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\tyou quit the GIMP.\n"), -1);
gtk_text_insert (GTK_TEXT (text), font_emphasis, NULL, NULL,
_("pluginrc\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\tPlug-ins and extensions are external programs run by\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\tthe GIMP which provide additional functionality.\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\tThese programs are searched for at run-time and\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\tinformation about their functionality and mod-times\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\tis cached in this file. This file is intended to\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\tbe GIMP-readable only, and should not be edited.\n"), -1);
gtk_text_insert (GTK_TEXT (text), font_emphasis, NULL, NULL,
_("brushes\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\tThis is a subdirectory which can be used to store\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\tuser defined brushes. The default gimprc file\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\tchecks this subdirectory in addition to the system-\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\twide gimp brushes installation when searching for\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\tbrushes.\n"), -1);
gtk_text_insert (GTK_TEXT (text), font_emphasis, NULL, NULL,
_("gradients\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\tThis is a subdirectory which can be used to store\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\tuser defined gradients. The default gimprc file\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\tchecks this subdirectory in addition to the system-\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\twide gimp gradients installation when searching for\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\tgradients.\n"), -1);
gtk_text_insert (GTK_TEXT (text), font_emphasis, NULL, NULL,
_("gfig\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\tThis is a subdirectory which can be used to store\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\tuser defined figures to be used by the gfig plug-in.\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\tThe default gimprc file checks this subdirectory in\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\taddition to the systemwide gimp gfig installation\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\twhen searching for gfig figures.\n"), -1);
gtk_text_insert (GTK_TEXT (text), font_emphasis, NULL, NULL,
_("gflares\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\tThis is a subdirectory which can be used to store\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\tuser defined gflares to be used by the gflare plug-in.\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\tThe default gimprc file checks this subdirectory in\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\taddition to the systemwide gimp gflares installation\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\twhen searching for gflares.\n"), -1);
gtk_text_insert (GTK_TEXT (text), font_emphasis, NULL, NULL,
_("palettes\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\tThis is a subdirectory which can be used to store\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\tuser defined palettes. The default gimprc file\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\tchecks only this subdirectory (not the system-wide\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\tinstallation) when searching for palettes. During\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\tinstallation, the system palettes will be copied\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\there. This is done to allow modifications made to\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\tpalettes during GIMP execution to persist across\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\tsessions.\n"), -1);
gtk_text_insert (GTK_TEXT (text), font_emphasis, NULL, NULL,
_("patterns\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\tThis is a subdirectory which can be used to store\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\tuser defined patterns. The default gimprc file\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\tchecks this subdirectory in addition to the system-\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\twide gimp patterns installation when searching for\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\tpatterns.\n"), -1);
gtk_text_insert (GTK_TEXT (text), font_emphasis, NULL, NULL,
_("plug-ins\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\tThis is a subdirectory which can be used to store\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\tuser created, temporary, or otherwise non-system-\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\tsupported plug-ins. The default gimprc file\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\tchecks this subdirectory in addition to the system-\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\twide GIMP plug-in directories when searching for\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\tplug-ins.\n"), -1);
gtk_text_insert (GTK_TEXT (text), font_emphasis, NULL, NULL,
_("modules\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\tThis subdirectory can be used to store user created,\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\ttemporary, or otherwise non-system-supported DLL modules. \n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\tThe default gimprc file checks this subdirectory\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\tin addition to the system-wide GIMP module directory\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\twhen searching for modules to load when initialising.\n"), -1);
gtk_text_insert (GTK_TEXT (text), font_emphasis, NULL, NULL,
_("scripts\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\tThis subdirectory is used by the GIMP to store \n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\tuser created and installed scripts. The default gimprc\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\tfile checks this subdirectory in addition to the system\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\t-wide gimp scripts subdirectory when searching for scripts\n"), -1);
gtk_text_insert (GTK_TEXT (text), font_emphasis, NULL, NULL,
_("tmp\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\tThis subdirectory is used by the GIMP to temporarily\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\tstore undo buffers to reduce memory usage. If GIMP is\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\tunceremoniously killed, files may persist in this directory\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\tof the form: gimp<#>.<#>. These files are useless across\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\tGIMP sessions and can be destroyed with impunity.\n"), -1);
for (i = 0; i < nhelp_lines; i++)
if (help_lines[i].text == NULL)
/* inserting gimp_directory () this way is a little ugly */
gtk_text_insert (GTK_TEXT (text),
(help_lines[i].font == 2) ? font_strong :
(help_lines[i].font == 1) ? font_emphasis : font,
NULL, NULL,
gimp_directory (), -1);
else
gtk_text_insert (GTK_TEXT (text),
(help_lines[i].font == 2) ? font_strong :
(help_lines[i].font == 1) ? font_emphasis : font,
NULL, NULL,
gettext (help_lines[i].text), -1);
/* scroll back to the top */
gtk_adjustment_set_value (GTK_ADJUSTMENT (vadj), 0.0);

View File

@ -809,8 +809,8 @@ struct _QueryBox
gpointer data;
};
static QueryBox * create_query_box (char *, char *, GtkObject *, QueryFunc,
gpointer);
static QueryBox * create_query_box (gchar *, gchar *, GtkObject *, gchar *,
QueryFunc, gpointer);
static gint query_box_delete_callback (GtkWidget *, GdkEvent *, gpointer);
static void query_box_cancel_callback (GtkWidget *, gpointer);
static void string_query_box_ok_callback (GtkWidget *, gpointer);
@ -822,9 +822,10 @@ static void size_query_box_ok_callback (GtkWidget *, gpointer);
*/
QueryBox *
create_query_box (char *title,
char *message,
create_query_box (gchar *title,
gchar *message,
GtkObject *object,
gchar *signal,
QueryFunc callback,
gpointer data)
{
@ -845,11 +846,10 @@ create_query_box (char *title,
(GtkSignalFunc) query_box_delete_callback,
query_box);
/* if we are associated with an object, connect to that object's
* "destroy" signal
/* if we are associated with an object, connect to the provided signal
*/
if (object && GTK_IS_OBJECT (object))
gtk_signal_connect (GTK_OBJECT (object), "destroy",
if (object && GTK_IS_OBJECT (object) && signal)
gtk_signal_connect (GTK_OBJECT (object), signal,
(GtkSignalFunc) query_box_cancel_callback,
query_box);
else
@ -894,17 +894,18 @@ create_query_box (char *title,
}
GtkWidget *
query_string_box (char *title,
char *message,
char *initial,
query_string_box (gchar *title,
gchar *message,
gchar *initial,
GtkObject *object,
gchar *signal,
QueryFunc callback,
gpointer data)
{
QueryBox *query_box;
GtkWidget *entry;
query_box = create_query_box (title, message, object, callback, data);
query_box = create_query_box (title, message, object, signal, callback, data);
gtk_signal_connect (GTK_OBJECT (query_box->ok_button), "clicked",
(GtkSignalFunc) string_query_box_ok_callback,
@ -925,12 +926,13 @@ query_string_box (char *title,
}
GtkWidget *
query_int_box (char *title,
char *message,
int initial,
int lower,
int upper,
query_int_box (gchar *title,
gchar *message,
gint initial,
gint lower,
gint upper,
GtkObject *object,
gchar *signal,
QueryFunc callback,
gpointer data)
{
@ -938,7 +940,7 @@ query_int_box (char *title,
GtkAdjustment* adjustment;
GtkWidget *spinbutton;
query_box = create_query_box (title, message, object, callback, data);
query_box = create_query_box (title, message, object, signal, callback, data);
gtk_signal_connect (GTK_OBJECT (query_box->ok_button), "clicked",
(GtkSignalFunc) int_query_box_ok_callback,
@ -959,13 +961,14 @@ query_int_box (char *title,
}
GtkWidget *
query_float_box (char *title,
char *message,
float initial,
float lower,
float upper,
int digits,
query_float_box (gchar *title,
gchar *message,
gfloat initial,
gfloat lower,
gfloat upper,
gint digits,
GtkObject *object,
gchar *signal,
QueryFunc callback,
gpointer data)
{
@ -973,7 +976,7 @@ query_float_box (char *title,
GtkAdjustment* adjustment;
GtkWidget *spinbutton;
query_box = create_query_box (title, message, object, callback, data);
query_box = create_query_box (title, message, object, signal, callback, data);
gtk_signal_connect (GTK_OBJECT (query_box->ok_button), "clicked",
(GtkSignalFunc) float_query_box_ok_callback,
@ -994,22 +997,23 @@ query_float_box (char *title,
}
GtkWidget *
query_size_box (char *title,
char *message,
float initial,
float lower,
float upper,
int digits,
query_size_box (gchar *title,
gchar *message,
gfloat initial,
gfloat lower,
gfloat upper,
gint digits,
GUnit unit,
float resolution,
gfloat resolution,
GtkObject *object,
gchar *signal,
QueryFunc callback,
gpointer data)
{
QueryBox *query_box;
GtkWidget *sizeentry;
query_box = create_query_box (title, message, object, callback, data);
query_box = create_query_box (title, message, object, signal, callback, data);
gtk_signal_connect (GTK_OBJECT (query_box->ok_button), "clicked",
(GtkSignalFunc) size_query_box_ok_callback,
@ -1054,7 +1058,7 @@ query_box_cancel_callback (GtkWidget *w,
query_box = (QueryBox *) client_data;
/* disconnect, if we are connected to some object's "destroy" signal */
/* disconnect, if we are connected to some signal */
if (query_box->object)
gtk_signal_disconnect_by_data (query_box->object, query_box);
@ -1069,11 +1073,11 @@ string_query_box_ok_callback (GtkWidget *w,
gpointer client_data)
{
QueryBox *query_box;
char *string;
gchar *string;
query_box = (QueryBox *) client_data;
/* disconnect, if we are connected to some object's "destroy" signal */
/* disconnect, if we are connected to some signal */
if (query_box->object)
gtk_signal_disconnect_by_data (query_box->object, query_box);
@ -1094,18 +1098,18 @@ int_query_box_ok_callback (GtkWidget *w,
gpointer client_data)
{
QueryBox *query_box;
int *integer_value;
gint *integer_value;
query_box = (QueryBox *) client_data;
/* disconnect, if we are connected to some object's "destroy" signal */
/* disconnect, if we are connected to some signal */
if (query_box->object)
gtk_signal_disconnect_by_data (query_box->object, query_box);
/* Get the spinbutton data */
integer_value = g_malloc(sizeof(int));
integer_value = g_malloc (sizeof (gint));
*integer_value =
gtk_spin_button_get_value_as_int(GTK_SPIN_BUTTON(query_box->entry));
gtk_spin_button_get_value_as_int (GTK_SPIN_BUTTON(query_box->entry));
/* Call the user defined callback */
(* query_box->callback) (w, query_box->data, (gpointer) integer_value);
@ -1121,16 +1125,16 @@ float_query_box_ok_callback (GtkWidget *w,
gpointer client_data)
{
QueryBox *query_box;
float *float_value;
gfloat *float_value;
query_box = (QueryBox *) client_data;
/* disconnect, if we are connected to some object's "destroy" signal */
/* disconnect, if we are connected to some signal */
if (query_box->object)
gtk_signal_disconnect_by_data (query_box->object, query_box);
/* Get the spinbutton data */
float_value = g_malloc(sizeof(float));
float_value = g_malloc (sizeof (gfloat));
*float_value =
gtk_spin_button_get_value_as_float(GTK_SPIN_BUTTON(query_box->entry));
@ -1148,16 +1152,16 @@ size_query_box_ok_callback (GtkWidget *w,
gpointer client_data)
{
QueryBox *query_box;
float *float_value;
gfloat *float_value;
query_box = (QueryBox *) client_data;
/* disconnect, if we are connected to some object's "destroy" signal */
/* disconnect, if we are connected to some signal */
if (query_box->object)
gtk_signal_disconnect_by_data (query_box->object, query_box);
/* Get the sizeentry data */
float_value = g_malloc(sizeof(float));
float_value = g_malloc (sizeof (gfloat));
*float_value =
gimp_size_entry_get_refval (GIMP_SIZE_ENTRY (query_box->entry), 0);

View File

@ -58,41 +58,45 @@ void create_display_shell (GDisplay *gdisp,
*/
/* some simple query dialogs
* if object != NULL then the query boxes will connect to the "destroy"
* signal of this object
* if object != NULL then the query boxes will connect their cancel callback
* to the provided signal of this object
*/
GtkWidget * query_string_box (char *title,
char *message,
char *initial,
GtkWidget * query_string_box (gchar *title,
gchar *message,
gchar *initial,
GtkObject *object,
gchar *signal,
QueryFunc callback,
gpointer data);
GtkWidget * query_int_box (char *title,
GtkWidget * query_int_box (gchar *title,
char *message,
int initial,
int lower,
int upper,
gint initial,
gint lower,
gint upper,
GtkObject *object,
gchar *signal,
QueryFunc callback,
gpointer data);
GtkWidget * query_float_box (char *title,
char *message,
float initial,
float lower,
float upper,
int digits,
GtkWidget * query_float_box (gchar *title,
gchar *message,
gfloat initial,
gfloat lower,
gfloat upper,
gint digits,
GtkObject *object,
gchar *signal,
QueryFunc callback,
gpointer data);
GtkWidget * query_size_box (char *title,
char *message,
float initial,
float lower,
float upper,
int digits,
GtkWidget * query_size_box (gchar *title,
gchar *message,
gfloat initial,
gfloat lower,
gfloat upper,
gint digits,
GUnit unit,
float resolution,
gfloat resolution,
GtkObject *object,
gchar *signal,
QueryFunc callback,
gpointer data);

View File

@ -1348,8 +1348,11 @@ static void
palette_new_entries_callback (GtkWidget *w,
gpointer client_data)
{
query_string_box (_("New Palette"), _("Enter a name for new palette"),
NULL, NULL, palette_add_entries_callback, client_data);
query_string_box (_("New Palette"),
_("Enter a name for new palette"),
NULL,
NULL, NULL,
palette_add_entries_callback, client_data);
}
static void
@ -2709,10 +2712,13 @@ palette_merge_entries_callback (GtkWidget *w,
static void
palette_merge_dialog_callback (GtkWidget *w,
gpointer client_data)
gpointer client_data)
{
query_string_box (_("Merge Palette"), _("Enter a name for merged palette"),
NULL, NULL, palette_merge_entries_callback, client_data);
query_string_box (_("Merge Palette"),
_("Enter a name for merged palette"),
NULL,
NULL, NULL,
palette_merge_entries_callback, client_data);
}
static void
@ -2731,7 +2737,8 @@ palette_import_dialog_callback (GtkWidget *w,
}
static void
palette_import_fill_grad_preview(GtkWidget *preview,gradient_t *gradient)
palette_import_fill_grad_preview(GtkWidget *preview,
gradient_t *gradient)
{
guchar buffer[3*IMPORT_PREVIEW_WIDTH];
gint loop;

View File

@ -1053,10 +1053,11 @@ paths_dialog_edit_path_query(GtkWidget *widget)
NULL,
&mask);
query_string_box(N_("Rename path"),
N_("Enter a new name for the path"),
query_string_box(_("Rename path"),
_("Enter a new name for the path"),
text,
NULL, do_rename_paths_callback, widget);
NULL, NULL,
do_rename_paths_callback, widget);
}
static gint

View File

@ -106,6 +106,138 @@ install_help (InstallCallback callback)
GdkFont *font_strong;
GdkFont *font_emphasis;
GdkFont *font;
static const struct {
gint font;
char *text;
} help_lines[] = {
{ 2, N_("The GIMP - GNU Image Manipulation Program\n\n") },
{ 1, N_("Copyright (C) 1995 Spencer Kimball and Peter Mattis\n") },
{ 0, "\n" },
{ 0, N_("This program is free software; you can redistribute it and/or modify\n") },
{ 0, N_("it under the terms of the GNU General Public License as published by\n") },
{ 0, N_("the Free Software Foundation; either version 2 of the License, or\n") },
{ 0, N_("(at your option) any later version.\n") },
{ 0, "\n" },
{ 0, N_("This program is distributed in the hope that it will be useful,\n") },
{ 0, N_("but WITHOUT ANY WARRANTY; without even the implied warranty of\n") },
{ 0, N_("MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n") },
{ 0, N_("See the GNU General Public License for more details.\n") },
{ 0, "\n" },
{ 0, N_("You should have received a copy of the GNU General Public License\n") },
{ 0, N_("along with this program; if not, write to the Free Software\n") },
{ 0, N_("Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\n") },
{ 0, "\n\n" },
{ 2, N_("Personal GIMP Installation\n\n") },
{ 0, N_("For a proper GIMP installation, a subdirectory called\n") },
{ 1, NULL }, /* will be replaced with gimp_directory() */
{ 0, N_(" needs to be created. This\n") },
{ 0, N_("subdirectory will contain a number of important files:\n\n") },
{ 1, N_("gimprc\n") },
{ 0, N_("\t\tThe gimprc is used to store personal preferences\n") },
{ 0, N_("\t\tsuch as default GIMP behaviors & plug-in hotkeys.\n") },
{ 0, N_("\t\tPaths to search for brushes, palettes, gradients\n") },
{ 0, N_("\t\tpatterns, plug-ins and modules are also configured here.\n") },
{ 1, N_("unitrc\n") },
{ 0, N_("\t\tThe unitrc is used to store your user units database.\n") },
{ 0, N_("\t\tYou can define additional units and use them just\n") },
{ 0, N_("\t\tlike you use the built-in units inches, millimeters,\n") },
{ 0, N_("\t\tpoints and picas. This file is overwritten each time\n") },
{ 0, N_("\t\tyou quit the GIMP.\n") },
{ 1, N_("pluginrc\n") },
{ 0, N_("\t\tPlug-ins and extensions are external programs run by\n") },
{ 0, N_("\t\tthe GIMP which provide additional functionality.\n") },
{ 0, N_("\t\tThese programs are searched for at run-time and\n") },
{ 0, N_("\t\tinformation about their functionality and mod-times\n") },
{ 0, N_("\t\tis cached in this file. This file is intended to\n") },
{ 0, N_("\t\tbe GIMP-readable only, and should not be edited.\n") },
{ 1, N_("brushes\n") },
{ 0, N_("\t\tThis is a subdirectory which can be used to store\n") },
{ 0, N_("\t\tuser defined brushes. The default gimprc file\n") },
{ 0, N_("\t\tchecks this subdirectory in addition to the system-\n") },
{ 0, N_("\t\twide gimp brushes installation when searching for\n") },
{ 0, N_("\t\tbrushes.\n") },
{ 1, N_("gradients\n") },
{ 0, N_("\t\tThis is a subdirectory which can be used to store\n") },
{ 0, N_("\t\tuser defined gradients. The default gimprc file\n") },
{ 0, N_("\t\tchecks this subdirectory in addition to the system-\n") },
{ 0, N_("\t\twide gimp gradients installation when searching for\n") },
{ 0, N_("\t\tgradients.\n") },
{ 1, N_("gfig\n") },
{ 0, N_("\t\tThis is a subdirectory which can be used to store\n") },
{ 0, N_("\t\tuser defined figures to be used by the gfig plug-in.\n") },
{ 0, N_("\t\tThe default gimprc file checks this subdirectory in\n") },
{ 0, N_("\t\taddition to the systemwide gimp gfig installation\n") },
{ 0, N_("\t\twhen searching for gfig figures.\n") },
{ 1, N_("gflares\n") },
{ 0, N_("\t\tThis is a subdirectory which can be used to store\n") },
{ 0, N_("\t\tuser defined gflares to be used by the gflare plug-in.\n") },
{ 0, N_("\t\tThe default gimprc file checks this subdirectory in\n") },
{ 0, N_("\t\taddition to the systemwide gimp gflares installation\n") },
{ 0, N_("\t\twhen searching for gflares.\n") },
{ 1, N_("fractalexplorer\n") },
{ 0, N_("\t\tThis is a subdirectory which can be used to store\n") },
{ 0, N_("\t\tuser defined fractals to be used by the FractalExplorer plug-in.\n") },
{ 0, N_("\t\tThe default gimprc file checks this subdirectory in\n") },
{ 0, N_("\t\taddition to the systemwide gimp FractalExplorer installation\n") },
{ 0, N_("\t\twhen searching for fractals.\n") },
{ 1, N_("palettes\n") },
{ 0, N_("\t\tThis is a subdirectory which can be used to store\n") },
{ 0, N_("\t\tuser defined palettes. The default gimprc file\n") },
{ 0, N_("\t\tchecks only this subdirectory (not the system-wide\n") },
{ 0, N_("\t\tinstallation) when searching for palettes. During\n") },
{ 0, N_("\t\tinstallation, the system palettes will be copied\n") },
{ 0, N_("\t\there. This is done to allow modifications made to\n") },
{ 0, N_("\t\tpalettes during GIMP execution to persist across\n") },
{ 0, N_("\t\tsessions.\n") },
{ 1, N_("patterns\n") },
{ 0, N_("\t\tThis is a subdirectory which can be used to store\n") },
{ 0, N_("\t\tuser defined patterns. The default gimprc file\n") },
{ 0, N_("\t\tchecks this subdirectory in addition to the system-\n") },
{ 0, N_("\t\twide gimp patterns installation when searching for\n") },
{ 0, N_("\t\tpatterns.\n") },
{ 1, N_("plug-ins\n") },
{ 0, N_("\t\tThis is a subdirectory which can be used to store\n") },
{ 0, N_("\t\tuser created, temporary, or otherwise non-system-\n") },
{ 0, N_("\t\tsupported plug-ins. The default gimprc file\n") },
{ 0, N_("\t\tchecks this subdirectory in addition to the system-\n") },
{ 0, N_("\t\twide GIMP plug-in directories when searching for\n") },
{ 0, N_("\t\tplug-ins.\n") },
{ 1, N_("modules\n") },
{ 0, N_("\t\tThis subdirectory can be used to store user created,\n") },
{ 0, N_("\t\ttemporary, or otherwise non-system-supported DLL modules.\n") },
{ 0, N_("\t\tThe default gimprc file checks this subdirectory\n") },
{ 0, N_("\t\tin addition to the system-wide GIMP module directory\n") },
{ 0, N_("\t\twhen searching for modules to load when initialising.\n") },
{ 1, N_("scripts\n") },
{ 0, N_("\t\tThis subdirectory is used by the GIMP to store \n") },
{ 0, N_("\t\tuser created and installed scripts. The default gimprc\n") },
{ 0, N_("\t\tfile checks this subdirectory in addition to the system\n") },
{ 0, N_("\t\t-wide gimp scripts subdirectory when searching for scripts\n") },
{ 1, N_("tmp\n") },
{ 0, N_("\t\tThis subdirectory is used by the GIMP to temporarily\n") },
{ 0, N_("\t\tstore undo buffers to reduce memory usage. If GIMP is\n") },
{ 0, N_("\t\tunceremoniously killed, files may persist in this directory\n") },
{ 0, N_("\t\tof the form: gimp<#>.<#>. These files are useless across\n") },
{ 0, N_("\t\tGIMP sessions and can be destroyed with impunity.\n") }
};
gint nhelp_lines = sizeof (help_lines) / sizeof (help_lines[0]);
gint i;
help_widget = gtk_dialog_new ();
gtk_signal_connect (GTK_OBJECT (help_widget), "delete_event",
@ -147,213 +279,20 @@ install_help (InstallCallback callback)
/* Realize the widget before allowing new text to be inserted */
gtk_widget_realize (text);
gtk_text_insert (GTK_TEXT (text), font_strong, NULL, NULL,
_("The GIMP - GNU Image Manipulation Program\n\n"), -1);
gtk_text_insert (GTK_TEXT (text), font_emphasis, NULL, NULL,
_("Copyright (C) 1995 Spencer Kimball and Peter Mattis\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
"\n", -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("This program is free software; you can redistribute it and/or modify\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("it under the terms of the GNU General Public License as published by\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("the Free Software Foundation; either version 2 of the License, or\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("(at your option) any later version.\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
"\n", -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("This program is distributed in the hope that it will be useful,\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("but WITHOUT ANY WARRANTY; without even the implied warranty of\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("See the GNU General Public License for more details.\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
"\n", -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("You should have received a copy of the GNU General Public License\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("along with this program; if not, write to the Free Software\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
"\n\n", -1);
gtk_text_insert (GTK_TEXT (text), font_strong, NULL, NULL,
_("Personal GIMP Installation\n\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("For a proper GIMP installation, a subdirectory called\n"), -1);
gtk_text_insert (GTK_TEXT (text), font_emphasis, NULL, NULL,
gimp_directory (), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_(" needs to be created. This\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("subdirectory will contain a number of important files:\n\n"), -1);
gtk_text_insert (GTK_TEXT (text), font_emphasis, NULL, NULL,
_("gimprc\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\tThe gimprc is used to store personal preferences\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\tsuch as default GIMP behaviors & plug-in hotkeys.\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\tPaths to search for brushes, palettes, gradients\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\tpatterns, plug-ins and modules are also configured here.\n"), -1);
gtk_text_insert (GTK_TEXT (text), font_emphasis, NULL, NULL,
_("unitrc\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\tThe unitrc is used to store your user units database.\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\tYou can define additional units and use them just\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\tlike you use the built-in units inches, millimeters,\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\tpoints and picas. This file is overwritten each time\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\tyou quit the GIMP.\n"), -1);
gtk_text_insert (GTK_TEXT (text), font_emphasis, NULL, NULL,
_("pluginrc\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\tPlug-ins and extensions are external programs run by\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\tthe GIMP which provide additional functionality.\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\tThese programs are searched for at run-time and\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\tinformation about their functionality and mod-times\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\tis cached in this file. This file is intended to\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\tbe GIMP-readable only, and should not be edited.\n"), -1);
gtk_text_insert (GTK_TEXT (text), font_emphasis, NULL, NULL,
_("brushes\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\tThis is a subdirectory which can be used to store\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\tuser defined brushes. The default gimprc file\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\tchecks this subdirectory in addition to the system-\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\twide gimp brushes installation when searching for\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\tbrushes.\n"), -1);
gtk_text_insert (GTK_TEXT (text), font_emphasis, NULL, NULL,
_("gradients\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\tThis is a subdirectory which can be used to store\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\tuser defined gradients. The default gimprc file\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\tchecks this subdirectory in addition to the system-\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\twide gimp gradients installation when searching for\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\tgradients.\n"), -1);
gtk_text_insert (GTK_TEXT (text), font_emphasis, NULL, NULL,
_("gfig\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\tThis is a subdirectory which can be used to store\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\tuser defined figures to be used by the gfig plug-in.\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\tThe default gimprc file checks this subdirectory in\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\taddition to the systemwide gimp gfig installation\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\twhen searching for gfig figures.\n"), -1);
gtk_text_insert (GTK_TEXT (text), font_emphasis, NULL, NULL,
_("gflares\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\tThis is a subdirectory which can be used to store\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\tuser defined gflares to be used by the gflare plug-in.\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\tThe default gimprc file checks this subdirectory in\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\taddition to the systemwide gimp gflares installation\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\twhen searching for gflares.\n"), -1);
gtk_text_insert (GTK_TEXT (text), font_emphasis, NULL, NULL,
_("palettes\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\tThis is a subdirectory which can be used to store\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\tuser defined palettes. The default gimprc file\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\tchecks only this subdirectory (not the system-wide\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\tinstallation) when searching for palettes. During\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\tinstallation, the system palettes will be copied\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\there. This is done to allow modifications made to\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\tpalettes during GIMP execution to persist across\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\tsessions.\n"), -1);
gtk_text_insert (GTK_TEXT (text), font_emphasis, NULL, NULL,
_("patterns\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\tThis is a subdirectory which can be used to store\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\tuser defined patterns. The default gimprc file\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\tchecks this subdirectory in addition to the system-\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\twide gimp patterns installation when searching for\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\tpatterns.\n"), -1);
gtk_text_insert (GTK_TEXT (text), font_emphasis, NULL, NULL,
_("plug-ins\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\tThis is a subdirectory which can be used to store\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\tuser created, temporary, or otherwise non-system-\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\tsupported plug-ins. The default gimprc file\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\tchecks this subdirectory in addition to the system-\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\twide GIMP plug-in directories when searching for\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\tplug-ins.\n"), -1);
gtk_text_insert (GTK_TEXT (text), font_emphasis, NULL, NULL,
_("modules\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\tThis subdirectory can be used to store user created,\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\ttemporary, or otherwise non-system-supported DLL modules. \n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\tThe default gimprc file checks this subdirectory\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\tin addition to the system-wide GIMP module directory\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\twhen searching for modules to load when initialising.\n"), -1);
gtk_text_insert (GTK_TEXT (text), font_emphasis, NULL, NULL,
_("scripts\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\tThis subdirectory is used by the GIMP to store \n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\tuser created and installed scripts. The default gimprc\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\tfile checks this subdirectory in addition to the system\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\t-wide gimp scripts subdirectory when searching for scripts\n"), -1);
gtk_text_insert (GTK_TEXT (text), font_emphasis, NULL, NULL,
_("tmp\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\tThis subdirectory is used by the GIMP to temporarily\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\tstore undo buffers to reduce memory usage. If GIMP is\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\tunceremoniously killed, files may persist in this directory\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\tof the form: gimp<#>.<#>. These files are useless across\n"), -1);
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
_("\t\tGIMP sessions and can be destroyed with impunity.\n"), -1);
for (i = 0; i < nhelp_lines; i++)
if (help_lines[i].text == NULL)
/* inserting gimp_directory () this way is a little ugly */
gtk_text_insert (GTK_TEXT (text),
(help_lines[i].font == 2) ? font_strong :
(help_lines[i].font == 1) ? font_emphasis : font,
NULL, NULL,
gimp_directory (), -1);
else
gtk_text_insert (GTK_TEXT (text),
(help_lines[i].font == 2) ? font_strong :
(help_lines[i].font == 1) ? font_emphasis : font,
NULL, NULL,
gettext (help_lines[i].text), -1);
/* scroll back to the top */
gtk_adjustment_set_value (GTK_ADJUSTMENT (vadj), 0.0);

View File

@ -1256,10 +1256,11 @@ ed_close_callback(GtkWidget *widget, gpointer client_data)
static void
ed_new_gradient_callback(GtkWidget *widget, gpointer client_data)
{
query_string_box(N_("New gradient"),
N_("Enter a name for the new gradient"),
N_("untitled"),
NULL, ed_do_new_gradient_callback, NULL);
query_string_box(_("New gradient"),
_("Enter a name for the new gradient"),
_("untitled"),
NULL, NULL,
ed_do_new_gradient_callback, NULL);
} /* ed_new_gradient_callback */
@ -1365,10 +1366,11 @@ ed_copy_gradient_callback(GtkWidget *widget, gpointer client_data)
name = g_strdup_printf(_("%s copy"), curr_gradient->name);
query_string_box(N_("Copy gradient"),
N_("Enter a name for the copied gradient"),
query_string_box(_("Copy gradient"),
_("Enter a name for the copied gradient"),
name,
NULL, ed_do_copy_gradient_callback, NULL);
NULL, NULL,
ed_do_copy_gradient_callback, NULL);
g_free(name);
} /* ed_copy_gradient_callback */
@ -1594,10 +1596,11 @@ ed_rename_grads_callback(GtkWidget *widget, gpointer client_data)
if(curr_gradient == NULL)
return;
query_string_box(N_("Rename gradient"),
N_("Enter a new name for the gradient"),
query_string_box(_("Rename gradient"),
_("Enter a new name for the gradient"),
curr_gradient->name,
NULL, ed_do_rename_gradient_callback, curr_gradient);
NULL, NULL,
ed_do_rename_gradient_callback, curr_gradient);
}
/*****/
@ -2246,16 +2249,16 @@ control_do_hint(gint x, gint y)
case GRAD_DRAG_LEFT:
if (seg != NULL) {
if (seg->prev != NULL)
ed_set_hint(N_("Drag: move Shift+drag: move & compress"));
ed_set_hint(_("Drag: move Shift+drag: move & compress"));
else
ed_set_hint(N_("Click: select Shift+click: extend selection"));
ed_set_hint(_("Click: select Shift+click: extend selection"));
} else
ed_set_hint(N_("Click: select Shift+click: extend selection"));
ed_set_hint(_("Click: select Shift+click: extend selection"));
break;
case GRAD_DRAG_MIDDLE:
ed_set_hint(N_("Click: select Shift+click: extend selection "
ed_set_hint(_("Click: select Shift+click: extend selection "
"Drag: move"));
break;
@ -2266,7 +2269,7 @@ control_do_hint(gint x, gint y)
break;
} /* switch */
} else
ed_set_hint(N_("Click: select Shift+click: extend selection "
ed_set_hint(_("Click: select Shift+click: extend selection "
"Drag: move Shift+drag: move & compress"));
} /* control_do_hint */

View File

@ -1348,8 +1348,11 @@ static void
palette_new_entries_callback (GtkWidget *w,
gpointer client_data)
{
query_string_box (_("New Palette"), _("Enter a name for new palette"),
NULL, NULL, palette_add_entries_callback, client_data);
query_string_box (_("New Palette"),
_("Enter a name for new palette"),
NULL,
NULL, NULL,
palette_add_entries_callback, client_data);
}
static void
@ -2709,10 +2712,13 @@ palette_merge_entries_callback (GtkWidget *w,
static void
palette_merge_dialog_callback (GtkWidget *w,
gpointer client_data)
gpointer client_data)
{
query_string_box (_("Merge Palette"), _("Enter a name for merged palette"),
NULL, NULL, palette_merge_entries_callback, client_data);
query_string_box (_("Merge Palette"),
_("Enter a name for merged palette"),
NULL,
NULL, NULL,
palette_merge_entries_callback, client_data);
}
static void
@ -2731,7 +2737,8 @@ palette_import_dialog_callback (GtkWidget *w,
}
static void
palette_import_fill_grad_preview(GtkWidget *preview,gradient_t *gradient)
palette_import_fill_grad_preview(GtkWidget *preview,
gradient_t *gradient)
{
guchar buffer[3*IMPORT_PREVIEW_WIDTH];
gint loop;

View File

@ -685,6 +685,8 @@ plug-ins/xpm/Makefile
plug-ins/AlienMap/Makefile
plug-ins/CEL/Makefile
plug-ins/CML_explorer/Makefile
plug-ins/FractalExplorer/Makefile
plug-ins/FractalExplorer/fractalexplorer-examples/Makefile
plug-ins/Lighting/Makefile
plug-ins/MapObject/Makefile
plug-ins/align_layers/Makefile

View File

@ -34,14 +34,16 @@ echo "mkdir $2/plug-ins"
mkdir $2/plug-ins
echo "mkdir $2/modules"
mkdir $2/modules
echo "mkdir $2/gfig"
mkdir $2/gfig
echo "mkdir $2/tmp"
mkdir $2/tmp
echo "mkdir $2/scripts"
mkdir $2/scripts
echo "mkdir $2/tmp"
mkdir $2/tmp
echo "mkdir $2/gfig"
mkdir $2/gfig
echo "mkdir $2/gflares"
mkdir $2/gflares
echo "mkdir $2/fractalexplorer"
mkdir $2/fractalexplorer
echo "cp $1/palettes/* $2/palettes"
cp $1/palettes/* $2/palettes

View File

@ -10,8 +10,9 @@ mkdir %2\palettes
mkdir %2\patterns
mkdir %2\plug-ins
mkdir %2\modules
mkdir %2\gfig
mkdir %2\scripts
mkdir %2\gfig
mkdir %2\gflares
mkdir %2\fractalexplorer
pause

View File

@ -238,9 +238,6 @@
(transparency-type 1)
(transparency-size 2)
# gfig pattern directory
(gfig-path "${gimp_dir}/gfig:${gimp_data_dir}/gfig")
# This string sets how image window titles are formatted.
# The following percent expansions are performed:
# %% literal percent sign
@ -254,4 +251,10 @@
# %d destination scale factor
(image-title-format "%f-%p.%i (%t) %z%%")
# gfig pattern directory
(gfig-path "${gimp_dir}/gfig:${gimp_data_dir}/gfig")
# fractalexplorer path
(fractalexplorer-path "${gimp_dir}/fractalexplorer:${gimp_data_dir}/fractalexplorer")
# [end of file]

View File

@ -37,19 +37,18 @@
(singular "yard")
(plural "yards"))
(unit-info "typorg. points"
(unit-info "typogr. points"
(factor 72.270000)
(digits 0)
(symbol "tpt")
(abbreviation "tpt")
(singular "typogr. point")
(plural "typorg. points"))
(plural "typogr. points"))
(unit-info "typorg. picas"
(unit-info "typogr. picas"
(factor 6.022500)
(digits 1)
(symbol "tpc")
(abbreviation "tpc")
(singular "typogr. pica")
(plural "typorg. picas"))
(plural "typogr. picas"))

View File

@ -238,9 +238,6 @@
(transparency-type 1)
(transparency-size 2)
# gfig pattern directory
(gfig-path "${gimp_dir}/gfig:${gimp_data_dir}/gfig")
# This string sets how image window titles are formatted.
# The following percent expansions are performed:
# %% literal percent sign
@ -254,4 +251,10 @@
# %d destination scale factor
(image-title-format "%f-%p.%i (%t) %z%%")
# gfig pattern directory
(gfig-path "${gimp_dir}/gfig:${gimp_data_dir}/gfig")
# fractalexplorer path
(fractalexplorer-path "${gimp_dir}/fractalexplorer:${gimp_data_dir}/fractalexplorer")
# [end of file]

View File

@ -1040,8 +1040,6 @@ gimp_image_get_unit (gint32 image_ID)
int nreturn_vals;
GUnit unit;
g_return_if_fail(unit);
return_vals = gimp_run_procedure ("gimp_image_get_unit",
&nreturn_vals,
PARAM_IMAGE, image_ID,

View File

@ -1040,8 +1040,6 @@ gimp_image_get_unit (gint32 image_ID)
int nreturn_vals;
GUnit unit;
g_return_if_fail(unit);
return_vals = gimp_run_procedure ("gimp_image_get_unit",
&nreturn_vals,
PARAM_IMAGE, image_ID,

View File

@ -35,6 +35,23 @@ enum {
static gint gimp_unit_menu_signals[LAST_SIGNAL] = { 0 };
static GtkOptionMenuClass *parent_class = NULL;
static void
gimp_unit_menu_class_destroy (GtkObject *object)
{
GimpUnitMenu *gum;
g_return_if_fail (object != NULL);
g_return_if_fail (GIMP_IS_UNIT_MENU (object));
gum = GIMP_UNIT_MENU (object);
g_free (gum->format);
if (GTK_OBJECT_CLASS (parent_class)->destroy)
(* GTK_OBJECT_CLASS (parent_class)->destroy) (object);
}
static void
gimp_unit_menu_class_init (GimpUnitMenuClass *class)
@ -43,6 +60,8 @@ gimp_unit_menu_class_init (GimpUnitMenuClass *class)
object_class = (GtkObjectClass*) class;
parent_class = gtk_type_class (gtk_option_menu_get_type ());
gimp_unit_menu_signals[GUM_UNIT_CHANGED_SIGNAL] =
gtk_signal_new ("unit_changed",
GTK_RUN_FIRST,
@ -52,6 +71,8 @@ gimp_unit_menu_class_init (GimpUnitMenuClass *class)
gtk_object_class_add_signals (object_class, gimp_unit_menu_signals,
LAST_SIGNAL);
object_class->destroy = gimp_unit_menu_class_destroy;
class->gimp_unit_menu = NULL;
}
@ -60,6 +81,8 @@ static void
gimp_unit_menu_init (GimpUnitMenu *gum)
{
gum->selection = NULL;
gum->clist = NULL;
gum->format = NULL;
gum->unit = UNIT_PIXEL;
gum->start = 0;
}
@ -105,7 +128,8 @@ gimp_unit_menu_new (gchar *format,
g_return_val_if_fail ((unit >= UNIT_PIXEL) &&
(unit < gimp_unit_get_number_of_units ()), NULL);
if (with_custom); /* avoid 'unused variable' compiler warning */
if (unit >= gimp_unit_get_number_of_built_in_units ())
with_custom = TRUE;
gum = gtk_type_new (gimp_unit_menu_get_type ());
@ -125,7 +149,7 @@ gimp_unit_menu_new (gchar *format,
gtk_signal_connect (GTK_OBJECT (menuitem), "activate",
(GtkSignalFunc) gimp_unit_menu_callback, gum);
gtk_object_set_data (GTK_OBJECT (menuitem), "gimp_unit_menu", (gpointer)u);
gtk_widget_show(menuitem);
gtk_widget_show (menuitem);
/* add a separator after pixels */
if (u == UNIT_PIXEL)
@ -135,6 +159,7 @@ gimp_unit_menu_new (gchar *format,
gtk_widget_show (menuitem);
}
}
if (unit >= gimp_unit_get_number_of_built_in_units ())
{
menuitem = gtk_menu_item_new ();
@ -150,18 +175,21 @@ gimp_unit_menu_new (gchar *format,
gtk_widget_show(menuitem);
}
menuitem = gtk_menu_item_new ();
gtk_menu_append (GTK_MENU (menu), menuitem);
gtk_widget_show (menuitem);
if (with_custom)
{
menuitem = gtk_menu_item_new ();
gtk_menu_append (GTK_MENU (menu), menuitem);
gtk_widget_show (menuitem);
menuitem =
gtk_menu_item_new_with_label (_("More..."));
gtk_menu_append (GTK_MENU (menu), menuitem);
gtk_signal_connect (GTK_OBJECT (menuitem), "activate",
(GtkSignalFunc) gimp_unit_menu_callback, gum);
gtk_object_set_data (GTK_OBJECT (menuitem), "gimp_unit_menu",
(gpointer)65536);
gtk_widget_show(menuitem);
menuitem =
gtk_menu_item_new_with_label (_("More..."));
gtk_menu_append (GTK_MENU (menu), menuitem);
gtk_signal_connect (GTK_OBJECT (menuitem), "activate",
(GtkSignalFunc) gimp_unit_menu_callback, gum);
gtk_object_set_data (GTK_OBJECT (menuitem), "gimp_unit_menu",
(gpointer)65536);
gtk_widget_show(menuitem);
}
gtk_option_menu_set_menu (GTK_OPTION_MENU (gum), menu);
@ -266,7 +294,6 @@ gimp_unit_menu_build_string (gchar *format, GUnit unit)
#define BUFFER_LEN 64
static gchar buffer[BUFFER_LEN];
gchar format_buffer[16];
int i = 0;
while (i < (BUFFER_LEN - 1) && *format)
@ -284,40 +311,39 @@ gimp_unit_menu_build_string (gchar *format, GUnit unit)
case '%':
buffer[i++] = '%';
break;
case 'f': /* factor (how many units make up an inch) */
g_snprintf(format_buffer, 16, "%%.%df",
gimp_unit_get_digits (unit));
i += print (buffer, BUFFER_LEN, i, format_buffer,
i += print (buffer, BUFFER_LEN, i, "%f",
gimp_unit_get_factor (unit));
break;
case 'y': /* symbol ("''" for inch) */
i += print (buffer, BUFFER_LEN, i, "%s",
gimp_unit_get_symbol (unit));
break;
case 'a': /* abbreviation */
i += print (buffer, BUFFER_LEN, i, "%s",
gimp_unit_get_abbreviation (unit));
break;
case 's': /* singular */
i += print (buffer, BUFFER_LEN, i, "%s",
gimp_unit_get_singular (unit));
break;
case 'p': /* plural */
i += print (buffer, BUFFER_LEN, i, "%s",
gimp_unit_get_plural (unit));
break;
default:
g_warning (_("unit-menu-format contains unknown"
"format sequence '%%%c'"), *format);
break;
}
break;
default:
buffer[i++] = *format;
break;
@ -398,13 +424,12 @@ gimp_unit_menu_create_selection (GimpUnitMenu *gum)
gchar *row[2];
GUnit unit;
gint num_units;
gchar buffer[32];
gum->selection = gtk_dialog_new ();
gtk_window_set_wmclass (GTK_WINDOW (gum->selection),
"unitselection", "Gimp");
gtk_window_set_title (GTK_WINDOW (gum->selection), _("Unit Selection"));
gtk_window_set_policy(GTK_WINDOW(gum->selection), FALSE, TRUE, FALSE);
gtk_window_set_policy (GTK_WINDOW(gum->selection), FALSE, TRUE, FALSE);
vbox = gtk_vbox_new (FALSE, 2);
gtk_container_add (GTK_CONTAINER (GTK_DIALOG (gum->selection)->vbox), vbox);
@ -414,7 +439,6 @@ gimp_unit_menu_create_selection (GimpUnitMenu *gum)
gtk_signal_connect (GTK_OBJECT (gum->selection), "delete_event",
GTK_SIGNAL_FUNC (gimp_unit_menu_selection_delete_callback),
gum);
gtk_signal_connect (GTK_OBJECT (gum), "destroy",
GTK_SIGNAL_FUNC (gimp_unit_menu_selection_close_callback),
gum);
@ -448,7 +472,7 @@ gimp_unit_menu_create_selection (GimpUnitMenu *gum)
gtk_widget_show(scrolled_win);
gtk_widget_show(gum->clist);
gtk_container_border_width (GTK_CONTAINER (GTK_DIALOG (gum->selection)->action_area), 2);
gtk_container_set_border_width (GTK_CONTAINER (GTK_DIALOG (gum->selection)->action_area), 2);
gtk_box_set_homogeneous (GTK_BOX (GTK_DIALOG (gum->selection)->action_area),
FALSE);
hbbox = gtk_hbutton_box_new ();
@ -478,14 +502,15 @@ gimp_unit_menu_create_selection (GimpUnitMenu *gum)
for (unit = UNIT_END; unit < num_units; unit++)
{
row[0] = gimp_unit_menu_build_string (gum->format, unit);
g_snprintf (buffer, sizeof(buffer), "(%f)",
gimp_unit_get_factor (unit));
row[1] = buffer;
row[0] = g_strdup (gimp_unit_menu_build_string (gum->format, unit));
row[1] = g_strdup (gimp_unit_menu_build_string ("(%f)", unit));
gtk_clist_append (GTK_CLIST (gum->clist), row);
gtk_clist_set_row_data (GTK_CLIST (gum->clist),
unit - UNIT_END, (gpointer)unit);
g_free (row[0]);
g_free (row[1]);
}
/* Now show the dialog */
@ -515,6 +540,7 @@ gimp_unit_menu_callback (GtkWidget *widget,
if (gum->unit == new_unit)
return;
/* was "More..." selected? */
if (new_unit == 65536)
{
gtk_option_menu_set_history (GTK_OPTION_MENU (gum),

View File

@ -35,6 +35,23 @@ enum {
static gint gimp_unit_menu_signals[LAST_SIGNAL] = { 0 };
static GtkOptionMenuClass *parent_class = NULL;
static void
gimp_unit_menu_class_destroy (GtkObject *object)
{
GimpUnitMenu *gum;
g_return_if_fail (object != NULL);
g_return_if_fail (GIMP_IS_UNIT_MENU (object));
gum = GIMP_UNIT_MENU (object);
g_free (gum->format);
if (GTK_OBJECT_CLASS (parent_class)->destroy)
(* GTK_OBJECT_CLASS (parent_class)->destroy) (object);
}
static void
gimp_unit_menu_class_init (GimpUnitMenuClass *class)
@ -43,6 +60,8 @@ gimp_unit_menu_class_init (GimpUnitMenuClass *class)
object_class = (GtkObjectClass*) class;
parent_class = gtk_type_class (gtk_option_menu_get_type ());
gimp_unit_menu_signals[GUM_UNIT_CHANGED_SIGNAL] =
gtk_signal_new ("unit_changed",
GTK_RUN_FIRST,
@ -52,6 +71,8 @@ gimp_unit_menu_class_init (GimpUnitMenuClass *class)
gtk_object_class_add_signals (object_class, gimp_unit_menu_signals,
LAST_SIGNAL);
object_class->destroy = gimp_unit_menu_class_destroy;
class->gimp_unit_menu = NULL;
}
@ -60,6 +81,8 @@ static void
gimp_unit_menu_init (GimpUnitMenu *gum)
{
gum->selection = NULL;
gum->clist = NULL;
gum->format = NULL;
gum->unit = UNIT_PIXEL;
gum->start = 0;
}
@ -105,7 +128,8 @@ gimp_unit_menu_new (gchar *format,
g_return_val_if_fail ((unit >= UNIT_PIXEL) &&
(unit < gimp_unit_get_number_of_units ()), NULL);
if (with_custom); /* avoid 'unused variable' compiler warning */
if (unit >= gimp_unit_get_number_of_built_in_units ())
with_custom = TRUE;
gum = gtk_type_new (gimp_unit_menu_get_type ());
@ -125,7 +149,7 @@ gimp_unit_menu_new (gchar *format,
gtk_signal_connect (GTK_OBJECT (menuitem), "activate",
(GtkSignalFunc) gimp_unit_menu_callback, gum);
gtk_object_set_data (GTK_OBJECT (menuitem), "gimp_unit_menu", (gpointer)u);
gtk_widget_show(menuitem);
gtk_widget_show (menuitem);
/* add a separator after pixels */
if (u == UNIT_PIXEL)
@ -135,6 +159,7 @@ gimp_unit_menu_new (gchar *format,
gtk_widget_show (menuitem);
}
}
if (unit >= gimp_unit_get_number_of_built_in_units ())
{
menuitem = gtk_menu_item_new ();
@ -150,18 +175,21 @@ gimp_unit_menu_new (gchar *format,
gtk_widget_show(menuitem);
}
menuitem = gtk_menu_item_new ();
gtk_menu_append (GTK_MENU (menu), menuitem);
gtk_widget_show (menuitem);
if (with_custom)
{
menuitem = gtk_menu_item_new ();
gtk_menu_append (GTK_MENU (menu), menuitem);
gtk_widget_show (menuitem);
menuitem =
gtk_menu_item_new_with_label (_("More..."));
gtk_menu_append (GTK_MENU (menu), menuitem);
gtk_signal_connect (GTK_OBJECT (menuitem), "activate",
(GtkSignalFunc) gimp_unit_menu_callback, gum);
gtk_object_set_data (GTK_OBJECT (menuitem), "gimp_unit_menu",
(gpointer)65536);
gtk_widget_show(menuitem);
menuitem =
gtk_menu_item_new_with_label (_("More..."));
gtk_menu_append (GTK_MENU (menu), menuitem);
gtk_signal_connect (GTK_OBJECT (menuitem), "activate",
(GtkSignalFunc) gimp_unit_menu_callback, gum);
gtk_object_set_data (GTK_OBJECT (menuitem), "gimp_unit_menu",
(gpointer)65536);
gtk_widget_show(menuitem);
}
gtk_option_menu_set_menu (GTK_OPTION_MENU (gum), menu);
@ -266,7 +294,6 @@ gimp_unit_menu_build_string (gchar *format, GUnit unit)
#define BUFFER_LEN 64
static gchar buffer[BUFFER_LEN];
gchar format_buffer[16];
int i = 0;
while (i < (BUFFER_LEN - 1) && *format)
@ -284,40 +311,39 @@ gimp_unit_menu_build_string (gchar *format, GUnit unit)
case '%':
buffer[i++] = '%';
break;
case 'f': /* factor (how many units make up an inch) */
g_snprintf(format_buffer, 16, "%%.%df",
gimp_unit_get_digits (unit));
i += print (buffer, BUFFER_LEN, i, format_buffer,
i += print (buffer, BUFFER_LEN, i, "%f",
gimp_unit_get_factor (unit));
break;
case 'y': /* symbol ("''" for inch) */
i += print (buffer, BUFFER_LEN, i, "%s",
gimp_unit_get_symbol (unit));
break;
case 'a': /* abbreviation */
i += print (buffer, BUFFER_LEN, i, "%s",
gimp_unit_get_abbreviation (unit));
break;
case 's': /* singular */
i += print (buffer, BUFFER_LEN, i, "%s",
gimp_unit_get_singular (unit));
break;
case 'p': /* plural */
i += print (buffer, BUFFER_LEN, i, "%s",
gimp_unit_get_plural (unit));
break;
default:
g_warning (_("unit-menu-format contains unknown"
"format sequence '%%%c'"), *format);
break;
}
break;
default:
buffer[i++] = *format;
break;
@ -398,13 +424,12 @@ gimp_unit_menu_create_selection (GimpUnitMenu *gum)
gchar *row[2];
GUnit unit;
gint num_units;
gchar buffer[32];
gum->selection = gtk_dialog_new ();
gtk_window_set_wmclass (GTK_WINDOW (gum->selection),
"unitselection", "Gimp");
gtk_window_set_title (GTK_WINDOW (gum->selection), _("Unit Selection"));
gtk_window_set_policy(GTK_WINDOW(gum->selection), FALSE, TRUE, FALSE);
gtk_window_set_policy (GTK_WINDOW(gum->selection), FALSE, TRUE, FALSE);
vbox = gtk_vbox_new (FALSE, 2);
gtk_container_add (GTK_CONTAINER (GTK_DIALOG (gum->selection)->vbox), vbox);
@ -414,7 +439,6 @@ gimp_unit_menu_create_selection (GimpUnitMenu *gum)
gtk_signal_connect (GTK_OBJECT (gum->selection), "delete_event",
GTK_SIGNAL_FUNC (gimp_unit_menu_selection_delete_callback),
gum);
gtk_signal_connect (GTK_OBJECT (gum), "destroy",
GTK_SIGNAL_FUNC (gimp_unit_menu_selection_close_callback),
gum);
@ -448,7 +472,7 @@ gimp_unit_menu_create_selection (GimpUnitMenu *gum)
gtk_widget_show(scrolled_win);
gtk_widget_show(gum->clist);
gtk_container_border_width (GTK_CONTAINER (GTK_DIALOG (gum->selection)->action_area), 2);
gtk_container_set_border_width (GTK_CONTAINER (GTK_DIALOG (gum->selection)->action_area), 2);
gtk_box_set_homogeneous (GTK_BOX (GTK_DIALOG (gum->selection)->action_area),
FALSE);
hbbox = gtk_hbutton_box_new ();
@ -478,14 +502,15 @@ gimp_unit_menu_create_selection (GimpUnitMenu *gum)
for (unit = UNIT_END; unit < num_units; unit++)
{
row[0] = gimp_unit_menu_build_string (gum->format, unit);
g_snprintf (buffer, sizeof(buffer), "(%f)",
gimp_unit_get_factor (unit));
row[1] = buffer;
row[0] = g_strdup (gimp_unit_menu_build_string (gum->format, unit));
row[1] = g_strdup (gimp_unit_menu_build_string ("(%f)", unit));
gtk_clist_append (GTK_CLIST (gum->clist), row);
gtk_clist_set_row_data (GTK_CLIST (gum->clist),
unit - UNIT_END, (gpointer)unit);
g_free (row[0]);
g_free (row[1]);
}
/* Now show the dialog */
@ -515,6 +540,7 @@ gimp_unit_menu_callback (GtkWidget *widget,
if (gum->unit == new_unit)
return;
/* was "More..." selected? */
if (new_unit == 65536)
{
gtk_option_menu_set_history (GTK_OPTION_MENU (gum),

View File

@ -0,0 +1,7 @@
Makefile.in
Makefile
.deps
_libs
.libs
*.o
FractalExplorer

View File

@ -0,0 +1,366 @@
/**********************************************************************
FUNCTION: dialog_close_callback
*********************************************************************/
void
dialog_close_callback(GtkWidget * widget, gpointer data)
{
gtk_main_quit();
} /* dialog_close_callback */
/**********************************************************************
FUNCTION: dialog_save_callback
*********************************************************************/
void
dialog_save_callback(GtkWidget * widget, gpointer data)
{
create_file_selection();
} /* dialog_save_callback */
/**********************************************************************
FUNCTION: dialog_savelanguage_callback
*********************************************************************/
void
dialog_savelanguage_callback(GtkWidget * widget, gpointer data)
{
FILE * fp;
char * filname;
filname = g_strconcat (gimp_directory (),
G_DIR_SEPARATOR_S,
"fractalexplorerrc",
NULL);
lng=wvals.language;
fp = fopen (filname, "w");
if (fp) {
if (lng==0) fputs("FX-LANG:En\n",fp);
if (lng==1) fputs("FX-LANG:Fr\n",fp);
if (lng==2) fputs("FX-LANG:De\n",fp);
fclose(fp);
}
g_free (filename);
} /* dialog_savelanguage_callback */
/**********************************************************************
FUNCTION: load_button_press
*********************************************************************/
void
load_button_press(GtkWidget * widget,
gpointer data)
{
create_load_file_selection();
}
/**********************************************************************
FUNCTION: dialog_ok_callback
*********************************************************************/
void
dialog_ok_callback(GtkWidget * widget, gpointer data)
{
wint.run = TRUE;
gtk_widget_destroy(GTK_WIDGET(data));
} /* dialog_ok_callback */
/**********************************************************************
FUNCTION: dialog_reset_callback
*********************************************************************/
void
dialog_reset_callback(GtkWidget * widget, gpointer data)
{
wvals.xmin = standardvals.xmin;
wvals.xmax = standardvals.xmax;
wvals.ymin = standardvals.ymin;
wvals.ymax = standardvals.ymax;
wvals.iter = standardvals.iter;
wvals.cx = standardvals.cx;
wvals.cy = standardvals.cy;
dialog_change_scale();
set_cmap_preview();
dialog_update_preview();
}
/**********************************************************************
FUNCTION: dialog_redraw_callback
*********************************************************************/
void
dialog_redraw_callback(GtkWidget * widget, gpointer data)
{
int alwaysprev = wvals.alwayspreview;
wvals.alwayspreview = TRUE;
set_cmap_preview();
dialog_update_preview();
wvals.alwayspreview = alwaysprev;
}
/**********************************************************************
FUNCTION: dialog_cancel_callback
*********************************************************************/
void
dialog_cancel_callback(GtkWidget * widget, gpointer data)
{
gtk_widget_destroy(GTK_WIDGET(data));
} /* dialog_cancel_callback */
/**********************************************************************
FUNCTION: dialog_undo_zoom_callback
*********************************************************************/
void
dialog_undo_zoom_callback(GtkWidget * widget, gpointer data)
{
if (zoomindex > 1) {
zooms[zoomindex] = wvals;
zoomindex--;
wvals = zooms[zoomindex];
dialog_change_scale();
set_cmap_preview();
dialog_update_preview();
}
} /* dialog_undo_zoom_callback */
/**********************************************************************
FUNCTION: dialog_redo_zoom_callback
*********************************************************************/
void
dialog_redo_zoom_callback(GtkWidget * widget, gpointer data)
{
if (zoomindex < zoommax) {
zoomindex++;
wvals = zooms[zoomindex];
dialog_change_scale();
set_cmap_preview();
dialog_update_preview();
}
} /* dialog_redo_zoom_callback */
/**********************************************************************
FUNCTION: dialog_step_in_callback
*********************************************************************/
void
dialog_step_in_callback(GtkWidget * widget, gpointer data)
{
double xdifferenz;
double ydifferenz;
if (zoomindex < zoommax) {
zooms[zoomindex]=wvals;
zoomindex++;
}
xdifferenz=wvals.xmax-wvals.xmin;
ydifferenz=wvals.ymax-wvals.ymin;
wvals.xmin+=1.0/6.0*xdifferenz;
wvals.ymin+=1.0/6.0*ydifferenz;
wvals.xmax-=1.0/6.0*xdifferenz;
wvals.ymax-=1.0/6.0*ydifferenz;
zooms[zoomindex]=wvals;
dialog_change_scale();
set_cmap_preview();
dialog_update_preview();
} /* dialog_step_in_callback */
/**********************************************************************
FUNCTION: dialog_step_out_callback
*********************************************************************/
void
dialog_step_out_callback(GtkWidget * widget, gpointer data)
{
double xdifferenz;
double ydifferenz;
if (zoomindex < zoommax) {
zooms[zoomindex]=wvals;
zoomindex++;
}
xdifferenz=wvals.xmax-wvals.xmin;
ydifferenz=wvals.ymax-wvals.ymin;
wvals.xmin-=1.0/4.0*xdifferenz;
wvals.ymin-=1.0/4.0*ydifferenz;
wvals.xmax+=1.0/4.0*xdifferenz;
wvals.ymax+=1.0/4.0*ydifferenz;
zooms[zoomindex]=wvals;
dialog_change_scale();
set_cmap_preview();
dialog_update_preview();
} /* dialog_step_out_callback */
/**********************************************************************
FUNCTION: explorer_logo_ok_callback
*********************************************************************/
void
explorer_logo_ok_callback(GtkWidget * widget, gpointer data)
{
gtk_widget_set_sensitive(maindlg, TRUE);
gtk_widget_destroy(logodlg);
}
/**********************************************************************
FUNCTION: explorer_about_callback
*********************************************************************/
void
explorer_about_callback(GtkWidget * widget, gpointer data)
{
gtk_widget_set_sensitive(maindlg, FALSE);
explorer_logo_dialog();
}
/**********************************************************************
FUNCTION: explorer_toggle_update
*********************************************************************/
void
explorer_toggle_update(GtkWidget * widget,
gpointer data)
{
int *toggle_val;
toggle_val = (int *) data;
if (GTK_TOGGLE_BUTTON(widget)->active)
*toggle_val = TRUE;
else
*toggle_val = FALSE;
if (do_redsinus)
wvals.redmode = SINUS;
else if (do_redcosinus)
wvals.redmode = COSINUS;
else if (do_rednone)
wvals.redmode = NONE;
if (do_greensinus)
wvals.greenmode = SINUS;
else if (do_greencosinus)
wvals.greenmode = COSINUS;
else if (do_greennone)
wvals.greenmode = NONE;
if (do_bluesinus)
wvals.bluemode = SINUS;
else if (do_bluecosinus)
wvals.bluemode = COSINUS;
else if (do_bluenone)
wvals.bluemode = NONE;
if (do_colormode1)
wvals.colormode = 0;
else if (do_colormode2)
wvals.colormode = 1;
if (do_english)
wvals.language = 0;
else if (do_french)
wvals.language = 1;
else if (do_german)
wvals.language = 2;
if (do_type0)
wvals.fractaltype = 0;
else if (do_type1)
wvals.fractaltype = 1;
else if (do_type2)
wvals.fractaltype = 2;
else if (do_type3)
wvals.fractaltype = 3;
else if (do_type4)
wvals.fractaltype = 4;
else if (do_type5)
wvals.fractaltype = 5;
else if (do_type6)
wvals.fractaltype = 6;
else if (do_type7)
wvals.fractaltype = 7;
else if (do_type8)
wvals.fractaltype = 8;
set_cmap_preview();
dialog_update_preview();
}
/**********************************************************************
FUNCTION: dialog_scale_update
*********************************************************************/
void
dialog_scale_update(GtkAdjustment * adjustment, gdouble * value)
{
GtkWidget *entry;
char buf[256];
if (*value != adjustment->value) {
*value = adjustment->value;
entry = gtk_object_get_user_data(GTK_OBJECT(adjustment));
sprintf(buf, "%0.15f", *value);
gtk_signal_handler_block_by_data(GTK_OBJECT(entry), value);
gtk_entry_set_text(GTK_ENTRY(entry), buf);
gtk_signal_handler_unblock_by_data(GTK_OBJECT(entry), value);
dialog_update_preview();
}
} /* dialog_scale_update */
/**********************************************************************
FUNCTION: dialog_scale_int_update
*********************************************************************/
void
dialog_scale_int_update(GtkAdjustment * adjustment, gdouble * value)
{
GtkWidget *entry;
char buf[256];
if (*value != adjustment->value) {
*value = adjustment->value;
entry = gtk_object_get_user_data(GTK_OBJECT(adjustment));
sprintf(buf, "%i", (int) *value);
gtk_signal_handler_block_by_data(GTK_OBJECT(entry), value);
gtk_entry_set_text(GTK_ENTRY(entry), buf);
gtk_signal_handler_unblock_by_data(GTK_OBJECT(entry), value);
set_cmap_preview();
dialog_update_preview();
}
} /* dialog_scale_int_update */
/**********************************************************************
FUNCTION: dialog_entry_update
*********************************************************************/
void
dialog_entry_update(GtkWidget * widget, gdouble * value)
{
GtkAdjustment *adjustment;
gdouble new_value;
new_value = atof(gtk_entry_get_text(GTK_ENTRY(widget)));
if (*value != new_value) {
adjustment = gtk_object_get_user_data(GTK_OBJECT(widget));
if ((new_value >= adjustment->lower) &&
(new_value <= adjustment->upper)) {
*value = new_value;
adjustment->value = new_value;
gtk_signal_emit_by_name(GTK_OBJECT(adjustment), "value_changed");
dialog_update_preview();
}
}
} /* dialog_entry_update */

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,304 @@
/**********************************************************************
FUNCTION: preview_button_press_event
*********************************************************************/
gint
preview_button_press_event(GtkWidget * widget, GdkEventButton * event)
{
double left,
right,
bottom,
top,
dx,
dy;
int px,
py,
x,
y;
unsigned short r,
g,
b;
guchar *p_ul,
*i,
*p;
if (event->button == 1) {
x_press = event->x;
y_press = event->y;
left = sel_x1;
right = sel_x2 - 1;
bottom = sel_y2 - 1;
top = sel_y1;
dx = (right - left) / (preview_width - 1);
dy = (bottom - top) / (preview_height - 1);
xbild = preview_width;
ybild = preview_height;
xdiff = (xmax - xmin) / xbild;
ydiff = (ymax - ymin) / ybild;
py = y_press;
px = 0;
p_ul = wint.wimage + 3 * (preview_width * py + 0);
for (x = 0; x < preview_width; x++) {
i = wint.wimage + 3 * (preview_width * py + px);
r = (*i++) ^ 254;
g = (*i++) ^ 254;
b = (*i) ^ 254;
p_ul[0] = r;
p_ul[1] = g;
p_ul[2] = b;
p_ul += 3;
px += 1;
}
py = 0;
p_ul = wint.wimage + 3 * (preview_width * 0 + (int) x_press);
px = x_press;
for (y = 0; y < preview_height; y++) {
i = wint.wimage + 3 * (preview_width * py + px);
r = (*i++) ^ 254;
g = (*i++) ^ 254;
b = (*i) ^ 254;
p_ul[0] = r;
p_ul[1] = g;
p_ul[2] = b;
p_ul += 3 * (preview_width);
py += 1;
} /* for */
p = wint.wimage;
for (y = 0; y < preview_height; y++) {
gtk_preview_draw_row(GTK_PREVIEW(wint.preview), p, 0, y, preview_width);
p += preview_width * 3;
} /* for */
gtk_widget_draw(wint.preview, NULL);
gdk_flush();
}
return (TRUE);
}
/**********************************************************************
FUNCTION: preview_motion_notify_event
*********************************************************************/
gint
preview_motion_notify_event(GtkWidget * widget, GdkEventButton * event)
{
int px,
py,
x,
y;
unsigned short r,
g,
b;
guchar *p_ul,
*i,
*p;
ypos = oldypos;
xpos = oldxpos;
if (oldypos != -1) {
py = ypos;
px = 0;
p_ul = wint.wimage + 3 * (preview_width * py + 0);
for (x = 0; x < preview_width; x++) {
i = wint.wimage + 3 * (preview_width * py + px);
r = (*i++) ^ 254;
g = (*i++) ^ 254;
b = (*i) ^ 254;
p_ul[0] = r;
p_ul[1] = g;
p_ul[2] = b;
p_ul += 3;
px += 1;
}
py = 0;
p_ul = wint.wimage + 3 * (preview_width * 0 + (int) xpos);
px = xpos;
for (y = 0; y < preview_height; y++) {
i = wint.wimage + 3 * (preview_width * py + px);
r = (*i++) ^ 254;
g = (*i++) ^ 254;
b = (*i) ^ 254;
p_ul[0] = r;
p_ul[1] = g;
p_ul[2] = b;
p_ul += 3 * (preview_width);
py += 1;
} /* for */
}
oldxpos = xpos = event->x;
oldypos = ypos = event->y;
if ((xpos >= 0.0) && (ypos >= 0.0)
&& (xpos < preview_width) && (ypos < preview_height)) {
py = ypos;
px = 0;
p_ul = wint.wimage + 3 * (preview_width * py + 0);
for (x = 0; x < preview_width; x++) {
i = wint.wimage + 3 * (preview_width * py + px);
r = (*i++) ^ 254;
g = (*i++) ^ 254;
b = (*i) ^ 254;
p_ul[0] = r;
p_ul[1] = g;
p_ul[2] = b;
p_ul += 3;
px += 1;
}
py = 0;
p_ul = wint.wimage + 3 * (preview_width * 0 + (int) xpos);
px = xpos;
for (y = 0; y < preview_height; y++) {
i = wint.wimage + 3 * (preview_width * py + px);
r = (*i++) ^ 254;
g = (*i++) ^ 254;
b = (*i) ^ 254;
p_ul[0] = r;
p_ul[1] = g;
p_ul[2] = b;
p_ul += 3 * (preview_width);
py += 1;
} /* for */
} else {
oldypos = -1;
oldxpos = -1;
}
p = wint.wimage;
for (y = 0; y < preview_height; y++) {
gtk_preview_draw_row(GTK_PREVIEW(wint.preview), p, 0, y, preview_width);
p += preview_width * 3;
} /* for */
gtk_widget_draw(wint.preview, NULL);
gdk_flush();
return (TRUE);
}
/**********************************************************************
FUNCTION: preview_leave_notify_event
*********************************************************************/
gint
preview_leave_notify_event(GtkWidget * widget, GdkEventButton * event)
{
int px,
py,
x,
y;
unsigned short r,
g,
b;
guchar *p_ul,
*i,
*p;
ypos = oldypos;
xpos = oldxpos;
if (oldypos != -1) {
py = ypos;
px = 0;
p_ul = wint.wimage + 3 * (preview_width * py + 0);
for (x = 0; x < preview_width; x++) {
i = wint.wimage + 3 * (preview_width * py + px);
r = (*i++) ^ 254;
g = (*i++) ^ 254;
b = (*i) ^ 254;
p_ul[0] = r;
p_ul[1] = g;
p_ul[2] = b;
p_ul += 3;
px += 1;
}
py = 0;
p_ul = wint.wimage + 3 * (preview_width * 0 + (int) xpos);
px = xpos;
for (y = 0; y < preview_height; y++) {
i = wint.wimage + 3 * (preview_width * py + px);
r = (*i++) ^ 254;
g = (*i++) ^ 254;
b = (*i) ^ 254;
p_ul[0] = r;
p_ul[1] = g;
p_ul[2] = b;
p_ul += 3 * (preview_width);
py += 1;
} /* for */
}
oldxpos = -1;
oldypos = -1;
p = wint.wimage;
for (y = 0; y < preview_height; y++) {
gtk_preview_draw_row(GTK_PREVIEW(wint.preview), p, 0, y, preview_width);
p += preview_width * 3;
} /* for */
gtk_widget_draw(wint.preview, NULL);
gdk_flush();
MyCursor = gdk_cursor_new(GDK_TOP_LEFT_ARROW);
gdk_window_set_cursor(maindlg->window, MyCursor);
return (TRUE);
}
/**********************************************************************
FUNCTION: preview_enter_notify_event
*********************************************************************/
gint
preview_enter_notify_event(GtkWidget * widget, GdkEventButton * event)
{
MyCursor = gdk_cursor_new(GDK_TCROSS);
gdk_window_set_cursor(maindlg->window, MyCursor);
return (TRUE);
}
/**********************************************************************
FUNCTION: preview_button_release_event
*********************************************************************/
gint
preview_button_release_event(GtkWidget * widget, GdkEventButton * event)
{
double l_xmin,
l_xmax,
l_ymin,
l_ymax;
if (event->button == 1) {
x_release = event->x;
y_release = event->y;
if ((x_press >= 0.0) && (y_press >= 0.0)
&& (x_release >= 0.0) && (y_release >= 0.0)
&& (x_press < preview_width) && (y_press < preview_height)
&& (x_release < preview_width) && (y_release < preview_height)) {
l_xmin = wvals.xmin + (wvals.xmax - wvals.xmin) * (x_press / preview_width);
l_xmax = wvals.xmin + (wvals.xmax - wvals.xmin) * (x_release / preview_width);
l_ymin = wvals.ymin + (wvals.ymax - wvals.ymin) * (y_press / preview_height);
l_ymax = wvals.ymin + (wvals.ymax - wvals.ymin) * (y_release / preview_height);
zooms[zoomindex] = wvals;
zoomindex++;
if (zoomindex > 99)
zoomindex = 99;
zoommax = zoomindex;
wvals.xmin = l_xmin;
wvals.xmax = l_xmax;
wvals.ymin = l_ymin;
wvals.ymax = l_ymax;
dialog_change_scale();
dialog_update_preview();
oldypos = oldxpos = -1;
}
}
return (TRUE);
}

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,357 @@
/**********************************************************************
Magic numbers
*********************************************************************/
#define PREVIEW_SIZE 128
#define SCALE_WIDTH 200
#define ENTRY_WIDTH 60
#define MAX_LOAD_LINE 256
#define GR_WIDTH 325
#define SINUS 0
#define COSINUS 1
#define NONE 2
#define FRACTAL_HEADER "Fractal Explorer Plug-In Version 2 - (c) 1997 <cotting@mygale.org>\n"
#define fractalexplorer_HEADER "Fractal Explorer Plug-In Version 2 - (c) 1997 <cotting@mygale.org>\n"
/**********************************************************************
Types
*********************************************************************/
typedef struct {
gint fractaltype;
gdouble xmin;
gdouble xmax;
gdouble ymin;
gdouble ymax;
gdouble iter;
gdouble cx;
gdouble cy;
gint colormode;
gdouble redstretch;
gdouble greenstretch;
gdouble bluestretch;
gint redmode;
gint greenmode;
gint bluemode;
gint redinvert;
gint greeninvert;
gint blueinvert;
gint alwayspreview;
gint language;
} explorer_vals_t;
typedef struct {
GtkWidget *preview;
guchar *wimage;
gint run;
} explorer_interface_t;
typedef int clrmap[256][3];
typedef struct {
GtkWidget *text;
GtkAdjustment *data;
} scaledata;
typedef struct _DialogElements DialogElements;
struct _DialogElements {
GtkWidget *type_mandelbrot;
GtkWidget *type_julia;
GtkWidget *type_barnsley1;
GtkWidget *type_barnsley2;
GtkWidget *type_barnsley3;
GtkWidget *type_spider;
GtkWidget *type_manowar;
GtkWidget *type_lambda;
GtkWidget *type_sierpinski;
scaledata xmin;
scaledata xmax;
scaledata ymin;
scaledata ymax;
scaledata iter;
scaledata cx;
scaledata cy;
scaledata red;
scaledata green;
scaledata blue;
GtkWidget *redmodecos;
GtkWidget *redmodesin;
GtkWidget *redmodenone;
GtkWidget *greenmodecos;
GtkWidget *greenmodesin;
GtkWidget *greenmodenone;
GtkWidget *bluemodecos;
GtkWidget *bluemodesin;
GtkWidget *bluemodenone;
GtkWidget *redinvert;
GtkWidget *greeninvert;
GtkWidget *blueinvert;
GtkWidget *colormode0;
GtkWidget *colormode1;
};
typedef struct DFigObj {
gchar * name; /* Trailing name of file */
gchar * filename; /* Filename itself */
gchar * draw_name;/* Name of the drawing */
explorer_vals_t opts; /* Options enforced when fig saved */
GtkWidget *list_item;
GtkWidget *label_widget;
GtkWidget *pixmap_widget;
gint obj_status;
} fractalexplorerOBJ;
typedef struct GigObj {
gchar * name; /* Trailing name of file */
gchar * filename; /* Filename itself */
gchar * draw_name;/* Name of the drawing */
gint typus;
GtkWidget *list_item;
GtkWidget *label_widget;
GtkWidget *pixmap_widget;
gint obj_status;
} gradientOBJ;
typedef struct _fractalexplorerListOptions {
GtkWidget *query_box;
GtkWidget *name_entry;
GtkWidget *list_entry;
fractalexplorerOBJ * obj;
gint created;
} fractalexplorerListOptions;
/* States of the object */
#define fractalexplorer_OK 0x0
#define fractalexplorer_MODIFIED 0x1
#define fractalexplorer_READONLY 0x2
#define gradient_GRADIENTEDITOR 0x2
static fractalexplorerOBJ *current_obj;
static fractalexplorerOBJ *pic_obj;
static GtkWidget *delete_dialog = NULL;
/**********************************************************************
Declare local functions
*********************************************************************/
/* Gimp interface functions */
static void query(void);
static void run(char *name, int nparams, GParam * param, int *nreturn_vals,
GParam ** return_vals);
/* Dialog and fractal functions */
void explorer(GDrawable * drawable);
void explorer_render_row(const guchar * src_row, guchar * dest_row, gint row,
gint row_width, gint bytes);
void transform(short int *, short int *, short int *, double, double, double);
gint explorer_dialog(void);
void dialog_update_preview(void);
/* Functions for dialog widgets */
void dialog_create_value(char *title, GtkTable * table, int row, gdouble * value,
int left, int right, const char *desc, scaledata * scalevalues);
void dialog_scale_update(GtkAdjustment * adjustment, gdouble * value);
void dialog_create_int_value(char *title, GtkTable * table, int row, gdouble * value,
int left, int right, const char *desc, scaledata * scalevalues);
void dialog_scale_int_update(GtkAdjustment * adjustment, gdouble * value);
void dialog_entry_update(GtkWidget * widget, gdouble * value);
void dialog_close_callback(GtkWidget * widget, gpointer data);
void dialog_ok_callback(GtkWidget * widget, gpointer data);
void dialog_cancel_callback(GtkWidget * widget, gpointer data);
void dialog_step_out_callback(GtkWidget * widget, gpointer data);
void dialog_step_in_callback(GtkWidget * widget, gpointer data);
void dialog_undo_zoom_callback(GtkWidget * widget, gpointer data);
void dialog_redo_zoom_callback(GtkWidget * widget, gpointer data);
void dialog_redraw_callback(GtkWidget * widget, gpointer data);
void dialog_reset_callback(GtkWidget * widget, gpointer data);
GtkWidget *explorer_logo_dialog();
GtkWidget *explorer_load_dialog();
void explorer_toggle_update(GtkWidget * widget, gpointer data);
void set_tooltip(GtkTooltips * tooltips, GtkWidget * widget, const char *desc);
void dialog_change_scale(void);
void set_cmap_preview(void);
void make_color_map(void);
void create_file_selection();
void create_load_file_selection();
void explorer_load();
void load_button_press(GtkWidget * widget, gpointer data);
/* Preview events */
gint preview_button_press_event(GtkWidget * widget, GdkEventButton * event);
gint preview_button_release_event(GtkWidget * widget, GdkEventButton * event);
gint preview_motion_notify_event(GtkWidget * widget, GdkEventButton * event);
gint preview_leave_notify_event(GtkWidget * widget, GdkEventButton * event);
gint preview_enter_notify_event(GtkWidget * widget, GdkEventButton * event);
static gint list_button_press(GtkWidget *widget,GdkEventButton *event,gpointer data);
static gint new_button_press(GtkWidget *widget,GdkEventButton *bevent,gpointer data);
static gint fractalexplorer_delete_fractalexplorer_callback(GtkWidget *widget,GdkEventButton *bevent,gpointer data);
static gint delete_button_press_ok(GtkWidget *widget,gpointer data);
static gint rescan_button_press(GtkWidget *widget,GdkEventButton *bevent,gpointer data);
static void fractalexplorer_list_ok_callback (GtkWidget *w, gpointer client_data);
static void fractalexplorer_list_cancel_callback (GtkWidget *w, gpointer client_data);
static void fractalexplorer_dialog_edit_list (GtkWidget *lwidget,fractalexplorerOBJ *obj,gint created);
static GtkWidget *new_fractalexplorer_obj(gchar * name);
static void fractalexplorer_rescan_cancel_callback (GtkWidget *w, gpointer client_data);
void clear_list_items(GtkList *list);
gint fractalexplorer_list_pos(fractalexplorerOBJ *fractalexplorer);
gint fractalexplorer_list_insert (fractalexplorerOBJ *fractalexplorer);
GtkWidget* fractalexplorer_list_item_new_with_label_and_pixmap (fractalexplorerOBJ *obj, gchar *label, GtkWidget *pix_widget);
GtkWidget* fractalexplorer_new_pixmap(GtkWidget *list, char **pixdata);
static GtkWidget *fractalexplorer_list_add(fractalexplorerOBJ *obj);
void list_button_update(fractalexplorerOBJ *obj);
fractalexplorerOBJ *fractalexplorer_new(void);
void build_list_items(GtkWidget *list);
/*
static void fractalexplorer_op_menu_popup(gint button, guint32 activate_time,fractalexplorerOBJ *obj);
*/
void plug_in_parse_fractalexplorer_path();
void fractalexplorer_free(fractalexplorerOBJ * fractalexplorer);
void fractalexplorer_free_everything(fractalexplorerOBJ * fractalexplorer);
void fractalexplorer_list_free_all ();
fractalexplorerOBJ *fractalexplorer_load (gchar *filename, gchar *name);
static void fractalexplorer_rescan_file_selection_ok(GtkWidget *w, GtkFileSelection *fs, gpointer data);
void fractalexplorer_list_load_all(GList *plist);
static GtkWidget *add_objects_list ();
static GtkWidget *add_gradients_list ();
static void fractalexplorer_rescan_ok_callback (GtkWidget *w, gpointer client_data);
static void fractalexplorer_rescan_add_entry_callback (GtkWidget *w, gpointer client_data);
static void fractalexplorer_rescan_list (void);
/*
static void fractalexplorer_op_menu_create(GtkWidget *window);
*/
/**********************************************************************
Global variables
*********************************************************************/
double xmin = -2,
xmax = 1,
ymin = -1.5,
ymax = 1.5;
double xbild,
ybild,
xdiff,
ydiff;
double x_press = -1.0,
y_press = -1.0;
double x_release = -1.0,
y_release = -1.0;
float cx = -0.75;
float cy = -0.2;
GDrawable *drawable;
gint tile_width,
tile_height;
gint img_width,
img_height,
img_bpp;
gint sel_x1,
sel_y1,
sel_x2,
sel_y2;
gint sel_width,
sel_height;
gint preview_width,
preview_height;
GTile *the_tile = NULL;
double cen_x,
cen_y;
double xpos,
ypos,
oldxpos = -1,
oldypos = -1;
gint do_redsinus,
do_redcosinus,
do_rednone;
gint do_greensinus,
do_greencosinus,
do_greennone;
gint do_bluesinus,
do_bluecosinus,
do_bluenone;
gint do_redinvert,
do_greeninvert,
do_blueinvert;
gint do_colormode1 = FALSE,
do_colormode2 = FALSE;
gint do_type0 = FALSE,
do_type1 = FALSE,
do_type2 = FALSE,
do_type3 = FALSE,
do_type4 = FALSE,
do_type5 = FALSE,
do_type6 = FALSE,
do_type7 = FALSE,
do_type8 = FALSE,
do_english = TRUE,
do_french = FALSE,
do_german = FALSE;
GtkWidget *maindlg;
GtkWidget *logodlg;
GtkWidget *loaddlg;
GtkWidget *cmap_preview;
GtkWidget *cmap_preview_long;
GtkWidget *cmap_preview_long2;
GtkWidget *delete_frame_to_freeze;
GtkWidget *fractalexplorer_gtk_list;
GtkWidget *save_menu_item;
GtkWidget *fractalexplorer_op_menu;
GtkTooltips *tips;
GdkColor tips_fg,
tips_bg;
GdkCursor *MyCursor;
int ready_now = FALSE;
explorer_vals_t zooms[100];
DialogElements *elements = NULL;
int zoomindex = 1;
int zoommax = 1;
gdouble *gg;
int line_no;
gchar *filename;
clrmap colormap;
GList *fractalexplorer_path_list = NULL;
GList *fractalexplorer_list = NULL;
GList *gradient_list = NULL;
gchar *tpath = NULL;
fractalexplorerOBJ *fractalexplorer_obj_for_menu;
static GList *rescan_list = NULL;
int lng=LNG_GERMAN;
GPlugInInfo PLUG_IN_INFO =
{
NULL, /* init_proc */
NULL, /* quit_proc */
query, /* query_proc */
run, /* run_proc */
};
explorer_interface_t wint =
{
NULL, /* preview */
NULL, /* wimage */
FALSE /* run */
}; /* wint */
static explorer_vals_t wvals =
{
0, -2.0, 2.0, -1.5, 1.5, 50.0, -0.75, -0.2, 0, 128.0, 128.0, 128.0, 1, 1, 0, 0, 0, 0, 1, 0,
}; /* wvals */
static explorer_vals_t standardvals =
{
0, -2.0, 2.0, -1.5, 1.5, 50.0, -0.75, -0.2, 0, 128.0, 128.0, 128.0, 1, 1, 0, 0, 0, 0, 1, 0,
}; /* standardvals */

View File

@ -0,0 +1,566 @@
static char * msg[4][104] =
{
/* English messages */
{
"OK",
"Cancel",
"Delete fractal",
"Are you sure you want to delete",
"\"%s\" from the list and from disk?",
"Delete",
"Error opening: %s",
"File '%s' Not a FractalExplorer file",
"File '%s' corrupt file - Line %d Option section incorrect",
"Internal error - list item has null object!",
"Unknown event\n",
"Edit fractal name",
"Fractal name:",
"New fractal",
"%s [copy]",
"Save",
"Save as...",
"Copy",
"Load",
"No fractalexplorer-path in gimprc:\n"
"You need to add an entry like\n"
"(fractalexplorer-path \"${gimp_dir}/fractalexplorer:${gimp_data_dir}/fractalexplorer\n"
"to your ~/.gimprc/gimprc file\n",
"fractalexplorer-path miss-configured - \nPath `%.100s' not found\n",
"Entry %.100s is not a directory\n",
"error reading fractalexplorer directory \"%s\"",
"My first fractal",
"Choose fractal by double-clicking on it",
"Rescan",
"Select directory and rescan collection",
"New",
"Create a new fractal for editing",
"Rename",
"Rename fractal in list",
"Delete currently selected fractal",
"Choose gradient by double-clicking on it",
"Add FractalExplorer path",
"Rescan for fractals",
"Add dir",
"Parameters",
"Parameters",
"Change the first (minimal) x-coordinate delimitation",
"Change the second (maximal) x-coordinate delimitation",
"Change the first (minimal) y-coordinate delimitation",
"Change the second (maximal) y-coordinate delimitation",
"Change the iteration value. The higher it is, the more details will be calculated, which will take more time.",
"Change the CX value (changes aspect of fractal, active with every fractal but Mandelbrot and Sierpinski)",
"Change the CY value (changes aspect of fractal, active with every fractal but Mandelbrot and Sierpinski)",
"Reset parameters to default values",
"Load a fractal from file",
"Save active fractal to file",
"Fractal type",
"Options",
"Reset to default values",
"Preview options",
"Realtime preview",
"If you enable this option the preview will be redrawn automatically.",
"Redraw",
"Redraw preview",
"Zoom options",
"Undo zoom",
"Undo last zoom",
"Redo zoom",
"Redo last zoom",
"Step in",
"Step out",
"Colors",
"Color density",
"Red",
"Green",
"Blue",
"Change the intensity of the red channel",
"Change the intensity of the green channel",
"Change the intensity of the blue channel",
"Color function",
"Sine",
"Cosine",
"None",
"Use sine-function for this color component",
"Use cosine-function for this color component",
"Use linear mapping instead of any trigonometrical function for this color channel",
"Inversion",
"If you enable this option higher color values will be swapped with lower ones and vice versa.",
"Color mode",
"As specified above",
"Create a color-map with the options you specified above (color density/function). The result is visible in the preview image",
"Apply active gradient to final image",
"Create a color-map using a gradient from the gradient editor.",
"Gradients",
"Fractals",
"Accept settings and start the calculation of the fractal",
"Discard any changes and close dialog box",
"About",
"Show information about the plug-in and the author",
"This will close the information box",
"Error opening '%.100s' could not save",
"Failed to write file\n",
"Save: No filename given",
"Save: Can't save to a directory",
"Load fractal parameters",
"Click here to load your file.",
"Click here to cancel load procedure.",
"Save fractal parameters",
"Click here to save your file.",
"Click here to cancel save procedure.",
"Save settings",
"This saves the currently selected language to the configuration file",
},
/* Messages en français */
{
"Accepter",
"Annuler",
"Effacer fractal",
"Etes-vous sur de vouloir effacer le fichier",
"\"%s\" de la liste est du disque?",
"Effacer",
"Erreur lors de l'ouverture du fichier: %s",
"Le fichier '%s' ne correspond pas au format FractalExplorer!",
"Le fichier '%s' est corrompu - Ligne %d incorrecte.",
"Erreur interne - l'élément de la liste contient un objet NULL!",
"Evénement inconnu.\n",
"Changer le nom du fractal",
"Nom du fractal:",
"Nouveau fractal",
"%s [copie]",
"Enregistrer",
"Enregistrer sous...",
"Copier",
"Charger",
"Aucun répertoire FractalExplorer inscrit dans gimprc:\n"
"Vous devez aujouter une ligne telle que\n"
"(fractalexplorer-path \"${gimp_dir}/fractalexplorer:${gimp_data_dir}/fractalexplorer\n"
"dans votre fichier ~/.gimprc/gimprc\n",
"fractalexplorer-path n'est pas configuré correctement - \nDossier `%.100s' introuvable.\n",
"L'entrée %.100s n'est pas un répertoire.\n",
"Erreur lors de la lecture du répertoire \"%s\".",
"Mon premier fractal",
"Choisissez un fractal en double-cliquant sur celui-ci",
"Rafraîchir",
"Choix du répertoire et rechargement de la collection.",
"Nouveau",
"Créer nouveau fractal.",
"Renommer",
"Renommer le fractal contenu dans la liste.",
"Efface le fractal actuellement selectioné dans la liste.",
"Choisissez un dégradé de couleurs avec un double-click",
"Ajouter un dossier FractalExplorer.",
"Rechargement de nouveaux fractals.",
"Ajout de répertoires",
"Paramètres",
"Paramètres",
"Change la première delimitation de l'axe x (delimitation minimale de x).",
"Change la deuxième delimitation de l'axe x (delimitation maximale de x).",
"Change la première delimitation de l'axe y (delimitation minimale de y).",
"Change la deuxième delimitation de l'axe y (delimitation maximale de y).",
"Change la valeur d'iteration. Une valeur plus haute rend l'image plus detailée, mais utilise plus de temps de calcul.",
"Change la valeur CX (cela change l'aspect du fractal; l'option n'est pas active pour les types de fractal Mandelbrot and Sierpinski).",
"Change la valeur CY (cela change l'aspect du fractal; l'option n'est pas active pour les types de fractal Mandelbrot and Sierpinski).",
"Remets tous les paramètres à leur valeur par défaut.",
"Charge un fractal à partir d'un fichier.",
"Enregistre un fractal dans un fichier.",
"Type de fractal",
"Configuration",
"Valeurs par défaut",
"Prévisualisation",
"En temps réel",
"Si vous activez cette option, la fenêtre de prévisualisation sera automatiquement rafraîchie après chaque changement d'option.",
"Actualiser",
"Actualise et redessine la prévisualisation.",
"Options de zoom",
"Annuler zoom",
"Ceci annule le dernier zoom.",
"Refaire zoom",
"Ceci annule la dernière annulation du zoom.",
"Se rapprocher",
"S'éloigner",
"Couleurs",
"Densité des valeurs RVB d'une couleur",
"Rouge",
"Vert",
"Bleu",
"Change l'intensité du canal rouge.",
"Change l'intensité du canal vert.",
"Change l'intensité du canal bleu.",
"Fonctions appliqués aux canaux RVB",
"Sinus",
"Cosinus",
"Aucun",
"Utilise la fonction trigonométrique 'sinus' pour le calcul de cette composante de couleur.",
"Utilise la fonction trigonométrique 'cosinus' pour le calcul de cette composante de couleur.",
"Utilise une fonction linéaire au lieu d'une fonction trigonométrique pour ce canal.",
"Inversion",
"En activant cette option, vous assignez de grandes valeurs de couleurs aux couleurs ayant reçu des valeurs petites et vice versa.",
"Mode de couleur",
"Comme specifié ci-dessus",
"Crée une palette de couleur en utilisant les options que vous avez choisies ci-dessus (densité/fonction). Le résultat est visible dans l'image de prévisualisation.",
"Applique le dégradé de couleur actif",
"Crée une palette en utilisant le dégradé de couleur du 'Gradient Editor'.",
"Dégradés",
"Fractals",
"Accepte les options et démarre la calculation du fractal.",
"Rejette tout changement et ferme la boîte de dialogue.",
"Info...",
"Affiche des informations concernant l'auteur et le plug-in.",
"Ceci fermera la boîte de dialogue d'info.",
"Erreur lors de l'ouverture de '%.100s'. Sauvegarde echouée.",
"Ecriture du fichier impossible.\n",
"Enregistrement: Aucun fichier specifié.",
"Enregistrement: Impossible de sauvegarder dans un répertoire.",
"Chargement des paramètres d'un fractal",
"Cliquez ici afin de charger un fichier FractalExplorer.",
"Cliquez ici pour interrompre la procédure de chargement.",
"Enregistrement des paramètres d'un fractal",
"Cliquez ici pour charger votre fichier.",
"Cliquez ici pour imterropre la procédure d'enregistrement.",
"Enregistrer langue",
"Ceci enregistre la langue actuelle dans le fichier de configuration.",
},
/* Deutsche Mitteilungen */
{
"Weiter",
"Abbrechen",
"Fraktal löschen",
"Sind sie sicher, dass sie die Datei",
"\"%s\" aus der Liste und von der Festplatte entfernen möchten?",
"Löschen",
"Fehler beim Öffnen der Datei: %s",
"Die Datei '%s' scheint nicht im FractalExplorer-Format zu sein!",
"Die Datei '%s' ist beschädigt - Zeile %d inkorrekt.",
"Interner Fehler - das Listenelement besitzt ein NULL Objekt!",
"Unbekanntes Ereignis.\n",
"Ändere Fraktalnamen",
"Fraktal-Name:",
"Neues Fraktal",
"%s [Kopie]",
"Speichern",
"Speichern als...",
"Kopie",
"Laden",
"Kein fractalexplorer-path in gimprc:\n"
"Sie müssen einen Eintrag wie der folgende in ihre ~/.gimprc/gimprc Datei einfügen:\n"
"(fractalexplorer-path \"${gimp_dir}/fractalexplorer:${gimp_data_dir}/fractalexplorer\n",
"fractalexplorer-path falsch konfiguriert - \nPfad `%.100s' nicht gefunden\n",
"Eintrag %.100s ist kein Verzeichnis.\n",
"Fehler beim Lesen des FractalExplorer-Verzeichnisses \"%s\".",
"Mein erstes Fraktal",
"Wählen Sie ein Fraktal durch Doppelklick aus",
"Aktualisieren",
"Wahl eines Verzeichnisses und Wiedereinlese der Dateisammlung.",
"Neu",
"Erstellt ein neues Fraktal.",
"Umbenennen",
"Benennt das Fraktal in der Liste um.",
"Löscht das gerade gewählte Fraktal der Liste.",
"Wählen Sie einen Farbverlauf durch Doppelklick aus",
"Füge FractalExplorer-Pfad hinzu",
"Nach neuen Fraktalen suchen",
"Neues Verzeichis hinzufügen.",
"Fraktal-Optionen",
"Parameter",
"Ändert die erste (minimale) Begrenzung der x-Koordinate.",
"Ändert die zweite (maximale) Begrenzung der x-Koordinate.",
"Ändert die erste (minimale) Begrenzung der y-Koordinate.",
"Ändert die zweite (maximale) Begrenzung der y-Koordinate.",
"Ändert die Iterations-Variable. Je höher sie ist, um so genauer und detailierter wird das Bild sein. Eine grössere Berechenzeit ist allerdings in Kauf zu nehmen.",
"Ändert den CX-Wert (Dies wirkt sich auf alle Fraktale aus, ausser Mandelbrot und Sierpinski).",
"Ändert den CY-Wert (Dies wirkt sich auf alle Fraktale aus, ausser Mandelbrot und Sierpinski).",
"Setze Parameter auf die Standardwerte zurueck.",
"Lade ein Fraktal aus einer Datei",
"Speichere das aktive Fraktal in eine Datei",
"Fraktal-Typ",
"Diverse Optionen",
"Zurücksetzen",
"Vorschau-Optionen",
"Echtzeit-Vorschau",
"Falls Sie diese Option aktivieren, wird das Vorschaufenster stets automatisch aktualisiert.",
"Neu zeichnen",
"Zeichnet die Vorschau neu",
"Zoom-Optionen",
"Rueckgängig",
"Macht den letzten Zoom-Vorgang wieder rückgängig.",
"Wiederherstellen",
"Stellt den letzten Zoom-Vorgang wieder her.",
"Hinein",
"Hinaus",
"Farb-Optionen",
"Farbintensität",
"Rot",
"Gruen",
"Blau",
"Ändert die Intensität des roten Kanals.",
"Ändert die Intensität des gruenen Kanals.",
"Ändert die Intensität des blauen Kanals.",
"Farb-Funktion",
"Sinus",
"Cosinus",
"Keine",
"Verwende Sinus-Funktion für diese Farbkomponente.",
"Verwende Cosinus-Funktion für diese Farbkomponente.",
"Verwende lineare Farbabstufung statt einer trigonometrischen Funktion.",
"Inversion",
"Falls Sie diese Option aktivieren, werden tiefere Farbwerte durch höhere ausgetauscht und umgekehrt.",
"Farb-Modus",
"Wie oben stehend angegeben",
"Berechne Farbpalette mit den oben angegebenen Optionen (Farb-Intensität/-Funktion). Das Resultat ist in der Vorschau sichtbar.",
"Wende aktiven Farbverlauf an",
"Berechne Farbpalette mit den Angaben eines Verlaufes aus dem Gradient-Editor.",
"Farbverläufe",
"Fraktale",
"Akzeptiere Einstellungen und starte die Berechnung des Fraktals.",
"Verwerfe jegliche Änderungen und schliesse das Fenster.",
"Über...",
"Zeige Informationen über den Autor und das Plug-In.",
"Info-Box schliessen",
"Fehler beim Öffnen von '%.100s'. Konnte nicht speichern",
"Speichern der Datei fehlgeschlagen\n",
"Speichern: Keine Datei angegeben",
"Speichern: Kann nicht in ein Verzeichnis speichern",
"Lade Parameter eines Fraktals",
"Klicken Sie hier, um das Fraktal zu laden.",
"Klicken Sie hier, um den Ladevorgang abzubrechen.",
"Speichere Fraktalparameter",
"Klicken Sie hier, um das Fraktal in eine Datei zu speichern.",
"Klicken Sie hier, um den Speicherungsvorgang abzubrechen.",
"Sprache abspeichern",
"Klicken Sie hier, um die gewaehlte Sprache als Standard zu definieren und in die Konfigurationsdatei abzuspeichern.",
},
/* Schwedische Mitteilungen
========================
Hier koenntest Du die schwedischen Texte einfuegen, d.h. die deutschen ueberschreiben.
*/
{
"Weiter",
"Abbrechen",
"Fraktal löschen",
"Sind sie sicher, dass sie die Datei",
"\"%s\" aus der Liste und von der Festplatte entfernen möchten?",
"Löschen",
"Fehler beim Öffnen der Datei: %s",
"Die Datei '%s' scheint nicht im FractalExplorer-Format zu sein!",
"Die Datei '%s' ist beschädigt - Zeile %d inkorrekt.",
"Interner Fehler - das Listenelement besitzt ein NULL Objekt!",
"Unbekanntes Ereignis.\n",
"Ändere Fraktalnamen",
"Fraktal-Name:",
"Neues Fraktal",
"%s [Kopie]",
"Speichern",
"Speichern als...",
"Kopie",
"Laden",
"Kein fractalexplorer-path in gimprc:\n"
"Sie müssen einen Eintrag wie der folgende in ihre ~/.gimprc/gimprc Datei einfügen:\n"
"(fractalexplorer-path \"${gimp_dir}/fractalexplorer:${gimp_data_dir}/fractalexplorer\n",
"fractalexplorer-path falsch konfiguriert - \nPfad `%.100s' nicht gefunden\n",
"Eintrag %.100s ist kein Verzeichnis.\n",
"Fehler beim Lesen des FractalExplorer-Verzeichnisses \"%s\".",
"Mein erstes Fraktal",
"Wählen Sie ein Fraktal durch Doppelklick aus",
"Aktualisieren",
"Wahl eines Verzeichnisses und Wiedereinlese der Dateisammlung.",
"Neu",
"Erstellt ein neues Fraktal.",
"Umbenennen",
"Benennt das Fraktal in der Liste um.",
"Löscht das gerade gewählte Fraktal der Liste.",
"Wählen Sie einen Farbverlauf durch Doppelklick aus",
"Füge FractalExplorer-Pfad hinzu",
"Nach neuen Fraktalen suchen",
"Neues Verzeichis hinzufügen.",
"Fraktal-Optionen",
"Parameter",
"Ändert die erste (minimale) Begrenzung der x-Koordinate.",
"Ändert die zweite (maximale) Begrenzung der x-Koordinate.",
"Ändert die erste (minimale) Begrenzung der y-Koordinate.",
"Ändert die zweite (maximale) Begrenzung der y-Koordinate.",
"Ändert die Iterations-Variable. Je höher sie ist, um so genauer und detailierter wird das Bild sein. Eine grössere Berechenzeit ist allerdings in Kauf zu nehmen.",
"Ändert den CX-Wert (Dies wirkt sich auf alle Fraktale aus, ausser Mandelbrot und Sierpinski).",
"Ändert den CY-Wert (Dies wirkt sich auf alle Fraktale aus, ausser Mandelbrot und Sierpinski).",
"Setze Parameter auf die Standardwerte zurueck.",
"Lade ein Fraktal aus einer Datei",
"Speichere das aktive Fraktal in eine Datei",
"Fraktal-Typ",
"Diverse Optionen",
"Zurücksetzen",
"Vorschau-Optionen",
"Echtzeit-Vorschau",
"Falls Sie diese Option aktivieren, wird das Vorschaufenster stets automatisch aktualisiert.",
"Neu zeichnen",
"Zeichnet die Vorschau neu",
"Zoom-Optionen",
"Rueckgängig",
"Macht den letzten Zoom-Vorgang wieder rückgängig.",
"Wiederherstellen",
"Stellt den letzten Zoom-Vorgang wieder her.",
"Hinein",
"Hinaus",
"Farb-Optionen",
"Farbintensität",
"Rot",
"Gruen",
"Blau",
"Ändert die Intensität des roten Kanals.",
"Ändert die Intensität des gruenen Kanals.",
"Ändert die Intensität des blauen Kanals.",
"Farb-Funktion",
"Sinus",
"Cosinus",
"Keine",
"Verwende Sinus-Funktion für diese Farbkomponente.",
"Verwende Cosinus-Funktion für diese Farbkomponente.",
"Verwende lineare Farbabstufung statt einer trigonometrischen Funktion.",
"Inversion",
"Falls Sie diese Option aktivieren, werden tiefere Farbwerte durch höhere ausgetauscht und umgekehrt.",
"Farb-Modus",
"Wie oben stehend angegeben",
"Berechne Farbpalette mit den oben angegebenen Optionen (Farb-Intensität/-Funktion). Das Resultat ist in der Vorschau sichtbar.",
"Wende aktiven Farbverlauf an",
"Berechne Farbpalette mit den Angaben eines Verlaufes aus dem Gradient-Editor.",
"Farbverläufe",
"Fraktale",
"Akzeptiere Einstellungen und starte die Berechnung des Fraktals.",
"Verwerfe jegliche Änderungen und schliesse das Fenster.",
"Über...",
"Zeige Informationen über den Autor und das Plug-In.",
"Info-Box schliessen",
"Fehler beim Öffnen von '%.100s'. Konnte nicht speichern",
"Speichern der Datei fehlgeschlagen\n",
"Speichern: Keine Datei angegeben",
"Speichern: Kann nicht in ein Verzeichnis speichern",
"Lade Parameter eines Fraktals",
"Klicken Sie hier, um das Fraktal zu laden.",
"Klicken Sie hier, um den Ladevorgang abzubrechen.",
"Speichere Fraktalparameter",
"Klicken Sie hier, um das Fraktal in eine Datei zu speichern.",
"Klicken Sie hier, um den Speicherungsvorgang abzubrechen.",
"Sprache abspeichern",
"Klicken Sie hier, um die gewaehlte Sprache als Standard zu definieren und in die Konfigurationsdatei abzuspeichern.",
},
};
enum {
MSG_OK,
MSG_CANCEL,
MSG_DELFRAC,
MSG_DELSURE,
MSG_DELSURE2,
MSG_DEL,
MSG_OPENERROR,
MSG_WRONGFILETYPE,
MSG_CORRUPTFILE,
MSG_NULLLIST,
MSG_UNKNOWN_EVENT,
MSG_EDIT_FRACNAME,
MSG_FRACNAME,
MSG_NEWFRAC,
MSG_COPYNAME,
MSG_SAVE,
MSG_SAVEAS,
MSG_COPY,
MSG_LOAD,
MSG_MISSING_GIMPRC,
MSG_WRONGPATH,
MSG_NOTDIR,
MSG_DIRREADERROR,
MSG_FIRSTFRACTAL,
MSG_CHOOSE_FRACTAL,
MSG_RESCAN,
MSG_RESCAN_COMMENT,
MSG_NEW,
MSG_NEW_COMMENT,
MSG_RENAME,
MSG_RENAME_COMMENT,
MSG_DELETE_COMMENT,
MSG_CHOOSE_GRADIENT,
MSG_ADDPATH,
MSG_RESCANTITLE1,
MSG_ADDDIR,
MSG_FRACTALOPTIONS,
MSG_PARAMETERS,
MSG_XMIN,
MSG_XMAX,
MSG_YMIN,
MSG_YMAX,
MSG_ITER,
MSG_CX,
MSG_CY,
MSG_RESET_PARAM_COMMENT,
MSG_LOADCOMMENT,
MSG_SAVECOMMENT,
MSG_FRACTALTYPE,
MSG_GENERALOPTIONS,
MSG_RESET,
MSG_PREVIEW,
MSG_REALTIMEPREVIEW,
MSG_REDRAWCOMMENT,
MSG_REDRAW,
MSG_REDRAWPREVIEW,
MSG_ZOOMOPTS,
MSG_UNDOZOOM,
MSG_UNDOCOMMENT,
MSG_REDOZOOM,
MSG_REDOCOMMENT,
MSG_STEPIN,
MSG_STEPOUT,
MSG_COLOROPTS,
MSG_COLORDENSITY,
MSG_RED,
MSG_GREEN,
MSG_BLUE,
MSG_REDINTENSITY,
MSG_GREENINTENSITY,
MSG_BLUEINTENSITY,
MSG_COLORFUNCTION,
MSG_SINE,
MSG_COSINE,
MSG_NONE,
MSG_SINECOMMENT,
MSG_COSINECOMMENT,
MSG_NONECOMMENT,
MSG_INVERSION,
MSG_INVERSIONCOMMENT,
MSG_COLORMODE,
MSG_ASSPECIFIED,
MSG_ASSPECIFIEDCOMMENT,
MSG_APPLYGRADIENT,
MSG_APPLYGRADIENTCOMMENT,
MSG_GRADIENTPRESETS,
MSG_FRACTALPRESETS,
MSG_STARTCALC,
MSG_MAINDLGCANCEL,
MSG_ABOUT,
MSG_ABOUTCOMMENT,
MSG_ABOUTBOXOKCOMMENT,
MSG_SAVEERROR,
MSG_WRITEFAILURE,
MSG_NOFILENAME,
MSG_NOSAVETODIR,
MSG_LOADWINTITLE,
MSG_LOADBUTTONCOMMENT,
MSG_CANCELLOAD,
MSG_SAVEWINTITLE,
MSG_SAVEBUTTONCOMMENT,
MSG_CANCELSAVE,
MSG_SAVELANGUAGE,
MSG_SAVELANGUAGE_COMMENT
};
enum {
LNG_ENGLISH,
LNG_FRENCH,
LNG_GERMAN,
LNG_ITALIAN,
LNG_SPANISH
};

View File

@ -0,0 +1,46 @@
## Process this file with automake to produce Makefile.in
SUBDIRS = fractalexplorer-examples
pluginlibdir = $(gimpplugindir)/plug-ins
pluginlib_PROGRAMS = FractalExplorer
FractalExplorer_SOURCES = \
Callbacks.h \
Dialogs.h \
Events.h \
FractalExplorer.c \
FractalExplorer.h \
Languages.h \
logo.h \
pix_data.h
INCLUDES = \
-I$(top_srcdir) \
$(GTK_CFLAGS) \
-I$(includedir)
LDADD = \
$(top_builddir)/libgimp/libgimpui.la \
$(top_builddir)/libgimp/libgimp.la \
$(GTK_LIBS)
DEPS = \
$(top_builddir)/libgimp/libgimpui.la \
$(top_builddir)/libgimp/libgimp.la
FractalExplorer_DEPENDENCIES = $(DEPS)
.PHONY: files
files:
@files=`ls $(DISTFILES) 2> /dev/null`; for p in $$files; do \
echo $$p; \
done
@for subdir in $(SUBDIRS); do \
files=`cd $$subdir; $(MAKE) files | grep -v "make\[[1-9]\]"`; \
for file in $$files; do \
echo $$subdir/$$file; \
done; \
done

View File

@ -0,0 +1,91 @@
-------------------------------------------
GIMP-Plug-In
-------------------------------------------
Written by Daniel Cotting
Quellenstrasse 10
CH-8005 Zuerich (Switzerland)
cotting@multimania.com
www.multimania.com/cotting
-------------------------------------------
Some code is taken out of other plug-ins
written by other authors.
-------------------------------------------
Ported to GIMP 1.1 by
Michael Natterer <mitschel@cs.tu-berlin.de>
-------------------------------------------
INSTALLATION
-------------------------------------------
To install it, you have to edit the
Makefile (change install-path).
Afterwards run make. This will compile
and install the plug-in in the right
directory. Once the new code is installed,
you can run the GIMP and enjoy the new
functions and effects it provides.
Note that this plug-in has some sample
files which must be installed in one of
the following directories:
~/.gimp/fractalexplorer
/usr/share/gimp/fractalexplorer
You can find the sample files in the
subdirectory fractalexplorer-examples
of this distribution.
You will have to add the following lines
to your gimprc file (usually
/usr/share/gimp/gimprc):
# fractalexplorer directory
(fractalexplorer-path "${gimp_data_dir}/fractalexplorer:${gimp_dir}/fractalexplorer")
-------------------------------------------
-------------------------------------------
REDUCE CODE SIZE
-------------------------------------------
If you find that the plug-in is too big,
you can compress the executables with the
gzexe program (if it is avaiable on your
system). To do so, change to the plug-in
directory of the GIMP...
cd /usr/lib/gimp/VERSION/plug-ins
...and execute the command...
gzexe PLUGIN_NAME
...and remember to remove the uncompres-
sed binary, which has been renamed to
PLUGIN_NAME~, by running the command:
rm PLUGIN_NAME~
This will result in a code size of about
50 kB, which isn't too much IMHO.
------------------------------------------
------------------------------------------
FEEDBACK
------------------------------------------
I'm interested in any feedback, comments,
bug-reports, suggestions etc. If you
have anything you would like to tell
me, you can write to cotting@multimania.com.
Also have a look at the GIMP-section of
my homepage at www.multimania.com/cotting.
------------------------------------------
Thank you and happy GIMPing!
Daniel Cotting
------------------------------------------

View File

@ -0,0 +1,2 @@
Makefile
Makefile.in

View File

@ -0,0 +1,26 @@
Fractal Explorer Plug-In Version 2 - (c) 1997 <cotting@mygale.org>
#**********************************************************************
# This is a data file for the Fractal Explorer plug-in for the GIMP *
# Get the plug-in at http://www.mygale.org/~cotting *
#**********************************************************************
fractaltype: 5
xmin: -0.664136886596680
xmax: -0.663678705692291
ymin: -0.378479450941086
ymax: -0.378030359745026
iter: 214.723999023437500
cx: 0.184000000357628
cy: -0.200000002980232
redstretch: 89.130996704101562
greenstretch: 70.365997314453125
bluestretch: 58.000000000000000
redmode: 0
greenmode: 0
bluemode: 2
redinvert: 0
greeninvert: 0
blueinvert: 0
colormode: 0
#**********************************************************************
<EOF>
#**********************************************************************

View File

@ -0,0 +1,26 @@
Fractal Explorer Plug-In Version 2 - (c) 1997 <cotting@mygale.org>
#**********************************************************************
# This is a data file for the Fractal Explorer plug-in for the GIMP *
# Get the plug-in at http://www.mygale.org/~cotting *
#**********************************************************************
fractaltype: 4
xmin: -0.443357914686203
xmax: -0.443357914686203
ymin: 0.085399866104126
ymax: 0.085484646260738
iter: 50.000000000000000
cx: -0.847000002861023
cy: -0.184000000357628
redstretch: 128.000000000000000
greenstretch: 128.000000000000000
bluestretch: 128.000000000000000
redmode: 0
greenmode: 0
bluemode: 0
redinvert: 0
greeninvert: 0
blueinvert: 0
colormode: 0
#**********************************************************************
<EOF>
#**********************************************************************

View File

@ -0,0 +1,26 @@
Fractal Explorer Plug-In Version 2 - (c) 1997 <cotting@mygale.org>
#**********************************************************************
# This is a data file for the Fractal Explorer plug-in for the GIMP *
# Get the plug-in at http://www.mygale.org/~cotting *
#**********************************************************************
fractaltype: 4
xmin: -0.125070333480835
xmax: -0.120749041438103
ymin: -0.537724196910858
ymax: -0.532733201980591
iter: 49.080001831054688
cx: 0.453999996185303
cy: 0.000000000000000
redstretch: 123.000000000000000
greenstretch: 128.000000000000000
bluestretch: 78.000000000000000
redmode: 1
greenmode: 2
bluemode: 0
redinvert: 0
greeninvert: 1
blueinvert: 0
colormode: 0
#**********************************************************************
<EOF>
#**********************************************************************

View File

@ -0,0 +1,26 @@
Fractal Explorer Plug-In Version 2 - (c) 1997 <cotting@mygale.org>
#**********************************************************************
# This is a data file for the Fractal Explorer plug-in for the GIMP *
# Get the plug-in at http://www.mygale.org/~cotting *
#**********************************************************************
fractaltype: 4
xmin: 0.257157027721405
xmax: 0.257280886173248
ymin: 0.153874531388283
ymax: 0.154003381729126
iter: 49.080001831054688
cx: -0.750000000000000
cy: -0.356000006198883
redstretch: 123.978996276855469
greenstretch: 112.000000000000000
bluestretch: 60.000000000000000
redmode: 1
greenmode: 1
bluemode: 0
redinvert: 0
greeninvert: 0
blueinvert: 0
colormode: 0
#**********************************************************************
<EOF>
#**********************************************************************

View File

@ -0,0 +1,26 @@
Fractal Explorer Plug-In Version 2 - (c) 1997 <cotting@mygale.org>
#**********************************************************************
# This is a data file for the Fractal Explorer plug-in for the GIMP *
# Get the plug-in at http://www.mygale.org/~cotting *
#**********************************************************************
fractaltype: 4
xmin: -0.104991987347603
xmax: -0.104991905391216
ymin: 0.250050097703934
ymax: 0.250050216913223
iter: 202.453994750976562
cx: 0.356000006198883
cy: -0.200000002980232
redstretch: 128.000000000000000
greenstretch: 128.000000000000000
bluestretch: 128.000000000000000
redmode: 2
greenmode: 0
bluemode: 0
redinvert: 0
greeninvert: 0
blueinvert: 0
colormode: 0
#**********************************************************************
<EOF>
#**********************************************************************

View File

@ -0,0 +1,26 @@
Fractal Explorer Plug-In Version 2 - (c) 1997 <cotting@mygale.org>
#**********************************************************************
# This is a data file for the Fractal Explorer plug-in for the GIMP *
# Get the plug-in at http://www.mygale.org/~cotting *
#**********************************************************************
fractaltype: 0
xmin: -1.255496978759766
xmax: -1.249950170516968
ymin: -0.347052335739136
ymax: -0.338468551635742
iter: 50.000000000000000
cx: -0.750000000000000
cy: -0.200000002980232
redstretch: 128.000000000000000
greenstretch: 113.000000000000000
bluestretch: 128.000000000000000
redmode: 0
greenmode: 1
bluemode: 2
redinvert: 1
greeninvert: 1
blueinvert: 0
colormode: 0
#**********************************************************************
<EOF>
#**********************************************************************

View File

@ -0,0 +1,26 @@
Fractal Explorer Plug-In Version 2 - (c) 1997 <cotting@mygale.org>
#**********************************************************************
# This is a data file for the Fractal Explorer plug-in for the GIMP *
# Get the plug-in at http://www.mygale.org/~cotting *
#**********************************************************************
fractaltype: 6
xmin: 0.353848785161972
xmax: 0.356627285480499
ymin: 0.458385974168777
ymax: 0.460633248090744
iter: 147.238998413085938
cx: 0.000000000000000
cy: 0.000000000000000
redstretch: 128.000000000000000
greenstretch: 128.000000000000000
bluestretch: 128.000000000000000
redmode: 1
greenmode: 1
bluemode: 0
redinvert: 0
greeninvert: 0
blueinvert: 0
colormode: 1
#**********************************************************************
<EOF>
#**********************************************************************

View File

@ -0,0 +1,26 @@
Fractal Explorer Plug-In Version 2 - (c) 1997 <cotting@mygale.org>
#**********************************************************************
# This is a data file for the Fractal Explorer plug-in for the GIMP *
# Get the plug-in at http://www.mygale.org/~cotting *
#**********************************************************************
fractaltype: 4
xmin: -0.125281319022179
xmax: -0.116631627082825
ymin: 0.375891804695129
ymax: 0.384632647037506
iter: 67.485000610351562
cx: 0.405000001192093
cy: -0.200000002980232
redstretch: 124.000000000000000
greenstretch: 112.000000000000000
bluestretch: 60.000000000000000
redmode: 0
greenmode: 2
bluemode: 0
redinvert: 0
greeninvert: 0
blueinvert: 1
colormode: 0
#**********************************************************************
<EOF>
#**********************************************************************

View File

@ -0,0 +1,26 @@
Fractal Explorer Plug-In Version 2 - (c) 1997 <cotting@mygale.org>
#**********************************************************************
# This is a data file for the Fractal Explorer plug-in for the GIMP *
# Get the plug-in at http://www.mygale.org/~cotting *
#**********************************************************************
fractaltype: 2
xmin: -0.508517742156982
xmax: -0.475813776254654
ymin: -0.025438375771046
ymax: 0.025984741747379
iter: 177.914001464843750
cx: -1.018000006675720
cy: -0.200000002980232
redstretch: 128.000000000000000
greenstretch: 128.000000000000000
bluestretch: 128.000000000000000
redmode: 0
greenmode: 0
bluemode: 1
redinvert: 1
greeninvert: 1
blueinvert: 0
colormode: 0
#**********************************************************************
<EOF>
#**********************************************************************

View File

@ -0,0 +1,26 @@
Fractal Explorer Plug-In Version 2 - (c) 1997 <cotting@mygale.org>
#**********************************************************************
# This is a data file for the Fractal Explorer plug-in for the GIMP *
# Get the plug-in at http://www.mygale.org/~cotting *
#**********************************************************************
fractaltype: 6
xmin: -0.968750000000000
xmax: 0.437500000000000
ymin: -0.703125000000000
ymax: 0.843750000000000
iter: 50.000000000000000
cx: -0.012000000104308
cy: 0.000000000000000
redstretch: 87.000000000000000
greenstretch: 128.000000000000000
bluestretch: 0.000000000000000
redmode: 0
greenmode: 2
bluemode: 1
redinvert: 0
greeninvert: 0
blueinvert: 0
colormode: 0
#**********************************************************************
<EOF>
#**********************************************************************

View File

@ -0,0 +1,26 @@
Fractal Explorer Plug-In Version 2 - (c) 1997 <cotting@mygale.org>
#**********************************************************************
# This is a data file for the Fractal Explorer plug-in for the GIMP *
# Get the plug-in at http://www.mygale.org/~cotting *
#**********************************************************************
fractaltype: 1
xmin: -0.476808547973633
xmax: -0.223514556884766
ymin: -0.017941474914551
ymax: 0.114898681640625
iter: 50.000000000000000
cx: -1.337000012397766
cy: 0.086000002920628
redstretch: 127.330001831054688
greenstretch: 90.000000000000000
bluestretch: 128.000000000000000
redmode: 2
greenmode: 2
bluemode: 2
redinvert: 0
greeninvert: 0
blueinvert: 0
colormode: 0
#**********************************************************************
<EOF>
#**********************************************************************

View File

@ -0,0 +1,26 @@
Fractal Explorer Plug-In Version 2 - (c) 1997 <cotting@mygale.org>
#**********************************************************************
# This is a data file for the Fractal Explorer plug-in for the GIMP *
# Get the plug-in at http://www.mygale.org/~cotting *
#**********************************************************************
fractaltype: 4
xmin: -0.345402956008911
xmax: -0.252956151962280
ymin: -0.274888515472412
ymax: -0.204696178436279
iter: 30.674999237060547
cx: 0.356000006198883
cy: -0.200000002980232
redstretch: 128.000000000000000
greenstretch: 67.000000000000000
bluestretch: 98.000000000000000
redmode: 1
greenmode: 1
bluemode: 0
redinvert: 0
greeninvert: 0
blueinvert: 0
colormode: 0
#**********************************************************************
<EOF>
#**********************************************************************

View File

@ -0,0 +1,26 @@
Fractal Explorer Plug-In Version 2 - (c) 1997 <cotting@mygale.org>
#**********************************************************************
# This is a data file for the Fractal Explorer plug-in for the GIMP *
# Get the plug-in at http://www.mygale.org/~cotting *
#**********************************************************************
fractaltype: 1
xmin: 0.068130433559418
xmax: 0.116958513855934
ymin: 0.512302279472351
ymax: 0.534968316555023
iter: 202.453994750976562
cx: 0.356000006198883
cy: 0.428999990224838
redstretch: 128.000000000000000
greenstretch: 113.000000000000000
bluestretch: 128.000000000000000
redmode: 0
greenmode: 0
bluemode: 0
redinvert: 0
greeninvert: 0
blueinvert: 0
colormode: 0
#**********************************************************************
<EOF>
#**********************************************************************

View File

@ -0,0 +1,26 @@
Fractal Explorer Plug-In Version 2 - (c) 1997 <cotting@mygale.org>
#**********************************************************************
# This is a data file for the Fractal Explorer plug-in for the GIMP *
# Get the plug-in at http://www.mygale.org/~cotting *
#**********************************************************************
fractaltype: 6
xmin: -0.350769042968750
xmax: -0.080402374267578
ymin: -0.264384269714355
ymax: -0.041095733642578
iter: 50.000000000000000
cx: -0.184000000357628
cy: 0.000000000000000
redstretch: 29.000000000000000
greenstretch: 80.000000000000000
bluestretch: 7.000000000000000
redmode: 0
greenmode: 1
bluemode: 0
redinvert: 0
greeninvert: 0
blueinvert: 0
colormode: 0
#**********************************************************************
<EOF>
#**********************************************************************

View File

@ -0,0 +1,26 @@
Fractal Explorer Plug-In Version 2 - (c) 1997 <cotting@mygale.org>
#**********************************************************************
# This is a data file for the Fractal Explorer plug-in for the GIMP *
# Get the plug-in at http://www.mygale.org/~cotting *
#**********************************************************************
fractaltype: 0
xmin: -1.285429239273071
xmax: -1.283814907073975
ymin: 0.428520709276199
ymax: 0.432528734207153
iter: 50.000000000000000
cx: -0.750000000000000
cy: -0.200000002980232
redstretch: 128.000000000000000
greenstretch: 89.130996704101562
bluestretch: 128.000000000000000
redmode: 0
greenmode: 0
bluemode: 2
redinvert: 0
greeninvert: 0
blueinvert: 0
colormode: 0
#**********************************************************************
<EOF>
#**********************************************************************

View File

@ -0,0 +1,45 @@
## Process this file with automake to produce Makefile.in
fractalexplorerdatadir = $(gimpdatadir)/fractalexplorer
fractalexplorerdata_DATA = \
Asteroid_Field \
Bar_Code_Label \
Beauty_of_Nature \
Blue_Curtain \
Car_Track \
Energetic_Diamond \
Explosive \
Flower \
Fragments \
Hemp \
High_Voltage \
Hoops \
Ice_Crystal \
Leaves \
Lightning \
Mandelbrot \
Marble \
Marble2 \
Medusa \
Nautilus \
Nebula \
Plant \
Rose \
Saturn \
Snow_Crystal \
Soma \
Spark \
Suns \
Tentacles \
The_Green_Place \
Wave \
Wood \
Zooming_Circle
EXTRA_DIST = $(fractalexplorerdata_DATA)
files:
@files=`ls $(DISTFILES) 2> /dev/null`; for p in $$files; do \
echo $$p; \
done

View File

@ -0,0 +1,26 @@
Fractal Explorer Plug-In Version 2 - (c) 1997 <cotting@mygale.org>
#**********************************************************************
# This is a data file for the Fractal Explorer plug-in for the GIMP *
# Get the plug-in at http://www.mygale.org/~cotting *
#**********************************************************************
fractaltype: 0
xmin: -0.078803382813931
xmax: -0.077717751264572
ymin: -0.880311131477356
ymax: -0.879459798336029
iter: 503.066986083984375
cx: -0.750000000000000
cy: -0.200000002980232
redstretch: 128.000000000000000
greenstretch: 120.627998352050781
bluestretch: 128.000000000000000
redmode: 1
greenmode: 2
bluemode: 0
redinvert: 1
greeninvert: 0
blueinvert: 1
colormode: 0
#**********************************************************************
<EOF>
#**********************************************************************

View File

@ -0,0 +1,26 @@
Fractal Explorer Plug-In Version 2 - (c) 1997 <cotting@mygale.org>
#**********************************************************************
# This is a data file for the Fractal Explorer plug-in for the GIMP *
# Get the plug-in at http://www.mygale.org/~cotting *
#**********************************************************************
fractaltype: 4
xmin: -0.235851287841797
xmax: -0.060367584228516
ymin: 0.091303825378418
ymax: 0.220178604125977
iter: 55.215000152587891
cx: 0.356000006198883
cy: -0.200000002980232
redstretch: 128.000000000000000
greenstretch: 128.000000000000000
bluestretch: 127.330001831054688
redmode: 1
greenmode: 2
bluemode: 2
redinvert: 0
greeninvert: 1
blueinvert: 1
colormode: 0
#**********************************************************************
<EOF>
#**********************************************************************

View File

@ -0,0 +1,26 @@
Fractal Explorer Plug-In Version 2 - (c) 1997 <cotting@mygale.org>
#**********************************************************************
# This is a data file for the Fractal Explorer plug-in for the GIMP *
# Get the plug-in at http://www.mygale.org/~cotting *
#**********************************************************************
fractaltype: 4
xmin: -0.146484375000000
xmax: 0.064453125000000
ymin: 0.154907226562500
ymax: 0.358154296875000
iter: 50.000000000000000
cx: 0.356000006198883
cy: -0.200000002980232
redstretch: 128.000000000000000
greenstretch: 128.000000000000000
bluestretch: 128.000000000000000
redmode: 1
greenmode: 1
bluemode: 0
redinvert: 0
greeninvert: 0
blueinvert: 0
colormode: 0
#**********************************************************************
<EOF>
#**********************************************************************

View File

@ -0,0 +1,26 @@
Fractal Explorer Plug-In Version 2 - (c) 1997 <cotting@mygale.org>
#**********************************************************************
# This is a data file for the Fractal Explorer plug-in for the GIMP *
# Get the plug-in at http://www.mygale.org/~cotting *
#**********************************************************************
fractaltype: 0
xmin: -1.408687233924866
xmax: -1.408686757087708
ymin: -0.135643482208252
ymax: -0.135642752051353
iter: 104.293998718261719
cx: -0.750000000000000
cy: -0.200000002980232
redstretch: 128.000000000000000
greenstretch: 113.000000000000000
bluestretch: 128.000000000000000
redmode: 1
greenmode: 0
bluemode: 1
redinvert: 1
greeninvert: 1
blueinvert: 1
colormode: 0
#**********************************************************************
<EOF>
#**********************************************************************

View File

@ -0,0 +1,26 @@
Fractal Explorer Plug-In Version 2 - (c) 1997 <cotting@mygale.org>
#**********************************************************************
# This is a data file for the Fractal Explorer plug-in for the GIMP *
# Get the plug-in at http://www.mygale.org/~cotting *
#**********************************************************************
fractaltype: 6
xmin: -0.078369140625000
xmax: 0.158203125000000
ymin: -0.485778808593750
ymax: -0.197387695312500
iter: 134.968994140625000
cx: 0.109999999403954
cy: 0.037000000476837
redstretch: 128.000000000000000
greenstretch: 128.000000000000000
bluestretch: 128.000000000000000
redmode: 1
greenmode: 2
bluemode: 0
redinvert: 0
greeninvert: 0
blueinvert: 0
colormode: 0
#**********************************************************************
<EOF>
#**********************************************************************

View File

@ -0,0 +1,26 @@
Fractal Explorer Plug-In Version 2 - (c) 1997 <cotting@mygale.org>
#**********************************************************************
# This is a data file for the Fractal Explorer plug-in for the GIMP *
# Get the plug-in at http://www.mygale.org/~cotting *
#**********************************************************************
fractaltype: 6
xmin: -0.935546875000000
xmax: 0.226562500000000
ymin: 0.034790039062500
ymax: 0.995361328125000
iter: 67.485000610351562
cx: 0.428999990224838
cy: 0.232999995350838
redstretch: 128.000000000000000
greenstretch: 120.627998352050781
bluestretch: 93.000000000000000
redmode: 2
greenmode: 2
bluemode: 1
redinvert: 0
greeninvert: 0
blueinvert: 0
colormode: 0
#**********************************************************************
<EOF>
#**********************************************************************

View File

@ -0,0 +1,26 @@
Fractal Explorer Plug-In Version 2 - (c) 1997 <cotting@mygale.org>
#**********************************************************************
# This is a data file for the Fractal Explorer plug-in for the GIMP *
# Get the plug-in at http://www.mygale.org/~cotting *
#**********************************************************************
fractaltype: 4
xmin: -0.251464843750000
xmax: -0.097656250000000
ymin: -0.626953125000000
ymax: -0.503356933593750
iter: 55.215000152587891
cx: 0.503000020980835
cy: -0.012000000104308
redstretch: 128.000000000000000
greenstretch: 128.000000000000000
bluestretch: 128.000000000000000
redmode: 2
greenmode: 1
bluemode: 0
redinvert: 1
greeninvert: 1
blueinvert: 0
colormode: 0
#**********************************************************************
<EOF>
#**********************************************************************

View File

@ -0,0 +1,26 @@
Fractal Explorer Plug-In Version 2 - (c) 1997 <cotting@mygale.org>
#**********************************************************************
# This is a data file for the Fractal Explorer plug-in for the GIMP *
# Get the plug-in at http://www.mygale.org/~cotting *
#**********************************************************************
fractaltype: 7
xmin: 0.011789147742093
xmax: 0.012022980488837
ymin: 0.040065050125122
ymax: 0.040298193693161
iter: 92.025001525878906
cx: -1.092000007629395
cy: 0.232999995350838
redstretch: 124.000000000000000
greenstretch: 112.000000000000000
bluestretch: 60.000000000000000
redmode: 1
greenmode: 0
bluemode: 0
redinvert: 1
greeninvert: 1
blueinvert: 1
colormode: 0
#**********************************************************************
<EOF>
#**********************************************************************

View File

@ -0,0 +1,26 @@
Fractal Explorer Plug-In Version 2 - (c) 1997 <cotting@mygale.org>
#**********************************************************************
# This is a data file for the Fractal Explorer plug-in for the GIMP *
# Get the plug-in at http://www.mygale.org/~cotting *
#**********************************************************************
fractaltype: 4
xmin: -0.720550119876862
xmax: -0.736553728580475
ymin: 0.128735020756721
ymax: 0.068184189498425
iter: 49.080001831054688
cx: -0.750000000000000
cy: -0.200000002980232
redstretch: 119.958000183105469
greenstretch: 85.779998779296875
bluestretch: 6.031000137329102
redmode: 0
greenmode: 0
bluemode: 0
redinvert: 0
greeninvert: 0
blueinvert: 0
colormode: 0
#**********************************************************************
<EOF>
#**********************************************************************

View File

@ -0,0 +1,26 @@
Fractal Explorer Plug-In Version 2 - (c) 1997 <cotting@mygale.org>
#**********************************************************************
# This is a data file for the Fractal Explorer plug-in for the GIMP *
# Get the plug-in at http://www.mygale.org/~cotting *
#**********************************************************************
fractaltype: 0
xmin: -0.562806546688080
xmax: -0.561547160148621
ymin: -0.643333077430725
ymax: -0.642277657985687
iter: 122.698997497558594
cx: -0.750000000000000
cy: -0.200000002980232
redstretch: 128.000000000000000
greenstretch: 113.000000000000000
bluestretch: 128.000000000000000
redmode: 0
greenmode: 0
bluemode: 2
redinvert: 0
greeninvert: 0
blueinvert: 0
colormode: 0
#**********************************************************************
<EOF>
#**********************************************************************

View File

@ -0,0 +1,26 @@
Fractal Explorer Plug-In Version 2 - (c) 1997 <cotting@mygale.org>
#**********************************************************************
# This is a data file for the Fractal Explorer plug-in for the GIMP *
# Get the plug-in at http://www.mygale.org/~cotting *
#**********************************************************************
fractaltype: 6
xmin: -0.038584709167480
xmax: 0.094075202941895
ymin: -0.689266920089722
ymax: -0.584711074829102
iter: 98.160003662109375
cx: 0.405000001192093
cy: 0.037000000476837
redstretch: 128.000000000000000
greenstretch: 128.000000000000000
bluestretch: 128.000000000000000
redmode: 0
greenmode: 1
bluemode: 2
redinvert: 0
greeninvert: 1
blueinvert: 1
colormode: 0
#**********************************************************************
<EOF>
#**********************************************************************

View File

@ -0,0 +1,26 @@
Fractal Explorer Plug-In Version 2 - (c) 1997 <cotting@mygale.org>
#**********************************************************************
# This is a data file for the Fractal Explorer plug-in for the GIMP *
# Get the plug-in at http://www.mygale.org/~cotting *
#**********************************************************************
fractaltype: 7
xmin: -0.014160156250000
xmax: 1.014160156250000
ymin: -0.261108398437500
ymax: 0.252685546875000
iter: 42.944999694824219
cx: -1.386999964714050
cy: -0.257999986410141
redstretch: 124.000000000000000
greenstretch: 112.000000000000000
bluestretch: 60.000000000000000
redmode: 0
greenmode: 2
bluemode: 0
redinvert: 0
greeninvert: 0
blueinvert: 1
colormode: 1
#**********************************************************************
<EOF>
#**********************************************************************

View File

@ -0,0 +1,26 @@
Fractal Explorer Plug-In Version 2 - (c) 1997 <cotting@mygale.org>
#**********************************************************************
# This is a data file for the Fractal Explorer plug-in for the GIMP *
# Get the plug-in at http://www.mygale.org/~cotting *
#**********************************************************************
fractaltype: 1
xmin: -0.573436737060547
xmax: -0.399868011474609
ymin: -0.177640914916992
ymax: -0.024647712707520
iter: 607.361999511718750
cx: -0.723999977111816
cy: -0.200000002980232
redstretch: 128.000000000000000
greenstretch: 128.000000000000000
bluestretch: 128.000000000000000
redmode: 2
greenmode: 0
bluemode: 1
redinvert: 0
greeninvert: 0
blueinvert: 0
colormode: 0
#**********************************************************************
<EOF>
#**********************************************************************

View File

@ -0,0 +1,26 @@
Fractal Explorer Plug-In Version 2 - (c) 1997 <cotting@mygale.org>
#**********************************************************************
# This is a data file for the Fractal Explorer plug-in for the GIMP *
# Get the plug-in at http://www.mygale.org/~cotting *
#**********************************************************************
fractaltype: 6
xmin: -0.430790066719055
xmax: -0.421469658613205
ymin: 0.017559077590704
ymax: 0.025114785879850
iter: 67.485000610351562
cx: -0.086000002920628
cy: -0.012000000104308
redstretch: 128.000000000000000
greenstretch: 37.000000000000000
bluestretch: 93.000000000000000
redmode: 2
greenmode: 2
bluemode: 1
redinvert: 0
greeninvert: 0
blueinvert: 0
colormode: 0
#**********************************************************************
<EOF>
#**********************************************************************

View File

@ -0,0 +1,26 @@
Fractal Explorer Plug-In Version 2 - (c) 1997 <cotting@mygale.org>
#**********************************************************************
# This is a data file for the Fractal Explorer plug-in for the GIMP *
# Get the plug-in at http://www.mygale.org/~cotting *
#**********************************************************************
fractaltype: 2
xmin: 0.064453125000000
xmax: 0.950683593750000
ymin: -0.389648437500000
ymax: 0.476440429687500
iter: 50.000000000000000
cx: -1.067000031471252
cy: -0.200000002980232
redstretch: 128.000000000000000
greenstretch: 110.000000000000000
bluestretch: 2.000000000000000
redmode: 0
greenmode: 1
bluemode: 1
redinvert: 1
greeninvert: 1
blueinvert: 0
colormode: 0
#**********************************************************************
<EOF>
#**********************************************************************

View File

@ -0,0 +1,26 @@
Fractal Explorer Plug-In Version 2 - (c) 1997 <cotting@mygale.org>
#**********************************************************************
# This is a data file for the Fractal Explorer plug-in for the GIMP *
# Get the plug-in at http://www.mygale.org/~cotting *
#**********************************************************************
fractaltype: 2
xmin: -0.937500000000000
xmax: 1.125000000000000
ymin: -0.609375000000000
ymax: 0.609375000000000
iter: 50.000000000000000
cx: -1.042999982833862
cy: -0.037000000476837
redstretch: 128.000000000000000
greenstretch: 22.000000000000000
bluestretch: 101.000000000000000
redmode: 1
greenmode: 1
bluemode: 0
redinvert: 0
greeninvert: 0
blueinvert: 0
colormode: 0
#**********************************************************************
<EOF>
#**********************************************************************

View File

@ -0,0 +1,26 @@
Fractal Explorer Plug-In Version 2 - (c) 1997 <cotting@mygale.org>
#**********************************************************************
# This is a data file for the Fractal Explorer plug-in for the GIMP *
# Get the plug-in at http://www.mygale.org/~cotting *
#**********************************************************************
fractaltype: 4
xmin: -1.287102937698364
xmax: -1.287102580070496
ymin: 0.099825143814087
ymax: 0.099862203001976
iter: 50.000000000000000
cx: -0.750000000000000
cy: -0.200000002980232
redstretch: 128.000000000000000
greenstretch: 109.905998229980469
bluestretch: 2.009999990463257
redmode: 1
greenmode: 0
bluemode: 0
redinvert: 1
greeninvert: 1
blueinvert: 0
colormode: 0
#**********************************************************************
<EOF>
#**********************************************************************

View File

@ -0,0 +1,26 @@
Fractal Explorer Plug-In Version 2 - (c) 1997 <cotting@mygale.org>
#**********************************************************************
# This is a data file for the Fractal Explorer plug-in for the GIMP *
# Get the plug-in at http://www.mygale.org/~cotting *
#**********************************************************************
fractaltype: 3
xmin: 0.187500000000000
xmax: 0.984375000000000
ymin: 0.843750000000000
ymax: 1.734375000000000
iter: 50.000000000000000
cx: 0.773000001907349
cy: -0.723999977111816
redstretch: 128.000000000000000
greenstretch: 128.000000000000000
bluestretch: 128.000000000000000
redmode: 2
greenmode: 0
bluemode: 1
redinvert: 0
greeninvert: 0
blueinvert: 0
colormode: 0
#**********************************************************************
<EOF>
#**********************************************************************

View File

@ -0,0 +1,2 @@
Makefile
Makefile.in

View File

@ -0,0 +1,26 @@
Fractal Explorer Plug-In Version 2 - (c) 1997 <cotting@mygale.org>
#**********************************************************************
# This is a data file for the Fractal Explorer plug-in for the GIMP *
# Get the plug-in at http://www.mygale.org/~cotting *
#**********************************************************************
fractaltype: 5
xmin: -0.664136886596680
xmax: -0.663678705692291
ymin: -0.378479450941086
ymax: -0.378030359745026
iter: 214.723999023437500
cx: 0.184000000357628
cy: -0.200000002980232
redstretch: 89.130996704101562
greenstretch: 70.365997314453125
bluestretch: 58.000000000000000
redmode: 0
greenmode: 0
bluemode: 2
redinvert: 0
greeninvert: 0
blueinvert: 0
colormode: 0
#**********************************************************************
<EOF>
#**********************************************************************

View File

@ -0,0 +1,26 @@
Fractal Explorer Plug-In Version 2 - (c) 1997 <cotting@mygale.org>
#**********************************************************************
# This is a data file for the Fractal Explorer plug-in for the GIMP *
# Get the plug-in at http://www.mygale.org/~cotting *
#**********************************************************************
fractaltype: 4
xmin: -0.443357914686203
xmax: -0.443357914686203
ymin: 0.085399866104126
ymax: 0.085484646260738
iter: 50.000000000000000
cx: -0.847000002861023
cy: -0.184000000357628
redstretch: 128.000000000000000
greenstretch: 128.000000000000000
bluestretch: 128.000000000000000
redmode: 0
greenmode: 0
bluemode: 0
redinvert: 0
greeninvert: 0
blueinvert: 0
colormode: 0
#**********************************************************************
<EOF>
#**********************************************************************

View File

@ -0,0 +1,26 @@
Fractal Explorer Plug-In Version 2 - (c) 1997 <cotting@mygale.org>
#**********************************************************************
# This is a data file for the Fractal Explorer plug-in for the GIMP *
# Get the plug-in at http://www.mygale.org/~cotting *
#**********************************************************************
fractaltype: 4
xmin: -0.125070333480835
xmax: -0.120749041438103
ymin: -0.537724196910858
ymax: -0.532733201980591
iter: 49.080001831054688
cx: 0.453999996185303
cy: 0.000000000000000
redstretch: 123.000000000000000
greenstretch: 128.000000000000000
bluestretch: 78.000000000000000
redmode: 1
greenmode: 2
bluemode: 0
redinvert: 0
greeninvert: 1
blueinvert: 0
colormode: 0
#**********************************************************************
<EOF>
#**********************************************************************

View File

@ -0,0 +1,26 @@
Fractal Explorer Plug-In Version 2 - (c) 1997 <cotting@mygale.org>
#**********************************************************************
# This is a data file for the Fractal Explorer plug-in for the GIMP *
# Get the plug-in at http://www.mygale.org/~cotting *
#**********************************************************************
fractaltype: 4
xmin: 0.257157027721405
xmax: 0.257280886173248
ymin: 0.153874531388283
ymax: 0.154003381729126
iter: 49.080001831054688
cx: -0.750000000000000
cy: -0.356000006198883
redstretch: 123.978996276855469
greenstretch: 112.000000000000000
bluestretch: 60.000000000000000
redmode: 1
greenmode: 1
bluemode: 0
redinvert: 0
greeninvert: 0
blueinvert: 0
colormode: 0
#**********************************************************************
<EOF>
#**********************************************************************

View File

@ -0,0 +1,26 @@
Fractal Explorer Plug-In Version 2 - (c) 1997 <cotting@mygale.org>
#**********************************************************************
# This is a data file for the Fractal Explorer plug-in for the GIMP *
# Get the plug-in at http://www.mygale.org/~cotting *
#**********************************************************************
fractaltype: 4
xmin: -0.104991987347603
xmax: -0.104991905391216
ymin: 0.250050097703934
ymax: 0.250050216913223
iter: 202.453994750976562
cx: 0.356000006198883
cy: -0.200000002980232
redstretch: 128.000000000000000
greenstretch: 128.000000000000000
bluestretch: 128.000000000000000
redmode: 2
greenmode: 0
bluemode: 0
redinvert: 0
greeninvert: 0
blueinvert: 0
colormode: 0
#**********************************************************************
<EOF>
#**********************************************************************

View File

@ -0,0 +1,26 @@
Fractal Explorer Plug-In Version 2 - (c) 1997 <cotting@mygale.org>
#**********************************************************************
# This is a data file for the Fractal Explorer plug-in for the GIMP *
# Get the plug-in at http://www.mygale.org/~cotting *
#**********************************************************************
fractaltype: 0
xmin: -1.255496978759766
xmax: -1.249950170516968
ymin: -0.347052335739136
ymax: -0.338468551635742
iter: 50.000000000000000
cx: -0.750000000000000
cy: -0.200000002980232
redstretch: 128.000000000000000
greenstretch: 113.000000000000000
bluestretch: 128.000000000000000
redmode: 0
greenmode: 1
bluemode: 2
redinvert: 1
greeninvert: 1
blueinvert: 0
colormode: 0
#**********************************************************************
<EOF>
#**********************************************************************

View File

@ -0,0 +1,26 @@
Fractal Explorer Plug-In Version 2 - (c) 1997 <cotting@mygale.org>
#**********************************************************************
# This is a data file for the Fractal Explorer plug-in for the GIMP *
# Get the plug-in at http://www.mygale.org/~cotting *
#**********************************************************************
fractaltype: 6
xmin: 0.353848785161972
xmax: 0.356627285480499
ymin: 0.458385974168777
ymax: 0.460633248090744
iter: 147.238998413085938
cx: 0.000000000000000
cy: 0.000000000000000
redstretch: 128.000000000000000
greenstretch: 128.000000000000000
bluestretch: 128.000000000000000
redmode: 1
greenmode: 1
bluemode: 0
redinvert: 0
greeninvert: 0
blueinvert: 0
colormode: 1
#**********************************************************************
<EOF>
#**********************************************************************

View File

@ -0,0 +1,26 @@
Fractal Explorer Plug-In Version 2 - (c) 1997 <cotting@mygale.org>
#**********************************************************************
# This is a data file for the Fractal Explorer plug-in for the GIMP *
# Get the plug-in at http://www.mygale.org/~cotting *
#**********************************************************************
fractaltype: 4
xmin: -0.125281319022179
xmax: -0.116631627082825
ymin: 0.375891804695129
ymax: 0.384632647037506
iter: 67.485000610351562
cx: 0.405000001192093
cy: -0.200000002980232
redstretch: 124.000000000000000
greenstretch: 112.000000000000000
bluestretch: 60.000000000000000
redmode: 0
greenmode: 2
bluemode: 0
redinvert: 0
greeninvert: 0
blueinvert: 1
colormode: 0
#**********************************************************************
<EOF>
#**********************************************************************

View File

@ -0,0 +1,26 @@
Fractal Explorer Plug-In Version 2 - (c) 1997 <cotting@mygale.org>
#**********************************************************************
# This is a data file for the Fractal Explorer plug-in for the GIMP *
# Get the plug-in at http://www.mygale.org/~cotting *
#**********************************************************************
fractaltype: 2
xmin: -0.508517742156982
xmax: -0.475813776254654
ymin: -0.025438375771046
ymax: 0.025984741747379
iter: 177.914001464843750
cx: -1.018000006675720
cy: -0.200000002980232
redstretch: 128.000000000000000
greenstretch: 128.000000000000000
bluestretch: 128.000000000000000
redmode: 0
greenmode: 0
bluemode: 1
redinvert: 1
greeninvert: 1
blueinvert: 0
colormode: 0
#**********************************************************************
<EOF>
#**********************************************************************

View File

@ -0,0 +1,26 @@
Fractal Explorer Plug-In Version 2 - (c) 1997 <cotting@mygale.org>
#**********************************************************************
# This is a data file for the Fractal Explorer plug-in for the GIMP *
# Get the plug-in at http://www.mygale.org/~cotting *
#**********************************************************************
fractaltype: 6
xmin: -0.968750000000000
xmax: 0.437500000000000
ymin: -0.703125000000000
ymax: 0.843750000000000
iter: 50.000000000000000
cx: -0.012000000104308
cy: 0.000000000000000
redstretch: 87.000000000000000
greenstretch: 128.000000000000000
bluestretch: 0.000000000000000
redmode: 0
greenmode: 2
bluemode: 1
redinvert: 0
greeninvert: 0
blueinvert: 0
colormode: 0
#**********************************************************************
<EOF>
#**********************************************************************

View File

@ -0,0 +1,26 @@
Fractal Explorer Plug-In Version 2 - (c) 1997 <cotting@mygale.org>
#**********************************************************************
# This is a data file for the Fractal Explorer plug-in for the GIMP *
# Get the plug-in at http://www.mygale.org/~cotting *
#**********************************************************************
fractaltype: 1
xmin: -0.476808547973633
xmax: -0.223514556884766
ymin: -0.017941474914551
ymax: 0.114898681640625
iter: 50.000000000000000
cx: -1.337000012397766
cy: 0.086000002920628
redstretch: 127.330001831054688
greenstretch: 90.000000000000000
bluestretch: 128.000000000000000
redmode: 2
greenmode: 2
bluemode: 2
redinvert: 0
greeninvert: 0
blueinvert: 0
colormode: 0
#**********************************************************************
<EOF>
#**********************************************************************

View File

@ -0,0 +1,26 @@
Fractal Explorer Plug-In Version 2 - (c) 1997 <cotting@mygale.org>
#**********************************************************************
# This is a data file for the Fractal Explorer plug-in for the GIMP *
# Get the plug-in at http://www.mygale.org/~cotting *
#**********************************************************************
fractaltype: 4
xmin: -0.345402956008911
xmax: -0.252956151962280
ymin: -0.274888515472412
ymax: -0.204696178436279
iter: 30.674999237060547
cx: 0.356000006198883
cy: -0.200000002980232
redstretch: 128.000000000000000
greenstretch: 67.000000000000000
bluestretch: 98.000000000000000
redmode: 1
greenmode: 1
bluemode: 0
redinvert: 0
greeninvert: 0
blueinvert: 0
colormode: 0
#**********************************************************************
<EOF>
#**********************************************************************

View File

@ -0,0 +1,26 @@
Fractal Explorer Plug-In Version 2 - (c) 1997 <cotting@mygale.org>
#**********************************************************************
# This is a data file for the Fractal Explorer plug-in for the GIMP *
# Get the plug-in at http://www.mygale.org/~cotting *
#**********************************************************************
fractaltype: 1
xmin: 0.068130433559418
xmax: 0.116958513855934
ymin: 0.512302279472351
ymax: 0.534968316555023
iter: 202.453994750976562
cx: 0.356000006198883
cy: 0.428999990224838
redstretch: 128.000000000000000
greenstretch: 113.000000000000000
bluestretch: 128.000000000000000
redmode: 0
greenmode: 0
bluemode: 0
redinvert: 0
greeninvert: 0
blueinvert: 0
colormode: 0
#**********************************************************************
<EOF>
#**********************************************************************

View File

@ -0,0 +1,26 @@
Fractal Explorer Plug-In Version 2 - (c) 1997 <cotting@mygale.org>
#**********************************************************************
# This is a data file for the Fractal Explorer plug-in for the GIMP *
# Get the plug-in at http://www.mygale.org/~cotting *
#**********************************************************************
fractaltype: 6
xmin: -0.350769042968750
xmax: -0.080402374267578
ymin: -0.264384269714355
ymax: -0.041095733642578
iter: 50.000000000000000
cx: -0.184000000357628
cy: 0.000000000000000
redstretch: 29.000000000000000
greenstretch: 80.000000000000000
bluestretch: 7.000000000000000
redmode: 0
greenmode: 1
bluemode: 0
redinvert: 0
greeninvert: 0
blueinvert: 0
colormode: 0
#**********************************************************************
<EOF>
#**********************************************************************

View File

@ -0,0 +1,26 @@
Fractal Explorer Plug-In Version 2 - (c) 1997 <cotting@mygale.org>
#**********************************************************************
# This is a data file for the Fractal Explorer plug-in for the GIMP *
# Get the plug-in at http://www.mygale.org/~cotting *
#**********************************************************************
fractaltype: 0
xmin: -1.285429239273071
xmax: -1.283814907073975
ymin: 0.428520709276199
ymax: 0.432528734207153
iter: 50.000000000000000
cx: -0.750000000000000
cy: -0.200000002980232
redstretch: 128.000000000000000
greenstretch: 89.130996704101562
bluestretch: 128.000000000000000
redmode: 0
greenmode: 0
bluemode: 2
redinvert: 0
greeninvert: 0
blueinvert: 0
colormode: 0
#**********************************************************************
<EOF>
#**********************************************************************

View File

@ -0,0 +1,45 @@
## Process this file with automake to produce Makefile.in
fractalexplorerdatadir = $(gimpdatadir)/fractalexplorer
fractalexplorerdata_DATA = \
Asteroid_Field \
Bar_Code_Label \
Beauty_of_Nature \
Blue_Curtain \
Car_Track \
Energetic_Diamond \
Explosive \
Flower \
Fragments \
Hemp \
High_Voltage \
Hoops \
Ice_Crystal \
Leaves \
Lightning \
Mandelbrot \
Marble \
Marble2 \
Medusa \
Nautilus \
Nebula \
Plant \
Rose \
Saturn \
Snow_Crystal \
Soma \
Spark \
Suns \
Tentacles \
The_Green_Place \
Wave \
Wood \
Zooming_Circle
EXTRA_DIST = $(fractalexplorerdata_DATA)
files:
@files=`ls $(DISTFILES) 2> /dev/null`; for p in $$files; do \
echo $$p; \
done

View File

@ -0,0 +1,26 @@
Fractal Explorer Plug-In Version 2 - (c) 1997 <cotting@mygale.org>
#**********************************************************************
# This is a data file for the Fractal Explorer plug-in for the GIMP *
# Get the plug-in at http://www.mygale.org/~cotting *
#**********************************************************************
fractaltype: 0
xmin: -0.078803382813931
xmax: -0.077717751264572
ymin: -0.880311131477356
ymax: -0.879459798336029
iter: 503.066986083984375
cx: -0.750000000000000
cy: -0.200000002980232
redstretch: 128.000000000000000
greenstretch: 120.627998352050781
bluestretch: 128.000000000000000
redmode: 1
greenmode: 2
bluemode: 0
redinvert: 1
greeninvert: 0
blueinvert: 1
colormode: 0
#**********************************************************************
<EOF>
#**********************************************************************

View File

@ -0,0 +1,26 @@
Fractal Explorer Plug-In Version 2 - (c) 1997 <cotting@mygale.org>
#**********************************************************************
# This is a data file for the Fractal Explorer plug-in for the GIMP *
# Get the plug-in at http://www.mygale.org/~cotting *
#**********************************************************************
fractaltype: 4
xmin: -0.235851287841797
xmax: -0.060367584228516
ymin: 0.091303825378418
ymax: 0.220178604125977
iter: 55.215000152587891
cx: 0.356000006198883
cy: -0.200000002980232
redstretch: 128.000000000000000
greenstretch: 128.000000000000000
bluestretch: 127.330001831054688
redmode: 1
greenmode: 2
bluemode: 2
redinvert: 0
greeninvert: 1
blueinvert: 1
colormode: 0
#**********************************************************************
<EOF>
#**********************************************************************

Some files were not shown because too many files have changed in this diff Show More