mirror of
https://gitlab.gnome.org/GNOME/gimp.git
synced 2025-07-03 17:33:25 +00:00
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:
parent
feeffb69c2
commit
7136f09f0a
6 changed files with 7 additions and 2 deletions
|
@ -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);
|
||||
|
|
|
@ -192,6 +192,7 @@ static GimpCursor gimp_tool_cursors[] =
|
|||
{ "tool-dodge.png" },
|
||||
{ "tool-burn.png" },
|
||||
{ "tool-measure.png" },
|
||||
{ "tool-warp.png" },
|
||||
{ "tool-hand.png" }
|
||||
};
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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
BIN
cursors/tool-warp.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 565 B |
Loading…
Add table
Add a link
Reference in a new issue