More tooltips for tools options

Added previously missing tooltips for transformation tools, Flip tool,
text tool and Bucket Fill tool.
This commit is contained in:
Alexandre Prokoudine 2011-04-21 15:28:05 +04:00
parent 1cd5ab7356
commit b18d638000
4 changed files with 33 additions and 17 deletions

View File

@ -87,12 +87,14 @@ gimp_bucket_fill_options_class_init (GimpBucketFillOptionsClass *klass)
options_class->reset = gimp_bucket_fill_options_reset;
GIMP_CONFIG_INSTALL_PROP_ENUM (object_class, PROP_FILL_MODE,
"fill-mode", NULL,
"fill-mode",
N_("What to fill a selection or a layer with"),
GIMP_TYPE_BUCKET_FILL_MODE,
GIMP_FG_BUCKET_FILL,
GIMP_PARAM_STATIC_STRINGS);
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_FILL_SELECTION,
"fill-selection", NULL,
"fill-selection",
N_("Which area will be filled"),
FALSE,
GIMP_PARAM_STATIC_STRINGS);
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_FILL_TRANSPARENT,
@ -113,7 +115,8 @@ gimp_bucket_fill_options_class_init (GimpBucketFillOptionsClass *klass)
0.0, 255.0, 15.0,
GIMP_PARAM_STATIC_STRINGS);
GIMP_CONFIG_INSTALL_PROP_ENUM (object_class, PROP_FILL_CRITERION,
"fill-criterion", NULL,
"fill-criterion",
N_("What to use for calculating an area to fill"),
GIMP_TYPE_SELECT_CRITERION,
GIMP_SELECT_CRITERION_COMPOSITE,
GIMP_PARAM_STATIC_STRINGS);

View File

@ -62,7 +62,8 @@ gimp_flip_options_class_init (GimpFlipOptionsClass *klass)
object_class->get_property = gimp_flip_options_get_property;
GIMP_CONFIG_INSTALL_PROP_ENUM (object_class, PROP_FLIP_TYPE,
"flip-type", NULL,
"flip-type",
N_("Direction of flipping"),
GIMP_TYPE_ORIENTATION_TYPE,
GIMP_ORIENTATION_HORIZONTAL,
GIMP_PARAM_STATIC_STRINGS);

View File

@ -127,11 +127,13 @@ gimp_text_options_class_init (GimpTextOptionsClass *klass)
GIMP_PARAM_STATIC_STRINGS);
GIMP_CONFIG_INSTALL_PROP_UNIT (object_class, PROP_UNIT,
"font-size-unit", NULL,
"font-size-unit",
N_("Font size unit"),
TRUE, FALSE, GIMP_UNIT_PIXEL,
GIMP_PARAM_STATIC_STRINGS);
GIMP_CONFIG_INSTALL_PROP_DOUBLE (object_class, PROP_FONT_SIZE,
"font-size", NULL,
"font-size",
N_("Font size"),
0.0, 8192.0, 18.0,
GIMP_PARAM_STATIC_STRINGS);
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_ANTIALIAS,
@ -158,7 +160,8 @@ gimp_text_options_class_init (GimpTextOptionsClass *klass)
GIMP_TEXT_DIRECTION_LTR,
GIMP_PARAM_STATIC_STRINGS);
GIMP_CONFIG_INSTALL_PROP_ENUM (object_class, PROP_JUSTIFICATION,
"justify", NULL,
"justify",
N_("Text alignment"),
GIMP_TYPE_TEXT_JUSTIFICATION,
GIMP_TEXT_JUSTIFY_LEFT,
GIMP_PARAM_STATIC_STRINGS);
@ -182,7 +185,8 @@ gimp_text_options_class_init (GimpTextOptionsClass *klass)
GIMP_CONFIG_PARAM_DEFAULTS);
GIMP_CONFIG_INSTALL_PROP_ENUM (object_class, PROP_BOX_MODE,
"box-mode",
N_("Text box resize mode"),
N_("Whether text flows into rectangular shape or"
"moves into a new line when you press Enter"),
GIMP_TYPE_TEXT_BOX_MODE,
GIMP_TEXT_BOX_DYNAMIC,
GIMP_PARAM_STATIC_STRINGS);

View File

@ -98,40 +98,48 @@ gimp_transform_options_class_init (GimpTransformOptionsClass *klass)
GIMP_TRANSFORM_TYPE_LAYER,
GIMP_PARAM_STATIC_STRINGS);
GIMP_CONFIG_INSTALL_PROP_ENUM (object_class, PROP_DIRECTION,
"direction", NULL,
"direction",
N_("Direction of transformation"),
GIMP_TYPE_TRANSFORM_DIRECTION,
GIMP_TRANSFORM_FORWARD,
GIMP_PARAM_STATIC_STRINGS);
GIMP_CONFIG_INSTALL_PROP_ENUM (object_class, PROP_INTERPOLATION,
"interpolation", NULL,
"interpolation",
N_("Interpolation method"),
GIMP_TYPE_INTERPOLATION_TYPE,
GIMP_INTERPOLATION_LINEAR,
GIMP_PARAM_STATIC_STRINGS);
GIMP_CONFIG_INSTALL_PROP_ENUM (object_class, PROP_CLIP,
"clip", NULL,
"clip",
N_("How to clip..."),
GIMP_TYPE_TRANSFORM_RESIZE,
GIMP_TRANSFORM_RESIZE_ADJUST,
GIMP_PARAM_STATIC_STRINGS);
GIMP_CONFIG_INSTALL_PROP_ENUM (object_class, PROP_PREVIEW_TYPE,
"preview-type", NULL,
"preview-type",
N_("How to render preview"),
GIMP_TYPE_TRANSFORM_PREVIEW_TYPE,
GIMP_TRANSFORM_PREVIEW_TYPE_IMAGE,
GIMP_PARAM_STATIC_STRINGS);
GIMP_CONFIG_INSTALL_PROP_DOUBLE (object_class, PROP_PREVIEW_OPACITY,
"preview-opacity", NULL,
"preview-opacity",
N_("Preview opacity"),
0.0, 1.0, 1.0,
GIMP_PARAM_STATIC_STRINGS);
GIMP_PARAM_STATIC_STRINGS);
GIMP_CONFIG_INSTALL_PROP_ENUM (object_class, PROP_GRID_TYPE,
"grid-type", NULL,
"grid-type",
N_("How to define grid settings"),
GIMP_TYPE_TRANSFORM_GRID_TYPE,
GIMP_TRANSFORM_GRID_TYPE_N_LINES,
GIMP_PARAM_STATIC_STRINGS);
GIMP_CONFIG_INSTALL_PROP_INT (object_class, PROP_GRID_SIZE,
"grid-size", NULL,
"grid-size",
N_("Size of a grid cell"),
1, 128, 15,
GIMP_PARAM_STATIC_STRINGS);
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_CONSTRAIN,
"constrain", NULL,
"constrain",
N_("Limit rotation step to 15 degrees"),
FALSE,
GIMP_PARAM_STATIC_STRINGS);
}