mirror of
https://gitlab.gnome.org/GNOME/gimp
synced 2024-10-20 07:57:21 +00:00
11409e97fb
Fri Oct 1 12:46:12 1999 Austin Donnelly <austin@gimp.org> * gimprc.in: comment typo fix, plus add %D* to default image-title-format string, so people get a '*' in the titlebar if their image is dirty. * app/fileops.c: initialise filename before using it. * app/gdisplay.c: empty parameter list () is K&R - should be stronger (void) in ANSI C. * app/gimpdrawable.c: gimp_drawable_{dirty,clean} functions removed - no one uses them anyway. Parasite undo type is proper parasite undo type, not MISC_UNDO. * app/gimpdrawableP.h: drawable dirty bit removed. * app/gimpimage.c: don't change the resolution if there's no difference from the old one. Call gdisplay_shrink_wrap() to re-calculate scale factors and refresh the display on resolution change. Layer undo doesn't have sub-types anymore, uses main UndoType instead. * app/layer.h: Remove LayerUndoType * app/qmask.c: fix qmask undo so it actually works. * app/undo.h: new types for undo_push_layer{,_mask} and undo_push_qmask. * app/undo.c: change way group boundaries are represented: each Undo has a group_boundary boolean set to TRUE if this is the start or the end of a group, and the type of the Undo is the group's type. Within a group, each Undo keeps its own type. This allows pop funcs and free funcs to do type-specific things (eg needed by layer and channel stuff). Don't maintain per-drawable dirty flags anymore. Floating sel to layer and layer rename now uses meaningful undo types. * app/undo_types.h: more specific undo types: LAYER_{ADD,REMOVE}_UNDO, LAYER_MASK_{ADD,REMOVE}_UNDO, LAYER_RENAME_UNDO, and PARASITE_{ATTACH,DETACH}_UNDO. * app/undo_history.c: oops - undo stack was being placed into gtk list in wrong order. * app/edit_selection.c: push more descriptive LAYER_DISPLACE_UNDO rather than MISC_UNDO. * app/layers_dialog.c: better tagging of undo types
79 lines
2 KiB
C
79 lines
2 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 */
|
|
|
|
/* NOTE: If you change this list, please update the textual mapping at
|
|
* the bottom of undo.c as well. */
|
|
typedef enum
|
|
{
|
|
/* Type 0 is special - in the gimpimage structure it means
|
|
* there is no undo group currently being added to. */
|
|
|
|
IMAGE_UNDO = 1,
|
|
IMAGE_MOD_UNDO,
|
|
MASK_UNDO,
|
|
LAYER_DISPLACE_UNDO,
|
|
TRANSFORM_UNDO,
|
|
PAINT_UNDO,
|
|
LAYER_ADD_UNDO,
|
|
LAYER_REMOVE_UNDO,
|
|
LAYER_MOD,
|
|
LAYER_MASK_ADD_UNDO,
|
|
LAYER_MASK_REMOVE_UNDO,
|
|
LAYER_RENAME_UNDO,
|
|
LAYER_POSITION,
|
|
CHANNEL_UNDO,
|
|
CHANNEL_MOD,
|
|
FS_TO_LAYER_UNDO,
|
|
GIMAGE_MOD,
|
|
FS_RIGOR,
|
|
FS_RELAX,
|
|
GUIDE_UNDO, /* 18 */
|
|
|
|
/* Aggregate undo types */
|
|
FLOAT_MASK_UNDO = 20,
|
|
EDIT_PASTE_UNDO,
|
|
EDIT_CUT_UNDO,
|
|
TRANSFORM_CORE_UNDO,
|
|
|
|
PAINT_CORE_UNDO,
|
|
FLOATING_LAYER_UNDO,
|
|
LINKED_LAYER_UNDO,
|
|
LAYER_APPLY_MASK_UNDO,
|
|
LAYER_MERGE_UNDO, /* 28 */
|
|
FS_ANCHOR_UNDO,
|
|
GIMAGE_MOD_UNDO,
|
|
CROP_UNDO,
|
|
LAYER_SCALE_UNDO,
|
|
LAYER_RESIZE_UNDO,
|
|
QMASK_UNDO, /* 34 */
|
|
PARASITE_ATTACH_UNDO,
|
|
PARASITE_REMOVE_UNDO,
|
|
RESOLUTION_UNDO,
|
|
|
|
MISC_UNDO = 100
|
|
} UndoType;
|
|
|
|
|
|
#endif /* __UNDO_TYPES_H__ */
|