gimp/app/internal_procs.c
Michael Natterer 9c6b0b0c33 These changes enable help support for 3rd party plug-ins which install
2000-05-21  Michael Natterer  <mitch@gimp.org>

	These changes enable help support for 3rd party plug-ins which
	install their help files outside GIMP's main help dir.

	Instead of calling gimp_help(), gimp_plugin_help_func() etc.,
	all help callbacks now have to call gimp_standard_help_func()
	which has different implementations in the app and in libgimp.

	There is a new function gimp_plugin_help_register() which can
	be called during plug-in query. plug_in.c keeps a list of
	executable_name/help_path pairs. Plug-ins have to pass their
	exec. name to gimp_help() which uses the list to find the plug-in's
	help directory.

	* app/gimphelp.[ch]: gimp_help() now takes a help_path parameter.
	help_path == NULL means the standard help directory. Various
	changes to pass the help_path to the help browser.

	* app/gimprc.c: save the plug-in's help_path in the pluginrc file.

	* app/menus.c: ugly hack to enable help_paths in the "F1" callback.

	* app/plug_in.[ch]: many help_path related changes. Use g_basename()
	instead of strrchr(str,G_DIR_SEPARATOR), cosmetic cleanups.

	* app/internal_procs.c
	* app/gimphelp_cmds.c
	* tools/pdbgen/pdb/gimphelp.pdb: new procedure
	gimp_plugin_help_register(). gimp_help() takes a second parameter
	which is the executable name (not the help_path).

	* app/color_notebook.c
	* app/commands.c
	* app/lc_dialog.c
	* app/preferences_dialog.c
	* app/tools.c: call gimp_standard_help_func() instead of gimp_help().

	* libgimp/gimp.c: new function gimp_get_progname() which returns
	the full path of the plug-in's executable.

	* libgimp/gimp.h: export the new function,
	removed gimp_plugin_help_func(), gimp_help() takes the executable
	name as second parameter.

	* libgimp/gimpcompat.h: added gimp_plugin_help_func().

	* libgimp/gimphelp.c: a wrapper for gimp_plugin_help_register(),
	changed the calls to gimp_help.

	* libgimp/gimphelpui.[ch]: call gimp_standard_help_func() instead
	of gimp_help().

	* plug-ins/helpbrowser/helpbrowser.c: now called with an additional
	help_path parameter. Various changes to enable
	help_path != gimp_standard_help_path.

	Unrelated stuff:

	* app/batch.h: added missing GPL header.

	* app/gimpunit.c: had a LGPL header, merged some fprintf's into
	one call.

	* app/procedural_db.[ch]: cosmetic: g* types, s/g_malloc/g_new/,
	prototypes, indentation.

	* app/resize.c: use less packing widgets. didn't find the "offset"
	redraw bug :(
2000-05-21 17:41:02 +00:00

164 lines
5.2 KiB
C

/* The GIMP -- an image manipulation program
* Copyright (C) 1995-2000 Spencer Kimball and Peter Mattis
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
/* NOTE: This file is autogenerated by pdbgen.pl. */
#include "config.h"
#include <glib.h>
#include "app_procs.h"
#include "libgimp/gimpintl.h"
/* Forward declarations for registering PDB procs */
void register_brush_select_procs (void);
void register_brushes_procs (void);
void register_channel_procs (void);
void register_channel_ops_procs (void);
void register_color_procs (void);
void register_convert_procs (void);
void register_drawable_procs (void);
void register_edit_procs (void);
void register_fileops_procs (void);
void register_floating_sel_procs (void);
void register_gdisplay_procs (void);
void register_gimage_procs (void);
void register_gimage_mask_procs (void);
void register_gimprc_procs (void);
void register_gimphelp_procs (void);
void register_gradient_procs (void);
void register_gradient_select_procs (void);
void register_guides_procs (void);
void register_interface_procs (void);
void register_layer_procs (void);
void register_misc_procs (void);
void register_palette_procs (void);
void register_parasite_procs (void);
void register_paths_procs (void);
void register_pattern_select_procs (void);
void register_patterns_procs (void);
void register_plug_in_procs (void);
void register_procedural_db_procs (void);
void register_text_tool_procs (void);
void register_tools_procs (void);
void register_undo_procs (void);
void register_unit_procs (void);
/* 323 procedures registered total */
void
internal_procs_init (void)
{
app_init_update_status (_("Internal Procedures"), _("Brush UI"), 0.0);
register_brush_select_procs ();
app_init_update_status (NULL, _("Brushes"), 0.009);
register_brushes_procs ();
app_init_update_status (NULL, _("Channel"), 0.043);
register_channel_procs ();
app_init_update_status (NULL, _("Channel Ops"), 0.09);
register_channel_ops_procs ();
app_init_update_status (NULL, _("Color"), 0.096);
register_color_procs ();
app_init_update_status (NULL, _("Convert"), 0.133);
register_convert_procs ();
app_init_update_status (NULL, _("Drawable procedures"), 0.142);
register_drawable_procs ();
app_init_update_status (NULL, _("Edit procedures"), 0.211);
register_edit_procs ();
app_init_update_status (NULL, _("File Operations"), 0.229);
register_fileops_procs ();
app_init_update_status (NULL, _("Floating selections"), 0.254);
register_floating_sel_procs ();
app_init_update_status (NULL, _("GDisplay procedures"), 0.272);
register_gdisplay_procs ();
app_init_update_status (NULL, _("Image"), 0.282);
register_gimage_procs ();
app_init_update_status (NULL, _("Image mask"), 0.464);
register_gimage_mask_procs ();
app_init_update_status (NULL, _("Gimprc procedures"), 0.517);
register_gimprc_procs ();
app_init_update_status (NULL, _("Help procedures"), 0.526);
register_gimphelp_procs ();
app_init_update_status (NULL, _("Gradients"), 0.533);
register_gradient_procs ();
app_init_update_status (NULL, _("Gradient UI"), 0.548);
register_gradient_select_procs ();
app_init_update_status (NULL, _("Guide procedures"), 0.56);
register_guides_procs ();
app_init_update_status (NULL, _("Interface"), 0.579);
register_interface_procs ();
app_init_update_status (NULL, _("Layer"), 0.588);
register_layer_procs ();
app_init_update_status (NULL, _("Miscellaneous"), 0.684);
register_misc_procs ();
app_init_update_status (NULL, _("Palette"), 0.69);
register_palette_procs ();
app_init_update_status (NULL, _("Parasite procedures"), 0.712);
register_parasite_procs ();
app_init_update_status (NULL, _("Paths"), 0.752);
register_paths_procs ();
app_init_update_status (NULL, _("Pattern UI"), 0.793);
register_pattern_select_procs ();
app_init_update_status (NULL, _("Patterns"), 0.802);
register_patterns_procs ();
app_init_update_status (NULL, _("Plug-in"), 0.814);
register_plug_in_procs ();
app_init_update_status (NULL, _("Procedural database"), 0.83);
register_procedural_db_procs ();
app_init_update_status (NULL, _("Text procedures"), 0.854);
register_text_tool_procs ();
app_init_update_status (NULL, _("Tool procedures"), 0.867);
register_tools_procs ();
app_init_update_status (NULL, _("Undo"), 0.96);
register_undo_procs ();
app_init_update_status (NULL, _("Units"), 0.966);
register_unit_procs ();
}