mirror of
https://gitlab.gnome.org/GNOME/gimp
synced 2024-10-23 13:01:42 +00:00
c7ac6aff52
2002-10-23 Michael Natterer <mitch@gimp.org> Moved generic datafile loading to LibGimpBase: * app/core/gimpdatafiles.[ch]: removed... * libgimpbase/gimpdatafiles.[ch]: ...and add here with a changed API which requires no more global variables. * libgimpbase/Makefile.am * libgimpbase/gimpbase.h * libgimpbase/gimpbasetypes.h * app/core/Makefile.am * app/core/core-types.h * app/core/gimpdatafactory.c * app/gui/gui.c * app/plug-in/plug-in.c * app/plug-in/plug-ins.c * app/tools/tools.c: changed accordingly. Moved module loading to LibGimpModule: * app/core/gimpmodules.c: removed lots of code... * libgimpmodule/gimpmoduledb.[ch]: ...and added it here as GimpModuleDB object. * libgimpmodule/Makefile.am * libgimpmodule/gimpmoduletypes.h: changed accordingly. * app/core/gimp.[ch]: replaced gimp->modules by gimp->module_db. * libgimpmodule/gimpmodule.[ch]: added gimp_module_query(). Internal cleanup. Stuff... * app/gui/module-browser.c: changed accordingly. Unfinished... * app/core/gimpcontainer.c * app/core/gimplist.c: reverted the HACKS introduced recently. * app/core/gimpobject.[ch]: added gimp_g_object_get_memsize() utility function. * libgimpproxy/gimpobject.[ch]: regenerated. Changed display filter configuration stuff: * libgimpwidgets/gimpcolordisplay.[ch]: made the virtual configure() function return a GtkWidget instead of opening a dialog. Changed configure_cancel() to configure_reset(). Added "changed" signal. * app/display/gimpdisplayshell-filter-dialog.c: embed the filters' config GUI in the dialog. Connect to "changed" and added a "Reset" button which resets the filter. * modules/cdisplay_gamma.c * modules/cdisplay_highcontrast.c: changed accordingly. * modules/colorsel_triangle.c * modules/colorsel_water.c: minor fixes. 2002-10-23 Michael Natterer <mitch@gimp.org> * libgimpbase/libgimpbase-docs.sgml * libgimpbase/libgimpbase-sections.txt * libgimpbase/tmpl/gimpbasetypes.sgml * libgimpbase/tmpl/gimpdatafiles.sgml: added GimpDatafiles * libgimpmodule/libgimpmodule-docs.sgml * libgimpmodule/libgimpmodule-sections.txt * libgimpmodule/tmpl/gimpmoduledb.sgml: added GimpModuleDB. * libgimpwidgets/libgimpwidgets.types: added gimp_dialog_get_type * libgimpmodule/tmpl/gimpmodule.sgml * libgimpwidgets/tmpl/gimpcolordisplay.sgml * libgimpwidgets/tmpl/gimpdialog.sgml: updated.
115 lines
2.4 KiB
C
115 lines
2.4 KiB
C
/* LIBGIMP - The GIMP Library
|
|
* Copyright (C) 1995-1997 Peter Mattis and Spencer Kimball
|
|
*
|
|
* This library is free software; you can redistribute it and/or
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
* License as published by the Free Software Foundation; either
|
|
* 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
|
|
* Library General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
* 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 __GIMP_BASE_TYPES_H__
|
|
#define __GIMP_BASE_TYPES_H__
|
|
|
|
|
|
#include <libgimpcolor/gimpcolortypes.h>
|
|
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
/* For information look into the C source or the html documentation */
|
|
|
|
|
|
typedef struct _GimpParasite GimpParasite;
|
|
typedef struct _GimpDatafileData GimpDatafileData;
|
|
|
|
|
|
typedef void (* GimpDatafileLoaderFunc) (GimpDatafileData *file_data);
|
|
|
|
|
|
typedef enum
|
|
{
|
|
GIMP_UNIT_PIXEL = 0,
|
|
|
|
GIMP_UNIT_INCH = 1,
|
|
GIMP_UNIT_MM = 2,
|
|
GIMP_UNIT_POINT = 3,
|
|
GIMP_UNIT_PICA = 4,
|
|
|
|
GIMP_UNIT_END = 5,
|
|
|
|
GIMP_UNIT_PERCENT = 65536 /*< skip >*/
|
|
} GimpUnit;
|
|
|
|
typedef enum
|
|
{
|
|
GIMP_PDB_INT32,
|
|
GIMP_PDB_INT16,
|
|
GIMP_PDB_INT8,
|
|
GIMP_PDB_FLOAT,
|
|
GIMP_PDB_STRING,
|
|
GIMP_PDB_INT32ARRAY,
|
|
GIMP_PDB_INT16ARRAY,
|
|
GIMP_PDB_INT8ARRAY,
|
|
GIMP_PDB_FLOATARRAY,
|
|
GIMP_PDB_STRINGARRAY,
|
|
GIMP_PDB_COLOR,
|
|
GIMP_PDB_REGION,
|
|
GIMP_PDB_DISPLAY,
|
|
GIMP_PDB_IMAGE,
|
|
GIMP_PDB_LAYER,
|
|
GIMP_PDB_CHANNEL,
|
|
GIMP_PDB_DRAWABLE,
|
|
GIMP_PDB_SELECTION,
|
|
GIMP_PDB_BOUNDARY,
|
|
GIMP_PDB_PATH,
|
|
GIMP_PDB_PARASITE,
|
|
GIMP_PDB_STATUS,
|
|
GIMP_PDB_END
|
|
} GimpPDBArgType;
|
|
|
|
typedef enum
|
|
{
|
|
GIMP_INTERNAL,
|
|
GIMP_PLUGIN,
|
|
GIMP_EXTENSION,
|
|
GIMP_TEMPORARY
|
|
} GimpPDBProcType;
|
|
|
|
typedef enum
|
|
{
|
|
GIMP_PDB_EXECUTION_ERROR,
|
|
GIMP_PDB_CALLING_ERROR,
|
|
GIMP_PDB_PASS_THROUGH,
|
|
GIMP_PDB_SUCCESS,
|
|
GIMP_PDB_CANCEL
|
|
} GimpPDBStatusType;
|
|
|
|
typedef enum
|
|
{
|
|
GIMP_MESSAGE_BOX,
|
|
GIMP_CONSOLE,
|
|
GIMP_ERROR_CONSOLE
|
|
} GimpMessageHandlerType;
|
|
|
|
typedef enum
|
|
{
|
|
GIMP_STACK_TRACE_NEVER,
|
|
GIMP_STACK_TRACE_QUERY,
|
|
GIMP_STACK_TRACE_ALWAYS
|
|
} GimpStackTraceMode;
|
|
|
|
|
|
G_END_DECLS
|
|
|
|
#endif /* __GIMP_BASE_TYPES_H__ */
|