core-enums.h 24.9 KB
Newer Older
1
/* GIMP - The GNU Image Manipulation Program
2 3
 * Copyright (C) 1995 Spencer Kimball and Peter Mattis
 *
4
 * This program is free software: you can redistribute it and/or modify
5
 * it under the terms of the GNU General Public License as published by
6
 * the Free Software Foundation; either version 3 of the License, or
7 8 9 10 11 12 13 14
 * (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
15
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
16 17 18 19 20
 */

#ifndef __CORE_ENUMS_H__
#define __CORE_ENUMS_H__

21

22
#if 0
23
   This file is parsed by two scripts, enumgen.pl in pdb,
24
   and gimp-mkenums. All enums that are not marked with
25
   /*< pdb-skip >*/ are exported to libgimp and the PDB. Enums that are
26 27 28
   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 >*/.
29

30
   The same syntax applies to enum values.
31
#endif
32

33

34
/*
35
 * these enums are registered with the type system
36
 */
37

38

39 40 41 42 43 44
#define GIMP_TYPE_COMPONENT_MASK (gimp_component_mask_get_type ())

GType gimp_component_mask_get_type (void) G_GNUC_CONST;

typedef enum /*< pdb-skip >*/
{
45 46 47 48
  GIMP_COMPONENT_MASK_RED   = 1 << 0,
  GIMP_COMPONENT_MASK_GREEN = 1 << 1,
  GIMP_COMPONENT_MASK_BLUE  = 1 << 2,
  GIMP_COMPONENT_MASK_ALPHA = 1 << 3,
49

50 51 52 53
  GIMP_COMPONENT_MASK_ALL = (GIMP_COMPONENT_MASK_RED   |
                             GIMP_COMPONENT_MASK_GREEN |
                             GIMP_COMPONENT_MASK_BLUE  |
                             GIMP_COMPONENT_MASK_ALPHA)
54 55 56
} GimpComponentMask;


57 58 59 60 61 62 63 64 65 66 67
#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;


68 69 70 71 72 73
#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
{
74 75 76 77 78
  GIMP_CONVERT_DITHER_NONE,        /*< desc="None"                                     >*/
  GIMP_CONVERT_DITHER_FS,          /*< desc="Floyd-Steinberg (normal)"                 >*/
  GIMP_CONVERT_DITHER_FS_LOWBLEED, /*< desc="Floyd-Steinberg (reduced color bleeding)" >*/
  GIMP_CONVERT_DITHER_FIXED,       /*< desc="Positioned"                               >*/
  GIMP_CONVERT_DITHER_NODESTRUCT   /*< pdb-skip, skip >*/
79 80 81
} GimpConvertDitherType;


82 83 84 85
#define GIMP_TYPE_CONVOLUTION_TYPE (gimp_convolution_type_get_type ())

GType gimp_convolution_type_get_type (void) G_GNUC_CONST;

86
typedef enum  /*< pdb-skip >*/
87 88 89 90 91 92 93
{
  GIMP_NORMAL_CONVOL,      /*  Negative numbers truncated  */
  GIMP_ABSOLUTE_CONVOL,    /*  Absolute value              */
  GIMP_NEGATIVE_CONVOL     /*  add 127 to values           */
} GimpConvolutionType;


94 95 96 97 98 99 100 101 102 103 104
#define GIMP_TYPE_CURVE_TYPE (gimp_curve_type_get_type ())

GType gimp_curve_type_get_type (void) G_GNUC_CONST;

typedef enum  /*< pdb-skip >*/
{
  GIMP_CURVE_SMOOTH,   /*< desc="Smooth"   >*/
  GIMP_CURVE_FREE      /*< desc="Freehand" >*/
} GimpCurveType;


105 106 107 108 109 110
#define GIMP_TYPE_GRAVITY_TYPE (gimp_gravity_type_get_type ())

GType gimp_gravity_type_get_type (void) G_GNUC_CONST;

typedef enum  /*< pdb-skip >*/
{
Sven Neumann's avatar
Sven Neumann committed
111
  GIMP_GRAVITY_NONE,
112
  GIMP_GRAVITY_NORTH_WEST,
Sven Neumann's avatar
Sven Neumann committed
113
  GIMP_GRAVITY_NORTH,
114 115
  GIMP_GRAVITY_NORTH_EAST,
  GIMP_GRAVITY_WEST,
Sven Neumann's avatar
Sven Neumann committed
116 117 118 119 120
  GIMP_GRAVITY_CENTER,
  GIMP_GRAVITY_EAST,
  GIMP_GRAVITY_SOUTH_WEST,
  GIMP_GRAVITY_SOUTH,
  GIMP_GRAVITY_SOUTH_EAST
121 122 123
} GimpGravityType;


124 125 126 127 128 129 130 131 132
#define GIMP_TYPE_GUIDE_STYLE (gimp_guide_style_get_type ())

GType gimp_guide_style_get_type (void) G_GNUC_CONST;

typedef enum /*< pdb-skip >*/
{
  GIMP_GUIDE_STYLE_NONE,
  GIMP_GUIDE_STYLE_NORMAL,
  GIMP_GUIDE_STYLE_MIRROR,
133 134
  GIMP_GUIDE_STYLE_MANDALA,
  GIMP_GUIDE_STYLE_SPLIT_VIEW
135 136 137
} GimpGuideStyle;


138 139 140 141 142 143
#define GIMP_TYPE_HISTOGRAM_CHANNEL (gimp_histogram_channel_get_type ())

GType gimp_histogram_channel_get_type (void) G_GNUC_CONST;

typedef enum
{
144 145 146 147 148 149 150
  GIMP_HISTOGRAM_VALUE     = 0,  /*< desc="Value"         >*/
  GIMP_HISTOGRAM_RED       = 1,  /*< desc="Red"           >*/
  GIMP_HISTOGRAM_GREEN     = 2,  /*< desc="Green"         >*/
  GIMP_HISTOGRAM_BLUE      = 3,  /*< desc="Blue"          >*/
  GIMP_HISTOGRAM_ALPHA     = 4,  /*< desc="Alpha"         >*/
  GIMP_HISTOGRAM_LUMINANCE = 5,  /*< desc="Luminance"     >*/
  GIMP_HISTOGRAM_RGB       = 6   /*< desc="RGB", pdb-skip >*/
151 152 153
} GimpHistogramChannel;


154 155 156 157 158 159
#define GIMP_TYPE_MATTING_ENGINE (gimp_matting_engine_get_type ())

GType gimp_matting_engine_get_type (void) G_GNUC_CONST;

typedef enum  /*< pdb-skip >*/
{
160 161
  GIMP_MATTING_ENGINE_GLOBAL,  /*< desc="Matting Global" >*/
  GIMP_MATTING_ENGINE_LEVIN,   /*< desc="Matting Levin" >*/
162 163 164
} GimpMattingEngine;


165 166 167 168 169 170 171
#define GIMP_TYPE_PASTE_TYPE (gimp_paste_type_get_type ())

GType gimp_paste_type_get_type (void) G_GNUC_CONST;

typedef enum  /*< pdb-skip >*/
{
  GIMP_PASTE_TYPE_FLOATING,
172
  GIMP_PASTE_TYPE_FLOATING_IN_PLACE,
173
  GIMP_PASTE_TYPE_FLOATING_INTO,
174 175 176
  GIMP_PASTE_TYPE_FLOATING_INTO_IN_PLACE,
  GIMP_PASTE_TYPE_NEW_LAYER,
  GIMP_PASTE_TYPE_NEW_LAYER_IN_PLACE
177 178 179
} GimpPasteType;


180
#define GIMP_TYPE_ALIGNMENT_TYPE (gimp_alignment_type_get_type ())
181 182 183 184 185 186

GType gimp_alignment_type_get_type (void) G_GNUC_CONST;

typedef enum  /*< pdb-skip >*/
{
  GIMP_ALIGN_LEFT,
187
  GIMP_ALIGN_HCENTER,
188 189
  GIMP_ALIGN_RIGHT,
  GIMP_ALIGN_TOP,
190 191 192 193 194 195 196
  GIMP_ALIGN_VCENTER,
  GIMP_ALIGN_BOTTOM,
  GIMP_ARRANGE_LEFT,
  GIMP_ARRANGE_HCENTER,
  GIMP_ARRANGE_RIGHT,
  GIMP_ARRANGE_TOP,
  GIMP_ARRANGE_VCENTER,
197 198 199
  GIMP_ARRANGE_BOTTOM,
  GIMP_ARRANGE_HFILL,
  GIMP_ARRANGE_VFILL
200 201 202
} GimpAlignmentType;


203
#define GIMP_TYPE_ALIGN_REFERENCE_TYPE (gimp_align_reference_type_get_type ())
204 205 206 207 208 209 210 211 212 213 214 215 216 217

GType gimp_align_reference_type_get_type (void) G_GNUC_CONST;

typedef enum  /*< pdb-skip >*/
{
  GIMP_ALIGN_REFERENCE_FIRST,          /*< desc="First item"     >*/
  GIMP_ALIGN_REFERENCE_IMAGE,          /*< desc="Image"          >*/
  GIMP_ALIGN_REFERENCE_SELECTION,      /*< desc="Selection"      >*/
  GIMP_ALIGN_REFERENCE_ACTIVE_LAYER,   /*< desc="Active layer"   >*/
  GIMP_ALIGN_REFERENCE_ACTIVE_CHANNEL, /*< desc="Active channel" >*/
  GIMP_ALIGN_REFERENCE_ACTIVE_PATH     /*< desc="Active path"    >*/
} GimpAlignReferenceType;


218
#define GIMP_TYPE_FILL_STYLE (gimp_fill_style_get_type ())
219

220
GType gimp_fill_style_get_type (void) G_GNUC_CONST;
221 222 223

typedef enum  /*< pdb-skip >*/
{
224 225 226
  GIMP_FILL_STYLE_SOLID,  /*< desc="Solid color" >*/
  GIMP_FILL_STYLE_PATTERN /*< desc="Pattern"     >*/
} GimpFillStyle;
227 228


229 230 231 232 233 234
#define GIMP_TYPE_DASH_PRESET (gimp_dash_preset_get_type ())

GType gimp_dash_preset_get_type (void) G_GNUC_CONST;

typedef enum  /*< pdb-skip >*/
{
235 236 237 238 239 240 241 242 243 244 245
  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" >*/
246 247 248
} GimpDashPreset;


249
#define GIMP_TYPE_ITEM_SET (gimp_item_set_get_type ())
250

251
GType gimp_item_set_get_type (void) G_GNUC_CONST;
252 253 254

typedef enum  /*< pdb-skip >*/
{
255 256 257 258 259 260
  GIMP_ITEM_SET_NONE,        /*< desc="None"               >*/
  GIMP_ITEM_SET_ALL,         /*< desc="All layers"         >*/
  GIMP_ITEM_SET_IMAGE_SIZED, /*< desc="Image-sized layers" >*/
  GIMP_ITEM_SET_VISIBLE,     /*< desc="All visible layers" >*/
  GIMP_ITEM_SET_LINKED       /*< desc="All linked layers"  >*/
} GimpItemSet;
261 262


263
#define GIMP_TYPE_VIEW_SIZE (gimp_view_size_get_type ())
264

265
GType gimp_view_size_get_type (void) G_GNUC_CONST;
266 267 268

typedef enum  /*< pdb-skip >*/
{
269 270 271 272 273 274 275 276 277 278
  GIMP_VIEW_SIZE_TINY        = 12,   /*< desc="Tiny"        >*/
  GIMP_VIEW_SIZE_EXTRA_SMALL = 16,   /*< desc="Very small"  >*/
  GIMP_VIEW_SIZE_SMALL       = 24,   /*< desc="Small"       >*/
  GIMP_VIEW_SIZE_MEDIUM      = 32,   /*< desc="Medium"      >*/
  GIMP_VIEW_SIZE_LARGE       = 48,   /*< desc="Large"       >*/
  GIMP_VIEW_SIZE_EXTRA_LARGE = 64,   /*< desc="Very large"  >*/
  GIMP_VIEW_SIZE_HUGE        = 96,   /*< desc="Huge"        >*/
  GIMP_VIEW_SIZE_ENORMOUS    = 128,  /*< desc="Enormous"    >*/
  GIMP_VIEW_SIZE_GIGANTIC    = 192   /*< desc="Gigantic"    >*/
} GimpViewSize;
279 280


281 282 283 284 285 286 287 288 289 290 291
#define GIMP_TYPE_VIEW_TYPE (gimp_view_type_get_type ())

GType gimp_view_type_get_type (void) G_GNUC_CONST;

typedef enum  /*< pdb-skip >*/
{
  GIMP_VIEW_TYPE_LIST,  /*< desc="View as list" >*/
  GIMP_VIEW_TYPE_GRID   /*< desc="View as grid" >*/
} GimpViewType;


292 293 294 295 296 297
#define GIMP_TYPE_THUMBNAIL_SIZE (gimp_thumbnail_size_get_type ())

GType gimp_thumbnail_size_get_type (void) G_GNUC_CONST;

typedef enum  /*< pdb-skip >*/
{
298
  GIMP_THUMBNAIL_SIZE_NONE    = 0,    /*< desc="No thumbnails"    >*/
299 300 301 302 303
  GIMP_THUMBNAIL_SIZE_NORMAL  = 128,  /*< desc="Normal (128x128)" >*/
  GIMP_THUMBNAIL_SIZE_LARGE   = 256   /*< desc="Large (256x256)"  >*/
} GimpThumbnailSize;


304 305 306 307
#define GIMP_TYPE_UNDO_MODE (gimp_undo_mode_get_type ())

GType gimp_undo_mode_get_type (void) G_GNUC_CONST;

308
typedef enum /*< pdb-skip >*/
309 310 311 312 313 314
{
  GIMP_UNDO_MODE_UNDO,
  GIMP_UNDO_MODE_REDO
} GimpUndoMode;


315 316 317 318 319 320 321 322 323 324 325
#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                    */
326 327 328
  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                         */
329 330 331
} GimpUndoEvent;


332 333 334 335 336 337 338 339 340
#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.
   */
341
  GIMP_UNDO_GROUP_NONE = 0,           /*< desc="<<invalid>>"                 >*/
342 343 344

  GIMP_UNDO_GROUP_FIRST = GIMP_UNDO_GROUP_NONE, /*< skip >*/

345 346 347 348 349
  GIMP_UNDO_GROUP_IMAGE_SCALE,        /*< desc="Scale image"                 >*/
  GIMP_UNDO_GROUP_IMAGE_RESIZE,       /*< desc="Resize image"                >*/
  GIMP_UNDO_GROUP_IMAGE_FLIP,         /*< desc="Flip image"                  >*/
  GIMP_UNDO_GROUP_IMAGE_ROTATE,       /*< desc="Rotate image"                >*/
  GIMP_UNDO_GROUP_IMAGE_CROP,         /*< desc="Crop image"                  >*/
350
  GIMP_UNDO_GROUP_IMAGE_CONVERT,      /*< desc="Convert image"               >*/
351
  GIMP_UNDO_GROUP_IMAGE_ITEM_REMOVE,  /*< desc="Remove item"                 >*/
352
  GIMP_UNDO_GROUP_IMAGE_LAYERS_MERGE, /*< desc="Merge layers"                >*/
353
  GIMP_UNDO_GROUP_IMAGE_VECTORS_MERGE,/*< desc="Merge paths"                 >*/
354
  GIMP_UNDO_GROUP_IMAGE_QUICK_MASK,   /*< desc="Quick Mask"                  >*/
355
  GIMP_UNDO_GROUP_IMAGE_GRID,         /*< desc="Grid"                        >*/
356 357
  GIMP_UNDO_GROUP_GUIDE,              /*< desc="Guide"                       >*/
  GIMP_UNDO_GROUP_SAMPLE_POINT,       /*< desc="Sample Point"                >*/
358 359
  GIMP_UNDO_GROUP_DRAWABLE,           /*< desc="Layer/Channel"               >*/
  GIMP_UNDO_GROUP_DRAWABLE_MOD,       /*< desc="Layer/Channel modification"  >*/
360 361
  GIMP_UNDO_GROUP_MASK,               /*< desc="Selection mask"              >*/
  GIMP_UNDO_GROUP_ITEM_VISIBILITY,    /*< desc="Item visibility"             >*/
362
  GIMP_UNDO_GROUP_ITEM_LINKED,        /*< desc="Link/Unlink item"            >*/
363 364 365 366
  GIMP_UNDO_GROUP_ITEM_PROPERTIES,    /*< desc="Item properties"             >*/
  GIMP_UNDO_GROUP_ITEM_DISPLACE,      /*< desc="Move item"                   >*/
  GIMP_UNDO_GROUP_ITEM_SCALE,         /*< desc="Scale item"                  >*/
  GIMP_UNDO_GROUP_ITEM_RESIZE,        /*< desc="Resize item"                 >*/
367
  GIMP_UNDO_GROUP_LAYER_ADD,          /*< desc="Add layer"                   >*/
368 369 370 371 372
  GIMP_UNDO_GROUP_LAYER_ADD_MASK,     /*< desc="Add layer mask"              >*/
  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"   >*/
373 374 375 376 377
  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"                       >*/
378 379 380
  GIMP_UNDO_GROUP_PARASITE_ATTACH,    /*< desc="Attach parasite"             >*/
  GIMP_UNDO_GROUP_PARASITE_REMOVE,    /*< desc="Remove parasite"             >*/
  GIMP_UNDO_GROUP_VECTORS_IMPORT,     /*< desc="Import paths"                >*/
381
  GIMP_UNDO_GROUP_MISC,               /*< desc="Plug-In"                     >*/
382 383

  GIMP_UNDO_GROUP_LAST = GIMP_UNDO_GROUP_MISC, /*< skip >*/
384 385 386

  /*  Undo types which actually do something  */

387
  GIMP_UNDO_IMAGE_TYPE,               /*< desc="Image type"                  >*/
388
  GIMP_UNDO_IMAGE_PRECISION,          /*< desc="Image precision"             >*/
389 390 391
  GIMP_UNDO_IMAGE_SIZE,               /*< desc="Image size"                  >*/
  GIMP_UNDO_IMAGE_RESOLUTION,         /*< desc="Image resolution change"     >*/
  GIMP_UNDO_IMAGE_GRID,               /*< desc="Grid"                        >*/
392
  GIMP_UNDO_IMAGE_METADATA,           /*< desc="Change metadata"             >*/
393
  GIMP_UNDO_IMAGE_COLORMAP,           /*< desc="Change indexed palette"      >*/
394
  GIMP_UNDO_IMAGE_COLOR_MANAGED,      /*< desc="Change color managed state"  >*/
395 396
  GIMP_UNDO_GUIDE,                    /*< desc="Guide"                       >*/
  GIMP_UNDO_SAMPLE_POINT,             /*< desc="Sample Point"                >*/
397 398 399
  GIMP_UNDO_DRAWABLE,                 /*< desc="Layer/Channel"               >*/
  GIMP_UNDO_DRAWABLE_MOD,             /*< desc="Layer/Channel modification"  >*/
  GIMP_UNDO_MASK,                     /*< desc="Selection mask"              >*/
400
  GIMP_UNDO_ITEM_REORDER,             /*< desc="Reorder item"                >*/
401 402 403 404
  GIMP_UNDO_ITEM_RENAME,              /*< desc="Rename item"                 >*/
  GIMP_UNDO_ITEM_DISPLACE,            /*< desc="Move item"                   >*/
  GIMP_UNDO_ITEM_VISIBILITY,          /*< desc="Item visibility"             >*/
  GIMP_UNDO_ITEM_LINKED,              /*< desc="Link/Unlink item"            >*/
405
  GIMP_UNDO_ITEM_COLOR_TAG,           /*< desc="Item color tag"              >*/
406 407
  GIMP_UNDO_ITEM_LOCK_CONTENT,        /*< desc="Lock/Unlock content"         >*/
  GIMP_UNDO_ITEM_LOCK_POSITION,       /*< desc="Lock/Unlock position"        >*/
408 409 410 411 412
  GIMP_UNDO_LAYER_ADD,                /*< desc="New layer"                   >*/
  GIMP_UNDO_LAYER_REMOVE,             /*< desc="Delete layer"                >*/
  GIMP_UNDO_LAYER_MODE,               /*< desc="Set layer mode"              >*/
  GIMP_UNDO_LAYER_OPACITY,            /*< desc="Set layer opacity"           >*/
  GIMP_UNDO_LAYER_LOCK_ALPHA,         /*< desc="Lock/Unlock alpha channel"   >*/
413 414
  GIMP_UNDO_GROUP_LAYER_SUSPEND,      /*< desc="Suspend group layer resize"  >*/
  GIMP_UNDO_GROUP_LAYER_RESUME,       /*< desc="Resume group layer resize"   >*/
415
  GIMP_UNDO_GROUP_LAYER_CONVERT,      /*< desc="Convert group layer"         >*/
416 417
  GIMP_UNDO_TEXT_LAYER,               /*< desc="Text layer"                  >*/
  GIMP_UNDO_TEXT_LAYER_MODIFIED,      /*< desc="Text layer modification"     >*/
418
  GIMP_UNDO_TEXT_LAYER_CONVERT,       /*< desc="Convert text layer"          >*/
419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436
  GIMP_UNDO_LAYER_MASK_ADD,           /*< desc="Add layer mask"              >*/
  GIMP_UNDO_LAYER_MASK_REMOVE,        /*< desc="Delete layer mask"           >*/
  GIMP_UNDO_LAYER_MASK_APPLY,         /*< desc="Apply layer mask"            >*/
  GIMP_UNDO_LAYER_MASK_SHOW,          /*< desc="Show layer mask"             >*/
  GIMP_UNDO_CHANNEL_ADD,              /*< desc="New channel"                 >*/
  GIMP_UNDO_CHANNEL_REMOVE,           /*< desc="Delete channel"              >*/
  GIMP_UNDO_CHANNEL_COLOR,            /*< desc="Channel color"               >*/
  GIMP_UNDO_VECTORS_ADD,              /*< desc="New path"                    >*/
  GIMP_UNDO_VECTORS_REMOVE,           /*< desc="Delete path"                 >*/
  GIMP_UNDO_VECTORS_MOD,              /*< desc="Path modification"           >*/
  GIMP_UNDO_FS_TO_LAYER,              /*< desc="Floating selection to layer" >*/
  GIMP_UNDO_TRANSFORM,                /*< desc="Transform"                   >*/
  GIMP_UNDO_PAINT,                    /*< desc="Paint"                       >*/
  GIMP_UNDO_INK,                      /*< desc="Ink"                         >*/
  GIMP_UNDO_FOREGROUND_SELECT,        /*< desc="Select foreground"           >*/
  GIMP_UNDO_PARASITE_ATTACH,          /*< desc="Attach parasite"             >*/
  GIMP_UNDO_PARASITE_REMOVE,          /*< desc="Remove parasite"             >*/

437
  GIMP_UNDO_CANT                      /*< desc="Not undoable"                >*/
438 439 440
} GimpUndoType;


441 442 443 444 445 446 447 448 449
#define GIMP_TYPE_DIRTY_MASK (gimp_dirty_mask_get_type ())

GType gimp_dirty_mask_get_type (void) G_GNUC_CONST;

typedef enum  /*< pdb-skip >*/
{
  GIMP_DIRTY_NONE            = 0,

  GIMP_DIRTY_IMAGE           = 1 << 0,
450 451 452 453 454 455 456 457
  GIMP_DIRTY_IMAGE_SIZE      = 1 << 1,
  GIMP_DIRTY_IMAGE_META      = 1 << 2,
  GIMP_DIRTY_IMAGE_STRUCTURE = 1 << 3,
  GIMP_DIRTY_ITEM            = 1 << 4,
  GIMP_DIRTY_ITEM_META       = 1 << 5,
  GIMP_DIRTY_DRAWABLE        = 1 << 6,
  GIMP_DIRTY_VECTORS         = 1 << 7,
  GIMP_DIRTY_SELECTION       = 1 << 8,
458
  GIMP_DIRTY_ACTIVE_DRAWABLE = 1 << 9,
459 460

  GIMP_DIRTY_ALL             = 0xffff
461 462 463
} GimpDirtyMask;


464 465 466 467 468 469
#define GIMP_TYPE_GRADIENT_COLOR (gimp_gradient_color_get_type ())

GType gimp_gradient_color_get_type (void) G_GNUC_CONST;

typedef enum  /*< pdb-skip >*/
{
470 471
  GIMP_GRADIENT_COLOR_FIXED,                  /*< desc="Fixed"                                           >*/
  GIMP_GRADIENT_COLOR_FOREGROUND,             /*< desc="Foreground color",               abbrev="FG"     >*/
472
  GIMP_GRADIENT_COLOR_FOREGROUND_TRANSPARENT, /*< desc="Foreground color (transparent)",  abbrev="FG (t)" >*/
473 474
  GIMP_GRADIENT_COLOR_BACKGROUND,             /*< desc="Background color",               abbrev="BG"     >*/
  GIMP_GRADIENT_COLOR_BACKGROUND_TRANSPARENT  /*< desc="Background color (transparent)", abbrev="BG (t)" >*/
475 476 477
} GimpGradientColor;


478 479 480 481 482 483 484 485 486 487 488 489
#define GIMP_TYPE_MESSAGE_SEVERITY (gimp_message_severity_get_type ())

GType gimp_message_severity_get_type (void) G_GNUC_CONST;

typedef enum  /*< pdb-skip >*/
{
  GIMP_MESSAGE_INFO,     /*< desc="Message" >*/
  GIMP_MESSAGE_WARNING,  /*< desc="Warning" >*/
  GIMP_MESSAGE_ERROR     /*< desc="Error"   >*/
} GimpMessageSeverity;


490 491 492 493 494 495
#define GIMP_TYPE_COLOR_PROFILE_POLICY (gimp_color_profile_policy_get_type ())

GType gimp_color_profile_policy_get_type (void) G_GNUC_CONST;

typedef enum  /*< pdb-skip >*/
{
Sven Neumann's avatar
Sven Neumann committed
496
  GIMP_COLOR_PROFILE_POLICY_ASK,    /*< desc="Ask what to do"           >*/
497
  GIMP_COLOR_PROFILE_POLICY_KEEP,   /*< desc="Keep embedded profile"    >*/
498
  GIMP_COLOR_PROFILE_POLICY_CONVERT /*< desc="Convert to preferred RGB color profile" >*/
499 500
} GimpColorProfilePolicy;

501

502 503 504 505 506 507 508 509 510
#define GIMP_TYPE_DYNAMICS_OUTPUT_TYPE (gimp_dynamics_output_type_get_type ())

GType gimp_dynamics_output_type_get_type (void) G_GNUC_CONST;

typedef enum  /*< pdb-skip >*/
{
  GIMP_DYNAMICS_OUTPUT_OPACITY,      /*< desc="Opacity"      >*/
  GIMP_DYNAMICS_OUTPUT_SIZE,         /*< desc="Size"         >*/
  GIMP_DYNAMICS_OUTPUT_ANGLE,        /*< desc="Angle"        >*/
511 512
  GIMP_DYNAMICS_OUTPUT_COLOR,        /*< desc="Color"        >*/
  GIMP_DYNAMICS_OUTPUT_HARDNESS,     /*< desc="Hardness"     >*/
513
  GIMP_DYNAMICS_OUTPUT_FORCE,        /*< desc="Force"        >*/
514
  GIMP_DYNAMICS_OUTPUT_ASPECT_RATIO, /*< desc="Aspect ratio" >*/
515
  GIMP_DYNAMICS_OUTPUT_SPACING,      /*< desc="Spacing"      >*/
516
  GIMP_DYNAMICS_OUTPUT_RATE,         /*< desc="Rate"         >*/
517
  GIMP_DYNAMICS_OUTPUT_FLOW,         /*< desc="Flow"         >*/
518
  GIMP_DYNAMICS_OUTPUT_JITTER,       /*< desc="Jitter"       >*/
519 520
} GimpDynamicsOutputType;

521

522
#define GIMP_TYPE_FILTER_REGION (gimp_filter_region_get_type ())
523

524
GType gimp_filter_region_get_type (void) G_GNUC_CONST;
525 526 527

typedef enum  /*< pdb-skip >*/
{
528 529 530
  GIMP_FILTER_REGION_SELECTION, /*< desc="Use the selection as input"    >*/
  GIMP_FILTER_REGION_DRAWABLE   /*< desc="Use the entire layer as input" >*/
} GimpFilterRegion;
531 532


533 534 535 536 537 538 539 540 541 542 543 544
#define GIMP_TYPE_CHANNEL_BORDER_STYLE (gimp_channel_border_style_get_type ())

GType gimp_channel_border_style_get_type (void) G_GNUC_CONST;

typedef enum  /*< pdb-skip >*/
{
  GIMP_CHANNEL_BORDER_STYLE_HARD,     /*< desc="Hard"      >*/
  GIMP_CHANNEL_BORDER_STYLE_SMOOTH,   /*< desc="Smooth"    >*/
  GIMP_CHANNEL_BORDER_STYLE_FEATHERED /*< desc="Feathered" >*/
} GimpChannelBorderStyle;


545 546 547 548
/*
 * non-registered enums; register them if needed
 */

549

550
typedef enum  /*< pdb-skip, skip >*/
551
{
552
  GIMP_CONTEXT_PROP_FIRST       =  2,
553

554
  GIMP_CONTEXT_PROP_IMAGE       =  GIMP_CONTEXT_PROP_FIRST,
555 556 557 558 559 560 561 562 563
  GIMP_CONTEXT_PROP_DISPLAY     =  3,
  GIMP_CONTEXT_PROP_TOOL        =  4,
  GIMP_CONTEXT_PROP_PAINT_INFO  =  5,
  GIMP_CONTEXT_PROP_FOREGROUND  =  6,
  GIMP_CONTEXT_PROP_BACKGROUND  =  7,
  GIMP_CONTEXT_PROP_OPACITY     =  8,
  GIMP_CONTEXT_PROP_PAINT_MODE  =  9,
  GIMP_CONTEXT_PROP_BRUSH       = 10,
  GIMP_CONTEXT_PROP_DYNAMICS    = 11,
564 565 566 567 568 569 570 571 572
  GIMP_CONTEXT_PROP_MYBRUSH     = 12,
  GIMP_CONTEXT_PROP_PATTERN     = 13,
  GIMP_CONTEXT_PROP_GRADIENT    = 14,
  GIMP_CONTEXT_PROP_PALETTE     = 15,
  GIMP_CONTEXT_PROP_TOOL_PRESET = 16,
  GIMP_CONTEXT_PROP_FONT        = 17,
  GIMP_CONTEXT_PROP_BUFFER      = 18,
  GIMP_CONTEXT_PROP_IMAGEFILE   = 19,
  GIMP_CONTEXT_PROP_TEMPLATE    = 20,
573

574
  GIMP_CONTEXT_PROP_LAST        = GIMP_CONTEXT_PROP_TEMPLATE
575 576
} GimpContextPropType;

577

578
typedef enum  /*< pdb-skip, skip >*/
579
{
580 581 582 583 584 585 586 587 588 589
  GIMP_CONTEXT_PROP_MASK_IMAGE       = 1 <<  2,
  GIMP_CONTEXT_PROP_MASK_DISPLAY     = 1 <<  3,
  GIMP_CONTEXT_PROP_MASK_TOOL        = 1 <<  4,
  GIMP_CONTEXT_PROP_MASK_PAINT_INFO  = 1 <<  5,
  GIMP_CONTEXT_PROP_MASK_FOREGROUND  = 1 <<  6,
  GIMP_CONTEXT_PROP_MASK_BACKGROUND  = 1 <<  7,
  GIMP_CONTEXT_PROP_MASK_OPACITY     = 1 <<  8,
  GIMP_CONTEXT_PROP_MASK_PAINT_MODE  = 1 <<  9,
  GIMP_CONTEXT_PROP_MASK_BRUSH       = 1 << 10,
  GIMP_CONTEXT_PROP_MASK_DYNAMICS    = 1 << 11,
590 591 592 593 594 595 596 597 598
  GIMP_CONTEXT_PROP_MASK_MYBRUSH     = 1 << 12,
  GIMP_CONTEXT_PROP_MASK_PATTERN     = 1 << 13,
  GIMP_CONTEXT_PROP_MASK_GRADIENT    = 1 << 14,
  GIMP_CONTEXT_PROP_MASK_PALETTE     = 1 << 15,
  GIMP_CONTEXT_PROP_MASK_TOOL_PRESET = 1 << 16,
  GIMP_CONTEXT_PROP_MASK_FONT        = 1 << 17,
  GIMP_CONTEXT_PROP_MASK_BUFFER      = 1 << 18,
  GIMP_CONTEXT_PROP_MASK_IMAGEFILE   = 1 << 19,
  GIMP_CONTEXT_PROP_MASK_TEMPLATE    = 1 << 20,
599 600

  /*  aliases  */
601 602 603 604 605 606 607 608 609 610 611 612 613
  GIMP_CONTEXT_PROP_MASK_PAINT = (GIMP_CONTEXT_PROP_MASK_FOREGROUND |
                                  GIMP_CONTEXT_PROP_MASK_BACKGROUND |
                                  GIMP_CONTEXT_PROP_MASK_OPACITY    |
                                  GIMP_CONTEXT_PROP_MASK_PAINT_MODE |
                                  GIMP_CONTEXT_PROP_MASK_BRUSH      |
                                  GIMP_CONTEXT_PROP_MASK_DYNAMICS   |
                                  GIMP_CONTEXT_PROP_MASK_PATTERN    |
                                  GIMP_CONTEXT_PROP_MASK_GRADIENT),

  GIMP_CONTEXT_PROP_MASK_ALL   = (GIMP_CONTEXT_PROP_MASK_IMAGE      |
                                  GIMP_CONTEXT_PROP_MASK_DISPLAY    |
                                  GIMP_CONTEXT_PROP_MASK_TOOL       |
                                  GIMP_CONTEXT_PROP_MASK_PAINT_INFO |
614
                                  GIMP_CONTEXT_PROP_MASK_MYBRUSH    |
615 616 617 618 619 620
                                  GIMP_CONTEXT_PROP_MASK_PALETTE    |
                                  GIMP_CONTEXT_PROP_MASK_FONT       |
                                  GIMP_CONTEXT_PROP_MASK_BUFFER     |
                                  GIMP_CONTEXT_PROP_MASK_IMAGEFILE  |
                                  GIMP_CONTEXT_PROP_MASK_TEMPLATE   |
                                  GIMP_CONTEXT_PROP_MASK_PAINT)
621 622
} GimpContextPropMask;

623

624 625
typedef enum  /*< pdb-skip, skip >*/
{
626 627 628
  GIMP_IMAGE_SCALE_OK,
  GIMP_IMAGE_SCALE_TOO_SMALL,
  GIMP_IMAGE_SCALE_TOO_BIG
629
} GimpImageScaleCheckType;
630

631

632 633 634 635 636 637 638 639 640 641 642 643
typedef enum  /*< pdb-skip, skip >*/
{
  GIMP_ITEM_TYPE_LAYERS   = 1 << 0,
  GIMP_ITEM_TYPE_CHANNELS = 1 << 1,
  GIMP_ITEM_TYPE_VECTORS  = 1 << 2,

  GIMP_ITEM_TYPE_ALL      = (GIMP_ITEM_TYPE_LAYERS   |
                             GIMP_ITEM_TYPE_CHANNELS |
                             GIMP_ITEM_TYPE_VECTORS)
} GimpItemTypeMask;


644
#endif /* __CORE_ENUMS_H__ */