gimp/app/undo.h
jaycox d996031ab0 removed some nonfunctional code.
* app/edit_selection.c: removed some nonfunctional code.

	* app/paint_core.c: remove the alt toggles perfectmouse behaviour.

	* app/paintbrush.c: when ctl (or alt) is held set the fg (or bg) color.

	* app/gimpparasite.[ch]: made char *name parameters const.

	* app/parasitelist.c: removed unused static variable.

	* app/gimpdrawable.c, app/gimpimage.c, app/undo.[ch]: added
 	support for undoing parasite changes.

	* libgimp/gimp.h, libgimp/gimpimage.c: added
 	gimp_undo_push_group_start and gimp_undo_push_group_end

	* libgimp/parasite.[ch]: added undoable flag.

	* plug-ins/gdyntext/font_selection.c: fixed c++ style comment.

	* plug-ins/gdyntext/gdyntext.c: use the new undoable parasites.

	* plug-ins/rcm/rcm_misc.c: arctg can't be inline because it is
 	used in other .c files

	* plug-ins/waterselect/waterselect.c,
	* plug-ins/rotators/rotators.c, app/tips_dialog.c, app/plug_in.c:
 	fixed some warnings
1999-04-23 06:07:09 +00:00

94 lines
3.8 KiB
C

/* The GIMP -- an image manipulation program
* Copyright (C) 1995 Spencer Kimball and Peter Mattis
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (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
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
#ifndef __UNDO_H__
#define __UNDO_H__
#include "gimage.h"
/* Undo types */
#define IMAGE_UNDO 1
#define IMAGE_MOD_UNDO 2
#define MASK_UNDO 3
#define LAYER_DISPLACE_UNDO 4
#define TRANSFORM_UNDO 5
#define PAINT_UNDO 6
#define LAYER_UNDO 7
#define LAYER_MOD 8
#define LAYER_MASK_UNDO 9
#define LAYER_CHANGE 10
#define LAYER_POSITION 11
#define CHANNEL_UNDO 12
#define CHANNEL_MOD 13
#define FS_TO_LAYER_UNDO 14
#define GIMAGE_MOD 15
#define FS_RIGOR 16
#define FS_RELAX 17
#define GUIDE_UNDO 18
/* Aggregate undo types */
#define FLOAT_MASK_UNDO 20
#define EDIT_PASTE_UNDO 21
#define EDIT_CUT_UNDO 22
#define TRANSFORM_CORE_UNDO 23
#define PAINT_CORE_UNDO 24
#define FLOATING_LAYER_UNDO 25
#define LINKED_LAYER_UNDO 26
#define LAYER_APPLY_MASK_UNDO 27
#define LAYER_MERGE_UNDO 28
#define FS_ANCHOR_UNDO 29
#define GIMAGE_MOD_UNDO 30
#define CROP_UNDO 31
#define LAYER_SCALE_UNDO 32
#define LAYER_RESIZE_UNDO 33
#define MISC_UNDO 100
/* Undo interface functions */
int undo_push_group_start (GImage *, int);
int undo_push_group_end (GImage *);
int undo_push_image (GImage *, GimpDrawable *, int, int, int, int);
int undo_push_image_mod (GImage *, GimpDrawable *, int, int, int, int, void *, int);
int undo_push_mask (GImage *, void *);
int undo_push_layer_displace (GImage *, GimpLayer*);
int undo_push_transform (GImage *, void *);
int undo_push_paint (GImage *, void *);
int undo_push_layer (GImage *, void *);
int undo_push_layer_mod (GImage *, void *);
int undo_push_layer_mask (GImage *, void *);
int undo_push_layer_change (GImage *, int);
int undo_push_layer_position (GImage *, int);
int undo_push_channel (GImage *, void *);
int undo_push_channel_mod (GImage *, void *);
int undo_push_fs_to_layer (GImage *, void *);
int undo_push_fs_rigor (GImage *, int);
int undo_push_fs_relax (GImage *, int);
int undo_push_gimage_mod (GImage *);
int undo_push_guide (GImage *, void *);
int undo_push_image_parasite (GImage *, void *);
int undo_push_drawable_parasite (GImage *, GimpDrawable *, void *);
int undo_push_image_parasite_remove (GImage *, const char *);
int undo_push_drawable_parasite_remove (GImage *, GimpDrawable *,
const char *);
int undo_pop (GImage *);
int undo_redo (GImage *);
void undo_free (GImage *);
#endif /* __UNDO_H__ */