Gimp/app/core
Michael Natterer 6d2a6d5efa Abstract the legacy projection code away into a virtual function of
2008-11-08  Michael Natterer  <mitch@gimp.org>

	Abstract the legacy projection code away into a virtual function
	of GimpDrawable:

	* app/core/gimpdrawable.[ch]: add new virtual function
	GimpDrawable::project_region() which projects an area of a
	drawable onto a passed in PixelRegion.

	* app/core/Makefile.am
	* app/core/gimpchannel-project.[ch]
	* app/core/gimplayer-project.[ch]: new files which implement it.

	* app/core/gimpchannel.c
	* app/core/gimplayer.c: hook it in.

	* app/core/gimpprojection-construct.c: get rid all the projection
	code moved to above new files and project all drawables in one
	loop.

	* app/core/gimpprojectable.[ch]: remove the legacy methods
	get_colormap() and get_components(), they are not needed any
	longer.

	* app/core/gimpimage.c: changed accordingly.


svn path=/trunk/; revision=27571
2008-11-08 00:16:40 +00:00
..
core-enums.c use NC_() to mark enum values for translation. Use a lower-case short form 2008-11-06 08:28:28 +00:00
core-enums.h rename GimpStrokeStyle to GimpFillStyle. 2008-10-23 21:30:28 +00:00
core-types.h app/core/Makefile.am app/core/core-types.h new GimpList subclass which 2008-11-06 19:09:59 +00:00
gimp-contexts.c
gimp-contexts.h
gimp-edit.c app/core/gimp-edit.c app/core/gimpchannel.c 2008-11-03 21:17:50 +00:00
gimp-edit.h
gimp-gradients.c
gimp-gradients.h
gimp-gui.c Add GEGL_CFLAGS and #includes as if gimpdrawable.h and gimpimage.h had a 2008-10-09 20:24:04 +00:00
gimp-gui.h
gimp-modules.c bumped minimum required version of GLib to 2.18.0. 2008-11-04 12:33:09 +00:00
gimp-modules.h
gimp-parasites.c bumped minimum required version of GLib to 2.18.0. 2008-11-04 12:33:09 +00:00
gimp-parasites.h
gimp-templates.c bumped minimum required version of GLib to 2.18.0. 2008-11-04 12:33:09 +00:00
gimp-templates.h
gimp-transform-region.c Rename the convenient channel offset defines from FOO_PIX to FOO as this 2008-10-19 13:47:09 +00:00
gimp-transform-region.h
gimp-transform-resize.c
gimp-transform-resize.h
gimp-transform-utils.c
gimp-transform-utils.h
gimp-units.c bumped minimum required version of GLib to 2.18.0. 2008-11-04 12:33:09 +00:00
gimp-units.h
gimp-user-install.c use GIMP_MINOR_VERSION to determine the version to migrate from. 2008-10-09 13:24:50 +00:00
gimp-user-install.h
gimp-utils.c
gimp-utils.h
gimp.c bumped minimum required version of GLib to 2.18.0. 2008-11-04 12:33:09 +00:00
gimp.h bumped minimum required version of GLib to 2.18.0. 2008-11-04 12:33:09 +00:00
gimparea.c
gimparea.h
gimpbrush-header.h
gimpbrush-load.c
gimpbrush-load.h
gimpbrush-scale.c
gimpbrush-scale.h
gimpbrush.c
gimpbrush.h
gimpbrushclipboard.c Add GEGL_CFLAGS and #includes as if gimpdrawable.h and gimpimage.h had a 2008-10-09 20:24:04 +00:00
gimpbrushclipboard.h
gimpbrushgenerated-load.c
gimpbrushgenerated-load.h
gimpbrushgenerated-save.c
gimpbrushgenerated-save.h
gimpbrushgenerated.c
gimpbrushgenerated.h
gimpbrushpipe-load.c
gimpbrushpipe-load.h
gimpbrushpipe.c
gimpbrushpipe.h
gimpbuffer.c
gimpbuffer.h
gimpchannel-combine.c renamed gimp_item_width() to gimp_item_get_width() and gimp_item_height() 2008-11-03 00:09:01 +00:00
gimpchannel-combine.h
gimpchannel-project.c Abstract the legacy projection code away into a virtual function of 2008-11-08 00:16:40 +00:00
gimpchannel-project.h Abstract the legacy projection code away into a virtual function of 2008-11-08 00:16:40 +00:00
gimpchannel-select.c renamed gimp_item_width() to gimp_item_get_width() and gimp_item_height() 2008-11-03 00:09:01 +00:00
gimpchannel-select.h
gimpchannel.c Abstract the legacy projection code away into a virtual function of 2008-11-08 00:16:40 +00:00
gimpchannel.h add a default implementation of GimpDrawable::get_node() which contains a 2008-10-14 18:32:07 +00:00
gimpchannelpropundo.c Add GEGL_CFLAGS and #includes as if gimpdrawable.h and gimpimage.h had a 2008-10-09 20:24:04 +00:00
gimpchannelpropundo.h
gimpchannelundo.c Add GEGL_CFLAGS and #includes as if gimpdrawable.h and gimpimage.h had a 2008-10-09 20:24:04 +00:00
gimpchannelundo.h
gimpcontainer-filter.c bumped minimum required version of GLib to 2.18.0. 2008-11-04 12:33:09 +00:00
gimpcontainer-filter.h
gimpcontainer.c Fix old bug in the GimpContainer implementation that wasn't visible before 2008-10-11 10:14:21 +00:00
gimpcontainer.h
gimpcontext.c bail out if the notification is not about one of our own properties (but 2008-10-25 09:14:16 +00:00
gimpcontext.h
gimpcoords-interpolate.c Applied patch from Alexia Death as attached to bug #471344: 2008-10-18 18:46:15 +00:00
gimpcoords-interpolate.h Applied patch from Alexia Death as attached to bug #471344: 2008-10-18 18:46:15 +00:00
gimpcoords.c
gimpcoords.h
gimpcurve-load.c
gimpcurve-load.h
gimpcurve-map.c
gimpcurve-map.h
gimpcurve-save.c
gimpcurve-save.h
gimpcurve.c when saving a curve of type GIMP_CURVE_FREE, don't use 2008-10-09 09:44:08 +00:00
gimpcurve.h
gimpdashpattern.c
gimpdashpattern.h
gimpdata.c
gimpdata.h
gimpdatafactory.c
gimpdatafactory.h
gimpdocumentlist.c
gimpdocumentlist.h
gimpdrawable-blend.c renamed gimp_item_offsets() to gimp_item_get_offset() and 2008-11-02 23:03:29 +00:00
gimpdrawable-blend.h
gimpdrawable-brightness-contrast.c configure.in require GEGL >= 0.0.21. 2008-10-14 22:44:42 +00:00
gimpdrawable-brightness-contrast.h
gimpdrawable-bucket-fill.c bumped minimum required version of GLib to 2.18.0. 2008-11-04 12:33:09 +00:00
gimpdrawable-bucket-fill.h
gimpdrawable-color-balance.c Prefix the GIMP GEGL operations with "gimp:" instead of "gimp-" so we 2008-11-01 12:08:35 +00:00
gimpdrawable-color-balance.h
gimpdrawable-colorize.c Prefix the GIMP GEGL operations with "gimp:" instead of "gimp-" so we 2008-11-01 12:08:35 +00:00
gimpdrawable-colorize.h
gimpdrawable-combine.c renamed gimp_item_width() to gimp_item_get_width() and gimp_item_height() 2008-11-03 00:09:01 +00:00
gimpdrawable-combine.h
gimpdrawable-convert.c renamed gimp_item_width() to gimp_item_get_width() and gimp_item_height() 2008-11-03 00:09:01 +00:00
gimpdrawable-convert.h
gimpdrawable-curves.c Prefix the GIMP GEGL operations with "gimp:" instead of "gimp-" so we 2008-11-01 12:08:35 +00:00
gimpdrawable-curves.h
gimpdrawable-desaturate.c Prefix the GIMP GEGL operations with "gimp:" instead of "gimp-" so we 2008-11-01 12:08:35 +00:00
gimpdrawable-desaturate.h
gimpdrawable-equalize.c Add GEGL_CFLAGS and #includes as if gimpdrawable.h and gimpimage.h had a 2008-10-09 20:24:04 +00:00
gimpdrawable-equalize.h
gimpdrawable-foreground-extract.c renamed gimp_item_width() to gimp_item_get_width() and gimp_item_height() 2008-11-03 00:09:01 +00:00
gimpdrawable-foreground-extract.h
gimpdrawable-histogram.c renamed gimp_item_offsets() to gimp_item_get_offset() and 2008-11-02 23:03:29 +00:00
gimpdrawable-histogram.h
gimpdrawable-hue-saturation.c Prefix the GIMP GEGL operations with "gimp:" instead of "gimp-" so we 2008-11-01 12:08:35 +00:00
gimpdrawable-hue-saturation.h
gimpdrawable-invert.c configure.in require GEGL >= 0.0.21. 2008-10-14 22:44:42 +00:00
gimpdrawable-invert.h
gimpdrawable-levels.c Prefix the GIMP GEGL operations with "gimp:" instead of "gimp-" so we 2008-11-01 12:08:35 +00:00
gimpdrawable-levels.h
gimpdrawable-offset.c add "GimpImageType type" parameter because there are only a few calls to 2008-11-03 20:51:46 +00:00
gimpdrawable-offset.h
gimpdrawable-operation.c Prefix the GIMP GEGL operations with "gimp:" instead of "gimp-" so we 2008-11-01 12:08:35 +00:00
gimpdrawable-operation.h
gimpdrawable-posterize.c Prefix the GIMP GEGL operations with "gimp:" instead of "gimp-" so we 2008-11-01 12:08:35 +00:00
gimpdrawable-posterize.h
gimpdrawable-preview.c renamed gimp_item_width() to gimp_item_get_width() and gimp_item_height() 2008-11-03 00:09:01 +00:00
gimpdrawable-preview.h
gimpdrawable-process.c Add GEGL_CFLAGS and #includes as if gimpdrawable.h and gimpimage.h had a 2008-10-09 20:24:04 +00:00
gimpdrawable-process.h
gimpdrawable-shadow.c renamed gimp_item_width() to gimp_item_get_width() and gimp_item_height() 2008-11-03 00:09:01 +00:00
gimpdrawable-shadow.h
gimpdrawable-stroke.c renamed gimp_item_width() to gimp_item_get_width() and gimp_item_height() 2008-11-03 00:09:01 +00:00
gimpdrawable-stroke.h Merge a modified and enhanced patch from the vector layer branch: 2008-10-25 13:12:48 +00:00
gimpdrawable-threshold.c Prefix the GIMP GEGL operations with "gimp:" instead of "gimp-" so we 2008-11-01 12:08:35 +00:00
gimpdrawable-threshold.h
gimpdrawable-transform.c app/core/gimp-edit.c app/core/gimpchannel.c 2008-11-03 21:17:50 +00:00
gimpdrawable-transform.h
gimpdrawable.c Abstract the legacy projection code away into a virtual function of 2008-11-08 00:16:40 +00:00
gimpdrawable.h Abstract the legacy projection code away into a virtual function of 2008-11-08 00:16:40 +00:00
gimpdrawablemodundo.c app/core/gimp-edit.c app/core/gimpchannel.c 2008-11-03 21:17:50 +00:00
gimpdrawablemodundo.h
gimpdrawablestack.c move the invalidate_previews() API from here... 2008-11-06 19:44:51 +00:00
gimpdrawablestack.h move the invalidate_previews() API from here... 2008-11-06 19:44:51 +00:00
gimpdrawableundo.c Add GEGL_CFLAGS and #includes as if gimpdrawable.h and gimpimage.h had a 2008-10-09 20:24:04 +00:00
gimpdrawableundo.h
gimpfilloptions.c add "gboolean use_context_color" parameter to gimp_stroke_options_new() 2008-10-25 08:52:20 +00:00
gimpfilloptions.h add "gboolean use_context_color" parameter to gimp_stroke_options_new() 2008-10-25 08:52:20 +00:00
gimpfloatingselundo.c renamed gimp_item_width() to gimp_item_get_width() and gimp_item_height() 2008-11-03 00:09:01 +00:00
gimpfloatingselundo.h
gimpgradient-load.c
gimpgradient-load.h
gimpgradient-save.c
gimpgradient-save.h
gimpgradient.c
gimpgradient.h
gimpgrid.c
gimpgrid.h
gimpguide.c
gimpguide.h
gimpguideundo.c Add GEGL_CFLAGS and #includes as if gimpdrawable.h and gimpimage.h had a 2008-10-09 20:24:04 +00:00
gimpguideundo.h
gimpimage-arrange.c renamed gimp_item_width() to gimp_item_get_width() and gimp_item_height() 2008-11-03 00:09:01 +00:00
gimpimage-arrange.h
gimpimage-colorhash.c Add GEGL_CFLAGS and #includes as if gimpdrawable.h and gimpimage.h had a 2008-10-09 20:24:04 +00:00
gimpimage-colorhash.h
gimpimage-colormap.c Add GEGL_CFLAGS and #includes as if gimpdrawable.h and gimpimage.h had a 2008-10-09 20:24:04 +00:00
gimpimage-colormap.h
gimpimage-contiguous-region.c renamed gimp_item_width() to gimp_item_get_width() and gimp_item_height() 2008-11-03 00:09:01 +00:00
gimpimage-contiguous-region.h
gimpimage-convert-data.h
gimpimage-convert-fsdither.h
gimpimage-convert.c remove call to gimp_image_invalidate_layer_previews(), they are 2008-11-05 20:38:30 +00:00
gimpimage-convert.h
gimpimage-crop.c renamed gimp_item_width() to gimp_item_get_width() and gimp_item_height() 2008-11-03 00:09:01 +00:00
gimpimage-crop.h
gimpimage-duplicate.c add new functions gimp_image_get_layer_iter(), channel_iter() and 2008-11-02 20:46:57 +00:00
gimpimage-duplicate.h
gimpimage-flip.c add new functions gimp_image_get_layer_iter(), channel_iter() and 2008-11-02 20:46:57 +00:00
gimpimage-flip.h
gimpimage-grid.c Add GEGL_CFLAGS and #includes as if gimpdrawable.h and gimpimage.h had a 2008-10-09 20:24:04 +00:00
gimpimage-grid.h
gimpimage-guides.c Add GEGL_CFLAGS and #includes as if gimpdrawable.h and gimpimage.h had a 2008-10-09 20:24:04 +00:00
gimpimage-guides.h
gimpimage-item-list.c add new functions gimp_image_get_layer_iter(), channel_iter() and 2008-11-02 20:46:57 +00:00
gimpimage-item-list.h
gimpimage-merge.c bumped minimum required version of GLib to 2.18.0. 2008-11-04 12:33:09 +00:00
gimpimage-merge.h
gimpimage-new.c Add GEGL_CFLAGS and #includes as if gimpdrawable.h and gimpimage.h had a 2008-10-09 20:24:04 +00:00
gimpimage-new.h
gimpimage-pick-color.c renamed gimp_item_offsets() to gimp_item_get_offset() and 2008-11-02 23:03:29 +00:00
gimpimage-pick-color.h
gimpimage-preview.c Add GEGL_CFLAGS and #includes as if gimpdrawable.h and gimpimage.h had a 2008-10-09 20:24:04 +00:00
gimpimage-preview.h
gimpimage-quick-mask.c Add GEGL_CFLAGS and #includes as if gimpdrawable.h and gimpimage.h had a 2008-10-09 20:24:04 +00:00
gimpimage-quick-mask.h
gimpimage-resize.c renamed gimp_item_width() to gimp_item_get_width() and gimp_item_height() 2008-11-03 00:09:01 +00:00
gimpimage-resize.h
gimpimage-rotate.c renamed gimp_item_width() to gimp_item_get_width() and gimp_item_height() 2008-11-03 00:09:01 +00:00
gimpimage-rotate.h
gimpimage-sample-points.c Add GEGL_CFLAGS and #includes as if gimpdrawable.h and gimpimage.h had a 2008-10-09 20:24:04 +00:00
gimpimage-sample-points.h
gimpimage-scale.c renamed gimp_item_width() to gimp_item_get_width() and gimp_item_height() 2008-11-03 00:09:01 +00:00
gimpimage-scale.h
gimpimage-snap.c Add GEGL_CFLAGS and #includes as if gimpdrawable.h and gimpimage.h had a 2008-10-09 20:24:04 +00:00
gimpimage-snap.h
gimpimage-undo-push.c renamed gimp_item_width() to gimp_item_get_width() and gimp_item_height() 2008-11-03 00:09:01 +00:00
gimpimage-undo-push.h
gimpimage-undo.c Add GEGL_CFLAGS and #includes as if gimpdrawable.h and gimpimage.h had a 2008-10-09 20:24:04 +00:00
gimpimage-undo.h
gimpimage.c Abstract the legacy projection code away into a virtual function of 2008-11-08 00:16:40 +00:00
gimpimage.h add new function gimp_drawable_stack_invalidate_previews() which does just 2008-11-05 20:48:59 +00:00
gimpimagefile.c bumped minimum required version of GLib to 2.18.0. 2008-11-04 12:33:09 +00:00
gimpimagefile.h
gimpimagemap.c renamed gimp_item_width() to gimp_item_get_width() and gimp_item_height() 2008-11-03 00:09:01 +00:00
gimpimagemap.h
gimpimagemapconfig.c
gimpimagemapconfig.h
gimpimageundo.c Add GEGL_CFLAGS and #includes as if gimpdrawable.h and gimpimage.h had a 2008-10-09 20:24:04 +00:00
gimpimageundo.h
gimpitem-linked.c Add GEGL_CFLAGS and #includes as if gimpdrawable.h and gimpimage.h had a 2008-10-09 20:24:04 +00:00
gimpitem-linked.h
gimpitem-preview.c renamed gimp_item_width() to gimp_item_get_width() and gimp_item_height() 2008-11-03 00:09:01 +00:00
gimpitem-preview.h
gimpitem.c renamed gimp_item_width() to gimp_item_get_width() and gimp_item_height() 2008-11-03 00:09:01 +00:00
gimpitem.h renamed gimp_item_width() to gimp_item_get_width() and gimp_item_height() 2008-11-03 00:09:01 +00:00
gimpitempropundo.c renamed gimp_item_offsets() to gimp_item_get_offset() and 2008-11-02 23:03:29 +00:00
gimpitempropundo.h
gimpitemstack.c move the invalidate_previews() API from here... 2008-11-06 19:44:51 +00:00
gimpitemstack.h move the invalidate_previews() API from here... 2008-11-06 19:44:51 +00:00
gimpitemundo.c Add GEGL_CFLAGS and #includes as if gimpdrawable.h and gimpimage.h had a 2008-10-09 20:24:04 +00:00
gimpitemundo.h
gimplayer-floating-sel.c bumped minimum required version of GLib to 2.18.0. 2008-11-04 12:33:09 +00:00
gimplayer-floating-sel.h
gimplayer-project.c Abstract the legacy projection code away into a virtual function of 2008-11-08 00:16:40 +00:00
gimplayer-project.h Abstract the legacy projection code away into a virtual function of 2008-11-08 00:16:40 +00:00
gimplayer.c Abstract the legacy projection code away into a virtual function of 2008-11-08 00:16:40 +00:00
gimplayer.h Moved the shift_node from GimpLayer to GimpItem, and call it offset_node. 2008-11-02 22:29:05 +00:00
gimplayermask.c app/core/gimp-edit.c app/core/gimpchannel.c 2008-11-03 21:17:50 +00:00
gimplayermask.h
gimplayermaskpropundo.c Add GEGL_CFLAGS and #includes as if gimpdrawable.h and gimpimage.h had a 2008-10-09 20:24:04 +00:00
gimplayermaskpropundo.h
gimplayermaskundo.c Add GEGL_CFLAGS and #includes as if gimpdrawable.h and gimpimage.h had a 2008-10-09 20:24:04 +00:00
gimplayermaskundo.h
gimplayerpropundo.c Add GEGL_CFLAGS and #includes as if gimpdrawable.h and gimpimage.h had a 2008-10-09 20:24:04 +00:00
gimplayerpropundo.h
gimplayerundo.c Add GEGL_CFLAGS and #includes as if gimpdrawable.h and gimpimage.h had a 2008-10-09 20:24:04 +00:00
gimplayerundo.h
gimplist.c Fix old bug in the GimpContainer implementation that wasn't visible before 2008-10-11 10:14:21 +00:00
gimplist.h
gimpmarshal.list Bug 134956 – Curves tool doesn't save free curves 2008-10-09 15:25:59 +00:00
gimpmaskundo.c renamed gimp_item_width() to gimp_item_get_width() and gimp_item_height() 2008-11-03 00:09:01 +00:00
gimpmaskundo.h
gimpobject.c
gimpobject.h
gimppaintinfo.c
gimppaintinfo.h
gimppalette-import.c renamed gimp_item_width() to gimp_item_get_width() and gimp_item_height() 2008-11-03 00:09:01 +00:00
gimppalette-import.h
gimppalette-load.c improved error handling. Fixes compiler warnings about ignoring the return 2008-11-07 09:32:23 +00:00
gimppalette-load.h
gimppalette-save.c
gimppalette-save.h
gimppalette.c
gimppalette.h
gimpparamspecs-desc.c
gimpparamspecs-desc.h
gimpparamspecs.c Add GEGL_CFLAGS and #includes as if gimpdrawable.h and gimpimage.h had a 2008-10-09 20:24:04 +00:00
gimpparamspecs.h
gimpparasitelist.c
gimpparasitelist.h
gimppattern-header.h
gimppattern-load.c
gimppattern-load.h
gimppattern.c
gimppattern.h
gimppatternclipboard.c Add GEGL_CFLAGS and #includes as if gimpdrawable.h and gimpimage.h had a 2008-10-09 20:24:04 +00:00
gimppatternclipboard.h
gimppdbprogress.c
gimppdbprogress.h
gimppickable.c Rename the convenient channel offset defines from FOO_PIX to FOO as this 2008-10-19 13:47:09 +00:00
gimppickable.h
gimppreviewcache.c
gimppreviewcache.h
gimpprogress.c
gimpprogress.h
gimpprojectable.c Abstract the legacy projection code away into a virtual function of 2008-11-08 00:16:40 +00:00
gimpprojectable.h Abstract the legacy projection code away into a virtual function of 2008-11-08 00:16:40 +00:00
gimpprojection-construct.c Abstract the legacy projection code away into a virtual function of 2008-11-08 00:16:40 +00:00
gimpprojection-construct.h
gimpprojection.c This should remove any image or viewable dependency from the projection 2008-11-05 20:10:51 +00:00
gimpprojection.h Unfinished first step to make the projection independent of GimpImage, 2008-11-04 18:06:36 +00:00
gimpsamplepoint.c
gimpsamplepoint.h
gimpsamplepointundo.c Add GEGL_CFLAGS and #includes as if gimpdrawable.h and gimpimage.h had a 2008-10-09 20:24:04 +00:00
gimpsamplepointundo.h
gimpscanconvert.c bumped minimum required version of Cairo to 1.6.4. 2008-10-31 07:20:07 +00:00
gimpscanconvert.h
gimpselection.c bumped minimum required version of GLib to 2.18.0. 2008-11-04 12:33:09 +00:00
gimpselection.h change member "gboolean stroking" into "gint stroking_count". Add push/pop 2008-10-29 19:55:58 +00:00
gimpstrokeoptions.c add "gboolean use_context_color" parameter to gimp_stroke_options_new() 2008-10-25 08:52:20 +00:00
gimpstrokeoptions.h add "gboolean use_context_color" parameter to gimp_stroke_options_new() 2008-10-25 08:52:20 +00:00
gimpsubprogress.c
gimpsubprogress.h
gimptagged.c
gimptagged.h
gimptemplate.c Add GEGL_CFLAGS and #includes as if gimpdrawable.h and gimpimage.h had a 2008-10-09 20:24:04 +00:00
gimptemplate.h
gimptoolinfo.c
gimptoolinfo.h
gimptooloptions.c
gimptooloptions.h
gimptoolpresets.c
gimptoolpresets.h
gimpundo.c Add GEGL_CFLAGS and #includes as if gimpdrawable.h and gimpimage.h had a 2008-10-09 20:24:04 +00:00
gimpundo.h
gimpundostack.c Add GEGL_CFLAGS and #includes as if gimpdrawable.h and gimpimage.h had a 2008-10-09 20:24:04 +00:00
gimpundostack.h
gimpunit.c
gimpunit.h
gimpviewable.c
gimpviewable.h
Makefile.am Abstract the legacy projection code away into a virtual function of 2008-11-08 00:16:40 +00:00
makefile.msc updated include <string.h> for memcmp() include <string.h> for strcmp() 2008-10-03 19:27:54 +00:00