2001-12-09 07:12:59 +08:00
|
|
|
/* 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 __CORE_ENUMS_H__
|
|
|
|
#define __CORE_ENUMS_H__
|
|
|
|
|
2001-12-12 02:11:56 +08:00
|
|
|
#if 0
|
2003-04-15 22:20:19 +08:00
|
|
|
This file is parsed by two scripts, enumgen.pl in tools/pdbgen,
|
2003-08-26 05:25:13 +08:00
|
|
|
and gimp-mkenums. All enums that are not marked with
|
2002-03-29 11:50:29 +08:00
|
|
|
/*< pdb-skip >*/ are exported to libgimp and the PDB. Enums that are
|
2003-08-26 05:25:13 +08:00
|
|
|
not marked with /*< skip >*/ are registered with the GType system.
|
|
|
|
If you want the enum to be skipped by both scripts, you have to use
|
|
|
|
/*< pdb-skip, skip >*/.
|
2001-12-09 07:12:59 +08:00
|
|
|
|
2004-01-06 22:02:08 +08:00
|
|
|
The same syntax applies to enum values.
|
2002-03-29 11:50:29 +08:00
|
|
|
#endif
|
2001-12-12 02:11:56 +08:00
|
|
|
|
2003-03-06 21:22:11 +08:00
|
|
|
|
2003-08-26 05:25:13 +08:00
|
|
|
/*
|
2001-12-12 02:11:56 +08:00
|
|
|
* these enums that are registered with the type system
|
|
|
|
*/
|
2001-12-09 07:12:59 +08:00
|
|
|
|
2003-03-06 21:22:11 +08:00
|
|
|
#define GIMP_TYPE_ADD_MASK_TYPE (gimp_add_mask_type_get_type ())
|
2003-02-08 01:12:21 +08:00
|
|
|
|
2003-03-06 21:22:11 +08:00
|
|
|
GType gimp_add_mask_type_get_type (void) G_GNUC_CONST;
|
2003-02-08 01:12:21 +08:00
|
|
|
|
|
|
|
typedef enum
|
|
|
|
{
|
2003-11-26 23:48:50 +08:00
|
|
|
GIMP_ADD_WHITE_MASK, /*< desc="_White (Full Opacity)" >*/
|
|
|
|
GIMP_ADD_BLACK_MASK, /*< desc="_Black (Full Transparency)" >*/
|
|
|
|
GIMP_ADD_ALPHA_MASK, /*< desc="Layer's _Alpha Channel" >*/
|
2003-11-27 00:00:14 +08:00
|
|
|
GIMP_ADD_ALPHA_TRANSFER_MASK, /*< desc="_Transfer Layer's Alpha Channel" >*/
|
2003-11-26 23:48:50 +08:00
|
|
|
GIMP_ADD_SELECTION_MASK, /*< desc="_Selection" >*/
|
|
|
|
GIMP_ADD_COPY_MASK /*< desc="_Grayscale Copy of Layer" >*/
|
2003-03-06 21:22:11 +08:00
|
|
|
} GimpAddMaskType;
|
2003-02-08 01:12:21 +08:00
|
|
|
|
|
|
|
|
2002-03-19 06:26:41 +08:00
|
|
|
#define GIMP_TYPE_BLEND_MODE (gimp_blend_mode_get_type ())
|
2001-12-11 23:58:07 +08:00
|
|
|
|
2002-03-19 06:26:41 +08:00
|
|
|
GType gimp_blend_mode_get_type (void) G_GNUC_CONST;
|
2001-12-11 23:58:07 +08:00
|
|
|
|
|
|
|
typedef enum
|
|
|
|
{
|
2002-03-19 06:26:41 +08:00
|
|
|
GIMP_FG_BG_RGB_MODE, /*< desc="FG to BG (RGB)" >*/
|
|
|
|
GIMP_FG_BG_HSV_MODE, /*< desc="FG to BG (HSV)" >*/
|
|
|
|
GIMP_FG_TRANSPARENT_MODE, /*< desc="FG to Transparent" >*/
|
|
|
|
GIMP_CUSTOM_MODE /*< desc="Custom Gradient" >*/
|
|
|
|
} GimpBlendMode;
|
2001-12-09 07:12:59 +08:00
|
|
|
|
2001-12-12 02:11:56 +08:00
|
|
|
|
2002-03-19 06:26:41 +08:00
|
|
|
#define GIMP_TYPE_BUCKET_FILL_MODE (gimp_bucket_fill_mode_get_type ())
|
2001-12-12 02:11:56 +08:00
|
|
|
|
2002-03-19 06:26:41 +08:00
|
|
|
GType gimp_bucket_fill_mode_get_type (void) G_GNUC_CONST;
|
2002-03-13 22:51:48 +08:00
|
|
|
|
2002-03-19 06:26:41 +08:00
|
|
|
typedef enum
|
2002-03-13 22:51:48 +08:00
|
|
|
{
|
2002-03-19 06:26:41 +08:00
|
|
|
GIMP_FG_BUCKET_FILL, /*< desc="FG Color Fill" >*/
|
|
|
|
GIMP_BG_BUCKET_FILL, /*< desc="BG Color Fill" >*/
|
|
|
|
GIMP_PATTERN_BUCKET_FILL /*< desc="Pattern Fill" >*/
|
|
|
|
} GimpBucketFillMode;
|
2002-03-13 22:51:48 +08:00
|
|
|
|
|
|
|
|
2003-02-13 17:38:39 +08:00
|
|
|
#define GIMP_TYPE_CHANNEL_OPS (gimp_channel_ops_get_type ())
|
|
|
|
|
|
|
|
GType gimp_channel_ops_get_type (void) G_GNUC_CONST;
|
|
|
|
|
|
|
|
typedef enum
|
|
|
|
{
|
|
|
|
GIMP_CHANNEL_OP_ADD, /*< desc="Add to the current selection" >*/
|
|
|
|
GIMP_CHANNEL_OP_SUBTRACT, /*< desc="Subtract from the current selection" >*/
|
|
|
|
GIMP_CHANNEL_OP_REPLACE, /*< desc="Replace the current selection" >*/
|
|
|
|
GIMP_CHANNEL_OP_INTERSECT /*< desc="Intersect with the current selection" >*/
|
|
|
|
} GimpChannelOps;
|
|
|
|
|
|
|
|
|
2002-03-13 22:51:48 +08:00
|
|
|
#define GIMP_TYPE_CHANNEL_TYPE (gimp_channel_type_get_type ())
|
|
|
|
|
|
|
|
GType gimp_channel_type_get_type (void) G_GNUC_CONST;
|
|
|
|
|
|
|
|
typedef enum
|
2001-12-14 04:19:41 +08:00
|
|
|
{
|
2003-03-13 01:12:01 +08:00
|
|
|
GIMP_RED_CHANNEL, /*< desc="Red" >*/
|
|
|
|
GIMP_GREEN_CHANNEL, /*< desc="Green" >*/
|
|
|
|
GIMP_BLUE_CHANNEL, /*< desc="Blue" >*/
|
|
|
|
GIMP_GRAY_CHANNEL, /*< desc="Gray" >*/
|
|
|
|
GIMP_INDEXED_CHANNEL, /*< desc="Indexed" >*/
|
|
|
|
GIMP_ALPHA_CHANNEL /*< desc="Alpha" >*/
|
2001-12-14 04:19:41 +08:00
|
|
|
} GimpChannelType;
|
|
|
|
|
2002-03-13 22:51:48 +08:00
|
|
|
|
2003-08-26 05:25:13 +08:00
|
|
|
#define GIMP_TYPE_CONTAINER_POLICY (gimp_container_policy_get_type ())
|
|
|
|
|
|
|
|
GType gimp_container_policy_get_type (void) G_GNUC_CONST;
|
|
|
|
|
|
|
|
typedef enum /*< pdb-skip >*/
|
|
|
|
{
|
|
|
|
GIMP_CONTAINER_POLICY_STRONG,
|
|
|
|
GIMP_CONTAINER_POLICY_WEAK
|
|
|
|
} GimpContainerPolicy;
|
|
|
|
|
|
|
|
|
2002-03-20 22:10:45 +08:00
|
|
|
#define GIMP_TYPE_CONVERT_DITHER_TYPE (gimp_convert_dither_type_get_type ())
|
|
|
|
|
|
|
|
GType gimp_convert_dither_type_get_type (void) G_GNUC_CONST;
|
|
|
|
|
|
|
|
typedef enum
|
|
|
|
{
|
|
|
|
GIMP_NO_DITHER, /*< desc="No Color Dithering" >*/
|
|
|
|
GIMP_FS_DITHER, /*< desc="Floyd-Steinberg Color Dithering (Normal)" >*/
|
|
|
|
GIMP_FSLOWBLEED_DITHER, /*< desc="Floyd-Steinberg Color Dithering (Reduced Color Bleeding)" >*/
|
|
|
|
GIMP_FIXED_DITHER, /*< desc="Positioned Color Dithering" >*/
|
2004-01-06 22:02:08 +08:00
|
|
|
GIMP_NODESTRUCT_DITHER /*< pdb-skip, skip >*/
|
2002-03-20 22:10:45 +08:00
|
|
|
} GimpConvertDitherType;
|
|
|
|
|
|
|
|
|
2003-01-31 21:36:27 +08:00
|
|
|
#define GIMP_TYPE_GRAVITY_TYPE (gimp_gravity_type_get_type ())
|
|
|
|
|
|
|
|
GType gimp_gravity_type_get_type (void) G_GNUC_CONST;
|
|
|
|
|
|
|
|
typedef enum /*< pdb-skip >*/
|
|
|
|
{
|
2003-02-01 04:21:01 +08:00
|
|
|
GIMP_GRAVITY_NONE,
|
2003-01-31 21:36:27 +08:00
|
|
|
GIMP_GRAVITY_NORTH_WEST,
|
2003-02-01 04:21:01 +08:00
|
|
|
GIMP_GRAVITY_NORTH,
|
2003-01-31 21:36:27 +08:00
|
|
|
GIMP_GRAVITY_NORTH_EAST,
|
|
|
|
GIMP_GRAVITY_WEST,
|
2003-02-01 04:21:01 +08:00
|
|
|
GIMP_GRAVITY_CENTER,
|
|
|
|
GIMP_GRAVITY_EAST,
|
|
|
|
GIMP_GRAVITY_SOUTH_WEST,
|
|
|
|
GIMP_GRAVITY_SOUTH,
|
|
|
|
GIMP_GRAVITY_SOUTH_EAST
|
2003-01-31 21:36:27 +08:00
|
|
|
} GimpGravityType;
|
|
|
|
|
|
|
|
|
2002-05-13 23:35:27 +08:00
|
|
|
#define GIMP_TYPE_FILL_TYPE (gimp_fill_type_get_type ())
|
|
|
|
|
|
|
|
GType gimp_fill_type_get_type (void) G_GNUC_CONST;
|
|
|
|
|
|
|
|
typedef enum
|
|
|
|
{
|
2004-01-06 22:02:08 +08:00
|
|
|
GIMP_FOREGROUND_FILL, /*< desc="Foreground" >*/
|
|
|
|
GIMP_BACKGROUND_FILL, /*< desc="Background" >*/
|
|
|
|
GIMP_WHITE_FILL, /*< desc="White" >*/
|
|
|
|
GIMP_TRANSPARENT_FILL, /*< desc="Transparent" >*/
|
|
|
|
GIMP_PATTERN_FILL, /*< desc="Pattern" >*/
|
|
|
|
GIMP_NO_FILL /*< desc="None", pdb-skip >*/
|
2002-05-13 23:35:27 +08:00
|
|
|
} GimpFillType;
|
|
|
|
|
|
|
|
|
2002-03-18 02:36:52 +08:00
|
|
|
#define GIMP_TYPE_GRADIENT_TYPE (gimp_gradient_type_get_type ())
|
|
|
|
|
|
|
|
GType gimp_gradient_type_get_type (void) G_GNUC_CONST;
|
|
|
|
|
|
|
|
typedef enum
|
|
|
|
{
|
2003-08-27 02:12:42 +08:00
|
|
|
GIMP_GRADIENT_LINEAR, /*< desc="Linear" >*/
|
|
|
|
GIMP_GRADIENT_BILINEAR, /*< desc="Bi-Linear" >*/
|
|
|
|
GIMP_GRADIENT_RADIAL, /*< desc="Radial" >*/
|
|
|
|
GIMP_GRADIENT_SQUARE, /*< desc="Square" >*/
|
|
|
|
GIMP_GRADIENT_CONICAL_SYMMETRIC, /*< desc="Conical (symmetric)" >*/
|
|
|
|
GIMP_GRADIENT_CONICAL_ASYMMETRIC, /*< desc="Conical (asymmetric)" >*/
|
|
|
|
GIMP_GRADIENT_SHAPEBURST_ANGULAR, /*< desc="Shapeburst (angular)" >*/
|
|
|
|
GIMP_GRADIENT_SHAPEBURST_SPHERICAL, /*< desc="Shapeburst (spherical)" >*/
|
|
|
|
GIMP_GRADIENT_SHAPEBURST_DIMPLED, /*< desc="Shapeburst (dimpled)" >*/
|
|
|
|
GIMP_GRADIENT_SPIRAL_CLOCKWISE, /*< desc="Spiral (clockwise)" >*/
|
|
|
|
GIMP_GRADIENT_SPIRAL_ANTICLOCKWISE /*< desc="Spiral (anticlockwise)" >*/
|
2001-12-12 02:53:03 +08:00
|
|
|
} GimpGradientType;
|
|
|
|
|
2002-03-18 02:36:52 +08:00
|
|
|
|
2003-09-21 18:45:19 +08:00
|
|
|
#define GIMP_TYPE_GRID_STYLE (gimp_grid_style_get_type ())
|
2003-06-24 03:34:48 +08:00
|
|
|
|
2003-09-21 18:45:19 +08:00
|
|
|
GType gimp_grid_style_get_type (void) G_GNUC_CONST;
|
2003-06-24 03:34:48 +08:00
|
|
|
|
|
|
|
typedef enum /*< pdb-skip >*/
|
|
|
|
{
|
2003-09-21 18:45:19 +08:00
|
|
|
GIMP_GRID_DOTS, /*< desc="Intersections (dots)" >*/
|
|
|
|
GIMP_GRID_INTERSECTIONS, /*< desc="Intersections (crosshairs)" >*/
|
|
|
|
GIMP_GRID_ON_OFF_DASH, /*< desc="Dashed" >*/
|
|
|
|
GIMP_GRID_DOUBLE_DASH, /*< desc="Double Dashed" >*/
|
|
|
|
GIMP_GRID_SOLID /*< desc="Solid" >*/
|
|
|
|
} GimpGridStyle;
|
2003-06-24 03:34:48 +08:00
|
|
|
|
|
|
|
|
2003-09-28 04:04:07 +08:00
|
|
|
#define GIMP_TYPE_STROKE_STYLE (gimp_stroke_style_get_type ())
|
|
|
|
|
|
|
|
GType gimp_stroke_style_get_type (void) G_GNUC_CONST;
|
|
|
|
|
|
|
|
typedef enum /*< pdb-skip >*/
|
|
|
|
{
|
|
|
|
GIMP_STROKE_STYLE_SOLID, /*< desc="Solid" >*/
|
|
|
|
GIMP_STROKE_STYLE_PATTERN /*< desc="Pattern" >*/
|
|
|
|
} GimpStrokeStyle;
|
|
|
|
|
|
|
|
|
2003-09-21 18:45:19 +08:00
|
|
|
#define GIMP_TYPE_JOIN_STYLE (gimp_join_style_get_type ())
|
2003-09-21 03:58:26 +08:00
|
|
|
|
2003-09-21 18:45:19 +08:00
|
|
|
GType gimp_join_style_get_type (void) G_GNUC_CONST;
|
2003-09-21 03:58:26 +08:00
|
|
|
|
|
|
|
typedef enum /*< pdb-skip >*/
|
|
|
|
{
|
|
|
|
GIMP_JOIN_MITER, /*< desc="Miter" >*/
|
|
|
|
GIMP_JOIN_ROUND, /*< desc="Round" >*/
|
|
|
|
GIMP_JOIN_BEVEL /*< desc="Bevel" >*/
|
2003-09-21 18:45:19 +08:00
|
|
|
} GimpJoinStyle;
|
2003-09-21 03:58:26 +08:00
|
|
|
|
|
|
|
|
2003-09-21 18:45:19 +08:00
|
|
|
#define GIMP_TYPE_CAP_STYLE (gimp_cap_style_get_type ())
|
2003-09-21 03:58:26 +08:00
|
|
|
|
2003-09-25 03:47:59 +08:00
|
|
|
GType gimp_cap_style_get_type (void) G_GNUC_CONST;
|
2003-09-21 03:58:26 +08:00
|
|
|
|
|
|
|
typedef enum /*< pdb-skip >*/
|
|
|
|
{
|
|
|
|
GIMP_CAP_BUTT, /*< desc="Butt" >*/
|
|
|
|
GIMP_CAP_ROUND, /*< desc="Round" >*/
|
|
|
|
GIMP_CAP_SQUARE /*< desc="Square" >*/
|
2003-09-21 18:45:19 +08:00
|
|
|
} GimpCapStyle;
|
2003-09-21 03:58:26 +08:00
|
|
|
|
|
|
|
|
2003-12-29 01:09:41 +08:00
|
|
|
#define GIMP_TYPE_DASH_PRESET (gimp_dash_preset_get_type ())
|
|
|
|
|
|
|
|
GType gimp_dash_preset_get_type (void) G_GNUC_CONST;
|
|
|
|
|
|
|
|
typedef enum /*< pdb-skip >*/
|
|
|
|
{
|
|
|
|
GIMP_DASH_CUSTOM, /*< desc="Custom" >*/
|
|
|
|
GIMP_DASH_LINE, /*< desc="Line" >*/
|
|
|
|
GIMP_DASH_LONG_DASH, /*< desc="Long Dashes" >*/
|
|
|
|
GIMP_DASH_MEDIUM_DASH, /*< desc="Medium Dashes" >*/
|
|
|
|
GIMP_DASH_SHORT_DASH, /*< desc="Short Dashes" >*/
|
|
|
|
GIMP_DASH_SPARSE_DOTS, /*< desc="Sparse Dots" >*/
|
|
|
|
GIMP_DASH_NORMAL_DOTS, /*< desc="Normal Dots" >*/
|
|
|
|
GIMP_DASH_DENSE_DOTS, /*< desc="Dense Dots" >*/
|
|
|
|
GIMP_DASH_STIPPLES, /*< desc="Stipples" >*/
|
|
|
|
GIMP_DASH_DASH_DOT, /*< desc="Dash Dot..." >*/
|
|
|
|
GIMP_DASH_DASH_DOT_DOT /*< desc="Dash Dot Dot..." >*/
|
|
|
|
} GimpDashPreset;
|
|
|
|
|
|
|
|
|
2002-03-19 06:26:41 +08:00
|
|
|
#define GIMP_TYPE_IMAGE_BASE_TYPE (gimp_image_base_type_get_type ())
|
|
|
|
|
|
|
|
GType gimp_image_base_type_get_type (void) G_GNUC_CONST;
|
|
|
|
|
|
|
|
typedef enum
|
|
|
|
{
|
2002-05-13 23:35:27 +08:00
|
|
|
GIMP_RGB, /*< desc="RGB" >*/
|
|
|
|
GIMP_GRAY, /*< desc="Grayscale" >*/
|
2002-05-13 23:53:45 +08:00
|
|
|
GIMP_INDEXED /*< desc="Indexed" >*/
|
2002-03-19 06:26:41 +08:00
|
|
|
} GimpImageBaseType;
|
|
|
|
|
|
|
|
|
2002-04-17 07:03:23 +08:00
|
|
|
#define GIMP_TYPE_IMAGE_TYPE (gimp_image_type_get_type ())
|
|
|
|
|
|
|
|
GType gimp_image_type_get_type (void) G_GNUC_CONST;
|
|
|
|
|
|
|
|
typedef enum
|
|
|
|
{
|
|
|
|
GIMP_RGB_IMAGE, /*< desc="RGB" >*/
|
|
|
|
GIMP_RGBA_IMAGE, /*< desc="RGB-Alpha" >*/
|
|
|
|
GIMP_GRAY_IMAGE, /*< desc="Grayscale" >*/
|
|
|
|
GIMP_GRAYA_IMAGE, /*< desc="Grayscale-Alpha" >*/
|
|
|
|
GIMP_INDEXED_IMAGE, /*< desc="Indexed" >*/
|
|
|
|
GIMP_INDEXEDA_IMAGE /*< desc="Indexed-Alpha" >*/
|
|
|
|
} GimpImageType;
|
|
|
|
|
|
|
|
|
2003-03-06 21:22:11 +08:00
|
|
|
#define GIMP_TYPE_ORIENTATION_TYPE (gimp_orientation_type_get_type ())
|
|
|
|
|
|
|
|
GType gimp_orientation_type_get_type (void) G_GNUC_CONST;
|
|
|
|
|
|
|
|
typedef enum
|
|
|
|
{
|
|
|
|
GIMP_ORIENTATION_HORIZONTAL, /*< desc="Horizontal" >*/
|
|
|
|
GIMP_ORIENTATION_VERTICAL, /*< desc="Vertical" >*/
|
|
|
|
GIMP_ORIENTATION_UNKNOWN /*< desc="Unknown" >*/
|
|
|
|
} GimpOrientationType;
|
|
|
|
|
|
|
|
|
2003-05-20 18:36:29 +08:00
|
|
|
#define GIMP_TYPE_ROTATION_TYPE (gimp_rotation_type_get_type ())
|
|
|
|
|
|
|
|
GType gimp_rotation_type_get_type (void) G_GNUC_CONST;
|
|
|
|
|
2003-12-09 17:03:52 +08:00
|
|
|
typedef enum
|
2003-05-20 18:36:29 +08:00
|
|
|
{
|
|
|
|
GIMP_ROTATE_90,
|
|
|
|
GIMP_ROTATE_180,
|
|
|
|
GIMP_ROTATE_270
|
|
|
|
} GimpRotationType;
|
|
|
|
|
|
|
|
|
2002-03-19 06:26:41 +08:00
|
|
|
#define GIMP_TYPE_PREVIEW_SIZE (gimp_preview_size_get_type ())
|
|
|
|
|
|
|
|
GType gimp_preview_size_get_type (void) G_GNUC_CONST;
|
|
|
|
|
|
|
|
typedef enum /*< pdb-skip >*/
|
|
|
|
{
|
2003-03-13 19:37:51 +08:00
|
|
|
GIMP_PREVIEW_SIZE_TINY = 12, /*< desc="Tiny" >*/
|
|
|
|
GIMP_PREVIEW_SIZE_EXTRA_SMALL = 16, /*< desc="Very Small" >*/
|
|
|
|
GIMP_PREVIEW_SIZE_SMALL = 24, /*< desc="Small" >*/
|
|
|
|
GIMP_PREVIEW_SIZE_MEDIUM = 32, /*< desc="Medium" >*/
|
|
|
|
GIMP_PREVIEW_SIZE_LARGE = 48, /*< desc="Large" >*/
|
|
|
|
GIMP_PREVIEW_SIZE_EXTRA_LARGE = 64, /*< desc="Very Large" >*/
|
|
|
|
GIMP_PREVIEW_SIZE_HUGE = 96, /*< desc="Huge" >*/
|
|
|
|
GIMP_PREVIEW_SIZE_ENORMOUS = 128, /*< desc="Enormous" >*/
|
|
|
|
GIMP_PREVIEW_SIZE_GIGANTIC = 192 /*< desc="Gigantic" >*/
|
2002-03-19 06:26:41 +08:00
|
|
|
} GimpPreviewSize;
|
|
|
|
|
|
|
|
|
2002-03-18 02:36:52 +08:00
|
|
|
#define GIMP_TYPE_REPEAT_MODE (gimp_repeat_mode_get_type ())
|
|
|
|
|
|
|
|
GType gimp_repeat_mode_get_type (void) G_GNUC_CONST;
|
|
|
|
|
|
|
|
typedef enum
|
|
|
|
{
|
|
|
|
GIMP_REPEAT_NONE, /*< desc="None" >*/
|
|
|
|
GIMP_REPEAT_SAWTOOTH, /*< desc="Sawtooth Wave" >*/
|
|
|
|
GIMP_REPEAT_TRIANGULAR /*< desc="Triangular Wave" >*/
|
|
|
|
} GimpRepeatMode;
|
|
|
|
|
|
|
|
|
2002-03-19 06:26:41 +08:00
|
|
|
#define GIMP_TYPE_SELECTION_CONTROL (gimp_selection_control_get_type ())
|
|
|
|
|
|
|
|
GType gimp_selection_control_get_type (void) G_GNUC_CONST;
|
|
|
|
|
|
|
|
typedef enum /*< pdb-skip >*/
|
|
|
|
{
|
|
|
|
GIMP_SELECTION_OFF,
|
|
|
|
GIMP_SELECTION_LAYER_OFF,
|
|
|
|
GIMP_SELECTION_ON,
|
|
|
|
GIMP_SELECTION_PAUSE,
|
|
|
|
GIMP_SELECTION_RESUME
|
|
|
|
} GimpSelectionControl;
|
|
|
|
|
|
|
|
|
2002-04-30 03:41:45 +08:00
|
|
|
#define GIMP_TYPE_THUMBNAIL_SIZE (gimp_thumbnail_size_get_type ())
|
|
|
|
|
|
|
|
GType gimp_thumbnail_size_get_type (void) G_GNUC_CONST;
|
|
|
|
|
|
|
|
typedef enum /*< pdb-skip >*/
|
|
|
|
{
|
|
|
|
GIMP_THUMBNAIL_SIZE_NONE = 0, /*< desc="No Thumbnails" >*/
|
|
|
|
GIMP_THUMBNAIL_SIZE_NORMAL = 128, /*< desc="Normal (128x128)" >*/
|
|
|
|
GIMP_THUMBNAIL_SIZE_LARGE = 256 /*< desc="Large (256x256)" >*/
|
|
|
|
} GimpThumbnailSize;
|
|
|
|
|
|
|
|
|
2002-03-18 02:36:52 +08:00
|
|
|
#define GIMP_TYPE_TRANSFORM_DIRECTION (gimp_transform_direction_get_type ())
|
|
|
|
|
|
|
|
GType gimp_transform_direction_get_type (void) G_GNUC_CONST;
|
|
|
|
|
|
|
|
typedef enum /*< pdb-skip >*/
|
|
|
|
{
|
|
|
|
GIMP_TRANSFORM_FORWARD, /*< desc="Forward (Traditional)" >*/
|
|
|
|
GIMP_TRANSFORM_BACKWARD /*< desc="Backward (Corrective)" >*/
|
|
|
|
} GimpTransformDirection;
|
|
|
|
|
|
|
|
|
2003-02-13 01:11:34 +08:00
|
|
|
#define GIMP_TYPE_UNDO_MODE (gimp_undo_mode_get_type ())
|
|
|
|
|
|
|
|
GType gimp_undo_mode_get_type (void) G_GNUC_CONST;
|
|
|
|
|
2003-02-13 17:38:39 +08:00
|
|
|
typedef enum /*< pdb-skip >*/
|
2003-02-13 01:11:34 +08:00
|
|
|
{
|
|
|
|
GIMP_UNDO_MODE_UNDO,
|
|
|
|
GIMP_UNDO_MODE_REDO
|
|
|
|
} GimpUndoMode;
|
|
|
|
|
|
|
|
|
2003-02-20 20:47:42 +08:00
|
|
|
#define GIMP_TYPE_UNDO_EVENT (gimp_undo_event_get_type ())
|
|
|
|
|
|
|
|
GType gimp_undo_event_get_type (void) G_GNUC_CONST;
|
|
|
|
|
|
|
|
typedef enum /*< pdb-skip >*/
|
|
|
|
{
|
|
|
|
GIMP_UNDO_EVENT_UNDO_PUSHED, /* a new undo has been added to the undo stack */
|
|
|
|
GIMP_UNDO_EVENT_UNDO_EXPIRED, /* an undo has been freed from the undo stack */
|
|
|
|
GIMP_UNDO_EVENT_REDO_EXPIRED, /* a redo has been freed from the redo stack */
|
|
|
|
GIMP_UNDO_EVENT_UNDO, /* an undo has been executed */
|
|
|
|
GIMP_UNDO_EVENT_REDO, /* a redo has been executed */
|
2003-11-26 00:12:53 +08:00
|
|
|
GIMP_UNDO_EVENT_UNDO_FREE, /* all undo and redo info has been cleared */
|
|
|
|
GIMP_UNDO_EVENT_UNDO_FREEZE, /* undo has been frozen */
|
|
|
|
GIMP_UNDO_EVENT_UNDO_THAW /* undo has been thawn */
|
2003-02-20 20:47:42 +08:00
|
|
|
} GimpUndoEvent;
|
|
|
|
|
|
|
|
|
2003-02-13 01:11:34 +08:00
|
|
|
#define GIMP_TYPE_UNDO_TYPE (gimp_undo_type_get_type ())
|
|
|
|
|
|
|
|
GType gimp_undo_type_get_type (void) G_GNUC_CONST;
|
|
|
|
|
|
|
|
typedef enum /*< pdb-skip >*/
|
|
|
|
{
|
|
|
|
/* Type NO_UNDO_GROUP (0) is special - in the gimpimage structure it
|
|
|
|
* means there is no undo group currently being added to.
|
|
|
|
*/
|
Made drawable/layer properties (visibility, opacity etc.) undoable (fixes
2003-03-17 Michael Natterer <mitch@gimp.org>
Made drawable/layer properties (visibility, opacity etc.)
undoable (fixes bug #73893).
* app/core/core-enums.[ch]: added undo types/groups for
visibility, mode, opacity, linked and preserve_trans.
* app/core/Makefile.am
* app/core/core-types.h
* app/core/gimpitemundo.[ch]: new GimpUndo subclass which holds a
ref'ed GimpItem pointer so (1) this doesn't need to be done by all
undo steps related to an item and (2) the item the undo step is
for can be determined from outside the undo system.
* app/core/gimpimage-undo.[ch]: added gimp_image_undo_push_item()
which returns a new GimpItemUndo.
* app/core/gimpimage-undo-push.[ch]: use it for all item related
undo steps. Removed lots of GimpItem, GimpLayer, GimpDrawable
and GimpVectors pointers from the private undo structs. Added
undo push functions for the new undo types added above.
* app/core/gimpdrawable.[ch] (gimp_drawable_set_visible): added
"gboolean push_undo" parameter.
* app/core/gimplayer.[ch] (gimp_layer_set_opacity, _mode,
_preserve_trans, _linked): added "gboolean push_undo" parameters.
* app/core/gimpimage-mask.c
* app/core/gimpimage-merge.c
* app/core/gimplayer-floating-sel.c
* app/tools/gimpmovetool.c
* app/xcf/xcf-load.c
* app/widgets/gimpdrawablelistitem.c
* app/widgets/gimplayerlistitem.c
* app/widgets/gimplayerlistview.c: changed accordingly.
* tools/pdbgen/pdb/channel.pdb
* tools/pdbgen/pdb/layer.pdb: ditto. Added '$undo' paramaters to
the foo_accessors() functions. Removed $func from foo_accesors()
because we don't manipulate items without using getters/setters
any longer.
* app/pdb/channel_cmds.c
* app/pdb/layer_cmds.c: regenerated.
* app/widgets/gimpcellrenderertoggle.[ch]: added "clicked" signal
which carries an additional "GdkModifierType state" parameter as
in GimpCellRendererViewable .
* app/widgets/gimpcontainertreeview.c: emit "clicked" from
the toggle renderer, not "toggled" so the callbacks get the
modifier state.
* app/widgets/gimpdrawabletreeview.c: resurrected the "exclusive
visible by <shift>+click" feature as in 1.2.
* app/widgets/gimplayertreeview.c: compress layer opacity undos by
looking at the top of the undo stack and not pushing an undo if
there already is a GIMP_UNDO_DRAWABLE_OPACITY for the active
layer.
2003-03-18 02:02:41 +08:00
|
|
|
GIMP_UNDO_GROUP_NONE = 0, /*< desc="<<invalid>>" >*/
|
2003-02-13 19:23:50 +08:00
|
|
|
|
|
|
|
GIMP_UNDO_GROUP_FIRST = GIMP_UNDO_GROUP_NONE, /*< skip >*/
|
|
|
|
|
Made drawable/layer properties (visibility, opacity etc.) undoable (fixes
2003-03-17 Michael Natterer <mitch@gimp.org>
Made drawable/layer properties (visibility, opacity etc.)
undoable (fixes bug #73893).
* app/core/core-enums.[ch]: added undo types/groups for
visibility, mode, opacity, linked and preserve_trans.
* app/core/Makefile.am
* app/core/core-types.h
* app/core/gimpitemundo.[ch]: new GimpUndo subclass which holds a
ref'ed GimpItem pointer so (1) this doesn't need to be done by all
undo steps related to an item and (2) the item the undo step is
for can be determined from outside the undo system.
* app/core/gimpimage-undo.[ch]: added gimp_image_undo_push_item()
which returns a new GimpItemUndo.
* app/core/gimpimage-undo-push.[ch]: use it for all item related
undo steps. Removed lots of GimpItem, GimpLayer, GimpDrawable
and GimpVectors pointers from the private undo structs. Added
undo push functions for the new undo types added above.
* app/core/gimpdrawable.[ch] (gimp_drawable_set_visible): added
"gboolean push_undo" parameter.
* app/core/gimplayer.[ch] (gimp_layer_set_opacity, _mode,
_preserve_trans, _linked): added "gboolean push_undo" parameters.
* app/core/gimpimage-mask.c
* app/core/gimpimage-merge.c
* app/core/gimplayer-floating-sel.c
* app/tools/gimpmovetool.c
* app/xcf/xcf-load.c
* app/widgets/gimpdrawablelistitem.c
* app/widgets/gimplayerlistitem.c
* app/widgets/gimplayerlistview.c: changed accordingly.
* tools/pdbgen/pdb/channel.pdb
* tools/pdbgen/pdb/layer.pdb: ditto. Added '$undo' paramaters to
the foo_accessors() functions. Removed $func from foo_accesors()
because we don't manipulate items without using getters/setters
any longer.
* app/pdb/channel_cmds.c
* app/pdb/layer_cmds.c: regenerated.
* app/widgets/gimpcellrenderertoggle.[ch]: added "clicked" signal
which carries an additional "GdkModifierType state" parameter as
in GimpCellRendererViewable .
* app/widgets/gimpcontainertreeview.c: emit "clicked" from
the toggle renderer, not "toggled" so the callbacks get the
modifier state.
* app/widgets/gimpdrawabletreeview.c: resurrected the "exclusive
visible by <shift>+click" feature as in 1.2.
* app/widgets/gimplayertreeview.c: compress layer opacity undos by
looking at the top of the undo stack and not pushing an undo if
there already is a GIMP_UNDO_DRAWABLE_OPACITY for the active
layer.
2003-03-18 02:02:41 +08:00
|
|
|
GIMP_UNDO_GROUP_IMAGE_SCALE, /*< desc="Scale Image" >*/
|
|
|
|
GIMP_UNDO_GROUP_IMAGE_RESIZE, /*< desc="Resize Image" >*/
|
2003-05-19 02:48:36 +08:00
|
|
|
GIMP_UNDO_GROUP_IMAGE_FLIP, /*< desc="Flip Image" >*/
|
2003-05-20 18:36:29 +08:00
|
|
|
GIMP_UNDO_GROUP_IMAGE_ROTATE, /*< desc="Rotate Image" >*/
|
Made drawable/layer properties (visibility, opacity etc.) undoable (fixes
2003-03-17 Michael Natterer <mitch@gimp.org>
Made drawable/layer properties (visibility, opacity etc.)
undoable (fixes bug #73893).
* app/core/core-enums.[ch]: added undo types/groups for
visibility, mode, opacity, linked and preserve_trans.
* app/core/Makefile.am
* app/core/core-types.h
* app/core/gimpitemundo.[ch]: new GimpUndo subclass which holds a
ref'ed GimpItem pointer so (1) this doesn't need to be done by all
undo steps related to an item and (2) the item the undo step is
for can be determined from outside the undo system.
* app/core/gimpimage-undo.[ch]: added gimp_image_undo_push_item()
which returns a new GimpItemUndo.
* app/core/gimpimage-undo-push.[ch]: use it for all item related
undo steps. Removed lots of GimpItem, GimpLayer, GimpDrawable
and GimpVectors pointers from the private undo structs. Added
undo push functions for the new undo types added above.
* app/core/gimpdrawable.[ch] (gimp_drawable_set_visible): added
"gboolean push_undo" parameter.
* app/core/gimplayer.[ch] (gimp_layer_set_opacity, _mode,
_preserve_trans, _linked): added "gboolean push_undo" parameters.
* app/core/gimpimage-mask.c
* app/core/gimpimage-merge.c
* app/core/gimplayer-floating-sel.c
* app/tools/gimpmovetool.c
* app/xcf/xcf-load.c
* app/widgets/gimpdrawablelistitem.c
* app/widgets/gimplayerlistitem.c
* app/widgets/gimplayerlistview.c: changed accordingly.
* tools/pdbgen/pdb/channel.pdb
* tools/pdbgen/pdb/layer.pdb: ditto. Added '$undo' paramaters to
the foo_accessors() functions. Removed $func from foo_accesors()
because we don't manipulate items without using getters/setters
any longer.
* app/pdb/channel_cmds.c
* app/pdb/layer_cmds.c: regenerated.
* app/widgets/gimpcellrenderertoggle.[ch]: added "clicked" signal
which carries an additional "GdkModifierType state" parameter as
in GimpCellRendererViewable .
* app/widgets/gimpcontainertreeview.c: emit "clicked" from
the toggle renderer, not "toggled" so the callbacks get the
modifier state.
* app/widgets/gimpdrawabletreeview.c: resurrected the "exclusive
visible by <shift>+click" feature as in 1.2.
* app/widgets/gimplayertreeview.c: compress layer opacity undos by
looking at the top of the undo stack and not pushing an undo if
there already is a GIMP_UNDO_DRAWABLE_OPACITY for the active
layer.
2003-03-18 02:02:41 +08:00
|
|
|
GIMP_UNDO_GROUP_IMAGE_CONVERT, /*< desc="Convert Image" >*/
|
|
|
|
GIMP_UNDO_GROUP_IMAGE_CROP, /*< desc="Crop Image" >*/
|
|
|
|
GIMP_UNDO_GROUP_IMAGE_LAYERS_MERGE, /*< desc="Merge Layers" >*/
|
2003-11-07 21:20:52 +08:00
|
|
|
GIMP_UNDO_GROUP_IMAGE_VECTORS_MERGE,/*< desc="Merge Vectors" >*/
|
Made drawable/layer properties (visibility, opacity etc.) undoable (fixes
2003-03-17 Michael Natterer <mitch@gimp.org>
Made drawable/layer properties (visibility, opacity etc.)
undoable (fixes bug #73893).
* app/core/core-enums.[ch]: added undo types/groups for
visibility, mode, opacity, linked and preserve_trans.
* app/core/Makefile.am
* app/core/core-types.h
* app/core/gimpitemundo.[ch]: new GimpUndo subclass which holds a
ref'ed GimpItem pointer so (1) this doesn't need to be done by all
undo steps related to an item and (2) the item the undo step is
for can be determined from outside the undo system.
* app/core/gimpimage-undo.[ch]: added gimp_image_undo_push_item()
which returns a new GimpItemUndo.
* app/core/gimpimage-undo-push.[ch]: use it for all item related
undo steps. Removed lots of GimpItem, GimpLayer, GimpDrawable
and GimpVectors pointers from the private undo structs. Added
undo push functions for the new undo types added above.
* app/core/gimpdrawable.[ch] (gimp_drawable_set_visible): added
"gboolean push_undo" parameter.
* app/core/gimplayer.[ch] (gimp_layer_set_opacity, _mode,
_preserve_trans, _linked): added "gboolean push_undo" parameters.
* app/core/gimpimage-mask.c
* app/core/gimpimage-merge.c
* app/core/gimplayer-floating-sel.c
* app/tools/gimpmovetool.c
* app/xcf/xcf-load.c
* app/widgets/gimpdrawablelistitem.c
* app/widgets/gimplayerlistitem.c
* app/widgets/gimplayerlistview.c: changed accordingly.
* tools/pdbgen/pdb/channel.pdb
* tools/pdbgen/pdb/layer.pdb: ditto. Added '$undo' paramaters to
the foo_accessors() functions. Removed $func from foo_accesors()
because we don't manipulate items without using getters/setters
any longer.
* app/pdb/channel_cmds.c
* app/pdb/layer_cmds.c: regenerated.
* app/widgets/gimpcellrenderertoggle.[ch]: added "clicked" signal
which carries an additional "GdkModifierType state" parameter as
in GimpCellRendererViewable .
* app/widgets/gimpcontainertreeview.c: emit "clicked" from
the toggle renderer, not "toggled" so the callbacks get the
modifier state.
* app/widgets/gimpdrawabletreeview.c: resurrected the "exclusive
visible by <shift>+click" feature as in 1.2.
* app/widgets/gimplayertreeview.c: compress layer opacity undos by
looking at the top of the undo stack and not pushing an undo if
there already is a GIMP_UNDO_DRAWABLE_OPACITY for the active
layer.
2003-03-18 02:02:41 +08:00
|
|
|
GIMP_UNDO_GROUP_IMAGE_QMASK, /*< desc="QuickMask" >*/
|
2003-06-24 03:34:48 +08:00
|
|
|
GIMP_UNDO_GROUP_IMAGE_GRID, /*< desc="Grid" >*/
|
Made drawable/layer properties (visibility, opacity etc.) undoable (fixes
2003-03-17 Michael Natterer <mitch@gimp.org>
Made drawable/layer properties (visibility, opacity etc.)
undoable (fixes bug #73893).
* app/core/core-enums.[ch]: added undo types/groups for
visibility, mode, opacity, linked and preserve_trans.
* app/core/Makefile.am
* app/core/core-types.h
* app/core/gimpitemundo.[ch]: new GimpUndo subclass which holds a
ref'ed GimpItem pointer so (1) this doesn't need to be done by all
undo steps related to an item and (2) the item the undo step is
for can be determined from outside the undo system.
* app/core/gimpimage-undo.[ch]: added gimp_image_undo_push_item()
which returns a new GimpItemUndo.
* app/core/gimpimage-undo-push.[ch]: use it for all item related
undo steps. Removed lots of GimpItem, GimpLayer, GimpDrawable
and GimpVectors pointers from the private undo structs. Added
undo push functions for the new undo types added above.
* app/core/gimpdrawable.[ch] (gimp_drawable_set_visible): added
"gboolean push_undo" parameter.
* app/core/gimplayer.[ch] (gimp_layer_set_opacity, _mode,
_preserve_trans, _linked): added "gboolean push_undo" parameters.
* app/core/gimpimage-mask.c
* app/core/gimpimage-merge.c
* app/core/gimplayer-floating-sel.c
* app/tools/gimpmovetool.c
* app/xcf/xcf-load.c
* app/widgets/gimpdrawablelistitem.c
* app/widgets/gimplayerlistitem.c
* app/widgets/gimplayerlistview.c: changed accordingly.
* tools/pdbgen/pdb/channel.pdb
* tools/pdbgen/pdb/layer.pdb: ditto. Added '$undo' paramaters to
the foo_accessors() functions. Removed $func from foo_accesors()
because we don't manipulate items without using getters/setters
any longer.
* app/pdb/channel_cmds.c
* app/pdb/layer_cmds.c: regenerated.
* app/widgets/gimpcellrenderertoggle.[ch]: added "clicked" signal
which carries an additional "GdkModifierType state" parameter as
in GimpCellRendererViewable .
* app/widgets/gimpcontainertreeview.c: emit "clicked" from
the toggle renderer, not "toggled" so the callbacks get the
modifier state.
* app/widgets/gimpdrawabletreeview.c: resurrected the "exclusive
visible by <shift>+click" feature as in 1.2.
* app/widgets/gimplayertreeview.c: compress layer opacity undos by
looking at the top of the undo stack and not pushing an undo if
there already is a GIMP_UNDO_DRAWABLE_OPACITY for the active
layer.
2003-03-18 02:02:41 +08:00
|
|
|
GIMP_UNDO_GROUP_IMAGE_GUIDE, /*< desc="Guide" >*/
|
2003-03-20 00:58:17 +08:00
|
|
|
GIMP_UNDO_GROUP_MASK, /*< desc="Selection Mask" >*/
|
Made drawable/layer properties (visibility, opacity etc.) undoable (fixes
2003-03-17 Michael Natterer <mitch@gimp.org>
Made drawable/layer properties (visibility, opacity etc.)
undoable (fixes bug #73893).
* app/core/core-enums.[ch]: added undo types/groups for
visibility, mode, opacity, linked and preserve_trans.
* app/core/Makefile.am
* app/core/core-types.h
* app/core/gimpitemundo.[ch]: new GimpUndo subclass which holds a
ref'ed GimpItem pointer so (1) this doesn't need to be done by all
undo steps related to an item and (2) the item the undo step is
for can be determined from outside the undo system.
* app/core/gimpimage-undo.[ch]: added gimp_image_undo_push_item()
which returns a new GimpItemUndo.
* app/core/gimpimage-undo-push.[ch]: use it for all item related
undo steps. Removed lots of GimpItem, GimpLayer, GimpDrawable
and GimpVectors pointers from the private undo structs. Added
undo push functions for the new undo types added above.
* app/core/gimpdrawable.[ch] (gimp_drawable_set_visible): added
"gboolean push_undo" parameter.
* app/core/gimplayer.[ch] (gimp_layer_set_opacity, _mode,
_preserve_trans, _linked): added "gboolean push_undo" parameters.
* app/core/gimpimage-mask.c
* app/core/gimpimage-merge.c
* app/core/gimplayer-floating-sel.c
* app/tools/gimpmovetool.c
* app/xcf/xcf-load.c
* app/widgets/gimpdrawablelistitem.c
* app/widgets/gimplayerlistitem.c
* app/widgets/gimplayerlistview.c: changed accordingly.
* tools/pdbgen/pdb/channel.pdb
* tools/pdbgen/pdb/layer.pdb: ditto. Added '$undo' paramaters to
the foo_accessors() functions. Removed $func from foo_accesors()
because we don't manipulate items without using getters/setters
any longer.
* app/pdb/channel_cmds.c
* app/pdb/layer_cmds.c: regenerated.
* app/widgets/gimpcellrenderertoggle.[ch]: added "clicked" signal
which carries an additional "GdkModifierType state" parameter as
in GimpCellRendererViewable .
* app/widgets/gimpcontainertreeview.c: emit "clicked" from
the toggle renderer, not "toggled" so the callbacks get the
modifier state.
* app/widgets/gimpdrawabletreeview.c: resurrected the "exclusive
visible by <shift>+click" feature as in 1.2.
* app/widgets/gimplayertreeview.c: compress layer opacity undos by
looking at the top of the undo stack and not pushing an undo if
there already is a GIMP_UNDO_DRAWABLE_OPACITY for the active
layer.
2003-03-18 02:02:41 +08:00
|
|
|
GIMP_UNDO_GROUP_ITEM_PROPERTIES, /*< desc="Item Properties" >*/
|
2003-05-09 03:11:17 +08:00
|
|
|
GIMP_UNDO_GROUP_ITEM_DISPLACE, /*< desc="Move Item" >*/
|
2003-09-12 03:52:29 +08:00
|
|
|
GIMP_UNDO_GROUP_ITEM_VISIBILITY, /*< desc="Item Visibility" >*/
|
2003-05-09 04:26:01 +08:00
|
|
|
GIMP_UNDO_GROUP_ITEM_LINKED, /*< desc="Linked Item" >*/
|
Made drawable/layer properties (visibility, opacity etc.) undoable (fixes
2003-03-17 Michael Natterer <mitch@gimp.org>
Made drawable/layer properties (visibility, opacity etc.)
undoable (fixes bug #73893).
* app/core/core-enums.[ch]: added undo types/groups for
visibility, mode, opacity, linked and preserve_trans.
* app/core/Makefile.am
* app/core/core-types.h
* app/core/gimpitemundo.[ch]: new GimpUndo subclass which holds a
ref'ed GimpItem pointer so (1) this doesn't need to be done by all
undo steps related to an item and (2) the item the undo step is
for can be determined from outside the undo system.
* app/core/gimpimage-undo.[ch]: added gimp_image_undo_push_item()
which returns a new GimpItemUndo.
* app/core/gimpimage-undo-push.[ch]: use it for all item related
undo steps. Removed lots of GimpItem, GimpLayer, GimpDrawable
and GimpVectors pointers from the private undo structs. Added
undo push functions for the new undo types added above.
* app/core/gimpdrawable.[ch] (gimp_drawable_set_visible): added
"gboolean push_undo" parameter.
* app/core/gimplayer.[ch] (gimp_layer_set_opacity, _mode,
_preserve_trans, _linked): added "gboolean push_undo" parameters.
* app/core/gimpimage-mask.c
* app/core/gimpimage-merge.c
* app/core/gimplayer-floating-sel.c
* app/tools/gimpmovetool.c
* app/xcf/xcf-load.c
* app/widgets/gimpdrawablelistitem.c
* app/widgets/gimplayerlistitem.c
* app/widgets/gimplayerlistview.c: changed accordingly.
* tools/pdbgen/pdb/channel.pdb
* tools/pdbgen/pdb/layer.pdb: ditto. Added '$undo' paramaters to
the foo_accessors() functions. Removed $func from foo_accesors()
because we don't manipulate items without using getters/setters
any longer.
* app/pdb/channel_cmds.c
* app/pdb/layer_cmds.c: regenerated.
* app/widgets/gimpcellrenderertoggle.[ch]: added "clicked" signal
which carries an additional "GdkModifierType state" parameter as
in GimpCellRendererViewable .
* app/widgets/gimpcontainertreeview.c: emit "clicked" from
the toggle renderer, not "toggled" so the callbacks get the
modifier state.
* app/widgets/gimpdrawabletreeview.c: resurrected the "exclusive
visible by <shift>+click" feature as in 1.2.
* app/widgets/gimplayertreeview.c: compress layer opacity undos by
looking at the top of the undo stack and not pushing an undo if
there already is a GIMP_UNDO_DRAWABLE_OPACITY for the active
layer.
2003-03-18 02:02:41 +08:00
|
|
|
GIMP_UNDO_GROUP_LAYER_SCALE, /*< desc="Scale Layer" >*/
|
|
|
|
GIMP_UNDO_GROUP_LAYER_RESIZE, /*< desc="Resize Layer" >*/
|
2003-11-26 23:48:50 +08:00
|
|
|
GIMP_UNDO_GROUP_LAYER_ADD_MASK, /*< desc="Add Layer Mask" >*/
|
Made drawable/layer properties (visibility, opacity etc.) undoable (fixes
2003-03-17 Michael Natterer <mitch@gimp.org>
Made drawable/layer properties (visibility, opacity etc.)
undoable (fixes bug #73893).
* app/core/core-enums.[ch]: added undo types/groups for
visibility, mode, opacity, linked and preserve_trans.
* app/core/Makefile.am
* app/core/core-types.h
* app/core/gimpitemundo.[ch]: new GimpUndo subclass which holds a
ref'ed GimpItem pointer so (1) this doesn't need to be done by all
undo steps related to an item and (2) the item the undo step is
for can be determined from outside the undo system.
* app/core/gimpimage-undo.[ch]: added gimp_image_undo_push_item()
which returns a new GimpItemUndo.
* app/core/gimpimage-undo-push.[ch]: use it for all item related
undo steps. Removed lots of GimpItem, GimpLayer, GimpDrawable
and GimpVectors pointers from the private undo structs. Added
undo push functions for the new undo types added above.
* app/core/gimpdrawable.[ch] (gimp_drawable_set_visible): added
"gboolean push_undo" parameter.
* app/core/gimplayer.[ch] (gimp_layer_set_opacity, _mode,
_preserve_trans, _linked): added "gboolean push_undo" parameters.
* app/core/gimpimage-mask.c
* app/core/gimpimage-merge.c
* app/core/gimplayer-floating-sel.c
* app/tools/gimpmovetool.c
* app/xcf/xcf-load.c
* app/widgets/gimpdrawablelistitem.c
* app/widgets/gimplayerlistitem.c
* app/widgets/gimplayerlistview.c: changed accordingly.
* tools/pdbgen/pdb/channel.pdb
* tools/pdbgen/pdb/layer.pdb: ditto. Added '$undo' paramaters to
the foo_accessors() functions. Removed $func from foo_accesors()
because we don't manipulate items without using getters/setters
any longer.
* app/pdb/channel_cmds.c
* app/pdb/layer_cmds.c: regenerated.
* app/widgets/gimpcellrenderertoggle.[ch]: added "clicked" signal
which carries an additional "GdkModifierType state" parameter as
in GimpCellRendererViewable .
* app/widgets/gimpcontainertreeview.c: emit "clicked" from
the toggle renderer, not "toggled" so the callbacks get the
modifier state.
* app/widgets/gimpdrawabletreeview.c: resurrected the "exclusive
visible by <shift>+click" feature as in 1.2.
* app/widgets/gimplayertreeview.c: compress layer opacity undos by
looking at the top of the undo stack and not pushing an undo if
there already is a GIMP_UNDO_DRAWABLE_OPACITY for the active
layer.
2003-03-18 02:02:41 +08:00
|
|
|
GIMP_UNDO_GROUP_LAYER_APPLY_MASK, /*< desc="Apply Layer Mask" >*/
|
|
|
|
GIMP_UNDO_GROUP_FS_TO_LAYER, /*< desc="Floating Selection to Layer" >*/
|
|
|
|
GIMP_UNDO_GROUP_FS_FLOAT, /*< desc="Float Selection" >*/
|
|
|
|
GIMP_UNDO_GROUP_FS_ANCHOR, /*< desc="Anchor Floating Selection" >*/
|
|
|
|
GIMP_UNDO_GROUP_EDIT_PASTE, /*< desc="Paste" >*/
|
|
|
|
GIMP_UNDO_GROUP_EDIT_CUT, /*< desc="Cut" >*/
|
|
|
|
GIMP_UNDO_GROUP_TEXT, /*< desc="Text" >*/
|
|
|
|
GIMP_UNDO_GROUP_TRANSFORM, /*< desc="Transform" >*/
|
|
|
|
GIMP_UNDO_GROUP_PAINT, /*< desc="Paint" >*/
|
|
|
|
GIMP_UNDO_GROUP_PARASITE_ATTACH, /*< desc="Attach Parasite" >*/
|
|
|
|
GIMP_UNDO_GROUP_PARASITE_REMOVE, /*< desc="Remove Parasite" >*/
|
2003-09-13 10:33:30 +08:00
|
|
|
GIMP_UNDO_GROUP_VECTORS_IMPORT, /*< desc="Import Paths" >*/
|
Made drawable/layer properties (visibility, opacity etc.) undoable (fixes
2003-03-17 Michael Natterer <mitch@gimp.org>
Made drawable/layer properties (visibility, opacity etc.)
undoable (fixes bug #73893).
* app/core/core-enums.[ch]: added undo types/groups for
visibility, mode, opacity, linked and preserve_trans.
* app/core/Makefile.am
* app/core/core-types.h
* app/core/gimpitemundo.[ch]: new GimpUndo subclass which holds a
ref'ed GimpItem pointer so (1) this doesn't need to be done by all
undo steps related to an item and (2) the item the undo step is
for can be determined from outside the undo system.
* app/core/gimpimage-undo.[ch]: added gimp_image_undo_push_item()
which returns a new GimpItemUndo.
* app/core/gimpimage-undo-push.[ch]: use it for all item related
undo steps. Removed lots of GimpItem, GimpLayer, GimpDrawable
and GimpVectors pointers from the private undo structs. Added
undo push functions for the new undo types added above.
* app/core/gimpdrawable.[ch] (gimp_drawable_set_visible): added
"gboolean push_undo" parameter.
* app/core/gimplayer.[ch] (gimp_layer_set_opacity, _mode,
_preserve_trans, _linked): added "gboolean push_undo" parameters.
* app/core/gimpimage-mask.c
* app/core/gimpimage-merge.c
* app/core/gimplayer-floating-sel.c
* app/tools/gimpmovetool.c
* app/xcf/xcf-load.c
* app/widgets/gimpdrawablelistitem.c
* app/widgets/gimplayerlistitem.c
* app/widgets/gimplayerlistview.c: changed accordingly.
* tools/pdbgen/pdb/channel.pdb
* tools/pdbgen/pdb/layer.pdb: ditto. Added '$undo' paramaters to
the foo_accessors() functions. Removed $func from foo_accesors()
because we don't manipulate items without using getters/setters
any longer.
* app/pdb/channel_cmds.c
* app/pdb/layer_cmds.c: regenerated.
* app/widgets/gimpcellrenderertoggle.[ch]: added "clicked" signal
which carries an additional "GdkModifierType state" parameter as
in GimpCellRendererViewable .
* app/widgets/gimpcontainertreeview.c: emit "clicked" from
the toggle renderer, not "toggled" so the callbacks get the
modifier state.
* app/widgets/gimpdrawabletreeview.c: resurrected the "exclusive
visible by <shift>+click" feature as in 1.2.
* app/widgets/gimplayertreeview.c: compress layer opacity undos by
looking at the top of the undo stack and not pushing an undo if
there already is a GIMP_UNDO_DRAWABLE_OPACITY for the active
layer.
2003-03-18 02:02:41 +08:00
|
|
|
GIMP_UNDO_GROUP_MISC, /*< desc="Plug-In" >*/
|
2003-02-13 19:23:50 +08:00
|
|
|
|
|
|
|
GIMP_UNDO_GROUP_LAST = GIMP_UNDO_GROUP_MISC, /*< skip >*/
|
2003-02-13 01:11:34 +08:00
|
|
|
|
|
|
|
/* Undo types which actually do something */
|
|
|
|
|
2003-02-13 19:23:50 +08:00
|
|
|
GIMP_UNDO_IMAGE_TYPE, /*< desc="Image Type" >*/
|
|
|
|
GIMP_UNDO_IMAGE_SIZE, /*< desc="Image Size" >*/
|
|
|
|
GIMP_UNDO_IMAGE_RESOLUTION, /*< desc="Resolution Change" >*/
|
2003-06-24 03:34:48 +08:00
|
|
|
GIMP_UNDO_IMAGE_GRID, /*< desc="Grid" >*/
|
2003-02-13 19:23:50 +08:00
|
|
|
GIMP_UNDO_IMAGE_GUIDE, /*< desc="Guide" >*/
|
2003-03-18 21:49:02 +08:00
|
|
|
GIMP_UNDO_IMAGE_COLORMAP, /*< desc="Change Indexed Palette" >*/
|
2004-03-16 04:58:07 +08:00
|
|
|
GIMP_UNDO_DRAWABLE, /*< desc="Drawable" >*/
|
|
|
|
GIMP_UNDO_DRAWABLE_MOD, /*< desc="Drawable Mod" >*/
|
2003-02-13 19:23:50 +08:00
|
|
|
GIMP_UNDO_MASK, /*< desc="Selection Mask" >*/
|
|
|
|
GIMP_UNDO_ITEM_RENAME, /*< desc="Rename Item" >*/
|
2003-05-09 03:11:17 +08:00
|
|
|
GIMP_UNDO_ITEM_DISPLACE, /*< desc="Move Item" >*/
|
2003-09-12 03:52:29 +08:00
|
|
|
GIMP_UNDO_ITEM_VISIBILITY, /*< desc="Item Visibility" >*/
|
2003-05-09 04:26:01 +08:00
|
|
|
GIMP_UNDO_ITEM_LINKED, /*< desc="Set Item Linked" >*/
|
2003-02-13 19:23:50 +08:00
|
|
|
GIMP_UNDO_LAYER_ADD, /*< desc="New Layer" >*/
|
|
|
|
GIMP_UNDO_LAYER_REMOVE, /*< desc="Delete Layer" >*/
|
|
|
|
GIMP_UNDO_LAYER_MASK_ADD, /*< desc="Add Layer Mask" >*/
|
|
|
|
GIMP_UNDO_LAYER_MASK_REMOVE, /*< desc="Delete Layer Mask" >*/
|
Made drawable/layer properties (visibility, opacity etc.) undoable (fixes
2003-03-17 Michael Natterer <mitch@gimp.org>
Made drawable/layer properties (visibility, opacity etc.)
undoable (fixes bug #73893).
* app/core/core-enums.[ch]: added undo types/groups for
visibility, mode, opacity, linked and preserve_trans.
* app/core/Makefile.am
* app/core/core-types.h
* app/core/gimpitemundo.[ch]: new GimpUndo subclass which holds a
ref'ed GimpItem pointer so (1) this doesn't need to be done by all
undo steps related to an item and (2) the item the undo step is
for can be determined from outside the undo system.
* app/core/gimpimage-undo.[ch]: added gimp_image_undo_push_item()
which returns a new GimpItemUndo.
* app/core/gimpimage-undo-push.[ch]: use it for all item related
undo steps. Removed lots of GimpItem, GimpLayer, GimpDrawable
and GimpVectors pointers from the private undo structs. Added
undo push functions for the new undo types added above.
* app/core/gimpdrawable.[ch] (gimp_drawable_set_visible): added
"gboolean push_undo" parameter.
* app/core/gimplayer.[ch] (gimp_layer_set_opacity, _mode,
_preserve_trans, _linked): added "gboolean push_undo" parameters.
* app/core/gimpimage-mask.c
* app/core/gimpimage-merge.c
* app/core/gimplayer-floating-sel.c
* app/tools/gimpmovetool.c
* app/xcf/xcf-load.c
* app/widgets/gimpdrawablelistitem.c
* app/widgets/gimplayerlistitem.c
* app/widgets/gimplayerlistview.c: changed accordingly.
* tools/pdbgen/pdb/channel.pdb
* tools/pdbgen/pdb/layer.pdb: ditto. Added '$undo' paramaters to
the foo_accessors() functions. Removed $func from foo_accesors()
because we don't manipulate items without using getters/setters
any longer.
* app/pdb/channel_cmds.c
* app/pdb/layer_cmds.c: regenerated.
* app/widgets/gimpcellrenderertoggle.[ch]: added "clicked" signal
which carries an additional "GdkModifierType state" parameter as
in GimpCellRendererViewable .
* app/widgets/gimpcontainertreeview.c: emit "clicked" from
the toggle renderer, not "toggled" so the callbacks get the
modifier state.
* app/widgets/gimpdrawabletreeview.c: resurrected the "exclusive
visible by <shift>+click" feature as in 1.2.
* app/widgets/gimplayertreeview.c: compress layer opacity undos by
looking at the top of the undo stack and not pushing an undo if
there already is a GIMP_UNDO_DRAWABLE_OPACITY for the active
layer.
2003-03-18 02:02:41 +08:00
|
|
|
GIMP_UNDO_LAYER_REPOSITION, /*< desc="Reposition Layer" >*/
|
|
|
|
GIMP_UNDO_LAYER_MODE, /*< desc="Set Layer Mode" >*/
|
|
|
|
GIMP_UNDO_LAYER_OPACITY, /*< desc="Set Layer Opacity" >*/
|
|
|
|
GIMP_UNDO_LAYER_PRESERVE_TRANS, /*< desc="Set Preserve Trans" >*/
|
2004-01-05 08:28:12 +08:00
|
|
|
GIMP_UNDO_TEXT_LAYER, /*< desc="Text" >*/
|
2003-02-13 19:23:50 +08:00
|
|
|
GIMP_UNDO_CHANNEL_ADD, /*< desc="New Channel" >*/
|
|
|
|
GIMP_UNDO_CHANNEL_REMOVE, /*< desc="Delete Channel" >*/
|
Made drawable/layer properties (visibility, opacity etc.) undoable (fixes
2003-03-17 Michael Natterer <mitch@gimp.org>
Made drawable/layer properties (visibility, opacity etc.)
undoable (fixes bug #73893).
* app/core/core-enums.[ch]: added undo types/groups for
visibility, mode, opacity, linked and preserve_trans.
* app/core/Makefile.am
* app/core/core-types.h
* app/core/gimpitemundo.[ch]: new GimpUndo subclass which holds a
ref'ed GimpItem pointer so (1) this doesn't need to be done by all
undo steps related to an item and (2) the item the undo step is
for can be determined from outside the undo system.
* app/core/gimpimage-undo.[ch]: added gimp_image_undo_push_item()
which returns a new GimpItemUndo.
* app/core/gimpimage-undo-push.[ch]: use it for all item related
undo steps. Removed lots of GimpItem, GimpLayer, GimpDrawable
and GimpVectors pointers from the private undo structs. Added
undo push functions for the new undo types added above.
* app/core/gimpdrawable.[ch] (gimp_drawable_set_visible): added
"gboolean push_undo" parameter.
* app/core/gimplayer.[ch] (gimp_layer_set_opacity, _mode,
_preserve_trans, _linked): added "gboolean push_undo" parameters.
* app/core/gimpimage-mask.c
* app/core/gimpimage-merge.c
* app/core/gimplayer-floating-sel.c
* app/tools/gimpmovetool.c
* app/xcf/xcf-load.c
* app/widgets/gimpdrawablelistitem.c
* app/widgets/gimplayerlistitem.c
* app/widgets/gimplayerlistview.c: changed accordingly.
* tools/pdbgen/pdb/channel.pdb
* tools/pdbgen/pdb/layer.pdb: ditto. Added '$undo' paramaters to
the foo_accessors() functions. Removed $func from foo_accesors()
because we don't manipulate items without using getters/setters
any longer.
* app/pdb/channel_cmds.c
* app/pdb/layer_cmds.c: regenerated.
* app/widgets/gimpcellrenderertoggle.[ch]: added "clicked" signal
which carries an additional "GdkModifierType state" parameter as
in GimpCellRendererViewable .
* app/widgets/gimpcontainertreeview.c: emit "clicked" from
the toggle renderer, not "toggled" so the callbacks get the
modifier state.
* app/widgets/gimpdrawabletreeview.c: resurrected the "exclusive
visible by <shift>+click" feature as in 1.2.
* app/widgets/gimplayertreeview.c: compress layer opacity undos by
looking at the top of the undo stack and not pushing an undo if
there already is a GIMP_UNDO_DRAWABLE_OPACITY for the active
layer.
2003-03-18 02:02:41 +08:00
|
|
|
GIMP_UNDO_CHANNEL_REPOSITION, /*< desc="Reposition Channel" >*/
|
2003-03-17 10:25:39 +08:00
|
|
|
GIMP_UNDO_CHANNEL_COLOR, /*< desc="Channel Color" >*/
|
2003-02-13 19:23:50 +08:00
|
|
|
GIMP_UNDO_VECTORS_ADD, /*< desc="New Vectors" >*/
|
|
|
|
GIMP_UNDO_VECTORS_REMOVE, /*< desc="Delete Vectors" >*/
|
|
|
|
GIMP_UNDO_VECTORS_MOD, /*< desc="Vectors Mod" >*/
|
Made drawable/layer properties (visibility, opacity etc.) undoable (fixes
2003-03-17 Michael Natterer <mitch@gimp.org>
Made drawable/layer properties (visibility, opacity etc.)
undoable (fixes bug #73893).
* app/core/core-enums.[ch]: added undo types/groups for
visibility, mode, opacity, linked and preserve_trans.
* app/core/Makefile.am
* app/core/core-types.h
* app/core/gimpitemundo.[ch]: new GimpUndo subclass which holds a
ref'ed GimpItem pointer so (1) this doesn't need to be done by all
undo steps related to an item and (2) the item the undo step is
for can be determined from outside the undo system.
* app/core/gimpimage-undo.[ch]: added gimp_image_undo_push_item()
which returns a new GimpItemUndo.
* app/core/gimpimage-undo-push.[ch]: use it for all item related
undo steps. Removed lots of GimpItem, GimpLayer, GimpDrawable
and GimpVectors pointers from the private undo structs. Added
undo push functions for the new undo types added above.
* app/core/gimpdrawable.[ch] (gimp_drawable_set_visible): added
"gboolean push_undo" parameter.
* app/core/gimplayer.[ch] (gimp_layer_set_opacity, _mode,
_preserve_trans, _linked): added "gboolean push_undo" parameters.
* app/core/gimpimage-mask.c
* app/core/gimpimage-merge.c
* app/core/gimplayer-floating-sel.c
* app/tools/gimpmovetool.c
* app/xcf/xcf-load.c
* app/widgets/gimpdrawablelistitem.c
* app/widgets/gimplayerlistitem.c
* app/widgets/gimplayerlistview.c: changed accordingly.
* tools/pdbgen/pdb/channel.pdb
* tools/pdbgen/pdb/layer.pdb: ditto. Added '$undo' paramaters to
the foo_accessors() functions. Removed $func from foo_accesors()
because we don't manipulate items without using getters/setters
any longer.
* app/pdb/channel_cmds.c
* app/pdb/layer_cmds.c: regenerated.
* app/widgets/gimpcellrenderertoggle.[ch]: added "clicked" signal
which carries an additional "GdkModifierType state" parameter as
in GimpCellRendererViewable .
* app/widgets/gimpcontainertreeview.c: emit "clicked" from
the toggle renderer, not "toggled" so the callbacks get the
modifier state.
* app/widgets/gimpdrawabletreeview.c: resurrected the "exclusive
visible by <shift>+click" feature as in 1.2.
* app/widgets/gimplayertreeview.c: compress layer opacity undos by
looking at the top of the undo stack and not pushing an undo if
there already is a GIMP_UNDO_DRAWABLE_OPACITY for the active
layer.
2003-03-18 02:02:41 +08:00
|
|
|
GIMP_UNDO_VECTORS_REPOSITION, /*< desc="Reposition Vectors" >*/
|
2003-02-13 19:23:50 +08:00
|
|
|
GIMP_UNDO_FS_TO_LAYER, /*< desc="FS to Layer" >*/
|
|
|
|
GIMP_UNDO_FS_RIGOR, /*< desc="FS Rigor" >*/
|
|
|
|
GIMP_UNDO_FS_RELAX, /*< desc="FS Relax" >*/
|
|
|
|
GIMP_UNDO_TRANSFORM, /*< desc="Transform" >*/
|
|
|
|
GIMP_UNDO_PAINT, /*< desc="Paint" >*/
|
|
|
|
GIMP_UNDO_PARASITE_ATTACH, /*< desc="Attach Parasite" >*/
|
|
|
|
GIMP_UNDO_PARASITE_REMOVE, /*< desc="Remove Parasite" >*/
|
|
|
|
|
|
|
|
GIMP_UNDO_CANT /*< desc="EEK: can't undo" >*/
|
2003-02-13 01:11:34 +08:00
|
|
|
} GimpUndoType;
|
|
|
|
|
|
|
|
|
2003-02-08 01:12:21 +08:00
|
|
|
/*
|
|
|
|
* non-registered enums; register them if needed
|
|
|
|
*/
|
|
|
|
|
2003-06-30 05:54:09 +08:00
|
|
|
typedef enum /*< pdb-skip, skip >*/
|
2003-06-28 19:20:37 +08:00
|
|
|
{
|
|
|
|
GIMP_CONTEXT_FIRST_PROP = 2,
|
|
|
|
|
|
|
|
GIMP_CONTEXT_PROP_IMAGE = GIMP_CONTEXT_FIRST_PROP,
|
|
|
|
GIMP_CONTEXT_PROP_DISPLAY = 3,
|
|
|
|
GIMP_CONTEXT_PROP_TOOL = 4,
|
|
|
|
GIMP_CONTEXT_PROP_FOREGROUND = 5,
|
|
|
|
GIMP_CONTEXT_PROP_BACKGROUND = 6,
|
|
|
|
GIMP_CONTEXT_PROP_OPACITY = 7,
|
|
|
|
GIMP_CONTEXT_PROP_PAINT_MODE = 8,
|
|
|
|
GIMP_CONTEXT_PROP_BRUSH = 9,
|
|
|
|
GIMP_CONTEXT_PROP_PATTERN = 10,
|
|
|
|
GIMP_CONTEXT_PROP_GRADIENT = 11,
|
|
|
|
GIMP_CONTEXT_PROP_PALETTE = 12,
|
|
|
|
GIMP_CONTEXT_PROP_FONT = 13,
|
|
|
|
GIMP_CONTEXT_PROP_BUFFER = 14,
|
|
|
|
GIMP_CONTEXT_PROP_IMAGEFILE = 15,
|
|
|
|
GIMP_CONTEXT_PROP_TEMPLATE = 16,
|
|
|
|
|
|
|
|
GIMP_CONTEXT_LAST_PROP = GIMP_CONTEXT_PROP_TEMPLATE
|
|
|
|
} GimpContextPropType;
|
|
|
|
|
2003-06-30 05:54:09 +08:00
|
|
|
typedef enum /*< pdb-skip, skip >*/
|
2003-06-28 19:20:37 +08:00
|
|
|
{
|
|
|
|
GIMP_CONTEXT_IMAGE_MASK = 1 << 2,
|
|
|
|
GIMP_CONTEXT_DISPLAY_MASK = 1 << 3,
|
|
|
|
GIMP_CONTEXT_TOOL_MASK = 1 << 4,
|
|
|
|
GIMP_CONTEXT_FOREGROUND_MASK = 1 << 5,
|
|
|
|
GIMP_CONTEXT_BACKGROUND_MASK = 1 << 6,
|
|
|
|
GIMP_CONTEXT_OPACITY_MASK = 1 << 7,
|
|
|
|
GIMP_CONTEXT_PAINT_MODE_MASK = 1 << 8,
|
|
|
|
GIMP_CONTEXT_BRUSH_MASK = 1 << 9,
|
|
|
|
GIMP_CONTEXT_PATTERN_MASK = 1 << 10,
|
|
|
|
GIMP_CONTEXT_GRADIENT_MASK = 1 << 11,
|
|
|
|
GIMP_CONTEXT_PALETTE_MASK = 1 << 12,
|
|
|
|
GIMP_CONTEXT_FONT_MASK = 1 << 13,
|
|
|
|
GIMP_CONTEXT_BUFFER_MASK = 1 << 14,
|
|
|
|
GIMP_CONTEXT_IMAGEFILE_MASK = 1 << 15,
|
|
|
|
GIMP_CONTEXT_TEMPLATE_MASK = 1 << 16,
|
|
|
|
|
|
|
|
/* aliases */
|
|
|
|
GIMP_CONTEXT_PAINT_PROPS_MASK = (GIMP_CONTEXT_FOREGROUND_MASK |
|
|
|
|
GIMP_CONTEXT_BACKGROUND_MASK |
|
|
|
|
GIMP_CONTEXT_OPACITY_MASK |
|
|
|
|
GIMP_CONTEXT_PAINT_MODE_MASK |
|
|
|
|
GIMP_CONTEXT_BRUSH_MASK |
|
|
|
|
GIMP_CONTEXT_PATTERN_MASK |
|
|
|
|
GIMP_CONTEXT_GRADIENT_MASK),
|
|
|
|
GIMP_CONTEXT_ALL_PROPS_MASK = (GIMP_CONTEXT_IMAGE_MASK |
|
|
|
|
GIMP_CONTEXT_DISPLAY_MASK |
|
|
|
|
GIMP_CONTEXT_TOOL_MASK |
|
|
|
|
GIMP_CONTEXT_PALETTE_MASK |
|
|
|
|
GIMP_CONTEXT_FONT_MASK |
|
|
|
|
GIMP_CONTEXT_BUFFER_MASK |
|
|
|
|
GIMP_CONTEXT_IMAGEFILE_MASK |
|
|
|
|
GIMP_CONTEXT_TEMPLATE_MASK |
|
|
|
|
GIMP_CONTEXT_PAINT_PROPS_MASK)
|
|
|
|
} GimpContextPropMask;
|
|
|
|
|
2003-02-13 17:38:39 +08:00
|
|
|
typedef enum /*< skip >*/
|
2002-03-18 21:55:19 +08:00
|
|
|
{
|
|
|
|
GIMP_MAKE_PALETTE,
|
|
|
|
GIMP_REUSE_PALETTE,
|
|
|
|
GIMP_WEB_PALETTE,
|
|
|
|
GIMP_MONO_PALETTE,
|
|
|
|
GIMP_CUSTOM_PALETTE
|
|
|
|
} GimpConvertPaletteType;
|
2002-03-18 19:07:34 +08:00
|
|
|
|
2003-06-30 05:54:09 +08:00
|
|
|
typedef enum /*< pdb-skip, skip >*/
|
2001-12-12 02:53:03 +08:00
|
|
|
{
|
|
|
|
GIMP_GRAD_LINEAR = 0,
|
|
|
|
GIMP_GRAD_CURVED,
|
|
|
|
GIMP_GRAD_SINE,
|
|
|
|
GIMP_GRAD_SPHERE_INCREASING,
|
|
|
|
GIMP_GRAD_SPHERE_DECREASING
|
|
|
|
} GimpGradientSegmentType;
|
|
|
|
|
2003-06-30 05:54:09 +08:00
|
|
|
typedef enum /*< pdb-skip, skip >*/
|
2001-12-12 02:53:03 +08:00
|
|
|
{
|
2002-03-18 21:55:19 +08:00
|
|
|
GIMP_GRAD_RGB, /* normal RGB */
|
2001-12-12 02:53:03 +08:00
|
|
|
GIMP_GRAD_HSV_CCW, /* counterclockwise hue */
|
2002-03-18 21:55:19 +08:00
|
|
|
GIMP_GRAD_HSV_CW /* clockwise hue */
|
2001-12-12 02:53:03 +08:00
|
|
|
} GimpGradientSegmentColor;
|
|
|
|
|
2002-03-18 19:07:34 +08:00
|
|
|
typedef enum /*< skip >*/
|
|
|
|
{
|
|
|
|
GIMP_MASK_APPLY,
|
|
|
|
GIMP_MASK_DISCARD
|
|
|
|
} GimpMaskApplyMode;
|
|
|
|
|
2002-03-19 01:24:52 +08:00
|
|
|
typedef enum /*< skip >*/
|
|
|
|
{
|
|
|
|
GIMP_EXPAND_AS_NECESSARY,
|
|
|
|
GIMP_CLIP_TO_IMAGE,
|
|
|
|
GIMP_CLIP_TO_BOTTOM_LAYER,
|
|
|
|
GIMP_FLATTEN_IMAGE
|
|
|
|
} GimpMergeType;
|
|
|
|
|
|
|
|
typedef enum /*< skip >*/
|
|
|
|
{
|
|
|
|
GIMP_OFFSET_BACKGROUND,
|
|
|
|
GIMP_OFFSET_TRANSPARENT
|
|
|
|
} GimpOffsetType;
|
|
|
|
|
2003-12-09 05:56:22 +08:00
|
|
|
typedef enum /*< pdb-skip, skip >*/
|
|
|
|
{
|
2003-12-09 19:49:47 +08:00
|
|
|
GIMP_IMAGE_SCALE_OK,
|
|
|
|
GIMP_IMAGE_SCALE_TOO_SMALL,
|
|
|
|
GIMP_IMAGE_SCALE_TOO_BIG
|
2003-12-09 05:56:22 +08:00
|
|
|
} GimpImageScaleCheckType;
|
2001-12-12 02:11:56 +08:00
|
|
|
|
2002-03-29 11:50:29 +08:00
|
|
|
#endif /* __CORE_ENUMS_H__ */
|