Gimp/app/tools
Michael Natterer be70105d3b Moved the undo system to the core: Keep GimpUndoStack objects as undo and
2003-02-12  Michael Natterer  <mitch@gimp.org>

	Moved the undo system to the core: Keep GimpUndoStack objects as
	undo and redo stack. Use GimpUndo objects as members of the
	stacks. GimpUndoStack is derived from GimpUndo and keeps undo
	groups, so undo group handling is much simpler than before
	(the whole group is just a single GimpUndo object on the
	stack and not everything between group boundary markers).

	* app/Makefile.am
	* app/undo_types.h: removed.

	* app/config/gimpcoreconfig.[ch]: added "gulong undo_size".
	* app/config/gimprc-blurbs.h: and its blurb.

	* app/core/core-enums.[ch]: added GimpUndoMode and GimpUndoType.

	* app/core/core-types.h: removed UndoType, added GimpUndoAccumulator,
	GimpUndoPopFunc and GimpUndoFreeFunc.

	* app/core/gimpundo.[ch]: do everything the old "Undo" struct did.
	Removed the virtual push() function and added free().

	* app/core/gimpundostack.[ch]: keeps the new undo/redo stacks
	and also acts as undo group.

	* app/core/gimpimage-undo.[ch]: moved the undo apparatus here.

	* app/core/gimpimage.[ch]: removed the old stuff.

	* app/core/gimpmarshal.list: added marshaller needed for GimpUndo.

	* app/undo.[ch]: removed the whole undo mechanism. Only the
	actual undo pushing functions are left.

	* app/undo_history.c
	* app/gui/edit-commands.c
	* app/gui/file-commands.c
	* app/gui/image-menu.c
	* app/gui/preferences-dialog.c
	* app/tools/gimpeditselectiontool.c: changed accordingly.
2003-02-12 17:11:34 +00:00
..
.cvsignore configure.in app/Makefile.am moved all tool sources to app/tools 2001-01-22 01:46:28 +00:00
airbrush_blob.c Makefile.am configure.in added stuff for the new library below. 2001-01-23 23:56:18 +00:00
airbrush_blob.h Update of the Xinput airbrush, fixed some bugs. It's a bit closer to a 1999-11-14 20:49:14 +00:00
gimpairbrushtool.c simplified everything a lot by merging the public GimpContextPropType enum 2003-02-09 17:32:52 +00:00
gimpairbrushtool.h app/tools/gimpairbrushtool.[ch] app/tools/gimpbezierselecttool.[ch] 2002-05-03 11:31:08 +00:00
gimpbezierselecttool.c app/tools/transform_options.[ch] removed... 2003-02-08 21:12:03 +00:00
gimpbezierselecttool.h app/tools/gimpairbrushtool.[ch] app/tools/gimpbezierselecttool.[ch] 2002-05-03 11:31:08 +00:00
gimpblendoptions.c simplified everything a lot by merging the public GimpContextPropType enum 2003-02-09 17:32:52 +00:00
gimpblendoptions.h simplified everything a lot by merging the public GimpContextPropType enum 2003-02-09 17:32:52 +00:00
gimpblendtool.c Added object properties for almost all tool_options values and registered 2003-02-07 17:12:21 +00:00
gimpblendtool.h app/tools/gimpairbrushtool.[ch] app/tools/gimpbezierselecttool.[ch] 2002-05-03 11:31:08 +00:00
gimpbrightnesscontrasttool.c Made GimpToolOptions a GimpContext subclass and objectified all tool 2003-02-05 14:39:40 +00:00
gimpbrightnesscontrasttool.h Color correction tool chopping: 2002-08-26 11:35:56 +00:00
gimpbrushtool.c app/paint/gimpairbrush.c app/paint/gimpclone.c app/paint/gimpconvolve.c 2003-02-05 16:59:04 +00:00
gimpbrushtool.h added back the handler which invalidates the display_title on dirty/clean. 2002-02-15 17:44:05 +00:00
gimpbucketfilloptions.c simplified everything a lot by merging the public GimpContextPropType enum 2003-02-09 17:32:52 +00:00
gimpbucketfilloptions.h simplified everything a lot by merging the public GimpContextPropType enum 2003-02-09 17:32:52 +00:00
gimpbucketfilltool.c Added object properties for almost all tool_options values and registered 2003-02-07 17:12:21 +00:00
gimpbucketfilltool.h app/tools/gimpairbrushtool.[ch] app/tools/gimpbezierselecttool.[ch] 2002-05-03 11:31:08 +00:00
gimpbycolorselecttool.c app/tools/transform_options.[ch] removed... 2003-02-08 21:12:03 +00:00
gimpbycolorselecttool.h bumped version number to 1.3.9 2002-08-22 12:49:01 +00:00
gimpclonetool.c simplified everything a lot by merging the public GimpContextPropType enum 2003-02-09 17:32:52 +00:00
gimpclonetool.h app/tools/gimpairbrushtool.[ch] app/tools/gimpbezierselecttool.[ch] 2002-05-03 11:31:08 +00:00
gimpcolorbalancetool.c Made GimpToolOptions a GimpContext subclass and objectified all tool 2003-02-05 14:39:40 +00:00
gimpcolorbalancetool.h More color correction stuff cleanup: 2002-09-04 15:25:15 +00:00
gimpcolorpickeroptions.c simplified everything a lot by merging the public GimpContextPropType enum 2003-02-09 17:32:52 +00:00
gimpcolorpickeroptions.h simplified everything a lot by merging the public GimpContextPropType enum 2003-02-09 17:32:52 +00:00
gimpcolorpickertool.c app/paint/gimpairbrush.c app/paint/gimpclone.c app/paint/gimpconvolve.c 2003-02-05 16:59:04 +00:00
gimpcolorpickertool.h Made GimpToolOptions a GimpContext subclass and objectified all tool 2003-02-05 14:39:40 +00:00
gimpconvolvetool.c simplified everything a lot by merging the public GimpContextPropType enum 2003-02-09 17:32:52 +00:00
gimpconvolvetool.h app/tools/gimpairbrushtool.[ch] app/tools/gimpbezierselecttool.[ch] 2002-05-03 11:31:08 +00:00
gimpcropoptions.c simplified everything a lot by merging the public GimpContextPropType enum 2003-02-09 17:32:52 +00:00
gimpcropoptions.h simplified everything a lot by merging the public GimpContextPropType enum 2003-02-09 17:32:52 +00:00
gimpcroptool.c Added object properties for almost all tool_options values and registered 2003-02-07 17:12:21 +00:00
gimpcroptool.h GimpViewableDialogs everywhere, cleanup: 2002-09-01 08:44:57 +00:00
gimpcurvestool.c Made GimpToolOptions a GimpContext subclass and objectified all tool 2003-02-05 14:39:40 +00:00
gimpcurvestool.h More color correction stuff cleanup: 2002-09-04 15:25:15 +00:00
gimpdodgeburntool.c simplified everything a lot by merging the public GimpContextPropType enum 2003-02-09 17:32:52 +00:00
gimpdodgeburntool.h app/tools/gimpairbrushtool.[ch] app/tools/gimpbezierselecttool.[ch] 2002-05-03 11:31:08 +00:00
gimpdrawtool.c cleanup, removed unecessary G_OBJECT() casts. Should do the same for 2003-01-05 22:07:10 +00:00
gimpdrawtool.h massive tool plugin changes 2002-03-29 03:50:29 +00:00
gimpeditselectiontool.c Moved the undo system to the core: Keep GimpUndoStack objects as undo and 2003-02-12 17:11:34 +00:00
gimpeditselectiontool.h added enum GimpMotionMode which can be one of { EXACT, HINT, COMPRESS }. 2002-03-19 13:14:25 +00:00
gimpellipseselecttool.c app/tools/transform_options.[ch] removed... 2003-02-08 21:12:03 +00:00
gimpellipseselecttool.h app/tools/gimpairbrushtool.[ch] app/tools/gimpbezierselecttool.[ch] 2002-05-03 11:31:08 +00:00
gimperasertool.c simplified everything a lot by merging the public GimpContextPropType enum 2003-02-09 17:32:52 +00:00
gimperasertool.h app/tools/gimpairbrushtool.[ch] app/tools/gimpbezierselecttool.[ch] 2002-05-03 11:31:08 +00:00
gimpflipoptions.c simplified everything a lot by merging the public GimpContextPropType enum 2003-02-09 17:32:52 +00:00
gimpflipoptions.h simplified everything a lot by merging the public GimpContextPropType enum 2003-02-09 17:32:52 +00:00
gimpfliptool.c Added object properties for almost all tool_options values and registered 2003-02-07 17:12:21 +00:00
gimpfliptool.h app/tools/gimpairbrushtool.[ch] app/tools/gimpbezierselecttool.[ch] 2002-05-03 11:31:08 +00:00
gimpfreeselecttool.c app/tools/transform_options.[ch] removed... 2003-02-08 21:12:03 +00:00
gimpfreeselecttool.h app/tools/gimpairbrushtool.[ch] app/tools/gimpbezierselecttool.[ch] 2002-05-03 11:31:08 +00:00
gimpfuzzyselecttool.c app/tools/transform_options.[ch] removed... 2003-02-08 21:12:03 +00:00
gimpfuzzyselecttool.h removed gdisp->scale, gdisp->dot_for_dot, the scaling marcos and the 2002-06-26 22:16:59 +00:00
gimphistogramtool.c Made GimpToolOptions a GimpContext subclass and objectified all tool 2003-02-05 14:39:40 +00:00
gimphistogramtool.h Histogram cleanup: 2002-09-07 17:27:32 +00:00
gimphuesaturationtool.c Made GimpToolOptions a GimpContext subclass and objectified all tool 2003-02-05 14:39:40 +00:00
gimphuesaturationtool.h Color correction tool chopping: 2002-08-26 11:35:56 +00:00
gimpimagemaptool.c Move away from creating all item_factories statically in menus_init() but 2003-01-10 17:55:53 +00:00
gimpimagemaptool.h GimpViewableDialogs everywhere, cleanup: 2002-09-01 08:44:57 +00:00
gimpinkoptions-gui.c simplified everything a lot by merging the public GimpContextPropType enum 2003-02-09 17:32:52 +00:00
gimpinkoptions-gui.h simplified everything a lot by merging the public GimpContextPropType enum 2003-02-09 17:32:52 +00:00
gimpinkoptions.c simplified everything a lot by merging the public GimpContextPropType enum 2003-02-09 17:32:52 +00:00
gimpinkoptions.h simplified everything a lot by merging the public GimpContextPropType enum 2003-02-09 17:32:52 +00:00
gimpinktool-blob.c added app/display/ and app/plug-in/. Empty for now except for the types 2001-08-17 14:27:31 +00:00
gimpinktool-blob.h Made GimpToolOptions a GimpContext subclass and objectified all tool 2003-02-05 14:39:40 +00:00
gimpinktool.c take the drawable offset into account when painting (spotted by tigert). 2003-02-10 11:38:03 +00:00
gimpinktool.h app/tools/gimpairbrushtool.[ch] app/tools/gimpbezierselecttool.[ch] 2002-05-03 11:31:08 +00:00
gimpiscissorstool.c app/tools/transform_options.[ch] removed... 2003-02-08 21:12:03 +00:00
gimpiscissorstool.h app/tools/gimpairbrushtool.[ch] app/tools/gimpbezierselecttool.[ch] 2002-05-03 11:31:08 +00:00
gimplevelstool.c Made GimpToolOptions a GimpContext subclass and objectified all tool 2003-02-05 14:39:40 +00:00
gimplevelstool.h added the API for level correction using black, gray and white point. 2002-10-15 13:36:28 +00:00
gimpmagnifyoptions.c simplified everything a lot by merging the public GimpContextPropType enum 2003-02-09 17:32:52 +00:00
gimpmagnifyoptions.h simplified everything a lot by merging the public GimpContextPropType enum 2003-02-09 17:32:52 +00:00
gimpmagnifytool.c Added object properties for almost all tool_options values and registered 2003-02-07 17:12:21 +00:00
gimpmagnifytool.h reverted Dave's change since this feature has already been implemented 2002-08-06 10:55:40 +00:00
gimpmeasureoptions.c simplified everything a lot by merging the public GimpContextPropType enum 2003-02-09 17:32:52 +00:00
gimpmeasureoptions.h simplified everything a lot by merging the public GimpContextPropType enum 2003-02-09 17:32:52 +00:00
gimpmeasuretool.c Made GimpToolOptions a GimpContext subclass and objectified all tool 2003-02-05 14:39:40 +00:00
gimpmeasuretool.h app/tools/gimpairbrushtool.[ch] app/tools/gimpbezierselecttool.[ch] 2002-05-03 11:31:08 +00:00
gimpmoveoptions.c simplified everything a lot by merging the public GimpContextPropType enum 2003-02-09 17:32:52 +00:00
gimpmoveoptions.h simplified everything a lot by merging the public GimpContextPropType enum 2003-02-09 17:32:52 +00:00
gimpmovetool.c Added object properties for almost all tool_options values and registered 2003-02-07 17:12:21 +00:00
gimpmovetool.h app/tools/gimpairbrushtool.[ch] app/tools/gimpbezierselecttool.[ch] 2002-05-03 11:31:08 +00:00
gimppaintbrushtool.c Made GimpToolOptions a GimpContext subclass and objectified all tool 2003-02-05 14:39:40 +00:00
gimppaintbrushtool.h app/tools/gimpairbrushtool.[ch] app/tools/gimpbezierselecttool.[ch] 2002-05-03 11:31:08 +00:00
gimppaintoptions-gui.c connect to GimpTransformOptions' "notify" signal and update grid and path 2003-02-10 10:08:01 +00:00
gimppaintoptions-gui.h simplified everything a lot by merging the public GimpContextPropType enum 2003-02-09 17:32:52 +00:00
gimppainttool.c app/paint/gimpairbrush.c app/paint/gimpclone.c app/paint/gimpconvolve.c 2003-02-05 16:59:04 +00:00
gimppainttool.h added back the handler which invalidates the display_title on dirty/clean. 2002-02-15 17:44:05 +00:00
gimppenciltool.c Made GimpToolOptions a GimpContext subclass and objectified all tool 2003-02-05 14:39:40 +00:00
gimppenciltool.h app/tools/gimpairbrushtool.[ch] app/tools/gimpbezierselecttool.[ch] 2002-05-03 11:31:08 +00:00
gimpperspectivetool.c app/tools/transform_options.[ch] removed... 2003-02-08 21:12:03 +00:00
gimpperspectivetool.h app/tools/gimpairbrushtool.[ch] app/tools/gimpbezierselecttool.[ch] 2002-05-03 11:31:08 +00:00
gimpposterizetool.c Made GimpToolOptions a GimpContext subclass and objectified all tool 2003-02-05 14:39:40 +00:00
gimpposterizetool.h Color correction tool chopping: 2002-08-26 11:35:56 +00:00
gimprectselecttool.c app/tools/transform_options.[ch] removed... 2003-02-08 21:12:03 +00:00
gimprectselecttool.h added enum GimpRectSelectMode which can be one of "free", "fixed-size" and 2003-01-06 16:25:04 +00:00
gimpregionselecttool.c app/tools/transform_options.[ch] removed... 2003-02-08 21:12:03 +00:00
gimpregionselecttool.h removed gdisp->scale, gdisp->dot_for_dot, the scaling marcos and the 2002-06-26 22:16:59 +00:00
gimprotatetool.c app/tools/transform_options.[ch] removed... 2003-02-08 21:12:03 +00:00
gimprotatetool.h app/tools/gimpairbrushtool.[ch] app/tools/gimpbezierselecttool.[ch] 2002-05-03 11:31:08 +00:00
gimpscaletool.c app/tools/transform_options.[ch] removed... 2003-02-08 21:12:03 +00:00
gimpscaletool.h app/tools/gimpairbrushtool.[ch] app/tools/gimpbezierselecttool.[ch] 2002-05-03 11:31:08 +00:00
gimpselectionoptions.c connect to GimpTransformOptions' "notify" signal and update grid and path 2003-02-10 10:08:01 +00:00
gimpselectionoptions.h simplified everything a lot by merging the public GimpContextPropType enum 2003-02-09 17:32:52 +00:00
gimpselectiontool.c app/tools/transform_options.[ch] removed... 2003-02-08 21:12:03 +00:00
gimpselectiontool.h bumped version number to 1.3.1. Require Glib/GTK+-1.3.11 and Pango-0.22. 2001-11-22 23:46:13 +00:00
gimpsheartool.c app/tools/transform_options.[ch] removed... 2003-02-08 21:12:03 +00:00
gimpsheartool.h app/tools/gimpairbrushtool.[ch] app/tools/gimpbezierselecttool.[ch] 2002-05-03 11:31:08 +00:00
gimpsmudgetool.c simplified everything a lot by merging the public GimpContextPropType enum 2003-02-09 17:32:52 +00:00
gimpsmudgetool.h app/tools/gimpairbrushtool.[ch] app/tools/gimpbezierselecttool.[ch] 2002-05-03 11:31:08 +00:00
gimpsourcetool.c simplified everything a lot by merging the public GimpContextPropType enum 2003-02-09 17:32:52 +00:00
gimpsourcetool.h app/tools/gimpairbrushtool.[ch] app/tools/gimpbezierselecttool.[ch] 2002-05-03 11:31:08 +00:00
gimptextoptions.c simplified everything a lot by merging the public GimpContextPropType enum 2003-02-09 17:32:52 +00:00
gimptextoptions.h simplified everything a lot by merging the public GimpContextPropType enum 2003-02-09 17:32:52 +00:00
gimptexttool.c added new utility functions gimp_config_connect() and 2003-02-10 14:13:55 +00:00
gimptexttool.h Made GimpToolOptions a GimpContext subclass and objectified all tool 2003-02-05 14:39:40 +00:00
gimpthresholdtool.c Made GimpToolOptions a GimpContext subclass and objectified all tool 2003-02-05 14:39:40 +00:00
gimpthresholdtool.h Histogram cleanup: 2002-09-07 17:27:32 +00:00
gimptool.c bumped the version number to 1.3.12. 2003-01-03 18:01:30 +00:00
gimptoolcontrol.c don't set paused_count to 0. 2003-01-03 13:59:23 +00:00
gimptoolcontrol.h devel-docs/Makefile.am new file documenting the core's include policy. 2002-05-03 12:45:22 +00:00
gimptoolgui.c GimpToolGui 2003-01-30 08:01:32 +00:00
gimptoolgui.h GimpToolGui 2003-01-30 08:01:32 +00:00
gimptoolmodule.c app/tools/gimpairbrushtool.[ch] app/tools/gimpbezierselecttool.[ch] 2002-05-03 11:31:08 +00:00
gimptoolmodule.h app/tools/gimpairbrushtool.[ch] app/tools/gimpbezierselecttool.[ch] 2002-05-03 11:31:08 +00:00
gimptransformoptions.c connect to GimpTransformOptions' "notify" signal and update grid and path 2003-02-10 10:08:01 +00:00
gimptransformoptions.h simplified everything a lot by merging the public GimpContextPropType enum 2003-02-09 17:32:52 +00:00
gimptransformtool.c connect to GimpTransformOptions' "notify" signal and update grid and path 2003-02-10 10:08:01 +00:00
gimptransformtool.h connect to GimpTransformOptions' "notify" signal and update grid and path 2003-02-10 10:08:01 +00:00
gimpvectoroptions.c simplified everything a lot by merging the public GimpContextPropType enum 2003-02-09 17:32:52 +00:00
gimpvectoroptions.h simplified everything a lot by merging the public GimpContextPropType enum 2003-02-09 17:32:52 +00:00
gimpvectortool.c Made GimpToolOptions a GimpContext subclass and objectified all tool 2003-02-05 14:39:40 +00:00
gimpvectortool.h app/tools/gimpairbrushtool.[ch] app/tools/gimpbezierselecttool.[ch] 2002-05-03 11:31:08 +00:00
Makefile.am app/Makefile.am app/path_bezier.[ch] app/path_curves.[ch] 2003-02-12 13:06:13 +00:00
makefile.msc updated 2002-09-06 22:25:19 +00:00
paint_options.c connect to GimpTransformOptions' "notify" signal and update grid and path 2003-02-10 10:08:01 +00:00
paint_options.h simplified everything a lot by merging the public GimpContextPropType enum 2003-02-09 17:32:52 +00:00
tool_manager.c added a "const gchar *extension" parameter to 2003-02-10 11:46:10 +00:00
tool_manager.h added a "const gchar *extension" parameter to 2003-02-10 11:46:10 +00:00
tool_options.c added a "const gchar *extension" parameter to 2003-02-10 11:46:10 +00:00
tool_options.h added a "const gchar *extension" parameter to 2003-02-10 11:46:10 +00:00
tools-types.h Made GimpToolOptions a GimpContext subclass and objectified all tool 2003-02-05 14:39:40 +00:00
tools.c app/Makefile.am app/path_bezier.[ch] app/path_curves.[ch] 2003-02-12 13:06:13 +00:00
tools.h app/Makefile.am removed. 2001-07-07 12:17:23 +00:00