2001-05-04 06:19:17 +08:00
|
|
|
/* The GIMP -- an image manipulation program
|
|
|
|
* Copyright (C) 1995 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.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __WIDGETS_TYPES_H__
|
|
|
|
#define __WIDGETS_TYPES_H__
|
|
|
|
|
|
|
|
|
2001-05-08 11:48:54 +08:00
|
|
|
#include "libgimpwidgets/gimpwidgetstypes.h"
|
|
|
|
|
include the new "paint-funcs/paint-funcs-types.h".
2001-11-28 Michael Natterer <mitch@gimp.org>
* app/base/base-types.h: include the new
"paint-funcs/paint-funcs-types.h".
* app/paint-funcs/Makefile.am
* app/paint-funcs/paint-funcs-types.h: new file. Includes
"base/base-types.h".
* app/paint-funcs/paint-funcs.[ch]: removed the enums here,
include "paint-funcs-types.h".
* app/widgets/widgets-types.h: include "display/display-types.h"
* app/display/display-types.h: include "widgets/widgets-types.h".
* app/tools/tools-types.h: include "display/display-types.h"
* app/gui/gui-types.h: include "tools/tools-types.h".
The order of namespaces/dependencies should be (but is not):
(base, paint-funcs) -> (core, file, xcf, pdb) ->
(widgets, display) -> tools -> gui
* app/path.c: include "tools/tools-types.h".
* app/core/Makefile.am
* app/core/gimpimage-guides.[ch]
* app/core/gimpimage-merge.[ch]
* app/core/gimpimage-resize.[ch]
* app/core/gimpimage-scale.[ch]: new files.
* app/core/gimpimage.[ch]: removed the stuff which is in the new
files. Reordered all functions in both the .h and .c files,
commented the groups of functions.
* app/core/gimpcontainer.c: create the handler_id using a counter,
not the address of a pointer, because the address *may* be the
same twice, added debugging output.
* app/core/gimpviewable.[ch]: added primitive support for getting
a preview GdkPixbuf.
* app/nav_window.c
* app/undo.c
* app/undo_history.c
* app/core/gimpimage-duplicate.c
* app/core/gimpimage-mask.[ch]
* app/display/gimpdisplay.c
* app/display/gimpdisplayshell-callbacks.c
* app/display/gimpdisplayshell-dnd.c
* app/display/gimpdisplayshell-render.c
* app/display/gimpdisplayshell-scale.c
* app/display/gimpdisplayshell-scroll.c
* app/gui/image-commands.c
* app/gui/info-window.c
* app/gui/layers-commands.c
* app/gui/palette-import-dialog.c
* app/tools/gimpbycolorselecttool.c
* app/tools/gimpeditselectiontool.c
* app/tools/gimpmeasuretool.c
* app/tools/gimpmovetool.c
* app/widgets/gimpcontainerview-utils.c
* app/xcf/xcf-load.c: changed accordingly, some cleanup.
* tools/pdbgen/pdb/guides.pdb
* tools/pdbgen/pdb/image.pdb: changed accordingly, reordered functions.
* app/plug_in.c: set the labels of the "Repeat" and "Re-Show" menu
items to the name of the last plug-in (Fixes #50986).
* app/display/gimpdisplayshell.[ch]: set the labels of "Undo" and
"Redo" to the resp. undo names. Much simplified the WM icon stuff
by removing most code and using gimp_viewable_get_new_preview_pixbuf().
* app/widgets/gimpbrushfactoryview.c: forgot to assign the GQuark
returned by gimp_container_add_handler().
* app/pdb/guides_cmds.c
* app/pdb/image_cmds.c
* libgimp/gimpimage_pdb.[ch]: regenerated.
2001-11-29 01:51:06 +08:00
|
|
|
#include "core/core-types.h"
|
|
|
|
|
2002-03-13 22:51:48 +08:00
|
|
|
#include "widgets/widgets-enums.h"
|
2001-12-08 01:39:51 +08:00
|
|
|
|
2001-05-09 03:46:57 +08:00
|
|
|
|
2001-05-04 06:19:17 +08:00
|
|
|
/* non-widget objects */
|
|
|
|
|
2003-03-04 01:19:30 +08:00
|
|
|
typedef struct _GimpDeviceInfo GimpDeviceInfo;
|
|
|
|
typedef struct _GimpDialogFactory GimpDialogFactory;
|
|
|
|
typedef struct _GimpItemFactory GimpItemFactory;
|
|
|
|
typedef struct _GimpMenuFactory GimpMenuFactory;
|
|
|
|
|
2003-03-13 03:02:51 +08:00
|
|
|
typedef struct _GimpCellRendererToggle GimpCellRendererToggle;
|
2003-03-04 01:19:30 +08:00
|
|
|
typedef struct _GimpCellRendererViewable GimpCellRendererViewable;
|
|
|
|
|
|
|
|
typedef struct _GimpPreviewRenderer GimpPreviewRenderer;
|
|
|
|
typedef struct _GimpPreviewRendererBrush GimpPreviewRendererBrush;
|
|
|
|
typedef struct _GimpPreviewRendererDrawable GimpPreviewRendererDrawable;
|
2003-03-10 22:07:22 +08:00
|
|
|
typedef struct _GimpPreviewRendererGradient GimpPreviewRendererGradient;
|
2003-03-04 01:19:30 +08:00
|
|
|
typedef struct _GimpPreviewRendererTextLayer GimpPreviewRendererTextLayer;
|
|
|
|
typedef struct _GimpPreviewRendererImage GimpPreviewRendererImage;
|
2001-05-04 06:19:17 +08:00
|
|
|
|
|
|
|
|
|
|
|
/* widgets */
|
|
|
|
|
2001-08-14 21:49:21 +08:00
|
|
|
typedef struct _GimpPreview GimpPreview;
|
2003-02-20 20:47:42 +08:00
|
|
|
typedef struct _GimpBrushPreview GimpBrushPreview;
|
2001-08-14 21:49:21 +08:00
|
|
|
typedef struct _GimpDrawablePreview GimpDrawablePreview;
|
2003-02-20 20:47:42 +08:00
|
|
|
typedef struct _GimpImagePreview GimpImagePreview;
|
2001-08-14 21:49:21 +08:00
|
|
|
typedef struct _GimpNavigationPreview GimpNavigationPreview;
|
|
|
|
|
|
|
|
typedef struct _GimpContainerMenu GimpContainerMenu;
|
|
|
|
typedef struct _GimpContainerMenuImpl GimpContainerMenuImpl;
|
|
|
|
|
|
|
|
typedef struct _GimpMenuItem GimpMenuItem;
|
2002-03-17 22:07:54 +08:00
|
|
|
typedef struct _GimpEnumMenu GimpEnumMenu;
|
2001-08-14 21:49:21 +08:00
|
|
|
|
2002-03-08 08:27:45 +08:00
|
|
|
typedef struct _GimpEditor GimpEditor;
|
2003-07-07 21:37:19 +08:00
|
|
|
typedef struct _GimpDeviceStatus GimpDeviceStatus;
|
2003-06-13 22:37:00 +08:00
|
|
|
typedef struct _GimpErrorConsole GimpErrorConsole;
|
2003-02-20 23:40:15 +08:00
|
|
|
typedef struct _GimpImageEditor GimpImageEditor;
|
2002-11-05 08:02:56 +08:00
|
|
|
typedef struct _GimpColorEditor GimpColorEditor;
|
2002-03-17 01:58:19 +08:00
|
|
|
typedef struct _GimpColormapEditor GimpColormapEditor;
|
2003-03-13 01:12:01 +08:00
|
|
|
typedef struct _GimpComponentEditor GimpComponentEditor;
|
2002-03-08 08:27:45 +08:00
|
|
|
typedef struct _GimpDataEditor GimpDataEditor;
|
|
|
|
typedef struct _GimpBrushEditor GimpBrushEditor;
|
|
|
|
typedef struct _GimpGradientEditor GimpGradientEditor;
|
|
|
|
typedef struct _GimpPaletteEditor GimpPaletteEditor;
|
2002-08-22 20:49:01 +08:00
|
|
|
typedef struct _GimpSelectionEditor GimpSelectionEditor;
|
2003-04-11 21:17:23 +08:00
|
|
|
typedef struct _GimpTemplateEditor GimpTemplateEditor;
|
2003-02-20 20:47:42 +08:00
|
|
|
typedef struct _GimpUndoEditor GimpUndoEditor;
|
2002-03-08 08:27:45 +08:00
|
|
|
|
2001-08-14 21:49:21 +08:00
|
|
|
typedef struct _GimpContainerView GimpContainerView;
|
|
|
|
typedef struct _GimpContainerGridView GimpContainerGridView;
|
2003-02-22 03:03:19 +08:00
|
|
|
typedef struct _GimpContainerTreeView GimpContainerTreeView;
|
2001-08-14 21:49:21 +08:00
|
|
|
|
2003-03-16 19:14:29 +08:00
|
|
|
typedef struct _GimpItemTreeView GimpItemTreeView;
|
|
|
|
typedef struct _GimpDrawableTreeView GimpDrawableTreeView;
|
|
|
|
typedef struct _GimpLayerTreeView GimpLayerTreeView;
|
|
|
|
typedef struct _GimpChannelTreeView GimpChannelTreeView;
|
|
|
|
typedef struct _GimpVectorsTreeView GimpVectorsTreeView;
|
|
|
|
|
2001-08-14 21:49:21 +08:00
|
|
|
typedef struct _GimpContainerEditor GimpContainerEditor;
|
|
|
|
typedef struct _GimpBufferView GimpBufferView;
|
2001-10-23 01:27:46 +08:00
|
|
|
typedef struct _GimpDocumentView GimpDocumentView;
|
2002-05-08 20:39:01 +08:00
|
|
|
typedef struct _GimpImageView GimpImageView;
|
2003-04-06 19:21:56 +08:00
|
|
|
typedef struct _GimpTemplateView GimpTemplateView;
|
2001-08-14 21:49:21 +08:00
|
|
|
typedef struct _GimpDataFactoryView GimpDataFactoryView;
|
|
|
|
typedef struct _GimpBrushFactoryView GimpBrushFactoryView;
|
|
|
|
|
|
|
|
typedef struct _GimpDock GimpDock;
|
2002-03-15 01:07:02 +08:00
|
|
|
typedef struct _GimpToolbox GimpToolbox;
|
2001-08-14 21:49:21 +08:00
|
|
|
typedef struct _GimpImageDock GimpImageDock;
|
|
|
|
typedef struct _GimpDockable GimpDockable;
|
|
|
|
typedef struct _GimpDockbook GimpDockbook;
|
|
|
|
|
2003-03-23 00:26:11 +08:00
|
|
|
typedef struct _GimpContainerPopup GimpContainerPopup;
|
2003-04-10 18:34:56 +08:00
|
|
|
typedef struct _GimpViewableButton GimpViewableButton;
|
2002-08-31 05:00:42 +08:00
|
|
|
typedef struct _GimpViewableDialog GimpViewableDialog;
|
|
|
|
|
2001-08-14 21:49:21 +08:00
|
|
|
typedef struct _GimpFontSelection GimpFontSelection;
|
|
|
|
typedef struct _GimpFontSelectionDialog GimpFontSelectionDialog;
|
|
|
|
|
2001-10-17 19:33:43 +08:00
|
|
|
typedef struct _GimpHistogramView GimpHistogramView;
|
2002-09-08 01:27:32 +08:00
|
|
|
typedef struct _GimpHistogramBox GimpHistogramBox;
|
2001-05-04 06:19:17 +08:00
|
|
|
|
2003-03-31 23:10:15 +08:00
|
|
|
typedef struct _GimpTextEditor GimpTextEditor;
|
|
|
|
|
2001-05-04 06:19:17 +08:00
|
|
|
|
2003-01-11 01:55:53 +08:00
|
|
|
/* structs */
|
|
|
|
|
|
|
|
typedef struct _GimpItemFactoryEntry GimpItemFactoryEntry;
|
|
|
|
|
|
|
|
|
2001-05-04 06:19:17 +08:00
|
|
|
/* function types */
|
|
|
|
|
2003-06-03 01:57:11 +08:00
|
|
|
typedef void (* GimpItemFactorySetupFunc) (GimpItemFactory *factory);
|
|
|
|
typedef void (* GimpItemFactoryUpdateFunc) (GtkItemFactory *factory,
|
|
|
|
gpointer data);
|
|
|
|
|
2003-07-02 20:03:56 +08:00
|
|
|
typedef void (* GimpMenuPositionFunc) (GtkMenu *menu,
|
|
|
|
gint *x,
|
|
|
|
gint *y,
|
|
|
|
gpointer data);
|
|
|
|
|
2003-06-03 01:57:11 +08:00
|
|
|
typedef void (* GimpStrokeItemFunc) (GimpVectors *vectors);
|
|
|
|
typedef void (* GimpSelectionToVectorsFunc) (GimpImage *gimage,
|
|
|
|
gboolean advanced);
|
2001-05-04 06:19:17 +08:00
|
|
|
|
|
|
|
|
|
|
|
#endif /* __WIDGETS_TYPES_H__ */
|