gimp/app/undo_types.h
Michael Natterer b20880ad38 renamed undo_push_layer_rename() to undo_push_item_rename(), so
2002-02-26  Michael Natterer  <mitch@gimp.org>

	* app/undo.[ch]: renamed undo_push_layer_rename() to
	undo_push_item_rename(), so channel/vectors renaming is undoable.
	Use "gsize" for all undo size variables. Cleanup.

	* app/undo_types.h: s/LAYER_RENAME_UNDO/ITEM_RENAME_UNDO/.

	* app/core/core-types.h: added LAYER_PROPERTIES_UNDO_GROUP.

	* app/core/gimpimage.c: s/Vectors/Path/ in all user-visible strings.

	* app/core/gimpitem.[ch]: cleanup.

	* app/gui/menus.c: s/"New Path"/"New Path..."/, pass
	"vectors_menu_update" to gimp_item_factory_new().

	* app/gui/layers-commands.c: renaming the floating layer
	transforms it into an ordinary layer. Push an undo group around
	around both the "fs_to_layer" and the renaming.

	* app/gui/channels-commands.c
	* app/gui/vectors-commands.c: made renaming undoable, cleanup.

	* app/widgets/gimpitemlistview.c: added an EEKY hack so "Delete"
	is not broken any more for floating selections. Need a better
	solution...
2002-02-26 00:04:55 +00:00

66 lines
1.7 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_TYPES_H__
#define __UNDO_TYPES_H__
/* Undo types which actually do something, unlike the ones in
* core/core-types.h, which are only for pushing groups
*/
typedef enum
{
IMAGE_UNDO = LAST_UNDO_GROUP + 1,
IMAGE_MOD_UNDO,
IMAGE_TYPE_UNDO,
IMAGE_SIZE_UNDO,
IMAGE_RESOLUTION_UNDO,
IMAGE_MASK_UNDO,
IMAGE_QMASK_UNDO,
IMAGE_GUIDE_UNDO,
ITEM_RENAME_UNDO,
LAYER_ADD_UNDO,
LAYER_REMOVE_UNDO,
LAYER_MOD_UNDO,
LAYER_MASK_ADD_UNDO,
LAYER_MASK_REMOVE_UNDO,
LAYER_REPOSITION_UNDO,
LAYER_DISPLACE_UNDO,
CHANNEL_ADD_UNDO,
CHANNEL_REMOVE_UNDO,
CHANNEL_MOD_UNDO,
CHANNEL_REPOSITION_UNDO,
VECTORS_ADD_UNDO,
VECTORS_REMOVE_UNDO,
VECTORS_MOD_UNDO,
VECTORS_REPOSITION_UNDO,
FS_TO_LAYER_UNDO,
FS_RIGOR_UNDO,
FS_RELAX_UNDO,
TRANSFORM_UNDO,
PAINT_UNDO,
PARASITE_ATTACH_UNDO,
PARASITE_REMOVE_UNDO,
CANT_UNDO
} UndoImplType;
#endif /* __UNDO_TYPES_H__ */