2006-12-10 05:33:38 +08:00
|
|
|
/* GIMP - The GNU Image Manipulation Program
|
2001-03-05 09:01:16 +08:00
|
|
|
* Copyright (C) 1995 Spencer Kimball and Peter Mattis
|
|
|
|
*
|
2009-01-18 06:28:01 +08:00
|
|
|
* This program is free software: you can redistribute it and/or modify
|
2001-03-05 09:01:16 +08:00
|
|
|
* it under the terms of the GNU General Public License as published by
|
2009-01-18 06:28:01 +08:00
|
|
|
* the Free Software Foundation; either version 3 of the License, or
|
2001-03-05 09:01:16 +08:00
|
|
|
* (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
|
2009-01-18 06:28:01 +08:00
|
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
2001-03-05 09:01:16 +08:00
|
|
|
*/
|
|
|
|
|
2007-01-29 02:21:39 +08:00
|
|
|
#ifndef __GIMP_IMAGE__UNDO_H__
|
|
|
|
#define __GIMP_IMAGE__UNDO_H__
|
2001-03-05 09:01:16 +08:00
|
|
|
|
|
|
|
|
2006-03-29 01:08:36 +08:00
|
|
|
gboolean gimp_image_undo (GimpImage *image);
|
|
|
|
gboolean gimp_image_redo (GimpImage *image);
|
2004-08-03 22:09:49 +08:00
|
|
|
|
2006-06-13 10:03:44 +08:00
|
|
|
gboolean gimp_image_strong_undo (GimpImage *image);
|
|
|
|
gboolean gimp_image_strong_redo (GimpImage *image);
|
|
|
|
|
2006-03-29 01:08:36 +08:00
|
|
|
void gimp_image_undo_free (GimpImage *image);
|
2004-08-03 22:09:49 +08:00
|
|
|
|
2006-03-29 01:08:36 +08:00
|
|
|
gboolean gimp_image_undo_group_start (GimpImage *image,
|
2004-08-03 22:09:49 +08:00
|
|
|
GimpUndoType undo_type,
|
|
|
|
const gchar *name);
|
2006-03-29 01:08:36 +08:00
|
|
|
gboolean gimp_image_undo_group_end (GimpImage *image);
|
2004-08-03 22:09:49 +08:00
|
|
|
|
2006-03-29 01:08:36 +08:00
|
|
|
GimpUndo * gimp_image_undo_push (GimpImage *image,
|
2004-08-03 22:09:49 +08:00
|
|
|
GType object_type,
|
|
|
|
GimpUndoType undo_type,
|
|
|
|
const gchar *name,
|
|
|
|
GimpDirtyMask dirty_mask,
|
2005-09-28 01:31:32 +08:00
|
|
|
...) G_GNUC_NULL_TERMINATED;
|
2004-08-03 22:09:49 +08:00
|
|
|
|
2006-03-29 01:08:36 +08:00
|
|
|
GimpUndo * gimp_image_undo_can_compress (GimpImage *image,
|
2004-08-03 22:09:49 +08:00
|
|
|
GType object_type,
|
|
|
|
GimpUndoType undo_type);
|
2001-03-05 09:01:16 +08:00
|
|
|
|
2006-10-22 02:46:49 +08:00
|
|
|
GimpUndo * gimp_image_undo_get_fadeable (GimpImage *image);
|
|
|
|
|
2001-03-05 09:01:16 +08:00
|
|
|
|
2007-01-29 02:21:39 +08:00
|
|
|
#endif /* __GIMP_IMAGE__UNDO_H__ */
|