mirror of
https://gitlab.gnome.org/GNOME/gimp
synced 2024-10-21 20:12:30 +00:00
app/actions/drawable-actions.c app/actions/image-actions.c added tooltips,
2006-03-10 Sven Neumann <sven@gimp.org> * app/actions/drawable-actions.c * app/actions/image-actions.c * app/actions/layers-actions.c: added tooltips, more to come here.
This commit is contained in:
parent
7b2b56b2fe
commit
e64dc39c48
|
@ -1,3 +1,9 @@
|
|||
2006-03-10 Sven Neumann <sven@gimp.org>
|
||||
|
||||
* app/actions/drawable-actions.c
|
||||
* app/actions/image-actions.c
|
||||
* app/actions/layers-actions.c: added tooltips, more to come here.
|
||||
|
||||
2006-03-10 Sven Neumann <sven@gimp.org>
|
||||
|
||||
* app/actions/plug-in-actions.c (plug_in_actions_add_proc): use
|
||||
|
|
|
@ -42,27 +42,32 @@
|
|||
static GimpActionEntry drawable_actions[] =
|
||||
{
|
||||
{ "drawable-desaturate", GIMP_STOCK_CONVERT_GRAYSCALE,
|
||||
N_("_Desaturate..."), NULL, NULL,
|
||||
N_("_Desaturate..."), NULL,
|
||||
N_("Turn colors into shades of gray"),
|
||||
G_CALLBACK (drawable_desaturate_cmd_callback),
|
||||
GIMP_HELP_LAYER_DESATURATE },
|
||||
|
||||
{ "drawable-equalize", NULL,
|
||||
N_("_Equalize"), NULL, NULL,
|
||||
N_("_Equalize"), NULL,
|
||||
N_("Automatic contrast enhancement"),
|
||||
G_CALLBACK (drawable_equalize_cmd_callback),
|
||||
GIMP_HELP_LAYER_EQUALIZE },
|
||||
|
||||
{ "drawable-invert", GIMP_STOCK_INVERT,
|
||||
N_("In_vert"), NULL, NULL,
|
||||
N_("In_vert"), NULL,
|
||||
N_("Invert the colors"),
|
||||
G_CALLBACK (drawable_invert_cmd_callback),
|
||||
GIMP_HELP_LAYER_INVERT },
|
||||
|
||||
{ "drawable-levels-stretch", NULL,
|
||||
N_("_White Balance"), NULL, NULL,
|
||||
N_("_White Balance"), NULL,
|
||||
N_("Automatic white balance correction"),
|
||||
G_CALLBACK (drawable_levels_stretch_cmd_callback),
|
||||
GIMP_HELP_LAYER_WHITE_BALANCE},
|
||||
|
||||
{ "drawable-offset", NULL,
|
||||
N_("_Offset..."), "<control><shift>O", NULL,
|
||||
N_("_Offset..."), "<control><shift>O",
|
||||
N_("Shift the pixels, optionally wrapping them at the borders"),
|
||||
G_CALLBACK (drawable_offset_cmd_callback),
|
||||
GIMP_HELP_LAYER_OFFSET }
|
||||
};
|
||||
|
@ -70,13 +75,15 @@ static GimpActionEntry drawable_actions[] =
|
|||
static GimpToggleActionEntry drawable_toggle_actions[] =
|
||||
{
|
||||
{ "drawable-linked", GIMP_STOCK_LINKED,
|
||||
N_("_Linked"), NULL, NULL,
|
||||
N_("_Linked"), NULL,
|
||||
N_("Toggle the linked state"),
|
||||
G_CALLBACK (drawable_linked_cmd_callback),
|
||||
FALSE,
|
||||
GIMP_HELP_LAYER_LINKED },
|
||||
|
||||
{ "drawable-visible", GIMP_STOCK_VISIBLE,
|
||||
N_("_Visible"), NULL, NULL,
|
||||
N_("_Visible"), NULL,
|
||||
N_("Toggle visibility"),
|
||||
G_CALLBACK (drawable_visible_cmd_callback),
|
||||
FALSE,
|
||||
GIMP_HELP_LAYER_VISIBLE }
|
||||
|
@ -85,12 +92,14 @@ static GimpToggleActionEntry drawable_toggle_actions[] =
|
|||
static GimpEnumActionEntry drawable_flip_actions[] =
|
||||
{
|
||||
{ "drawable-flip-horizontal", GIMP_STOCK_FLIP_HORIZONTAL,
|
||||
N_("Flip _Horizontally"), NULL, NULL,
|
||||
N_("Flip _Horizontally"), NULL,
|
||||
N_("Flip horizontally"),
|
||||
GIMP_ORIENTATION_HORIZONTAL, FALSE,
|
||||
GIMP_HELP_LAYER_FLIP_HORIZONTAL },
|
||||
|
||||
{ "drawable-flip-vertical", GIMP_STOCK_FLIP_VERTICAL,
|
||||
N_("Flip _Vertically"), NULL, NULL,
|
||||
N_("Flip _Vertically"), NULL,
|
||||
N_("Flip vertically"),
|
||||
GIMP_ORIENTATION_VERTICAL, FALSE,
|
||||
GIMP_HELP_LAYER_FLIP_VERTICAL }
|
||||
};
|
||||
|
@ -98,17 +107,20 @@ static GimpEnumActionEntry drawable_flip_actions[] =
|
|||
static GimpEnumActionEntry drawable_rotate_actions[] =
|
||||
{
|
||||
{ "drawable-rotate-90", GIMP_STOCK_ROTATE_90,
|
||||
N_("Rotate 90 degrees _CW"), NULL, NULL,
|
||||
N_("Rotate 90° _clockwise"), NULL,
|
||||
N_("Rotate 90 degrees to the right"),
|
||||
GIMP_ROTATE_90, FALSE,
|
||||
GIMP_HELP_LAYER_ROTATE_90 },
|
||||
|
||||
{ "drawable-rotate-180", GIMP_STOCK_ROTATE_180,
|
||||
N_("Rotate _180 degrees"), NULL, NULL,
|
||||
N_("Rotate _180°"), NULL,
|
||||
N_("Turn upside-down"),
|
||||
GIMP_ROTATE_180, FALSE,
|
||||
GIMP_HELP_LAYER_ROTATE_180 },
|
||||
|
||||
{ "drawable-rotate-270", GIMP_STOCK_ROTATE_270,
|
||||
N_("Rotate 90 degrees CC_W"), NULL, NULL,
|
||||
N_("Rotate 90° counter-clock_wise"), NULL,
|
||||
N_("Rotate 90 degrees to the left"),
|
||||
GIMP_ROTATE_270, FALSE,
|
||||
GIMP_HELP_LAYER_ROTATE_270 }
|
||||
};
|
||||
|
|
|
@ -69,62 +69,74 @@ static GimpActionEntry image_actions[] =
|
|||
{ "colors-components-menu", NULL, N_("_Components") },
|
||||
|
||||
{ "image-new", GTK_STOCK_NEW,
|
||||
N_("_New..."), "<control>N", NULL,
|
||||
N_("_New..."), "<control>N",
|
||||
N_("Create a new image"),
|
||||
G_CALLBACK (image_new_cmd_callback),
|
||||
GIMP_HELP_FILE_NEW },
|
||||
|
||||
{ "image-new-from-image", GTK_STOCK_NEW,
|
||||
N_("_New..."), NULL, NULL,
|
||||
N_("_New..."), NULL,
|
||||
N_("Create a new image"),
|
||||
G_CALLBACK (image_new_from_image_cmd_callback),
|
||||
GIMP_HELP_FILE_NEW },
|
||||
|
||||
{ "image-resize", GIMP_STOCK_RESIZE,
|
||||
N_("Can_vas Size..."), NULL, NULL,
|
||||
N_("Can_vas Size..."), NULL,
|
||||
N_("Adjust the image dimensions"),
|
||||
G_CALLBACK (image_resize_cmd_callback),
|
||||
GIMP_HELP_IMAGE_RESIZE },
|
||||
|
||||
{ "image-resize-to-layers", NULL,
|
||||
N_("F_it Canvas to Layers"), NULL, NULL,
|
||||
N_("F_it Canvas to Layers"), NULL,
|
||||
N_("Resize the image to enclose all layers"),
|
||||
G_CALLBACK (image_resize_to_layers_cmd_callback),
|
||||
GIMP_HELP_IMAGE_RESIZE_TO_LAYERS },
|
||||
|
||||
{ "image-print-size", GIMP_STOCK_PRINT_RESOLUTION,
|
||||
N_("_Print Size..."), NULL, NULL,
|
||||
N_("_Print Size..."), NULL,
|
||||
N_("Adjust the print resolution"),
|
||||
G_CALLBACK (image_print_size_cmd_callback),
|
||||
GIMP_HELP_IMAGE_PRINT_SIZE },
|
||||
|
||||
{ "image-scale", GIMP_STOCK_SCALE,
|
||||
N_("_Scale Image..."), NULL, NULL,
|
||||
N_("_Scale Image..."), NULL,
|
||||
N_("Change the number of pixels in the image"),
|
||||
G_CALLBACK (image_scale_cmd_callback),
|
||||
GIMP_HELP_IMAGE_SCALE },
|
||||
|
||||
{ "image-crop", GIMP_STOCK_TOOL_CROP,
|
||||
N_("_Crop Image"), NULL, NULL,
|
||||
N_("_Crop Image"), NULL,
|
||||
N_("Crop the image to the bounding box of the selection"),
|
||||
G_CALLBACK (image_crop_cmd_callback),
|
||||
GIMP_HELP_IMAGE_CROP },
|
||||
|
||||
{ "image-duplicate", GIMP_STOCK_DUPLICATE,
|
||||
N_("_Duplicate"), "<control>D", NULL,
|
||||
N_("_Duplicate"), "<control>D",
|
||||
N_("Create a duplicate of this image"),
|
||||
G_CALLBACK (image_duplicate_cmd_callback),
|
||||
GIMP_HELP_IMAGE_DUPLICATE },
|
||||
|
||||
{ "image-merge-layers", NULL,
|
||||
N_("Merge Visible _Layers..."), "<control>M", NULL,
|
||||
N_("Merge Visible _Layers..."), "<control>M",
|
||||
N_("Merge all visible layers into one layer"),
|
||||
G_CALLBACK (image_merge_layers_cmd_callback),
|
||||
GIMP_HELP_IMAGE_MERGE_LAYERS },
|
||||
|
||||
{ "image-flatten", NULL,
|
||||
N_("_Flatten Image"), NULL, NULL,
|
||||
N_("_Flatten Image"), NULL,
|
||||
N_("Merge all layers into one and remove transparency"),
|
||||
G_CALLBACK (image_flatten_image_cmd_callback),
|
||||
GIMP_HELP_IMAGE_FLATTEN },
|
||||
|
||||
{ "image-configure-grid", GIMP_STOCK_GRID,
|
||||
N_("Configure G_rid..."), NULL, NULL,
|
||||
N_("Configure G_rid..."), NULL,
|
||||
N_("Configure the grid for this image"),
|
||||
G_CALLBACK (image_configure_grid_cmd_callback),
|
||||
GIMP_HELP_IMAGE_GRID },
|
||||
|
||||
{ "image-properties", GTK_STOCK_INFO,
|
||||
N_("Image Properties"), NULL, NULL,
|
||||
N_("Image Properties"), NULL,
|
||||
N_("Display information about this image"),
|
||||
G_CALLBACK (image_properties_cmd_callback),
|
||||
GIMP_HELP_IMAGE_PROPERTIES }
|
||||
};
|
||||
|
@ -132,17 +144,20 @@ static GimpActionEntry image_actions[] =
|
|||
static GimpEnumActionEntry image_convert_actions[] =
|
||||
{
|
||||
{ "image-convert-rgb", GIMP_STOCK_CONVERT_RGB,
|
||||
N_("_RGB"), NULL, NULL,
|
||||
N_("_RGB"), NULL,
|
||||
N_("Convert the image to the RGB colorspace"),
|
||||
GIMP_RGB, FALSE,
|
||||
GIMP_HELP_IMAGE_CONVERT_RGB },
|
||||
|
||||
{ "image-convert-grayscale", GIMP_STOCK_CONVERT_GRAYSCALE,
|
||||
N_("_Grayscale"), NULL, NULL,
|
||||
N_("_Grayscale"), NULL,
|
||||
N_("Convert the image to grayscale"),
|
||||
GIMP_GRAY, FALSE,
|
||||
GIMP_HELP_IMAGE_CONVERT_GRAYSCALE },
|
||||
|
||||
{ "image-convert-indexed", GIMP_STOCK_CONVERT_INDEXED,
|
||||
N_("_Indexed..."), NULL, NULL,
|
||||
N_("_Indexed..."), NULL,
|
||||
N_("Convert the image to indexed colors"),
|
||||
GIMP_INDEXED, FALSE,
|
||||
GIMP_HELP_IMAGE_CONVERT_INDEXED }
|
||||
};
|
||||
|
@ -150,12 +165,14 @@ static GimpEnumActionEntry image_convert_actions[] =
|
|||
static GimpEnumActionEntry image_flip_actions[] =
|
||||
{
|
||||
{ "image-flip-horizontal", GIMP_STOCK_FLIP_HORIZONTAL,
|
||||
N_("Flip _Horizontally"), NULL, NULL,
|
||||
N_("Flip _Horizontally"), NULL,
|
||||
N_("Flip image horizontally"),
|
||||
GIMP_ORIENTATION_HORIZONTAL, FALSE,
|
||||
GIMP_HELP_IMAGE_FLIP_HORIZONTAL },
|
||||
|
||||
{ "image-flip-vertical", GIMP_STOCK_FLIP_VERTICAL,
|
||||
N_("Flip _Vertically"), NULL, NULL,
|
||||
N_("Flip _Vertically"), NULL,
|
||||
N_("Flip image vertically"),
|
||||
GIMP_ORIENTATION_VERTICAL, FALSE,
|
||||
GIMP_HELP_IMAGE_FLIP_VERTICAL }
|
||||
};
|
||||
|
@ -163,18 +180,20 @@ static GimpEnumActionEntry image_flip_actions[] =
|
|||
static GimpEnumActionEntry image_rotate_actions[] =
|
||||
{
|
||||
{ "image-rotate-90", GIMP_STOCK_ROTATE_90,
|
||||
/* please use the degree symbol in the translation */
|
||||
N_("Rotate 90 degrees _CW"), NULL, NULL,
|
||||
N_("Rotate 90° _clockwise"), NULL,
|
||||
N_("Rotate the image 90 degrees to the right"),
|
||||
GIMP_ROTATE_90, FALSE,
|
||||
GIMP_HELP_IMAGE_ROTATE_90 },
|
||||
|
||||
{ "image-rotate-180", GIMP_STOCK_ROTATE_180,
|
||||
N_("Rotate _180 degrees"), NULL, NULL,
|
||||
N_("Rotate _180°"), NULL,
|
||||
N_("Turn the image upside-down"),
|
||||
GIMP_ROTATE_180, FALSE,
|
||||
GIMP_HELP_IMAGE_ROTATE_180 },
|
||||
|
||||
{ "image-rotate-270", GIMP_STOCK_ROTATE_270,
|
||||
N_("Rotate 90 degrees CC_W"), NULL, NULL,
|
||||
N_("Rotate 90° counter-clock_wise"), NULL,
|
||||
N_("Rotate the image 90 degrees to the left"),
|
||||
GIMP_ROTATE_270, FALSE,
|
||||
GIMP_HELP_IMAGE_ROTATE_270 }
|
||||
};
|
||||
|
|
|
@ -58,82 +58,86 @@ static GimpActionEntry layers_actions[] =
|
|||
{ "layers-mode-menu", GIMP_STOCK_TOOL_PENCIL, N_("Layer _Mode") },
|
||||
|
||||
{ "layers-text-tool", GIMP_STOCK_TOOL_TEXT,
|
||||
N_("Te_xt Tool"), NULL, NULL,
|
||||
N_("Te_xt Tool"), NULL,
|
||||
N_("Activate the text tool on this text layer"),
|
||||
G_CALLBACK (layers_text_tool_cmd_callback),
|
||||
GIMP_HELP_TOOL_TEXT },
|
||||
|
||||
{ "layers-edit-attributes", GTK_STOCK_EDIT,
|
||||
N_("_Edit Layer Attributes..."), NULL,
|
||||
N_("Edit layer attributes"),
|
||||
N_("Edit attributes of this layer"),
|
||||
G_CALLBACK (layers_edit_attributes_cmd_callback),
|
||||
GIMP_HELP_LAYER_EDIT },
|
||||
|
||||
{ "layers-new", GTK_STOCK_NEW,
|
||||
N_("_New Layer..."), "<control><shift>N",
|
||||
N_("New layer..."),
|
||||
N_("Create a new layer"),
|
||||
G_CALLBACK (layers_new_cmd_callback),
|
||||
GIMP_HELP_LAYER_NEW },
|
||||
|
||||
{ "layers-new-last-values", GTK_STOCK_NEW,
|
||||
N_("_New Layer"), "",
|
||||
N_("New layer with last values"),
|
||||
N_("Create a new layer with last used values"),
|
||||
G_CALLBACK (layers_new_last_vals_cmd_callback),
|
||||
GIMP_HELP_LAYER_NEW },
|
||||
|
||||
{ "layers-duplicate", GIMP_STOCK_DUPLICATE,
|
||||
N_("D_uplicate Layer"), "<control><shift>D",
|
||||
N_("Duplicate layer"),
|
||||
N_("Create a duplicate of this layer and add it to the layer stack"),
|
||||
G_CALLBACK (layers_duplicate_cmd_callback),
|
||||
GIMP_HELP_LAYER_DUPLICATE },
|
||||
|
||||
{ "layers-delete", GTK_STOCK_DELETE,
|
||||
N_("_Delete Layer"), "",
|
||||
N_("Delete layer"),
|
||||
N_("Delete this layer"),
|
||||
G_CALLBACK (layers_delete_cmd_callback),
|
||||
GIMP_HELP_LAYER_DELETE },
|
||||
|
||||
{ "layers-raise", GTK_STOCK_GO_UP,
|
||||
N_("_Raise Layer"), "",
|
||||
N_("Raise layer"),
|
||||
N_("Raise this layer one step in the layer stack"),
|
||||
G_CALLBACK (layers_raise_cmd_callback),
|
||||
GIMP_HELP_LAYER_RAISE },
|
||||
|
||||
{ "layers-raise-to-top", GTK_STOCK_GOTO_TOP,
|
||||
N_("Layer to _Top"), "",
|
||||
N_("Raise layer to top"),
|
||||
N_("Move this layer to the top of the layer stack"),
|
||||
G_CALLBACK (layers_raise_to_top_cmd_callback),
|
||||
GIMP_HELP_LAYER_RAISE_TO_TOP },
|
||||
|
||||
{ "layers-lower", GTK_STOCK_GO_DOWN,
|
||||
N_("_Lower Layer"), "",
|
||||
N_("Lower layer"),
|
||||
N_("Lower this layer one step in the layer stack"),
|
||||
G_CALLBACK (layers_lower_cmd_callback),
|
||||
GIMP_HELP_LAYER_LOWER },
|
||||
|
||||
{ "layers-lower-to-bottom", GTK_STOCK_GOTO_BOTTOM,
|
||||
N_("Layer to _Bottom"), "",
|
||||
N_("Lower layer to bottom"),
|
||||
N_("Move this layer to the bottom of the layer stack"),
|
||||
G_CALLBACK (layers_lower_to_bottom_cmd_callback),
|
||||
GIMP_HELP_LAYER_LOWER_TO_BOTTOM },
|
||||
|
||||
{ "layers-anchor", GIMP_STOCK_ANCHOR,
|
||||
N_("_Anchor Layer"), "<control>H",
|
||||
N_("Anchor floating layer"),
|
||||
N_("Anchor the floating layer"),
|
||||
G_CALLBACK (layers_anchor_cmd_callback),
|
||||
GIMP_HELP_LAYER_ANCHOR },
|
||||
|
||||
{ "layers-merge-down", GIMP_STOCK_MERGE_DOWN,
|
||||
N_("Merge Do_wn"), NULL, NULL,
|
||||
N_("Merge Do_wn"), NULL,
|
||||
N_("Merge this layer with the one below it"),
|
||||
G_CALLBACK (layers_merge_down_cmd_callback),
|
||||
GIMP_HELP_LAYER_MERGE_DOWN },
|
||||
|
||||
{ "layers-merge-layers", NULL,
|
||||
N_("Merge _Visible Layers..."), NULL, NULL,
|
||||
N_("Merge _Visible Layers..."), NULL,
|
||||
N_("Merge all visible layers into one layer"),
|
||||
G_CALLBACK (image_merge_layers_cmd_callback),
|
||||
GIMP_HELP_IMAGE_MERGE_LAYERS },
|
||||
|
||||
{ "layers-flatten-image", NULL,
|
||||
N_("_Flatten Image"), NULL, NULL,
|
||||
N_("_Flatten Image"), NULL,
|
||||
N_("Merge all layers into one and remove transparency"),
|
||||
G_CALLBACK (image_flatten_image_cmd_callback),
|
||||
GIMP_HELP_IMAGE_FLATTEN },
|
||||
|
||||
|
|
Loading…
Reference in a new issue