gimp/app/text/text-enums.c
Sven Neumann d533104de7 handle negative float and double values similar to how this is done for
2003-10-26  Sven Neumann  <sven@gimp.org>

	* app/config/gimpconfig-deserialize.c
	(gimp_config_deserialize_fundamental): handle negative float and
	double values similar to how this is done for integers and the
	like.

	* app/config/gimpconfig-params.h: added two new param flags and
	documented all flags in the header file (for now).

	* app/config/gimpconfig-serialize.h: handle the new param flags
	GIMP_PARAM_DEFAULTS and GIMP_PARAM_IGNORE.

	* app/text/text-enums.[ch]
	* app/text/gimptext.[ch]: added some properties that we will need
	sooner or later. Mark the new properties and a lot of the existing
	ones as GIMP_PARAM_DEFAULTS so that their values are not
	serialized unless changed from the default value.

	* app/text/gimptextlayout.c
	* app/tools/gimptextoptions.c: made all length properties in
	GimpText depend on a single unit.
2003-10-26 00:03:16 +00:00

92 lines
2.1 KiB
C

/* Generated data (by gimp-mkenums) */
#include "config.h"
#include <glib-object.h>
#include "text-enums.h"
#include "gimp-intl.h"
/* enumerations from "./text-enums.h" */
static const GEnumValue gimp_text_box_mode_enum_values[] =
{
{ GIMP_TEXT_BOX_DYNAMIC, "GIMP_TEXT_BOX_DYNAMIC", "dynamic" },
{ GIMP_TEXT_BOX_FIXED, "GIMP_TEXT_BOX_FIXED", "fixed" },
{ 0, NULL, NULL }
};
GType
gimp_text_box_mode_get_type (void)
{
static GType enum_type = 0;
if (!enum_type)
enum_type = g_enum_register_static ("GimpTextBoxMode", gimp_text_box_mode_enum_values);
return enum_type;
}
static const GEnumValue gimp_text_direction_enum_values[] =
{
{ GIMP_TEXT_DIRECTION_LTR, N_("From Left to Right"), "ltr" },
{ GIMP_TEXT_DIRECTION_RTL, N_("From Right to Left"), "rtl" },
{ 0, NULL, NULL }
};
GType
gimp_text_direction_get_type (void)
{
static GType enum_type = 0;
if (!enum_type)
enum_type = g_enum_register_static ("GimpTextDirection", gimp_text_direction_enum_values);
return enum_type;
}
static const GEnumValue gimp_text_justification_enum_values[] =
{
{ GIMP_TEXT_JUSTIFY_LEFT, N_("Left Justified"), "left" },
{ GIMP_TEXT_JUSTIFY_RIGHT, N_("Right Justified"), "right" },
{ GIMP_TEXT_JUSTIFY_CENTER, N_("Centered"), "center" },
{ GIMP_TEXT_JUSTIFY_FILL, N_("Filled"), "fill" },
{ 0, NULL, NULL }
};
GType
gimp_text_justification_get_type (void)
{
static GType enum_type = 0;
if (!enum_type)
enum_type = g_enum_register_static ("GimpTextJustification", gimp_text_justification_enum_values);
return enum_type;
}
static const GEnumValue gimp_text_outline_enum_values[] =
{
{ GIMP_TEXT_OUTLINE_NONE, "GIMP_TEXT_OUTLINE_NONE", "none" },
{ GIMP_TEXT_OUTLINE_STROKE_ONLY, "GIMP_TEXT_OUTLINE_STROKE_ONLY", "stroke-only" },
{ GIMP_TEXT_OUTLINE_STROKE_FILL, "GIMP_TEXT_OUTLINE_STROKE_FILL", "stroke-fill" },
{ 0, NULL, NULL }
};
GType
gimp_text_outline_get_type (void)
{
static GType enum_type = 0;
if (!enum_type)
enum_type = g_enum_register_static ("GimpTextOutline", gimp_text_outline_enum_values);
return enum_type;
}
/* Generated data ends here */