Gimp/app/dialogs
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
..
about-dialog.c app/core/gimpbrushpipe.c plugged some obvious memleaks related to the use 2003-01-26 14:27:53 +00:00
about-dialog.h app/devices.[ch] app/gui/about-dialog.[ch] app/gui/preferences-dialog.[ch] 2001-04-18 16:39:34 +00:00
authors.h fixed stupid bug that caused this plug-in to map to undefined values. 2002-11-05 23:01:04 +00:00
color-dialog.c cleanup, removed unecessary G_OBJECT() casts. Should do the same for 2003-01-05 22:07:10 +00:00
color-dialog.h the color scales from the main color selection as GimpColorSelector 2002-10-28 20:13:17 +00:00
convert-dialog.c cleanup, removed unecessary G_OBJECT() casts. Should do the same for 2003-01-05 22:07:10 +00:00
convert-dialog.h app/Makefile.am removed. new files: the convert functionality without GUI 2001-04-18 17:57:10 +00:00
dialogs-constructors.c Reimplemented the undo history: 2003-02-20 12:47:42 +00:00
dialogs-constructors.h Reimplemented the undo history: 2003-02-20 12:47:42 +00:00
dialogs.c Reimplemented the undo history: 2003-02-20 12:47:42 +00:00
dialogs.h g_strdup() the stock_id passed to gimp_tool_info_new() because the 2002-03-14 17:07:02 +00:00
file-dialog-utils.c removed. 2003-01-31 11:54:16 +00:00
file-dialog-utils.h removed. 2003-01-31 11:54:16 +00:00
file-open-dialog.c Moved the undo step implementations to the core and pass around lots of 2003-02-14 14:14:29 +00:00
file-open-dialog.h Move away from creating all item_factories statically in menus_init() but 2003-01-10 17:55:53 +00:00
file-save-dialog.c removed. 2003-01-31 11:54:16 +00:00
file-save-dialog.h Move away from creating all item_factories statically in menus_init() but 2003-01-10 17:55:53 +00:00
image-new-dialog.c cleanup, removed unecessary G_OBJECT() casts. Should do the same for 2003-01-05 22:07:10 +00:00
image-new-dialog.h Cleanup weekend... 2001-10-29 11:47:11 +00:00
info-dialog.c made labels in the info dialog selectable as suggested in #103991. 2003-01-20 20:07:19 +00:00
info-dialog.h app/gui/file-new-dialog.c app/gui/offset-dialog.c 2002-09-07 16:47:39 +00:00
info-window.c cleanup, removed unecessary G_OBJECT() casts. Should do the same for 2003-01-05 22:07:10 +00:00
info-window.h Cleanup weekend... 2001-10-29 11:47:11 +00:00
module-dialog.c pack the button box non-expanding, removed cruft from the ModuleBrowser 2003-01-29 11:08:51 +00:00
module-dialog.h Cleanup weekend... 2001-10-29 11:47:11 +00:00
offset-dialog.c cleanup, removed unecessary G_OBJECT() casts. Should do the same for 2003-01-05 22:07:10 +00:00
offset-dialog.h use the passed Gimp pointer instead of using "the_gimp". 2001-12-03 17:59:48 +00:00
palette-import-dialog.c cleanup, removed unecessary G_OBJECT() casts. Should do the same for 2003-01-05 22:07:10 +00:00
palette-import-dialog.h added -DGDK_PIXBUF_DISABLE_DEPRECATED to CPPFLAGS. 2001-12-17 23:41:01 +00:00
preferences-dialog.c Moved the undo system to the core: Keep GimpUndoStack objects as undo and 2003-02-12 17:11:34 +00:00
preferences-dialog.h Cleanup weekend... 2001-10-29 11:47:11 +00:00
resize-dialog.c cleanup, removed unecessary G_OBJECT() casts. Should do the same for 2003-01-05 22:07:10 +00:00
resize-dialog.h app/widgets/gimplayerlistview.c some more auto-sizing spinbuttons. 2002-09-08 12:18:23 +00:00
resolution-calibrate-dialog.c cleanup, removed unecessary G_OBJECT() casts. Should do the same for 2003-01-05 22:07:10 +00:00
resolution-calibrate-dialog.h take an optional pixbuf as eye-candy. 2002-02-28 15:11:56 +00:00
tips-dialog.c cleanup, removed unecessary G_OBJECT() casts. Should do the same for 2003-01-05 22:07:10 +00:00
tips-dialog.h Finally landed the new GimpConfig based gimprc parser. It's not finished 2002-11-18 20:50:31 +00:00
tips-parser.c app/gui/tips-dialog.c added support for simple text markup. 2002-02-26 16:55:09 +00:00
tips-parser.h updated 2002-02-25 18:36:03 +00:00
user-install-dialog.c cleanup, removed unecessary G_OBJECT() casts. Should do the same for 2003-01-05 22:07:10 +00:00
user-install-dialog.h added "gboolean verbose" to GimpRc and its constructor. Print messages 2002-11-26 14:54:28 +00:00