2002-03-29 03:50:29 +00:00
|
|
|
|
|
|
|
/* Generated data (by gimp-mkenums) */
|
|
|
|
|
|
|
|
#include "config.h"
|
|
|
|
#include <glib-object.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
|
|
|
|
2003-04-15 14:20:19 +00:00
|
|
|
/* enumerations from "./tools-enums.h" */
|
2007-02-27 18:55:12 +00:00
|
|
|
GType
|
|
|
|
gimp_button_release_type_get_type (void)
|
|
|
|
{
|
|
|
|
static const GEnumValue values[] =
|
|
|
|
{
|
|
|
|
{ GIMP_BUTTON_RELEASE_NORMAL, "GIMP_BUTTON_RELEASE_NORMAL", "normal" },
|
|
|
|
{ GIMP_BUTTON_RELEASE_CANCEL, "GIMP_BUTTON_RELEASE_CANCEL", "cancel" },
|
|
|
|
{ GIMP_BUTTON_RELEASE_CLICK, "GIMP_BUTTON_RELEASE_CLICK", "click" },
|
2007-03-10 15:07:56 +00:00
|
|
|
{ GIMP_BUTTON_RELEASE_NO_MOTION, "GIMP_BUTTON_RELEASE_NO_MOTION", "no-motion" },
|
2007-02-27 18:55:12 +00:00
|
|
|
{ 0, NULL, NULL }
|
|
|
|
};
|
|
|
|
|
|
|
|
static const GimpEnumDesc descs[] =
|
|
|
|
{
|
|
|
|
{ GIMP_BUTTON_RELEASE_NORMAL, "GIMP_BUTTON_RELEASE_NORMAL", NULL },
|
|
|
|
{ GIMP_BUTTON_RELEASE_CANCEL, "GIMP_BUTTON_RELEASE_CANCEL", NULL },
|
|
|
|
{ GIMP_BUTTON_RELEASE_CLICK, "GIMP_BUTTON_RELEASE_CLICK", NULL },
|
2007-03-10 15:07:56 +00:00
|
|
|
{ GIMP_BUTTON_RELEASE_NO_MOTION, "GIMP_BUTTON_RELEASE_NO_MOTION", NULL },
|
2007-02-27 18:55:12 +00:00
|
|
|
{ 0, NULL, NULL }
|
|
|
|
};
|
|
|
|
|
|
|
|
static GType type = 0;
|
|
|
|
|
|
|
|
if (! type)
|
|
|
|
{
|
|
|
|
type = g_enum_register_static ("GimpButtonReleaseType", values);
|
|
|
|
gimp_enum_set_value_descriptions (type, descs);
|
|
|
|
}
|
|
|
|
|
|
|
|
return type;
|
|
|
|
}
|
|
|
|
|
2006-06-05 18:50:13 +00:00
|
|
|
GType
|
|
|
|
gimp_rectangle_guide_get_type (void)
|
|
|
|
{
|
|
|
|
static const GEnumValue values[] =
|
|
|
|
{
|
|
|
|
{ GIMP_RECTANGLE_GUIDE_NONE, "GIMP_RECTANGLE_GUIDE_NONE", "none" },
|
|
|
|
{ GIMP_RECTANGLE_GUIDE_CENTER_LINES, "GIMP_RECTANGLE_GUIDE_CENTER_LINES", "center-lines" },
|
|
|
|
{ GIMP_RECTANGLE_GUIDE_THIRDS, "GIMP_RECTANGLE_GUIDE_THIRDS", "thirds" },
|
|
|
|
{ GIMP_RECTANGLE_GUIDE_GOLDEN, "GIMP_RECTANGLE_GUIDE_GOLDEN", "golden" },
|
|
|
|
{ 0, NULL, NULL }
|
|
|
|
};
|
|
|
|
|
|
|
|
static const GimpEnumDesc descs[] =
|
|
|
|
{
|
|
|
|
{ GIMP_RECTANGLE_GUIDE_NONE, N_("No guides"), NULL },
|
|
|
|
{ GIMP_RECTANGLE_GUIDE_CENTER_LINES, N_("Center lines"), NULL },
|
|
|
|
{ GIMP_RECTANGLE_GUIDE_THIRDS, N_("Rule of thirds"), NULL },
|
|
|
|
{ GIMP_RECTANGLE_GUIDE_GOLDEN, N_("Golden sections"), NULL },
|
|
|
|
{ 0, NULL, NULL }
|
|
|
|
};
|
|
|
|
|
|
|
|
static GType type = 0;
|
|
|
|
|
|
|
|
if (! type)
|
|
|
|
{
|
|
|
|
type = g_enum_register_static ("GimpRectangleGuide", values);
|
|
|
|
gimp_enum_set_value_descriptions (type, descs);
|
|
|
|
}
|
|
|
|
|
|
|
|
return type;
|
|
|
|
}
|
|
|
|
|
2006-09-06 22:51:54 +00:00
|
|
|
GType
|
|
|
|
gimp_rectangle_constraint_get_type (void)
|
|
|
|
{
|
|
|
|
static const GEnumValue values[] =
|
|
|
|
{
|
|
|
|
{ GIMP_RECTANGLE_CONSTRAIN_NONE, "GIMP_RECTANGLE_CONSTRAIN_NONE", "none" },
|
|
|
|
{ GIMP_RECTANGLE_CONSTRAIN_IMAGE, "GIMP_RECTANGLE_CONSTRAIN_IMAGE", "image" },
|
|
|
|
{ GIMP_RECTANGLE_CONSTRAIN_DRAWABLE, "GIMP_RECTANGLE_CONSTRAIN_DRAWABLE", "drawable" },
|
|
|
|
{ 0, NULL, NULL }
|
|
|
|
};
|
|
|
|
|
|
|
|
static const GimpEnumDesc descs[] =
|
|
|
|
{
|
2006-12-13 21:49:09 +00:00
|
|
|
{ GIMP_RECTANGLE_CONSTRAIN_NONE, "GIMP_RECTANGLE_CONSTRAIN_NONE", NULL },
|
|
|
|
{ GIMP_RECTANGLE_CONSTRAIN_IMAGE, "GIMP_RECTANGLE_CONSTRAIN_IMAGE", NULL },
|
|
|
|
{ GIMP_RECTANGLE_CONSTRAIN_DRAWABLE, "GIMP_RECTANGLE_CONSTRAIN_DRAWABLE", NULL },
|
2006-09-06 22:51:54 +00:00
|
|
|
{ 0, NULL, NULL }
|
|
|
|
};
|
|
|
|
|
|
|
|
static GType type = 0;
|
|
|
|
|
|
|
|
if (! type)
|
|
|
|
{
|
|
|
|
type = g_enum_register_static ("GimpRectangleConstraint", values);
|
|
|
|
gimp_enum_set_value_descriptions (type, descs);
|
2007-11-24 09:09:26 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
return type;
|
|
|
|
}
|
|
|
|
|
|
|
|
GType
|
|
|
|
gimp_rectangle_precision_get_type (void)
|
|
|
|
{
|
|
|
|
static const GEnumValue values[] =
|
|
|
|
{
|
2008-04-07 20:56:03 +00:00
|
|
|
{ GIMP_RECTANGLE_PRECISION_INT, "GIMP_RECTANGLE_PRECISION_INT", "int" },
|
2007-11-24 09:09:26 +00:00
|
|
|
{ GIMP_RECTANGLE_PRECISION_DOUBLE, "GIMP_RECTANGLE_PRECISION_DOUBLE", "double" },
|
|
|
|
{ 0, NULL, NULL }
|
|
|
|
};
|
|
|
|
|
|
|
|
static const GimpEnumDesc descs[] =
|
|
|
|
{
|
2008-04-07 20:56:03 +00:00
|
|
|
{ GIMP_RECTANGLE_PRECISION_INT, "GIMP_RECTANGLE_PRECISION_INT", NULL },
|
|
|
|
{ GIMP_RECTANGLE_PRECISION_DOUBLE, "GIMP_RECTANGLE_PRECISION_DOUBLE", NULL },
|
2007-11-24 09:09:26 +00:00
|
|
|
{ 0, NULL, NULL }
|
|
|
|
};
|
|
|
|
|
|
|
|
static GType type = 0;
|
|
|
|
|
|
|
|
if (! type)
|
|
|
|
{
|
|
|
|
type = g_enum_register_static ("GimpRectanglePrecision", values);
|
|
|
|
gimp_enum_set_value_descriptions (type, descs);
|
2006-09-06 22:51:54 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
return type;
|
|
|
|
}
|
|
|
|
|
2003-01-06 16:25:04 +00:00
|
|
|
GType
|
2007-08-04 20:20:44 +00:00
|
|
|
gimp_rectangle_tool_fixed_rule_get_type (void)
|
|
|
|
{
|
|
|
|
static const GEnumValue values[] =
|
|
|
|
{
|
|
|
|
{ GIMP_RECTANGLE_TOOL_FIXED_ASPECT, "GIMP_RECTANGLE_TOOL_FIXED_ASPECT", "aspect" },
|
|
|
|
{ GIMP_RECTANGLE_TOOL_FIXED_WIDTH, "GIMP_RECTANGLE_TOOL_FIXED_WIDTH", "width" },
|
|
|
|
{ GIMP_RECTANGLE_TOOL_FIXED_HEIGHT, "GIMP_RECTANGLE_TOOL_FIXED_HEIGHT", "height" },
|
|
|
|
{ GIMP_RECTANGLE_TOOL_FIXED_SIZE, "GIMP_RECTANGLE_TOOL_FIXED_SIZE", "size" },
|
|
|
|
{ 0, NULL, NULL }
|
|
|
|
};
|
|
|
|
|
|
|
|
static const GimpEnumDesc descs[] =
|
|
|
|
{
|
|
|
|
{ GIMP_RECTANGLE_TOOL_FIXED_ASPECT, N_("Aspect ratio"), NULL },
|
|
|
|
{ GIMP_RECTANGLE_TOOL_FIXED_WIDTH, N_("Width"), NULL },
|
|
|
|
{ GIMP_RECTANGLE_TOOL_FIXED_HEIGHT, N_("Height"), NULL },
|
|
|
|
{ GIMP_RECTANGLE_TOOL_FIXED_SIZE, N_("Size"), NULL },
|
|
|
|
{ 0, NULL, NULL }
|
|
|
|
};
|
|
|
|
|
|
|
|
static GType type = 0;
|
|
|
|
|
|
|
|
if (! type)
|
|
|
|
{
|
|
|
|
type = g_enum_register_static ("GimpRectangleToolFixedRule", values);
|
|
|
|
gimp_enum_set_value_descriptions (type, descs);
|
|
|
|
}
|
|
|
|
|
|
|
|
return type;
|
|
|
|
}
|
|
|
|
|
|
|
|
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[] =
|
|
|
|
{
|
|
|
|
{ GIMP_RECT_SELECT_MODE_FREE, N_("Free select"), NULL },
|
|
|
|
{ GIMP_RECT_SELECT_MODE_FIXED_SIZE, N_("Fixed size"), NULL },
|
|
|
|
{ GIMP_RECT_SELECT_MODE_FIXED_RATIO, N_("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
|
|
|
|
2004-07-28 11:50:20 +00:00
|
|
|
if (! type)
|
2004-10-25 17:55:25 +00:00
|
|
|
{
|
|
|
|
type = g_enum_register_static ("GimpRectSelectMode", values);
|
|
|
|
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" },
|
|
|
|
{ 0, NULL, NULL }
|
|
|
|
};
|
|
|
|
|
|
|
|
static const GimpEnumDesc descs[] =
|
|
|
|
{
|
2006-10-03 19:32:41 +00:00
|
|
|
{ GIMP_TRANSFORM_TYPE_LAYER, N_("Layer"), NULL },
|
|
|
|
{ GIMP_TRANSFORM_TYPE_SELECTION, N_("Selection"), NULL },
|
|
|
|
{ GIMP_TRANSFORM_TYPE_PATH, N_("Path"), 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
|
|
|
|
2004-07-28 11:50:20 +00:00
|
|
|
if (! type)
|
2004-10-25 17:55:25 +00:00
|
|
|
{
|
|
|
|
type = g_enum_register_static ("GimpTransformType", values);
|
|
|
|
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
|
|
|
|
|
|
|
GType
|
2007-02-27 18:55:12 +00:00
|
|
|
gimp_transform_preview_type_get_type (void)
|
2003-08-20 22:19:37 +00:00
|
|
|
{
|
2004-07-28 11:50:20 +00:00
|
|
|
static const GEnumValue values[] =
|
|
|
|
{
|
2007-02-27 18:55:12 +00:00
|
|
|
{ GIMP_TRANSFORM_PREVIEW_TYPE_OUTLINE, "GIMP_TRANSFORM_PREVIEW_TYPE_OUTLINE", "outline" },
|
|
|
|
{ GIMP_TRANSFORM_PREVIEW_TYPE_GRID, "GIMP_TRANSFORM_PREVIEW_TYPE_GRID", "grid" },
|
|
|
|
{ GIMP_TRANSFORM_PREVIEW_TYPE_IMAGE, "GIMP_TRANSFORM_PREVIEW_TYPE_IMAGE", "image" },
|
|
|
|
{ GIMP_TRANSFORM_PREVIEW_TYPE_IMAGE_GRID, "GIMP_TRANSFORM_PREVIEW_TYPE_IMAGE_GRID", "image-grid" },
|
2004-10-25 17:55:25 +00:00
|
|
|
{ 0, NULL, NULL }
|
|
|
|
};
|
|
|
|
|
|
|
|
static const GimpEnumDesc descs[] =
|
|
|
|
{
|
2007-02-27 18:55:12 +00:00
|
|
|
{ GIMP_TRANSFORM_PREVIEW_TYPE_OUTLINE, N_("Outline"), NULL },
|
|
|
|
{ GIMP_TRANSFORM_PREVIEW_TYPE_GRID, N_("Grid"), NULL },
|
|
|
|
{ GIMP_TRANSFORM_PREVIEW_TYPE_IMAGE, N_("Image"), NULL },
|
|
|
|
{ GIMP_TRANSFORM_PREVIEW_TYPE_IMAGE_GRID, N_("Image + Grid"), NULL },
|
2004-07-28 11:50:20 +00:00
|
|
|
{ 0, NULL, NULL }
|
|
|
|
};
|
2003-08-20 22:19:37 +00:00
|
|
|
|
2004-07-28 11:50:20 +00:00
|
|
|
static GType type = 0;
|
2003-08-20 22:19:37 +00:00
|
|
|
|
2004-07-28 11:50:20 +00:00
|
|
|
if (! type)
|
2004-10-25 17:55:25 +00:00
|
|
|
{
|
2007-02-27 18:55:12 +00:00
|
|
|
type = g_enum_register_static ("GimpTransformPreviewType", values);
|
2004-10-25 17:55:25 +00:00
|
|
|
gimp_enum_set_value_descriptions (type, descs);
|
|
|
|
}
|
2003-08-20 22:19:37 +00:00
|
|
|
|
2004-07-28 11:50:20 +00:00
|
|
|
return type;
|
|
|
|
}
|
2004-07-02 21:56:30 +00:00
|
|
|
|
|
|
|
GType
|
2007-02-27 18:55:12 +00:00
|
|
|
gimp_transform_grid_type_get_type (void)
|
2004-07-02 21:56:30 +00:00
|
|
|
{
|
2004-07-28 11:50:20 +00:00
|
|
|
static const GEnumValue values[] =
|
|
|
|
{
|
2007-02-27 18:55:12 +00:00
|
|
|
{ GIMP_TRANSFORM_GRID_TYPE_N_LINES, "GIMP_TRANSFORM_GRID_TYPE_N_LINES", "n-lines" },
|
|
|
|
{ GIMP_TRANSFORM_GRID_TYPE_SPACING, "GIMP_TRANSFORM_GRID_TYPE_SPACING", "spacing" },
|
2004-10-25 17:55:25 +00:00
|
|
|
{ 0, NULL, NULL }
|
|
|
|
};
|
|
|
|
|
|
|
|
static const GimpEnumDesc descs[] =
|
|
|
|
{
|
2007-02-27 18:55:12 +00:00
|
|
|
{ GIMP_TRANSFORM_GRID_TYPE_N_LINES, N_("Number of grid lines"), NULL },
|
|
|
|
{ GIMP_TRANSFORM_GRID_TYPE_SPACING, N_("Grid line spacing"), NULL },
|
2004-07-28 11:50:20 +00:00
|
|
|
{ 0, NULL, NULL }
|
|
|
|
};
|
2004-07-02 21:56:30 +00:00
|
|
|
|
2004-07-28 11:50:20 +00:00
|
|
|
static GType type = 0;
|
2004-07-02 21:56:30 +00:00
|
|
|
|
2004-07-28 11:50:20 +00:00
|
|
|
if (! type)
|
2004-10-25 17:55:25 +00:00
|
|
|
{
|
2007-02-27 18:55:12 +00:00
|
|
|
type = g_enum_register_static ("GimpTransformGridType", values);
|
2004-10-25 17:55:25 +00:00
|
|
|
gimp_enum_set_value_descriptions (type, descs);
|
|
|
|
}
|
2004-07-02 21:56:30 +00:00
|
|
|
|
2004-07-28 11:50:20 +00:00
|
|
|
return type;
|
|
|
|
}
|
2003-02-07 17:12:21 +00:00
|
|
|
|
|
|
|
GType
|
2007-02-27 18:55:12 +00:00
|
|
|
gimp_vector_mode_get_type (void)
|
2003-02-07 17:12:21 +00:00
|
|
|
{
|
2004-07-28 11:50:20 +00:00
|
|
|
static const GEnumValue values[] =
|
|
|
|
{
|
2007-02-27 18:55:12 +00:00
|
|
|
{ GIMP_VECTOR_MODE_DESIGN, "GIMP_VECTOR_MODE_DESIGN", "design" },
|
|
|
|
{ GIMP_VECTOR_MODE_EDIT, "GIMP_VECTOR_MODE_EDIT", "edit" },
|
|
|
|
{ GIMP_VECTOR_MODE_MOVE, "GIMP_VECTOR_MODE_MOVE", "move" },
|
2004-10-25 17:55:25 +00:00
|
|
|
{ 0, NULL, NULL }
|
|
|
|
};
|
|
|
|
|
|
|
|
static const GimpEnumDesc descs[] =
|
|
|
|
{
|
2007-02-27 18:55:12 +00:00
|
|
|
{ GIMP_VECTOR_MODE_DESIGN, N_("Design"), NULL },
|
|
|
|
{ GIMP_VECTOR_MODE_EDIT, N_("Edit"), NULL },
|
|
|
|
{ GIMP_VECTOR_MODE_MOVE, N_("Move"), NULL },
|
2004-07-28 11:50:20 +00:00
|
|
|
{ 0, NULL, NULL }
|
|
|
|
};
|
|
|
|
|
|
|
|
static GType type = 0;
|
2003-02-07 17:12:21 +00:00
|
|
|
|
2004-07-28 11:50:20 +00:00
|
|
|
if (! type)
|
2004-10-25 17:55:25 +00:00
|
|
|
{
|
2007-02-27 18:55:12 +00:00
|
|
|
type = g_enum_register_static ("GimpVectorMode", values);
|
2004-10-25 17:55:25 +00:00
|
|
|
gimp_enum_set_value_descriptions (type, descs);
|
|
|
|
}
|
2003-02-07 17:12:21 +00:00
|
|
|
|
2004-07-28 11:50:20 +00:00
|
|
|
return type;
|
2003-02-07 17:12:21 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2002-03-29 03:50:29 +00:00
|
|
|
/* Generated data ends here */
|
|
|
|
|