Gimp/app/display
Michael Natterer c8b4394d71 Reimplemented the undo history:
2003-02-20  Michael Natterer  <mitch@gimp.org>

	Reimplemented the undo history:

	* app/Makefile.am
	* app/undo_history.[ch]: removed.

	Changes/cleanups to the undo system to enable/simplify the new
	undo history implementation:

	* app/core/core-types.h: removed enum undo_event_t. Removed the
	GimpImage parameter from GimpUndoPopFunc and GimpUndoFreeFunc
	because GimpUndo has a GimpImage pointer now (see below).

	* app/core/core-enums.[ch]: added enum GimpUndoEvent. Added an
	enum value for REDO_EXPIRED.

	* app/core/gimpimage.[ch]: added a GimpUndo pointer to the
	"undo_event" signal which needs to be passed for all events except
	UNDO_FREE.

	* app/display/gimpdisplayshell-handlers.c: changed accordingly.

	* app/core/gimpundo.[ch]: added a GimpImage pointer to the
	GimpUndo struct. Removed GimpImage parameters all over the
	place. Added preview stuff. The preview creation needs to be
	triggered explicitly using gimp_undo_create_preview() because the
	GimpUndo can't know when it's possible to create the preview.

	* app/core/gimpimage-undo-push.c
	* app/paint/gimppaintcore-undo.c
	* app/tools/gimptransformtool-undo.c: changed accordingly, cleanup.

	* app/core/gimpundostack.[ch]: ditto. Return the freed undo from
	gimp_undo_stack_free_bottom(). Removed unused container signal
	handlers.

	* app/core/gimpimage-undo.c: free the redo stack the same way old
	undos are freed (from bottom up). Emit "undo_event" with event ==
	REDO_EXPIRED for each removed redo.

	* app/core/gimpmarshal.list: added new marshallers.

	New undo history implementation:

	* app/widgets/Makefile.am
	* app/widgets/widgets-types.h
	* app/widgets/gimpundoeditor.[ch]
	* app/widgets/gimpundopreview.[ch]: new widgets for the undo
	step previews and the history itself.

	* app/widgets/gimppreview-utils.c: added GimpUndoPreview to the
	list of possible preview types.

	* app/gui/dialogs-constructors.[ch]
	* app/gui/dialogs-menu.c
	* app/gui/dialogs.c
	* app/gui/image-menu.c
	* app/gui/toolbox-menu.c: removed the old and added the new undo
	history to the dialog factory and the various dialog menus.

	* app/widgets/gimpdnd.[ch]: don't warn if a GType has no
	corresponding DND type. Instead, return FALSE from the function
	that failed.

	* app/widgets/gimppreview.c: check the return value of gimpdnd
	functions.  Not only add drag sources but also remove them when no
	longer needed.

	* app/widgets/gimpselectioneditor.h: removed unneeded inclusion of
	"gui/gui-types.h".
2003-02-20 12:47:42 +00:00
..
.cvsignore new function to set the sensitivity of an option_menu. 2002-03-17 16:35:05 +00:00
display-enums.c removed gimp_config_values_equal(). 2002-11-23 22:22:21 +00:00
display-enums.h removed gimp_config_values_equal(). 2002-11-23 22:22:21 +00:00
display-types.h app/Makefile.am removed. 2002-05-07 16:23:14 +00:00
gimpdisplay-area.c Wishlist item #57669: 2001-11-16 15:08:59 +00:00
gimpdisplay-area.h Wishlist item #57669: 2001-11-16 15:08:59 +00:00
gimpdisplay-foreach.c bumped the version number to 1.3.12. 2003-01-03 18:01:30 +00:00
gimpdisplay-foreach.h renamed gdisplays_reconnect() to gimp_displays_reconnect() and added a 2002-12-03 23:00:42 +00:00
gimpdisplay-handlers.c cleanup, removed unecessary G_OBJECT() casts. Should do the same for 2003-01-05 22:07:10 +00:00
gimpdisplay-handlers.h fscking broken pipe... 2001-10-31 21:20:09 +00:00
gimpdisplay.c Move away from creating all item_factories statically in menus_init() but 2003-01-10 17:55:53 +00:00
gimpdisplay.h Move away from creating all item_factories statically in menus_init() but 2003-01-10 17:55:53 +00:00
gimpdisplayshell-callbacks.c fixed the "TAB toggles dialogs" feature. 2003-02-03 15:03:11 +00:00
gimpdisplayshell-callbacks.h removed gimp_config_values_equal(). 2002-11-23 22:22:21 +00:00
gimpdisplayshell-cursor.c bumped the version number to 1.3.12. 2003-01-03 18:01:30 +00:00
gimpdisplayshell-cursor.h bumped the version number to 1.3.12. 2003-01-03 18:01:30 +00:00
gimpdisplayshell-dnd.c Fixed most of the bugs the Script-Fu logo scripts triggered: 2003-02-14 22:33:22 +00:00
gimpdisplayshell-dnd.h build display/ before tools/. 2001-11-08 19:14:51 +00:00
gimpdisplayshell-draw.c Added object properties for almost all tool_options values and registered 2003-02-07 17:12:21 +00:00
gimpdisplayshell-draw.h app/gui/brushes-menu.[ch] app/gui/buffers-menu.[ch] 2003-01-13 14:08:10 +00:00
gimpdisplayshell-filter-dialog.c cleanup, removed unecessary G_OBJECT() casts. Should do the same for 2003-01-05 22:07:10 +00:00
gimpdisplayshell-filter-dialog.h Re-enabled the display filters. They work exactly the same way as before 2002-03-14 22:42:50 +00:00
gimpdisplayshell-filter.c removed the ColorDisplayNode struct entirely. GimpDisplayShell->filters is 2002-10-20 12:22:39 +00:00
gimpdisplayshell-filter.h removed the ColorDisplayNode struct entirely. GimpDisplayShell->filters is 2002-10-20 12:22:39 +00:00
gimpdisplayshell-handlers.c Reimplemented the undo history: 2003-02-20 12:47:42 +00:00
gimpdisplayshell-handlers.h app/Makefile.am removed. 2001-11-10 19:10:28 +00:00
gimpdisplayshell-layer-select.c cleanup, removed unecessary G_OBJECT() casts. Should do the same for 2003-01-05 22:07:10 +00:00
gimpdisplayshell-layer-select.h build display/ before tools/. 2001-11-08 19:14:51 +00:00
gimpdisplayshell-marching-ants.h app/display/gimpdisplay-marching-ants.h removed... 2001-11-10 23:03:22 +00:00
gimpdisplayshell-render.c cleanup, removed unecessary G_OBJECT() casts. Should do the same for 2003-01-05 22:07:10 +00:00
gimpdisplayshell-render.h added tile_cache_init() and tile_cache_exit() as public functions. 2002-11-21 15:46:19 +00:00
gimpdisplayshell-scale.c app/app_procs.c (app_init) delayed the activation of gimprc-autosave so we 2003-01-10 21:15:41 +00:00
gimpdisplayshell-scale.h Fixed #34633 (wheel mouse zooming leaves straigth-line helpline on image) 2002-02-17 11:46:39 +00:00
gimpdisplayshell-scroll.c Finally landed the new GimpConfig based gimprc parser. It's not finished 2002-11-18 20:50:31 +00:00
gimpdisplayshell-scroll.h fscking broken pipe... 2001-10-31 21:20:09 +00:00
gimpdisplayshell-selection.c app/display/gimpdisplayshell-selection.[ch] app/tools/gimpblendtool.c 2003-02-03 23:54:19 +00:00
gimpdisplayshell-selection.h app/display/gimpdisplayshell-selection.[ch] app/tools/gimpblendtool.c 2003-02-03 23:54:19 +00:00
gimpdisplayshell-title.c bumped the version number to 1.3.12. 2003-01-03 18:01:30 +00:00
gimpdisplayshell-title.h bumped the version number to 1.3.12. 2003-01-03 18:01:30 +00:00
gimpdisplayshell-transform.c bumped the version number to 1.3.12. 2003-01-03 18:01:30 +00:00
gimpdisplayshell-transform.h bumped the version number to 1.3.12. 2003-01-03 18:01:30 +00:00
gimpdisplayshell.c Added object properties for almost all tool_options values and registered 2003-02-07 17:12:21 +00:00
gimpdisplayshell.h app/gui/brushes-menu.[ch] app/gui/buffers-menu.[ch] 2003-01-13 14:08:10 +00:00
gimpnavigationeditor.c app/core/gimpchannel.h app/core/gimpitem.c 2003-01-15 03:55:20 +00:00
gimpnavigationeditor.h app/Makefile.am removed. 2002-05-07 16:23:14 +00:00
gimpnavigationview.c app/core/gimpchannel.h app/core/gimpitem.c 2003-01-15 03:55:20 +00:00
gimpnavigationview.h app/Makefile.am removed. 2002-05-07 16:23:14 +00:00
gimpprogress.c cleanup, removed unecessary G_OBJECT() casts. Should do the same for 2003-01-05 22:07:10 +00:00
gimpprogress.h app/Makefile.am removed... 2002-02-22 15:08:47 +00:00
gimpstatusbar.c fixed a compiler warning. 2003-01-09 23:17:36 +00:00
gimpstatusbar.h removed gdisp->scale, gdisp->dot_for_dot, the scaling marcos and the 2002-06-26 22:16:59 +00:00
Makefile.am removed the "truly ugly hack"... 2003-02-03 13:39:55 +00:00
makefile.msc when checking for 'excecutable' make sure it is a regular file too (on 2003-01-01 13:33:27 +00:00