2000-02-26 03:41:06 +00:00
|
|
|
/* LIBGIMP - The GIMP Library
|
|
|
|
* Copyright (C) 1995-1997 Peter Mattis and Spencer Kimball
|
1999-10-24 21:27:29 +00:00
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
1999-11-17 21:13:50 +00:00
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
1999-10-24 21:27:29 +00:00
|
|
|
* License as published by the Free Software Foundation; either
|
2000-02-26 03:41:06 +00:00
|
|
|
* version 2 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
1999-12-26 07:54:39 +00:00
|
|
|
* Lesser General Public License for more details.
|
1999-10-24 21:27:29 +00:00
|
|
|
*
|
1999-11-17 21:13:50 +00:00
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
1999-10-24 21:27:29 +00:00
|
|
|
* License along with this library; if not, write to the
|
|
|
|
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
|
|
|
* Boston, MA 02111-1307, USA.
|
|
|
|
*/
|
|
|
|
#ifndef __GIMPCOMPAT_H__
|
|
|
|
#define __GIMPCOMPAT_H__
|
|
|
|
|
1999-10-24 22:08:11 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif /* __cplusplus */
|
|
|
|
|
2000-05-30 23:38:46 +00:00
|
|
|
|
1999-10-24 21:27:29 +00:00
|
|
|
/* some compatibility defines for older plug-ins */
|
|
|
|
|
1999-10-24 22:08:11 +00:00
|
|
|
#ifndef GIMP_DISABLE_COMPAT_H
|
|
|
|
|
1999-12-26 07:54:39 +00:00
|
|
|
#define gimp_attach_parasite gimp_parasite_attach
|
|
|
|
#define gimp_detach_parasite gimp_parasite_detach
|
|
|
|
#define gimp_find_parasite gimp_parasite_find
|
1999-10-24 21:27:29 +00:00
|
|
|
#define gimp_image_attach_parasite gimp_image_parasite_attach
|
|
|
|
#define gimp_image_detach_parasite gimp_image_parasite_detach
|
2000-01-11 21:07:17 +00:00
|
|
|
#define gimp_image_find_parasite gimp_image_parasite_find
|
1999-10-24 21:27:29 +00:00
|
|
|
#define gimp_drawable_attach_parasite gimp_drawable_parasite_attach
|
|
|
|
#define gimp_drawable_detach_parasite gimp_drawable_parasite_detach
|
1999-12-29 20:29:09 +00:00
|
|
|
#define gimp_drawable_find_parasite gimp_drawable_parasite_find
|
2000-05-31 06:15:06 +00:00
|
|
|
|
1999-12-26 07:54:39 +00:00
|
|
|
#define gimp_drawable_channel gimp_drawable_is_channel
|
|
|
|
#define gimp_drawable_gray gimp_drawable_is_gray
|
|
|
|
#define gimp_drawable_color gimp_drawable_is_rgb
|
|
|
|
#define gimp_drawable_indexed gimp_drawable_is_indexed
|
|
|
|
#define gimp_drawable_layer gimp_drawable_is_layer
|
1999-10-24 21:27:29 +00:00
|
|
|
#define gimp_drawable_layer_mask gimp_drawable_is_layer_mask
|
2000-05-31 06:15:06 +00:00
|
|
|
|
1999-12-26 07:54:39 +00:00
|
|
|
#define gimp_image_disable_undo gimp_image_undo_disable
|
|
|
|
#define gimp_image_enable_undo gimp_image_undo_enable
|
|
|
|
#define gimp_image_freeze_undo gimp_image_undo_freeze
|
|
|
|
#define gimp_image_thaw_undo gimp_image_undo_thaw
|
2000-05-31 06:15:06 +00:00
|
|
|
|
|
|
|
#define gimp_channel_width gimp_drawable_width
|
|
|
|
#define gimp_channel_height gimp_drawable_height
|
2000-06-09 01:56:34 +00:00
|
|
|
#define gimp_channel_get_image_ID gimp_drawable_image
|
2000-05-31 06:15:06 +00:00
|
|
|
#define gimp_channel_get_layer_ID -1
|
|
|
|
|
|
|
|
#define gimp_layer_width gimp_drawable_width
|
|
|
|
#define gimp_layer_height gimp_drawable_height
|
|
|
|
#define gimp_layer_bpp gimp_drawable_bpp
|
|
|
|
#define gimp_layer_type gimp_drawable_type
|
|
|
|
|
2000-06-01 12:20:13 +00:00
|
|
|
#define gimp_gradient_get_gradient_data gimp_gradients_get_gradient_data
|
2000-05-31 21:16:11 +00:00
|
|
|
|
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
|
|
|
#define gimp_plugin_help_func gimp_standard_help_func
|
1999-12-26 07:54:39 +00:00
|
|
|
|
2000-05-31 13:24:14 +00:00
|
|
|
#define gimp_query_database gimp_procedural_db_query
|
|
|
|
#define gimp_query_images gimp_image_list
|
|
|
|
|
2000-05-26 22:28:40 +00:00
|
|
|
#define Parasite GimpParasite
|
|
|
|
#define PARASITE_PERSISTENT GIMP_PARASITE_PERSISTENT
|
|
|
|
#define PARASITE_UNDOABLE GIMP_PARASITE_UNDOABLE
|
|
|
|
#define PARASITE_ATTACH_PARENT GIMP_PARASITE_ATTACH_PARENT
|
|
|
|
#define PARASITE_PARENT_PERSISTENT GIMP_PARASITE_PARENT_PERSISTENT
|
|
|
|
#define PARASITE_PARENT_UNDOABLE GIMP_PARASITE_PARENT_UNDOABLE
|
|
|
|
#define PARASITE_ATTACH_GRANDPARENT GIMP_PARASITE_ATTACH_GRANDPARENT
|
|
|
|
#define PARASITE_GRANDPARENT_PERSISTENT GIMP_PARASITE_GRANDPARENT_PERSISTENT
|
|
|
|
#define PARASITE_GRANDPARENT_UNDOABLE GIMP_PARASITE_GRANDPARENT_UNDOABLE
|
|
|
|
#define parasite_new gimp_parasite_new
|
|
|
|
#define parasite_free gimp_parasite_free
|
|
|
|
#define parasite_copy gimp_parasite_copy
|
|
|
|
#define parasite_compare gimp_parasite_compare
|
|
|
|
#define parasite_is_type gimp_parasite_is_type
|
|
|
|
#define parasite_is_persistent gimp_parasite_is_persistent
|
|
|
|
#define parasite_is_undoable gimp_parasite_is_undoable
|
|
|
|
#define parasite_has_flag gimp_parasite_has_flag
|
|
|
|
#define parasite_flags gimp_parasite_flags
|
|
|
|
#define parasite_name gimp_parasite_name
|
|
|
|
#define parasite_data gimp_parasite_data
|
|
|
|
#define parasite_data_size gimp_parasite_data_size
|
|
|
|
#define PIXPIPE_MAXDIM GIMP_PIXPIPE_MAXDIM
|
|
|
|
#define PixPipeParams GimpPixPipeParams
|
|
|
|
#define pixpipeparams_init gimp_pixpipe_params_init
|
|
|
|
#define pixpipeparams_parse gimp_pixpipe_params_parse
|
|
|
|
#define pixpipeparams_build gimp_pixpipe_params_build
|
|
|
|
|
2000-05-31 06:15:06 +00:00
|
|
|
#define GPlugInInfo GimpPlugInInfo
|
|
|
|
#define GTile GimpTile
|
|
|
|
#define GDrawable GimpDrawable
|
|
|
|
#define GPixelRgn GimpPixelRgn
|
|
|
|
#define GParamColor GimpParamColor
|
|
|
|
#define GParamRegion GimpParamRegion
|
|
|
|
#define GParamData GimpParamData
|
|
|
|
#define GParamDef GimpParamDef
|
|
|
|
#define GParam GimpParam
|
|
|
|
|
1999-10-24 22:08:11 +00:00
|
|
|
#endif /* GIMP_DISABLE_COMPAT_H */
|
|
|
|
|
2000-05-30 23:38:46 +00:00
|
|
|
|
1999-10-24 22:08:11 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif /* __cplusplus */
|
|
|
|
|
1999-10-24 21:27:29 +00:00
|
|
|
#endif /* __GIMPCOMPAT_H__ */
|