2001-05-03 22:19:17 +00: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 03:48:54 +00: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-28 17:51:06 +00:00
|
|
|
#include "core/core-types.h"
|
|
|
|
|
2002-03-13 14:51:48 +00:00
|
|
|
#include "widgets/widgets-enums.h"
|
2001-12-07 17:39:51 +00:00
|
|
|
|
2001-05-08 19:46:57 +00:00
|
|
|
|
2001-05-03 22:19:17 +00:00
|
|
|
/* non-widget objects */
|
|
|
|
|
2003-03-03 17:19:30 +00:00
|
|
|
typedef struct _GimpDeviceInfo GimpDeviceInfo;
|
|
|
|
typedef struct _GimpDialogFactory GimpDialogFactory;
|
|
|
|
typedef struct _GimpItemFactory GimpItemFactory;
|
|
|
|
typedef struct _GimpMenuFactory GimpMenuFactory;
|
|
|
|
|
2003-03-12 19:02:51 +00:00
|
|
|
typedef struct _GimpCellRendererToggle GimpCellRendererToggle;
|
2003-03-03 17:19:30 +00:00
|
|
|
typedef struct _GimpCellRendererViewable GimpCellRendererViewable;
|
|
|
|
|
|
|
|
typedef struct _GimpPreviewRenderer GimpPreviewRenderer;
|
|
|
|
typedef struct _GimpPreviewRendererBrush GimpPreviewRendererBrush;
|
|
|
|
typedef struct _GimpPreviewRendererDrawable GimpPreviewRendererDrawable;
|
2003-03-10 14:07:22 +00:00
|
|
|
typedef struct _GimpPreviewRendererGradient GimpPreviewRendererGradient;
|
2003-09-06 22:02:12 +00:00
|
|
|
typedef struct _GimpPreviewRendererLayer GimpPreviewRendererLayer;
|
2003-03-03 17:19:30 +00:00
|
|
|
typedef struct _GimpPreviewRendererImage GimpPreviewRendererImage;
|
2003-09-28 04:00:50 +00:00
|
|
|
typedef struct _GimpPreviewRendererVectors GimpPreviewRendererVectors;
|
2001-05-03 22:19:17 +00:00
|
|
|
|
|
|
|
|
|
|
|
/* widgets */
|
|
|
|
|
2001-08-14 13:49:21 +00:00
|
|
|
typedef struct _GimpPreview GimpPreview;
|
|
|
|
typedef struct _GimpNavigationPreview GimpNavigationPreview;
|
|
|
|
|
|
|
|
typedef struct _GimpContainerMenu GimpContainerMenu;
|
|
|
|
typedef struct _GimpContainerMenuImpl GimpContainerMenuImpl;
|
|
|
|
|
|
|
|
typedef struct _GimpMenuItem GimpMenuItem;
|
2002-03-17 14:07:54 +00:00
|
|
|
typedef struct _GimpEnumMenu GimpEnumMenu;
|
2001-08-14 13:49:21 +00:00
|
|
|
|
2002-03-08 00:27:45 +00:00
|
|
|
typedef struct _GimpEditor GimpEditor;
|
2003-07-07 13:37:19 +00:00
|
|
|
typedef struct _GimpDeviceStatus GimpDeviceStatus;
|
2003-06-13 14:37:00 +00:00
|
|
|
typedef struct _GimpErrorConsole GimpErrorConsole;
|
2003-02-20 15:40:15 +00:00
|
|
|
typedef struct _GimpImageEditor GimpImageEditor;
|
2004-02-19 19:56:04 +00:00
|
|
|
typedef struct _GimpColorBar GimpColorBar;
|
2002-11-05 00:02:56 +00:00
|
|
|
typedef struct _GimpColorEditor GimpColorEditor;
|
2002-03-16 17:58:19 +00:00
|
|
|
typedef struct _GimpColormapEditor GimpColormapEditor;
|
2003-03-12 17:12:01 +00:00
|
|
|
typedef struct _GimpComponentEditor GimpComponentEditor;
|
2002-03-08 00:27:45 +00:00
|
|
|
typedef struct _GimpDataEditor GimpDataEditor;
|
|
|
|
typedef struct _GimpBrushEditor GimpBrushEditor;
|
|
|
|
typedef struct _GimpGradientEditor GimpGradientEditor;
|
2003-10-10 14:11:47 +00:00
|
|
|
typedef struct _GimpGridEditor GimpGridEditor;
|
2002-03-08 00:27:45 +00:00
|
|
|
typedef struct _GimpPaletteEditor GimpPaletteEditor;
|
2002-08-22 12:49:01 +00:00
|
|
|
typedef struct _GimpSelectionEditor GimpSelectionEditor;
|
2003-09-26 17:33:49 +00:00
|
|
|
typedef struct _GimpStrokeEditor GimpStrokeEditor;
|
2003-04-11 13:17:23 +00:00
|
|
|
typedef struct _GimpTemplateEditor GimpTemplateEditor;
|
2003-09-29 20:26:09 +00:00
|
|
|
typedef struct _GimpToolOptionsEditor GimpToolOptionsEditor;
|
2003-02-20 12:47:42 +00:00
|
|
|
typedef struct _GimpUndoEditor GimpUndoEditor;
|
2002-03-08 00:27:45 +00:00
|
|
|
|
2001-08-14 13:49:21 +00:00
|
|
|
typedef struct _GimpContainerView GimpContainerView;
|
|
|
|
typedef struct _GimpContainerGridView GimpContainerGridView;
|
2003-02-21 19:03:19 +00:00
|
|
|
typedef struct _GimpContainerTreeView GimpContainerTreeView;
|
2001-08-14 13:49:21 +00:00
|
|
|
|
2003-03-16 11:14:29 +00:00
|
|
|
typedef struct _GimpItemTreeView GimpItemTreeView;
|
|
|
|
typedef struct _GimpDrawableTreeView GimpDrawableTreeView;
|
|
|
|
typedef struct _GimpLayerTreeView GimpLayerTreeView;
|
|
|
|
typedef struct _GimpChannelTreeView GimpChannelTreeView;
|
|
|
|
typedef struct _GimpVectorsTreeView GimpVectorsTreeView;
|
|
|
|
|
2001-08-14 13:49:21 +00:00
|
|
|
typedef struct _GimpContainerEditor GimpContainerEditor;
|
|
|
|
typedef struct _GimpBufferView GimpBufferView;
|
2001-10-22 17:27:46 +00:00
|
|
|
typedef struct _GimpDocumentView GimpDocumentView;
|
2003-10-18 16:23:15 +00:00
|
|
|
typedef struct _GimpFontView GimpFontView;
|
2002-05-08 12:39:01 +00:00
|
|
|
typedef struct _GimpImageView GimpImageView;
|
2003-04-06 11:21:56 +00:00
|
|
|
typedef struct _GimpTemplateView GimpTemplateView;
|
2001-08-14 13:49:21 +00:00
|
|
|
typedef struct _GimpDataFactoryView GimpDataFactoryView;
|
|
|
|
typedef struct _GimpBrushFactoryView GimpBrushFactoryView;
|
|
|
|
|
|
|
|
typedef struct _GimpDock GimpDock;
|
2002-03-14 17:07:02 +00:00
|
|
|
typedef struct _GimpToolbox GimpToolbox;
|
2001-08-14 13:49:21 +00:00
|
|
|
typedef struct _GimpImageDock GimpImageDock;
|
|
|
|
typedef struct _GimpDockable GimpDockable;
|
|
|
|
typedef struct _GimpDockbook GimpDockbook;
|
2003-10-10 21:24:12 +00:00
|
|
|
typedef struct _GimpDocked GimpDocked; /* dummy typedef */
|
2003-10-11 14:30:18 +00:00
|
|
|
typedef struct _GimpDockedInterface GimpDockedInterface;
|
2001-08-14 13:49:21 +00:00
|
|
|
|
2003-03-22 16:26:11 +00:00
|
|
|
typedef struct _GimpContainerPopup GimpContainerPopup;
|
2003-04-10 10:34:56 +00:00
|
|
|
typedef struct _GimpViewableButton GimpViewableButton;
|
2002-08-30 21:00:42 +00:00
|
|
|
typedef struct _GimpViewableDialog GimpViewableDialog;
|
|
|
|
|
2001-10-17 11:33:43 +00:00
|
|
|
typedef struct _GimpHistogramView GimpHistogramView;
|
2002-09-07 17:27:32 +00:00
|
|
|
typedef struct _GimpHistogramBox GimpHistogramBox;
|
2003-11-01 02:39:34 +00:00
|
|
|
typedef struct _GimpHistogramEditor GimpHistogramEditor;
|
2001-05-03 22:19:17 +00:00
|
|
|
|
2003-12-27 19:25:19 +00:00
|
|
|
typedef struct _GimpDashEditor GimpDashEditor;
|
|
|
|
|
2003-03-31 15:10:15 +00:00
|
|
|
typedef struct _GimpTextEditor GimpTextEditor;
|
2003-11-22 15:54:12 +00:00
|
|
|
typedef struct _GimpColorDisplayEditor GimpColorDisplayEditor;
|
2003-03-31 15:10:15 +00:00
|
|
|
|
2001-05-03 22:19:17 +00:00
|
|
|
|
2003-01-10 17:55:53 +00:00
|
|
|
/* structs */
|
|
|
|
|
|
|
|
typedef struct _GimpItemFactoryEntry GimpItemFactoryEntry;
|
2003-10-10 15:59:12 +00:00
|
|
|
typedef struct _GimpDialogFactoryEntry GimpDialogFactoryEntry;
|
|
|
|
typedef struct _GimpSessionInfo GimpSessionInfo;
|
|
|
|
typedef struct _GimpSessionInfoBook GimpSessionInfoBook;
|
|
|
|
typedef struct _GimpSessionInfoDockable GimpSessionInfoDockable;
|
2003-10-11 16:50:35 +00:00
|
|
|
typedef struct _GimpSessionInfoAux GimpSessionInfoAux;
|
2003-01-10 17:55:53 +00:00
|
|
|
|
|
|
|
|
2001-05-03 22:19:17 +00:00
|
|
|
/* function types */
|
|
|
|
|
2003-06-02 17:57:11 +00:00
|
|
|
typedef void (* GimpItemFactorySetupFunc) (GimpItemFactory *factory);
|
|
|
|
typedef void (* GimpItemFactoryUpdateFunc) (GtkItemFactory *factory,
|
|
|
|
gpointer data);
|
|
|
|
|
2003-07-02 12:03:56 +00:00
|
|
|
typedef void (* GimpMenuPositionFunc) (GtkMenu *menu,
|
|
|
|
gint *x,
|
|
|
|
gint *y,
|
|
|
|
gpointer data);
|
|
|
|
|
2003-11-08 15:32:38 +00:00
|
|
|
typedef void (* GimpStrokeItemFunc) (GimpItem *item,
|
|
|
|
GtkWidget *parent);
|
2003-06-02 17:57:11 +00:00
|
|
|
typedef void (* GimpSelectionToVectorsFunc) (GimpImage *gimage,
|
|
|
|
gboolean advanced);
|
2001-05-03 22:19:17 +00:00
|
|
|
|
|
|
|
|
|
|
|
#endif /* __WIDGETS_TYPES_H__ */
|