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 _GimpMenuFactory GimpMenuFactory;
|
|
|
|
|
2004-04-21 07:04:50 +08:00
|
|
|
typedef struct _GimpActionFactory GimpActionFactory;
|
2004-04-16 20:09:46 +08:00
|
|
|
typedef struct _GimpActionGroup GimpActionGroup;
|
2004-05-20 04:56:37 +08:00
|
|
|
typedef struct _GimpAction GimpAction;
|
2004-04-16 20:09:46 +08:00
|
|
|
typedef struct _GimpEnumAction GimpEnumAction;
|
2004-04-27 21:55:26 +08:00
|
|
|
typedef struct _GimpPlugInAction GimpPlugInAction;
|
2004-04-16 20:09:46 +08:00
|
|
|
typedef struct _GimpStringAction GimpStringAction;
|
2004-04-22 00:33:17 +08:00
|
|
|
typedef struct _GimpUIManager GimpUIManager;
|
2004-04-16 20:09:46 +08:00
|
|
|
|
2004-04-18 09:20:26 +08:00
|
|
|
typedef struct _GimpEnumStore GimpEnumStore;
|
2004-05-08 06:16:15 +08:00
|
|
|
typedef struct _GimpUnitStore GimpUnitStore;
|
2004-04-18 09:20:26 +08:00
|
|
|
|
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-09-07 06:02:12 +08:00
|
|
|
typedef struct _GimpPreviewRendererLayer GimpPreviewRendererLayer;
|
2003-03-04 01:19:30 +08:00
|
|
|
typedef struct _GimpPreviewRendererImage GimpPreviewRendererImage;
|
2004-03-03 20:39:19 +08:00
|
|
|
typedef struct _GimpPreviewRendererImagefile GimpPreviewRendererImagefile;
|
2003-09-28 12:00:50 +08:00
|
|
|
typedef struct _GimpPreviewRendererVectors GimpPreviewRendererVectors;
|
2001-05-04 06:19:17 +08:00
|
|
|
|
|
|
|
|
|
|
|
/* widgets */
|
|
|
|
|
2001-08-14 21:49:21 +08:00
|
|
|
typedef struct _GimpPreview GimpPreview;
|
|
|
|
typedef struct _GimpNavigationPreview GimpNavigationPreview;
|
|
|
|
|
2004-04-18 23:12:42 +08:00
|
|
|
typedef struct _GimpEnumComboBox GimpEnumComboBox;
|
2004-05-08 06:16:15 +08:00
|
|
|
typedef struct _GimpUnitComboBox GimpUnitComboBox;
|
2001-08-14 21:49:21 +08:00
|
|
|
|
2002-03-08 08:27:45 +08:00
|
|
|
typedef struct _GimpEditor GimpEditor;
|
2004-05-23 18:04:41 +08:00
|
|
|
typedef struct _GimpColorEditor GimpColorEditor;
|
2003-07-07 21:37:19 +08:00
|
|
|
typedef struct _GimpDeviceStatus GimpDeviceStatus;
|
2003-06-13 22:37:00 +08:00
|
|
|
typedef struct _GimpErrorConsole GimpErrorConsole;
|
2004-05-23 18:04:41 +08:00
|
|
|
typedef struct _GimpToolOptionsEditor GimpToolOptionsEditor;
|
|
|
|
|
2002-03-08 08:27:45 +08:00
|
|
|
typedef struct _GimpDataEditor GimpDataEditor;
|
|
|
|
typedef struct _GimpBrushEditor GimpBrushEditor;
|
|
|
|
typedef struct _GimpGradientEditor GimpGradientEditor;
|
|
|
|
typedef struct _GimpPaletteEditor GimpPaletteEditor;
|
2004-05-23 18:04:41 +08:00
|
|
|
|
|
|
|
typedef struct _GimpImageEditor GimpImageEditor;
|
|
|
|
typedef struct _GimpColormapEditor GimpColormapEditor;
|
|
|
|
typedef struct _GimpComponentEditor GimpComponentEditor;
|
|
|
|
typedef struct _GimpHistogramEditor GimpHistogramEditor;
|
2002-08-22 20:49:01 +08:00
|
|
|
typedef struct _GimpSelectionEditor GimpSelectionEditor;
|
2003-02-20 20:47:42 +08:00
|
|
|
typedef struct _GimpUndoEditor GimpUndoEditor;
|
2002-03-08 08:27:45 +08:00
|
|
|
|
2004-05-11 07:22:39 +08:00
|
|
|
typedef struct _GimpContainerView GimpContainerView; /* dummy typedef */
|
2004-05-10 19:08:51 +08:00
|
|
|
typedef struct _GimpContainerBox GimpContainerBox;
|
2004-05-11 20:13:31 +08:00
|
|
|
typedef struct _GimpContainerComboBox GimpContainerComboBox;
|
2001-08-14 21:49:21 +08:00
|
|
|
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;
|
2003-10-19 00:23:15 +08:00
|
|
|
typedef struct _GimpFontView GimpFontView;
|
2002-05-08 20:39:01 +08:00
|
|
|
typedef struct _GimpImageView GimpImageView;
|
2003-04-06 19:21:56 +08:00
|
|
|
typedef struct _GimpTemplateView GimpTemplateView;
|
2004-05-10 08:41:57 +08:00
|
|
|
typedef struct _GimpToolView GimpToolView;
|
2004-05-23 18:04:41 +08:00
|
|
|
|
2001-08-14 21:49:21 +08:00
|
|
|
typedef struct _GimpDataFactoryView GimpDataFactoryView;
|
|
|
|
typedef struct _GimpBrushFactoryView GimpBrushFactoryView;
|
2004-03-17 22:14:18 +08:00
|
|
|
typedef struct _GimpPatternFactoryView GimpPatternFactoryView;
|
2001-08-14 21:49:21 +08:00
|
|
|
|
|
|
|
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-10-11 05:24:12 +08:00
|
|
|
typedef struct _GimpDocked GimpDocked; /* dummy typedef */
|
2001-08-14 21:49:21 +08:00
|
|
|
|
2004-02-27 22:20:19 +08:00
|
|
|
typedef struct _GimpFileDialog GimpFileDialog;
|
2004-05-23 18:04:41 +08:00
|
|
|
typedef struct _GimpTextEditor GimpTextEditor;
|
2004-05-24 22:51:15 +08:00
|
|
|
typedef struct _GimpViewableDialog GimpToolDialog;
|
2004-05-23 18:04:41 +08:00
|
|
|
typedef struct _GimpViewableDialog GimpViewableDialog;
|
2002-08-31 05:00:42 +08:00
|
|
|
|
2004-05-23 18:04:41 +08:00
|
|
|
typedef struct _GimpContainerPopup GimpContainerPopup;
|
|
|
|
typedef struct _GimpViewableButton GimpViewableButton;
|
2001-05-04 06:19:17 +08:00
|
|
|
|
2004-05-23 18:04:41 +08:00
|
|
|
typedef struct _GimpColorBar GimpColorBar;
|
|
|
|
typedef struct _GimpColorDisplayEditor GimpColorDisplayEditor;
|
2004-05-24 22:51:15 +08:00
|
|
|
typedef struct _GimpColorFrame GimpColorFrame;
|
|
|
|
typedef struct _GimpColorPanel GimpColorPanel;
|
2003-12-28 03:25:19 +08:00
|
|
|
typedef struct _GimpDashEditor GimpDashEditor;
|
2004-05-23 18:04:41 +08:00
|
|
|
typedef struct _GimpGridEditor GimpGridEditor;
|
|
|
|
typedef struct _GimpHistogramBox GimpHistogramBox;
|
|
|
|
typedef struct _GimpHistogramView GimpHistogramView;
|
|
|
|
typedef struct _GimpStrokeEditor GimpStrokeEditor;
|
|
|
|
typedef struct _GimpTemplateEditor GimpTemplateEditor;
|
2004-02-26 21:48:42 +08:00
|
|
|
typedef struct _GimpThumbBox GimpThumbBox;
|
2003-12-28 03:25:19 +08:00
|
|
|
|
2001-05-04 06:19:17 +08:00
|
|
|
|
2003-01-11 01:55:53 +08:00
|
|
|
/* structs */
|
|
|
|
|
2004-04-16 20:09:46 +08:00
|
|
|
typedef struct _GimpActionEntry GimpActionEntry;
|
|
|
|
typedef struct _GimpToggleActionEntry GimpToggleActionEntry;
|
|
|
|
typedef struct _GimpRadioActionEntry GimpRadioActionEntry;
|
|
|
|
typedef struct _GimpEnumActionEntry GimpEnumActionEntry;
|
|
|
|
typedef struct _GimpStringActionEntry GimpStringActionEntry;
|
2004-05-02 16:56:07 +08:00
|
|
|
typedef struct _GimpPlugInActionEntry GimpPlugInActionEntry;
|
2003-10-10 23:59:12 +08:00
|
|
|
typedef struct _GimpDialogFactoryEntry GimpDialogFactoryEntry;
|
|
|
|
typedef struct _GimpSessionInfo GimpSessionInfo;
|
|
|
|
typedef struct _GimpSessionInfoBook GimpSessionInfoBook;
|
|
|
|
typedef struct _GimpSessionInfoDockable GimpSessionInfoDockable;
|
2003-10-12 00:50:35 +08:00
|
|
|
typedef struct _GimpSessionInfoAux GimpSessionInfoAux;
|
2003-01-11 01:55:53 +08:00
|
|
|
|
|
|
|
|
2001-05-04 06:19:17 +08:00
|
|
|
/* function types */
|
|
|
|
|
2004-05-13 02:36:33 +08:00
|
|
|
typedef void (* GimpActionGroupSetupFunc) (GimpActionGroup *group);
|
|
|
|
typedef void (* GimpActionGroupUpdateFunc) (GimpActionGroup *group,
|
|
|
|
gpointer data);
|
|
|
|
|
|
|
|
typedef void (* GimpUIManagerSetupFunc) (GimpUIManager *manager,
|
|
|
|
const gchar *ui_path);
|
|
|
|
|
|
|
|
typedef void (* GimpMenuPositionFunc) (GtkMenu *menu,
|
|
|
|
gint *x,
|
|
|
|
gint *y,
|
|
|
|
gpointer data);
|
2001-05-04 06:19:17 +08:00
|
|
|
|
|
|
|
|
|
|
|
#endif /* __WIDGETS_TYPES_H__ */
|