2002-03-29 03:50:29 +00:00
|
|
|
|
|
|
|
/* Generated data (by gimp-mkenums) */
|
|
|
|
|
2022-08-01 19:16:04 +02:00
|
|
|
#include "stamp-tools-enums.h"
|
2002-03-29 03:50:29 +00:00
|
|
|
#include "config.h"
|
2013-10-15 01:58:39 +02:00
|
|
|
#include <gio/gio.h>
|
2004-10-25 17:55:25 +00:00
|
|
|
#include "libgimpbase/gimpbase.h"
|
2003-04-15 14:20:19 +00:00
|
|
|
#include "core/core-enums.h"
|
|
|
|
#include "tools-enums.h"
|
|
|
|
#include "gimp-intl.h"
|
2002-03-29 03:50:29 +00:00
|
|
|
|
2017-05-06 16:48:53 -04:00
|
|
|
/* enumerations from "tools-enums.h" */
|
2019-01-02 15:47:31 +01:00
|
|
|
GType
|
|
|
|
gimp_bucket_fill_area_get_type (void)
|
|
|
|
{
|
|
|
|
static const GEnumValue values[] =
|
|
|
|
{
|
|
|
|
{ GIMP_BUCKET_FILL_SELECTION, "GIMP_BUCKET_FILL_SELECTION", "selection" },
|
|
|
|
{ GIMP_BUCKET_FILL_SIMILAR_COLORS, "GIMP_BUCKET_FILL_SIMILAR_COLORS", "similar-colors" },
|
|
|
|
{ GIMP_BUCKET_FILL_LINE_ART, "GIMP_BUCKET_FILL_LINE_ART", "line-art" },
|
|
|
|
{ 0, NULL, NULL }
|
|
|
|
};
|
|
|
|
|
|
|
|
static const GimpEnumDesc descs[] =
|
|
|
|
{
|
|
|
|
{ GIMP_BUCKET_FILL_SELECTION, NC_("bucket-fill-area", "Fill whole selection"), NULL },
|
|
|
|
{ GIMP_BUCKET_FILL_SIMILAR_COLORS, NC_("bucket-fill-area", "Fill similar colors"), NULL },
|
|
|
|
{ GIMP_BUCKET_FILL_LINE_ART, NC_("bucket-fill-area", "Fill by line art detection"), NULL },
|
|
|
|
{ 0, NULL, NULL }
|
|
|
|
};
|
|
|
|
|
|
|
|
static GType type = 0;
|
|
|
|
|
|
|
|
if (G_UNLIKELY (! type))
|
|
|
|
{
|
|
|
|
type = g_enum_register_static ("GimpBucketFillArea", values);
|
|
|
|
gimp_type_set_translation_context (type, "bucket-fill-area");
|
|
|
|
gimp_enum_set_value_descriptions (type, descs);
|
|
|
|
}
|
|
|
|
|
|
|
|
return type;
|
|
|
|
}
|
|
|
|
|
2019-01-15 16:06:50 +01:00
|
|
|
GType
|
|
|
|
gimp_line_art_source_get_type (void)
|
|
|
|
{
|
|
|
|
static const GEnumValue values[] =
|
|
|
|
{
|
|
|
|
{ GIMP_LINE_ART_SOURCE_SAMPLE_MERGED, "GIMP_LINE_ART_SOURCE_SAMPLE_MERGED", "sample-merged" },
|
|
|
|
{ GIMP_LINE_ART_SOURCE_ACTIVE_LAYER, "GIMP_LINE_ART_SOURCE_ACTIVE_LAYER", "active-layer" },
|
|
|
|
{ GIMP_LINE_ART_SOURCE_LOWER_LAYER, "GIMP_LINE_ART_SOURCE_LOWER_LAYER", "lower-layer" },
|
|
|
|
{ GIMP_LINE_ART_SOURCE_UPPER_LAYER, "GIMP_LINE_ART_SOURCE_UPPER_LAYER", "upper-layer" },
|
|
|
|
{ 0, NULL, NULL }
|
|
|
|
};
|
|
|
|
|
|
|
|
static const GimpEnumDesc descs[] =
|
|
|
|
{
|
|
|
|
{ GIMP_LINE_ART_SOURCE_SAMPLE_MERGED, NC_("line-art-source", "All visible layers"), NULL },
|
2022-02-09 00:24:35 +01:00
|
|
|
{ GIMP_LINE_ART_SOURCE_ACTIVE_LAYER, NC_("line-art-source", "Selected layer"), NULL },
|
|
|
|
{ GIMP_LINE_ART_SOURCE_LOWER_LAYER, NC_("line-art-source", "Layer below the selected one"), NULL },
|
|
|
|
{ GIMP_LINE_ART_SOURCE_UPPER_LAYER, NC_("line-art-source", "Layer above the selected one"), NULL },
|
2019-01-15 16:06:50 +01:00
|
|
|
{ 0, NULL, NULL }
|
|
|
|
};
|
|
|
|
|
|
|
|
static GType type = 0;
|
|
|
|
|
|
|
|
if (G_UNLIKELY (! type))
|
|
|
|
{
|
|
|
|
type = g_enum_register_static ("GimpLineArtSource", values);
|
|
|
|
gimp_type_set_translation_context (type, "line-art-source");
|
|
|
|
gimp_enum_set_value_descriptions (type, descs);
|
|
|
|
}
|
|
|
|
|
|
|
|
return type;
|
|
|
|
}
|
|
|
|
|
2007-08-04 20:20:44 +00:00
|
|
|
GType
|
2003-01-06 16:25:04 +00:00
|
|
|
gimp_rect_select_mode_get_type (void)
|
|
|
|
{
|
2004-07-28 11:50:20 +00:00
|
|
|
static const GEnumValue values[] =
|
|
|
|
{
|
2004-10-25 17:55:25 +00:00
|
|
|
{ GIMP_RECT_SELECT_MODE_FREE, "GIMP_RECT_SELECT_MODE_FREE", "free" },
|
|
|
|
{ GIMP_RECT_SELECT_MODE_FIXED_SIZE, "GIMP_RECT_SELECT_MODE_FIXED_SIZE", "fixed-size" },
|
|
|
|
{ GIMP_RECT_SELECT_MODE_FIXED_RATIO, "GIMP_RECT_SELECT_MODE_FIXED_RATIO", "fixed-ratio" },
|
|
|
|
{ 0, NULL, NULL }
|
|
|
|
};
|
|
|
|
|
|
|
|
static const GimpEnumDesc descs[] =
|
|
|
|
{
|
2008-11-06 08:28:28 +00:00
|
|
|
{ GIMP_RECT_SELECT_MODE_FREE, NC_("rect-select-mode", "Free select"), NULL },
|
|
|
|
{ GIMP_RECT_SELECT_MODE_FIXED_SIZE, NC_("rect-select-mode", "Fixed size"), NULL },
|
|
|
|
{ GIMP_RECT_SELECT_MODE_FIXED_RATIO, NC_("rect-select-mode", "Fixed aspect ratio"), NULL },
|
2004-07-28 11:50:20 +00:00
|
|
|
{ 0, NULL, NULL }
|
|
|
|
};
|
2003-01-06 16:25:04 +00:00
|
|
|
|
2004-07-28 11:50:20 +00:00
|
|
|
static GType type = 0;
|
2003-01-06 16:25:04 +00:00
|
|
|
|
2008-11-03 21:38:13 +00:00
|
|
|
if (G_UNLIKELY (! type))
|
2004-10-25 17:55:25 +00:00
|
|
|
{
|
|
|
|
type = g_enum_register_static ("GimpRectSelectMode", values);
|
2008-11-06 08:28:28 +00:00
|
|
|
gimp_type_set_translation_context (type, "rect-select-mode");
|
2004-10-25 17:55:25 +00:00
|
|
|
gimp_enum_set_value_descriptions (type, descs);
|
|
|
|
}
|
2003-01-06 16:25:04 +00:00
|
|
|
|
2004-07-28 11:50:20 +00:00
|
|
|
return type;
|
|
|
|
}
|
2003-05-30 23:52:24 +00:00
|
|
|
|
|
|
|
GType
|
|
|
|
gimp_transform_type_get_type (void)
|
|
|
|
{
|
2004-07-28 11:50:20 +00:00
|
|
|
static const GEnumValue values[] =
|
|
|
|
{
|
2004-10-25 17:55:25 +00:00
|
|
|
{ GIMP_TRANSFORM_TYPE_LAYER, "GIMP_TRANSFORM_TYPE_LAYER", "layer" },
|
|
|
|
{ GIMP_TRANSFORM_TYPE_SELECTION, "GIMP_TRANSFORM_TYPE_SELECTION", "selection" },
|
|
|
|
{ GIMP_TRANSFORM_TYPE_PATH, "GIMP_TRANSFORM_TYPE_PATH", "path" },
|
2019-08-10 22:57:55 +03:00
|
|
|
{ GIMP_TRANSFORM_TYPE_IMAGE, "GIMP_TRANSFORM_TYPE_IMAGE", "image" },
|
2004-10-25 17:55:25 +00:00
|
|
|
{ 0, NULL, NULL }
|
|
|
|
};
|
|
|
|
|
|
|
|
static const GimpEnumDesc descs[] =
|
|
|
|
{
|
2008-11-06 08:28:28 +00:00
|
|
|
{ GIMP_TRANSFORM_TYPE_LAYER, NC_("transform-type", "Layer"), NULL },
|
|
|
|
{ GIMP_TRANSFORM_TYPE_SELECTION, NC_("transform-type", "Selection"), NULL },
|
|
|
|
{ GIMP_TRANSFORM_TYPE_PATH, NC_("transform-type", "Path"), NULL },
|
2019-08-10 22:57:55 +03:00
|
|
|
{ GIMP_TRANSFORM_TYPE_IMAGE, NC_("transform-type", "Image"), NULL },
|
2004-07-28 11:50:20 +00:00
|
|
|
{ 0, NULL, NULL }
|
|
|
|
};
|
2003-05-30 23:52:24 +00:00
|
|
|
|
2004-07-28 11:50:20 +00:00
|
|
|
static GType type = 0;
|
2003-05-30 23:52:24 +00:00
|
|
|
|
2008-11-03 21:38:13 +00:00
|
|
|
if (G_UNLIKELY (! type))
|
2004-10-25 17:55:25 +00:00
|
|
|
{
|
|
|
|
type = g_enum_register_static ("GimpTransformType", values);
|
2008-11-06 08:28:28 +00:00
|
|
|
gimp_type_set_translation_context (type, "transform-type");
|
2004-10-25 17:55:25 +00:00
|
|
|
gimp_enum_set_value_descriptions (type, descs);
|
|
|
|
}
|
2003-05-30 23:52:24 +00:00
|
|
|
|
2004-07-28 11:50:20 +00:00
|
|
|
return type;
|
|
|
|
}
|
2003-08-20 22:19:37 +00:00
|
|
|
|
2010-10-26 13:47:18 +02:00
|
|
|
GType
|
|
|
|
gimp_tool_action_get_type (void)
|
|
|
|
{
|
|
|
|
static const GEnumValue values[] =
|
|
|
|
{
|
|
|
|
{ GIMP_TOOL_ACTION_PAUSE, "GIMP_TOOL_ACTION_PAUSE", "pause" },
|
|
|
|
{ GIMP_TOOL_ACTION_RESUME, "GIMP_TOOL_ACTION_RESUME", "resume" },
|
|
|
|
{ GIMP_TOOL_ACTION_HALT, "GIMP_TOOL_ACTION_HALT", "halt" },
|
2014-04-04 22:34:26 +02:00
|
|
|
{ GIMP_TOOL_ACTION_COMMIT, "GIMP_TOOL_ACTION_COMMIT", "commit" },
|
2010-10-26 13:47:18 +02:00
|
|
|
{ 0, NULL, NULL }
|
|
|
|
};
|
|
|
|
|
|
|
|
static const GimpEnumDesc descs[] =
|
|
|
|
{
|
|
|
|
{ GIMP_TOOL_ACTION_PAUSE, "GIMP_TOOL_ACTION_PAUSE", NULL },
|
|
|
|
{ GIMP_TOOL_ACTION_RESUME, "GIMP_TOOL_ACTION_RESUME", NULL },
|
|
|
|
{ GIMP_TOOL_ACTION_HALT, "GIMP_TOOL_ACTION_HALT", NULL },
|
2014-04-04 22:34:26 +02:00
|
|
|
{ GIMP_TOOL_ACTION_COMMIT, "GIMP_TOOL_ACTION_COMMIT", NULL },
|
2010-10-26 13:47:18 +02:00
|
|
|
{ 0, NULL, NULL }
|
|
|
|
};
|
|
|
|
|
|
|
|
static GType type = 0;
|
|
|
|
|
|
|
|
if (G_UNLIKELY (! type))
|
|
|
|
{
|
|
|
|
type = g_enum_register_static ("GimpToolAction", values);
|
|
|
|
gimp_type_set_translation_context (type, "tool-action");
|
|
|
|
gimp_enum_set_value_descriptions (type, descs);
|
|
|
|
}
|
|
|
|
|
|
|
|
return type;
|
|
|
|
}
|
|
|
|
|
2017-10-29 16:28:46 +01:00
|
|
|
GType
|
|
|
|
gimp_tool_active_modifiers_get_type (void)
|
|
|
|
{
|
|
|
|
static const GEnumValue values[] =
|
|
|
|
{
|
|
|
|
{ GIMP_TOOL_ACTIVE_MODIFIERS_OFF, "GIMP_TOOL_ACTIVE_MODIFIERS_OFF", "off" },
|
|
|
|
{ GIMP_TOOL_ACTIVE_MODIFIERS_SAME, "GIMP_TOOL_ACTIVE_MODIFIERS_SAME", "same" },
|
|
|
|
{ GIMP_TOOL_ACTIVE_MODIFIERS_SEPARATE, "GIMP_TOOL_ACTIVE_MODIFIERS_SEPARATE", "separate" },
|
|
|
|
{ 0, NULL, NULL }
|
|
|
|
};
|
|
|
|
|
|
|
|
static const GimpEnumDesc descs[] =
|
|
|
|
{
|
|
|
|
{ GIMP_TOOL_ACTIVE_MODIFIERS_OFF, "GIMP_TOOL_ACTIVE_MODIFIERS_OFF", NULL },
|
|
|
|
{ GIMP_TOOL_ACTIVE_MODIFIERS_SAME, "GIMP_TOOL_ACTIVE_MODIFIERS_SAME", NULL },
|
|
|
|
{ GIMP_TOOL_ACTIVE_MODIFIERS_SEPARATE, "GIMP_TOOL_ACTIVE_MODIFIERS_SEPARATE", NULL },
|
|
|
|
{ 0, NULL, NULL }
|
|
|
|
};
|
|
|
|
|
|
|
|
static GType type = 0;
|
|
|
|
|
|
|
|
if (G_UNLIKELY (! type))
|
|
|
|
{
|
|
|
|
type = g_enum_register_static ("GimpToolActiveModifiers", values);
|
|
|
|
gimp_type_set_translation_context (type, "tool-active-modifiers");
|
|
|
|
gimp_enum_set_value_descriptions (type, descs);
|
|
|
|
}
|
|
|
|
|
|
|
|
return type;
|
|
|
|
}
|
|
|
|
|
2013-05-07 23:09:55 +02:00
|
|
|
GType
|
|
|
|
gimp_matting_draw_mode_get_type (void)
|
|
|
|
{
|
|
|
|
static const GEnumValue values[] =
|
|
|
|
{
|
|
|
|
{ GIMP_MATTING_DRAW_MODE_FOREGROUND, "GIMP_MATTING_DRAW_MODE_FOREGROUND", "foreground" },
|
|
|
|
{ GIMP_MATTING_DRAW_MODE_BACKGROUND, "GIMP_MATTING_DRAW_MODE_BACKGROUND", "background" },
|
|
|
|
{ GIMP_MATTING_DRAW_MODE_UNKNOWN, "GIMP_MATTING_DRAW_MODE_UNKNOWN", "unknown" },
|
|
|
|
{ 0, NULL, NULL }
|
|
|
|
};
|
|
|
|
|
|
|
|
static const GimpEnumDesc descs[] =
|
|
|
|
{
|
|
|
|
{ GIMP_MATTING_DRAW_MODE_FOREGROUND, NC_("matting-draw-mode", "Draw foreground"), NULL },
|
|
|
|
{ GIMP_MATTING_DRAW_MODE_BACKGROUND, NC_("matting-draw-mode", "Draw background"), NULL },
|
|
|
|
{ GIMP_MATTING_DRAW_MODE_UNKNOWN, NC_("matting-draw-mode", "Draw unknown"), NULL },
|
|
|
|
{ 0, NULL, NULL }
|
|
|
|
};
|
|
|
|
|
|
|
|
static GType type = 0;
|
|
|
|
|
|
|
|
if (G_UNLIKELY (! type))
|
|
|
|
{
|
|
|
|
type = g_enum_register_static ("GimpMattingDrawMode", values);
|
|
|
|
gimp_type_set_translation_context (type, "matting-draw-mode");
|
|
|
|
gimp_enum_set_value_descriptions (type, descs);
|
|
|
|
}
|
|
|
|
|
|
|
|
return type;
|
|
|
|
}
|
|
|
|
|
2019-06-13 14:46:23 +02:00
|
|
|
GType
|
|
|
|
gimp_matting_preview_mode_get_type (void)
|
|
|
|
{
|
|
|
|
static const GEnumValue values[] =
|
|
|
|
{
|
|
|
|
{ GIMP_MATTING_PREVIEW_MODE_ON_COLOR, "GIMP_MATTING_PREVIEW_MODE_ON_COLOR", "on-color" },
|
|
|
|
{ GIMP_MATTING_PREVIEW_MODE_GRAYSCALE, "GIMP_MATTING_PREVIEW_MODE_GRAYSCALE", "grayscale" },
|
|
|
|
{ 0, NULL, NULL }
|
|
|
|
};
|
|
|
|
|
|
|
|
static const GimpEnumDesc descs[] =
|
|
|
|
{
|
2019-07-25 22:44:41 +02:00
|
|
|
{ GIMP_MATTING_PREVIEW_MODE_ON_COLOR, NC_("matting-preview-mode", "Color"), NULL },
|
2019-06-13 14:46:23 +02:00
|
|
|
{ GIMP_MATTING_PREVIEW_MODE_GRAYSCALE, NC_("matting-preview-mode", "Grayscale"), NULL },
|
|
|
|
{ 0, NULL, NULL }
|
|
|
|
};
|
|
|
|
|
|
|
|
static GType type = 0;
|
|
|
|
|
|
|
|
if (G_UNLIKELY (! type))
|
|
|
|
{
|
|
|
|
type = g_enum_register_static ("GimpMattingPreviewMode", values);
|
|
|
|
gimp_type_set_translation_context (type, "matting-preview-mode");
|
|
|
|
gimp_enum_set_value_descriptions (type, descs);
|
|
|
|
}
|
|
|
|
|
|
|
|
return type;
|
|
|
|
}
|
|
|
|
|
app, icons: add 3D Transform tool
Add a new 3D Transform tool, based on GimpToolTransform3DGrid,
added in the previous commit. The tool UI provides a notbook with
three tabs, corresponding to the three GimpToolTransform3DGrid
modes:
Camera - allows setting the primary vanishing point, as well as
the camera's focal length, expressed either directly, or as the
camera's angle of view, relative to the whole image or the
transformed item. By default, the vanishing point is aligned
with the item's center, and the angle of view is fixed relative
to the item; this essentially means that each item is transformed
using a local perspective, independent of its position and size
relative to the image. A global perspective can be achieved by
using a common vanishing point and focal length (or an image-
relative angle of view).
Move - allows moving the item using X, Y, and Z offsets.
Rotate - allows rotating the item using X, Y, and Z Euler angles.
The order of rotation of the different axes can be controlled by
a set of numbered buttons next to the sliders, and the rotation's
pivot can be controlled using a pivot selector.
2020-01-06 17:31:30 +02:00
|
|
|
GType
|
|
|
|
gimp_transform_3d_lens_mode_get_type (void)
|
|
|
|
{
|
|
|
|
static const GEnumValue values[] =
|
|
|
|
{
|
|
|
|
{ GIMP_TRANSFORM_3D_LENS_MODE_FOCAL_LENGTH, "GIMP_TRANSFORM_3D_LENS_MODE_FOCAL_LENGTH", "focal-length" },
|
|
|
|
{ GIMP_TRANSFORM_3D_LENS_MODE_FOV_IMAGE, "GIMP_TRANSFORM_3D_LENS_MODE_FOV_IMAGE", "fov-image" },
|
|
|
|
{ GIMP_TRANSFORM_3D_LENS_MODE_FOV_ITEM, "GIMP_TRANSFORM_3D_LENS_MODE_FOV_ITEM", "fov-item" },
|
|
|
|
{ 0, NULL, NULL }
|
|
|
|
};
|
|
|
|
|
|
|
|
static const GimpEnumDesc descs[] =
|
|
|
|
{
|
2022-02-13 13:49:36 +01:00
|
|
|
{ GIMP_TRANSFORM_3D_LENS_MODE_FOCAL_LENGTH, NC_("3-dtransform-lens-mode", "Focal length"), NULL },
|
|
|
|
{ GIMP_TRANSFORM_3D_LENS_MODE_FOV_IMAGE, NC_("3-dtransform-lens-mode", "Field of view (relative to image)"), NULL },
|
app, icons: add 3D Transform tool
Add a new 3D Transform tool, based on GimpToolTransform3DGrid,
added in the previous commit. The tool UI provides a notbook with
three tabs, corresponding to the three GimpToolTransform3DGrid
modes:
Camera - allows setting the primary vanishing point, as well as
the camera's focal length, expressed either directly, or as the
camera's angle of view, relative to the whole image or the
transformed item. By default, the vanishing point is aligned
with the item's center, and the angle of view is fixed relative
to the item; this essentially means that each item is transformed
using a local perspective, independent of its position and size
relative to the image. A global perspective can be achieved by
using a common vanishing point and focal length (or an image-
relative angle of view).
Move - allows moving the item using X, Y, and Z offsets.
Rotate - allows rotating the item using X, Y, and Z Euler angles.
The order of rotation of the different axes can be controlled by
a set of numbered buttons next to the sliders, and the rotation's
pivot can be controlled using a pivot selector.
2020-01-06 17:31:30 +02:00
|
|
|
/* Translators: this is an abbreviated version of "Field of view (relative to image)".
|
|
|
|
Keep it short. */
|
2022-02-13 13:49:36 +01:00
|
|
|
{ GIMP_TRANSFORM_3D_LENS_MODE_FOV_IMAGE, NC_("3-dtransform-lens-mode", "FOV (image)"), NULL },
|
|
|
|
{ GIMP_TRANSFORM_3D_LENS_MODE_FOV_ITEM, NC_("3-dtransform-lens-mode", "Field of view (relative to item)"), NULL },
|
app, icons: add 3D Transform tool
Add a new 3D Transform tool, based on GimpToolTransform3DGrid,
added in the previous commit. The tool UI provides a notbook with
three tabs, corresponding to the three GimpToolTransform3DGrid
modes:
Camera - allows setting the primary vanishing point, as well as
the camera's focal length, expressed either directly, or as the
camera's angle of view, relative to the whole image or the
transformed item. By default, the vanishing point is aligned
with the item's center, and the angle of view is fixed relative
to the item; this essentially means that each item is transformed
using a local perspective, independent of its position and size
relative to the image. A global perspective can be achieved by
using a common vanishing point and focal length (or an image-
relative angle of view).
Move - allows moving the item using X, Y, and Z offsets.
Rotate - allows rotating the item using X, Y, and Z Euler angles.
The order of rotation of the different axes can be controlled by
a set of numbered buttons next to the sliders, and the rotation's
pivot can be controlled using a pivot selector.
2020-01-06 17:31:30 +02:00
|
|
|
/* Translators: this is an abbreviated version of "Field of view (relative to item)".
|
|
|
|
Keep it short. */
|
2022-02-13 13:49:36 +01:00
|
|
|
{ GIMP_TRANSFORM_3D_LENS_MODE_FOV_ITEM, NC_("3-dtransform-lens-mode", "FOV (item)"), NULL },
|
app, icons: add 3D Transform tool
Add a new 3D Transform tool, based on GimpToolTransform3DGrid,
added in the previous commit. The tool UI provides a notbook with
three tabs, corresponding to the three GimpToolTransform3DGrid
modes:
Camera - allows setting the primary vanishing point, as well as
the camera's focal length, expressed either directly, or as the
camera's angle of view, relative to the whole image or the
transformed item. By default, the vanishing point is aligned
with the item's center, and the angle of view is fixed relative
to the item; this essentially means that each item is transformed
using a local perspective, independent of its position and size
relative to the image. A global perspective can be achieved by
using a common vanishing point and focal length (or an image-
relative angle of view).
Move - allows moving the item using X, Y, and Z offsets.
Rotate - allows rotating the item using X, Y, and Z Euler angles.
The order of rotation of the different axes can be controlled by
a set of numbered buttons next to the sliders, and the rotation's
pivot can be controlled using a pivot selector.
2020-01-06 17:31:30 +02:00
|
|
|
{ 0, NULL, NULL }
|
|
|
|
};
|
|
|
|
|
|
|
|
static GType type = 0;
|
|
|
|
|
|
|
|
if (G_UNLIKELY (! type))
|
|
|
|
{
|
2022-02-13 13:49:36 +01:00
|
|
|
type = g_enum_register_static ("Gimp3DTransformLensMode", values);
|
|
|
|
gimp_type_set_translation_context (type, "3-dtransform-lens-mode");
|
app, icons: add 3D Transform tool
Add a new 3D Transform tool, based on GimpToolTransform3DGrid,
added in the previous commit. The tool UI provides a notbook with
three tabs, corresponding to the three GimpToolTransform3DGrid
modes:
Camera - allows setting the primary vanishing point, as well as
the camera's focal length, expressed either directly, or as the
camera's angle of view, relative to the whole image or the
transformed item. By default, the vanishing point is aligned
with the item's center, and the angle of view is fixed relative
to the item; this essentially means that each item is transformed
using a local perspective, independent of its position and size
relative to the image. A global perspective can be achieved by
using a common vanishing point and focal length (or an image-
relative angle of view).
Move - allows moving the item using X, Y, and Z offsets.
Rotate - allows rotating the item using X, Y, and Z Euler angles.
The order of rotation of the different axes can be controlled by
a set of numbered buttons next to the sliders, and the rotation's
pivot can be controlled using a pivot selector.
2020-01-06 17:31:30 +02:00
|
|
|
gimp_enum_set_value_descriptions (type, descs);
|
|
|
|
}
|
|
|
|
|
|
|
|
return type;
|
|
|
|
}
|
|
|
|
|
2011-05-23 21:11:08 +02:00
|
|
|
GType
|
|
|
|
gimp_warp_behavior_get_type (void)
|
|
|
|
{
|
|
|
|
static const GEnumValue values[] =
|
|
|
|
{
|
2018-12-12 11:13:48 -05:00
|
|
|
{ GIMP_WARP_BEHAVIOR_MOVE, "GIMP_WARP_BEHAVIOR_MOVE", "move" },
|
|
|
|
{ GIMP_WARP_BEHAVIOR_GROW, "GIMP_WARP_BEHAVIOR_GROW", "grow" },
|
|
|
|
{ GIMP_WARP_BEHAVIOR_SHRINK, "GIMP_WARP_BEHAVIOR_SHRINK", "shrink" },
|
|
|
|
{ GIMP_WARP_BEHAVIOR_SWIRL_CW, "GIMP_WARP_BEHAVIOR_SWIRL_CW", "swirl-cw" },
|
|
|
|
{ GIMP_WARP_BEHAVIOR_SWIRL_CCW, "GIMP_WARP_BEHAVIOR_SWIRL_CCW", "swirl-ccw" },
|
|
|
|
{ GIMP_WARP_BEHAVIOR_ERASE, "GIMP_WARP_BEHAVIOR_ERASE", "erase" },
|
|
|
|
{ GIMP_WARP_BEHAVIOR_SMOOTH, "GIMP_WARP_BEHAVIOR_SMOOTH", "smooth" },
|
2011-05-23 21:11:08 +02:00
|
|
|
{ 0, NULL, NULL }
|
|
|
|
};
|
|
|
|
|
|
|
|
static const GimpEnumDesc descs[] =
|
|
|
|
{
|
|
|
|
{ GIMP_WARP_BEHAVIOR_MOVE, NC_("warp-behavior", "Move pixels"), NULL },
|
2018-12-12 11:13:48 -05:00
|
|
|
{ GIMP_WARP_BEHAVIOR_GROW, NC_("warp-behavior", "Grow area"), NULL },
|
|
|
|
{ GIMP_WARP_BEHAVIOR_SHRINK, NC_("warp-behavior", "Shrink area"), NULL },
|
|
|
|
{ GIMP_WARP_BEHAVIOR_SWIRL_CW, NC_("warp-behavior", "Swirl clockwise"), NULL },
|
|
|
|
{ GIMP_WARP_BEHAVIOR_SWIRL_CCW, NC_("warp-behavior", "Swirl counter-clockwise"), NULL },
|
|
|
|
{ GIMP_WARP_BEHAVIOR_ERASE, NC_("warp-behavior", "Erase warping"), NULL },
|
|
|
|
{ GIMP_WARP_BEHAVIOR_SMOOTH, NC_("warp-behavior", "Smooth warping"), NULL },
|
2011-05-23 21:11:08 +02:00
|
|
|
{ 0, NULL, NULL }
|
|
|
|
};
|
|
|
|
|
|
|
|
static GType type = 0;
|
|
|
|
|
|
|
|
if (G_UNLIKELY (! type))
|
|
|
|
{
|
|
|
|
type = g_enum_register_static ("GimpWarpBehavior", values);
|
|
|
|
gimp_type_set_translation_context (type, "warp-behavior");
|
|
|
|
gimp_enum_set_value_descriptions (type, descs);
|
|
|
|
}
|
|
|
|
|
|
|
|
return type;
|
|
|
|
}
|
|
|
|
|
2020-11-07 12:59:45 +01:00
|
|
|
GType
|
|
|
|
gimp_paint_select_mode_get_type (void)
|
|
|
|
{
|
|
|
|
static const GEnumValue values[] =
|
|
|
|
{
|
|
|
|
{ GIMP_PAINT_SELECT_MODE_ADD, "GIMP_PAINT_SELECT_MODE_ADD", "add" },
|
|
|
|
{ GIMP_PAINT_SELECT_MODE_SUBTRACT, "GIMP_PAINT_SELECT_MODE_SUBTRACT", "subtract" },
|
|
|
|
{ 0, NULL, NULL }
|
|
|
|
};
|
|
|
|
|
|
|
|
static const GimpEnumDesc descs[] =
|
|
|
|
{
|
|
|
|
{ GIMP_PAINT_SELECT_MODE_ADD, NC_("paint-select-mode", "Add to selection"), NULL },
|
|
|
|
{ GIMP_PAINT_SELECT_MODE_SUBTRACT, NC_("paint-select-mode", "Subtract from selection"), NULL },
|
|
|
|
{ 0, NULL, NULL }
|
2020-11-24 21:26:04 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
static GType type = 0;
|
|
|
|
|
|
|
|
if (G_UNLIKELY (! type))
|
|
|
|
{
|
|
|
|
type = g_enum_register_static ("GimpPaintSelectMode", values);
|
|
|
|
gimp_type_set_translation_context (type, "paint-select-mode");
|
|
|
|
gimp_enum_set_value_descriptions (type, descs);
|
|
|
|
}
|
|
|
|
|
|
|
|
return type;
|
|
|
|
}
|
2020-11-07 12:59:45 +01:00
|
|
|
|
2003-02-07 17:12:21 +00:00
|
|
|
|
2002-03-29 03:50:29 +00:00
|
|
|
/* Generated data ends here */
|
|
|
|
|