2002-03-19 Sven Neumann <sven@gimp.org> * app/base/Makefile.am * app/base/base-enums.c * app/core/Makefile.am * app/core/core-enums.c * app/widgets/Makefile.am * app/widgets/widgets-enums.c: purely cosmetic change. * app/paint/Makefile.am * app/paint/paint-enums.[ch]: generate paint-enums.c with registered enums. Skip GIMP_BRUSH_PRESSURE and GIMP_CUSTOM_CONVOLVE so they don't get exported to libgimp and are not registered as enum values. * tools/pdbgen/pdb/paint_tools.pdb: removed special casing of GimpBrushApplicationMode and GimpConvolveType since the forbidden values are now skipped anyway. * libgimp/gimpcompat.h: removed compat defines for the forbidden enum values. They shouldn't have been used. * app/tools/Makefile.am * app/tools/tools-enums.[ch]: generate tools-enums.c with registered enums. * libgimp/gimpenums.h * plug-ins/script-fu/script-fu-constants.c * tools/pdbgen/enums.pl: regenerated. * app/paint/gimpclone.[ch] * app/paint/gimpconvolve.h * app/paint/gimpdodgeburn.h * app/tools/gimpclonetool.c * app/tools/gimpconvolvetool.c * app/tools/gimpcroptool.[ch] * app/tools/gimpdodgeburntool.c * app/tools/paint_options.c: changed accordingly. Added more enum radio frames and enum option menus.
134 lines
3.8 KiB
C
134 lines
3.8 KiB
C
|
|
/* Generated data (by gimp-mkenums) */
|
|
|
|
#include "config.h"
|
|
#include <glib-object.h>
|
|
#include "base-enums.h"
|
|
#include "libgimp/gimpintl.h"
|
|
|
|
/* enumerations from "./base-enums.h" */
|
|
|
|
static const GEnumValue gimp_interpolation_type_enum_values[] =
|
|
{
|
|
{ GIMP_INTERPOLATION_NONE, N_("None (Fastest)"), "none" },
|
|
{ GIMP_INTERPOLATION_LINEAR, N_("Linear"), "linear" },
|
|
{ GIMP_INTERPOLATION_CUBIC, N_("Cubic (Best)"), "cubic" },
|
|
{ 0, NULL, NULL }
|
|
};
|
|
|
|
GType
|
|
gimp_interpolation_type_get_type (void)
|
|
{
|
|
static GType enum_type = 0;
|
|
|
|
if (!enum_type)
|
|
enum_type = g_enum_register_static ("GimpInterpolationType", gimp_interpolation_type_enum_values);
|
|
|
|
return enum_type;
|
|
}
|
|
|
|
|
|
static const GEnumValue gimp_layer_mode_effects_enum_values[] =
|
|
{
|
|
{ GIMP_NORMAL_MODE, "GIMP_NORMAL_MODE", "normal-mode" },
|
|
{ GIMP_DISSOLVE_MODE, "GIMP_DISSOLVE_MODE", "dissolve-mode" },
|
|
{ GIMP_BEHIND_MODE, "GIMP_BEHIND_MODE", "behind-mode" },
|
|
{ GIMP_MULTIPLY_MODE, "GIMP_MULTIPLY_MODE", "multiply-mode" },
|
|
{ GIMP_SCREEN_MODE, "GIMP_SCREEN_MODE", "screen-mode" },
|
|
{ GIMP_OVERLAY_MODE, "GIMP_OVERLAY_MODE", "overlay-mode" },
|
|
{ GIMP_DIFFERENCE_MODE, "GIMP_DIFFERENCE_MODE", "difference-mode" },
|
|
{ GIMP_ADDITION_MODE, "GIMP_ADDITION_MODE", "addition-mode" },
|
|
{ GIMP_SUBTRACT_MODE, "GIMP_SUBTRACT_MODE", "subtract-mode" },
|
|
{ GIMP_DARKEN_ONLY_MODE, "GIMP_DARKEN_ONLY_MODE", "darken-only-mode" },
|
|
{ GIMP_LIGHTEN_ONLY_MODE, "GIMP_LIGHTEN_ONLY_MODE", "lighten-only-mode" },
|
|
{ GIMP_HUE_MODE, "GIMP_HUE_MODE", "hue-mode" },
|
|
{ GIMP_SATURATION_MODE, "GIMP_SATURATION_MODE", "saturation-mode" },
|
|
{ GIMP_COLOR_MODE, "GIMP_COLOR_MODE", "color-mode" },
|
|
{ GIMP_VALUE_MODE, "GIMP_VALUE_MODE", "value-mode" },
|
|
{ GIMP_DIVIDE_MODE, "GIMP_DIVIDE_MODE", "divide-mode" },
|
|
{ GIMP_DODGE_MODE, "GIMP_DODGE_MODE", "dodge-mode" },
|
|
{ GIMP_BURN_MODE, "GIMP_BURN_MODE", "burn-mode" },
|
|
{ GIMP_HARDLIGHT_MODE, "GIMP_HARDLIGHT_MODE", "hardlight-mode" },
|
|
{ GIMP_COLOR_ERASE_MODE, "GIMP_COLOR_ERASE_MODE", "color-erase-mode" },
|
|
{ 0, NULL, NULL }
|
|
};
|
|
|
|
GType
|
|
gimp_layer_mode_effects_get_type (void)
|
|
{
|
|
static GType enum_type = 0;
|
|
|
|
if (!enum_type)
|
|
enum_type = g_enum_register_static ("GimpLayerModeEffects", gimp_layer_mode_effects_enum_values);
|
|
|
|
return enum_type;
|
|
}
|
|
|
|
|
|
static const GEnumValue gimp_check_size_enum_values[] =
|
|
{
|
|
{ GIMP_SMALL_CHECKS, N_("Small"), "small-checks" },
|
|
{ GIMP_MEDIUM_CHECKS, N_("Medium"), "medium-checks" },
|
|
{ GIMP_LARGE_CHECKS, N_("Large"), "large-checks" },
|
|
{ 0, NULL, NULL }
|
|
};
|
|
|
|
GType
|
|
gimp_check_size_get_type (void)
|
|
{
|
|
static GType enum_type = 0;
|
|
|
|
if (!enum_type)
|
|
enum_type = g_enum_register_static ("GimpCheckSize", gimp_check_size_enum_values);
|
|
|
|
return enum_type;
|
|
}
|
|
|
|
|
|
static const GEnumValue gimp_check_type_enum_values[] =
|
|
{
|
|
{ GIMP_LIGHT_CHECKS, N_("Light Checks"), "light-checks" },
|
|
{ GIMP_GRAY_CHECKS, N_("Mid-Tone Checks"), "gray-checks" },
|
|
{ GIMP_DARK_CHECKS, N_("Dark Checks"), "dark-checks" },
|
|
{ GIMP_WHITE_ONLY, N_("White Only"), "white-only" },
|
|
{ GIMP_GRAY_ONLY, N_("Gray Only"), "gray-only" },
|
|
{ GIMP_BLACK_ONLY, N_("Black Only"), "black-only" },
|
|
{ 0, NULL, NULL }
|
|
};
|
|
|
|
GType
|
|
gimp_check_type_get_type (void)
|
|
{
|
|
static GType enum_type = 0;
|
|
|
|
if (!enum_type)
|
|
enum_type = g_enum_register_static ("GimpCheckType", gimp_check_type_enum_values);
|
|
|
|
return enum_type;
|
|
}
|
|
|
|
|
|
static const GEnumValue gimp_histogram_channel_enum_values[] =
|
|
{
|
|
{ GIMP_HISTOGRAM_VALUE, N_("Value"), "value" },
|
|
{ GIMP_HISTOGRAM_RED, N_("Red"), "red" },
|
|
{ GIMP_HISTOGRAM_GREEN, N_("Green"), "green" },
|
|
{ GIMP_HISTOGRAM_BLUE, N_("Blue"), "blue" },
|
|
{ GIMP_HISTOGRAM_ALPHA, N_("Alpha"), "alpha" },
|
|
{ 0, NULL, NULL }
|
|
};
|
|
|
|
GType
|
|
gimp_histogram_channel_get_type (void)
|
|
{
|
|
static GType enum_type = 0;
|
|
|
|
if (!enum_type)
|
|
enum_type = g_enum_register_static ("GimpHistogramChannel", gimp_histogram_channel_enum_values);
|
|
|
|
return enum_type;
|
|
}
|
|
|
|
|
|
/* Generated data ends here */
|
|
|