app, cursors: add a cursor for the warp tool

... and use it instead of the perspective tool cursor.

Disable the cursor modifiers for now, since they're not really
meaningful.
This commit is contained in:
Ell 2017-05-30 19:18:24 -04:00
parent feeffb69c2
commit 7136f09f0a
6 changed files with 7 additions and 2 deletions

View File

@ -195,7 +195,7 @@ gimp_warp_tool_init (GimpWarpTool *self)
GIMP_DIRTY_ACTIVE_DRAWABLE);
gimp_tool_control_set_wants_click (tool->control, TRUE);
gimp_tool_control_set_tool_cursor (tool->control,
GIMP_TOOL_CURSOR_PERSPECTIVE);
GIMP_TOOL_CURSOR_WARP);
gimp_tool_control_set_action_size (tool->control,
"tools/tools-warp-effect-size-set");
gimp_tool_control_set_action_hardness (tool->control,
@ -435,7 +435,7 @@ gimp_warp_tool_cursor_update (GimpTool *tool,
{
GimpWarpTool *wt = GIMP_WARP_TOOL (tool);
GimpWarpOptions *options = GIMP_WARP_TOOL_GET_OPTIONS (tool);
GimpCursorModifier modifier = GIMP_CURSOR_MODIFIER_PLUS;
GimpCursorModifier modifier = GIMP_CURSOR_MODIFIER_NONE;
if (! gimp_warp_tool_can_stroke (wt, display, FALSE))
{
@ -443,6 +443,7 @@ gimp_warp_tool_cursor_update (GimpTool *tool,
}
else if (display == tool->display)
{
#if 0
/* FIXME have better cursors */
switch (options->behavior)
@ -457,6 +458,7 @@ gimp_warp_tool_cursor_update (GimpTool *tool,
modifier = GIMP_CURSOR_MODIFIER_MOVE;
break;
}
#endif
}
gimp_tool_control_set_cursor_modifier (tool->control, modifier);

View File

@ -192,6 +192,7 @@ static GimpCursor gimp_tool_cursors[] =
{ "tool-dodge.png" },
{ "tool-burn.png" },
{ "tool-measure.png" },
{ "tool-warp.png" },
{ "tool-hand.png" }
};

View File

@ -262,6 +262,7 @@ typedef enum /*< skip >*/
GIMP_TOOL_CURSOR_DODGE,
GIMP_TOOL_CURSOR_BURN,
GIMP_TOOL_CURSOR_MEASURE,
GIMP_TOOL_CURSOR_WARP,
GIMP_TOOL_CURSOR_HAND,
GIMP_TOOL_CURSOR_LAST
} GimpToolCursorType;

View File

@ -75,6 +75,7 @@ CURSOR_IMAGES = \
tool-shear.png \
tool-smudge.png \
tool-text.png \
tool-warp.png \
tool-zoom.png
COLOR_PICKER_IMAGES = \

Binary file not shown.

BIN
cursors/tool-warp.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 565 B