set a different help message in polygonal mode. Fixes bug #172051.

2005-03-30  Sven Neumann  <sven@gimp.org>

	* app/tools/gimpvectortool.c (gimp_vector_tool_status_update):
	set a different help message in polygonal mode. Fixes bug #172051.
This commit is contained in:
Sven Neumann 2005-03-30 14:14:31 +00:00 committed by Sven Neumann
parent f95993b9af
commit fd6d42bb17
2 changed files with 19 additions and 4 deletions

View File

@ -1,3 +1,8 @@
2005-03-30 Sven Neumann <sven@gimp.org>
* app/tools/gimpvectortool.c (gimp_vector_tool_status_update):
set a different help message in polygonal mode. Fixes bug #172051.
2005-03-30 Sven Neumann <sven@gimp.org>
* app/widgets/gimpclipboard.c: when GIMP exits and a clipboard

View File

@ -308,7 +308,7 @@ gimp_vector_tool_button_press (GimpTool *tool,
vector_tool->undo_motion = FALSE;
/* Save the current modifier state */
/* save the current modifier state */
vector_tool->saved_state = state;
@ -400,7 +400,7 @@ gimp_vector_tool_button_press (GimpTool *tool,
}
/* Insertion of an anchor in a curve segment */
/* insertion of an anchor in a curve segment */
if (vector_tool->function == VECTORS_INSERT_ANCHOR)
{
@ -1217,6 +1217,9 @@ gimp_vector_tool_status_update (GimpTool *tool,
new_status = _("Click-Drag to move the handle around. (try SHIFT)");
break;
case VECTORS_MOVE_CURVE:
if (GIMP_VECTOR_OPTIONS (tool->tool_info->tool_options)->polygonal)
new_status = _("Click-Drag to move the anchors around.");
else
new_status = _("Click-Drag to change the shape of the curve. "
"(SHIFT: symmetrical)");
break;
@ -1299,24 +1302,29 @@ gimp_vector_tool_cursor_update (GimpTool *tool,
cursor = GDK_HAND2;
tool_cursor = GIMP_TOOL_CURSOR_HAND;
break;
case VECTORS_CREATE_VECTOR:
case VECTORS_CREATE_STROKE:
cmodifier = GIMP_CURSOR_MODIFIER_CONTROL;
break;
case VECTORS_ADD_ANCHOR:
case VECTORS_INSERT_ANCHOR:
cmodifier = GIMP_CURSOR_MODIFIER_PLUS;
break;
case VECTORS_DELETE_ANCHOR:
case VECTORS_DELETE_SEGMENT:
cmodifier = GIMP_CURSOR_MODIFIER_MINUS;
break;
case VECTORS_MOVE_HANDLE:
case VECTORS_CONVERT_EDGE:
cursor = GDK_HAND2;
tool_cursor = GIMP_TOOL_CURSOR_HAND;
cmodifier = GIMP_CURSOR_MODIFIER_CONTROL;
break;
case VECTORS_MOVE_ANCHOR:
case VECTORS_MOVE_CURVE:
case VECTORS_MOVE_STROKE:
@ -1324,9 +1332,11 @@ gimp_vector_tool_cursor_update (GimpTool *tool,
case VECTORS_MOVE_ANCHORSET:
cmodifier = GIMP_CURSOR_MODIFIER_MOVE;
break;
case VECTORS_CONNECT_STROKES:
cmodifier = GIMP_CURSOR_MODIFIER_INTERSECT;
break;
default:
cursor = GIMP_CURSOR_BAD;
break;