5fa1e9ea40
app: Tell the user how to commit the cage transform
2010-11-10 19:11:49 +02:00
ef44bfedad
app: check for GIMP_BUTTON_RELEASE_CANCEL, not GDK_BUTTON3_MASK
2010-11-10 14:39:30 +01:00
f6a284dc4c
app: use a canvas progress in the cage tool
...
This is a proof-of-concept hack that needs review and comments before
being used generally.
2010-11-09 19:35:54 +01:00
cf0402f069
app: consistent handle sizes for tool drawing
...
Replace a myriad of defines in different tools by three consistent
sizes defined in gimpdrawtool.h.
2010-11-08 22:37:00 +01:00
a73348c561
app: fix handle hovering detection, it was using the wrong radius
2010-11-06 00:06:13 +01:00
31aa09a11f
app: add proper cursors that show what will happen
2010-11-06 00:06:13 +01:00
9d604a545f
app: move all the cage modifying logic to button_release()
...
so any interaction can be canceled by holding BUTTON3 while
releasing. Add additional state "hovering_handle" so we can do proper
drawing that matches what will happen on mouse interaction.
2010-11-05 23:49:48 +01:00
f4c98fbad6
app: don't use a GimpVector2 for the cursor position
...
because less code is more readable.
2010-11-05 22:30:10 +01:00
9867cf62c3
app: -1000 is a valid cursor position, use G_MINDOUBLE as "no cursor"
2010-11-05 22:25:14 +01:00
baf964a734
app: rename member handle_moved to moving_handle
2010-11-05 22:21:56 +01:00
038a6dd671
app: no need to abort the image map when a handle changes
2010-11-05 21:05:54 +01:00
77bb31ba51
app: put the drawn lines into a stroke group
2010-11-05 20:00:20 +01:00
86a220bbdf
app: remove the preview node and other unneeded stuff
...
and simplify the code even further.
2010-11-05 19:47:57 +01:00
6f31f3d2f6
app: pass the drawable to gimp_cage_tool_create_image_map()
2010-11-05 19:42:42 +01:00
2028d547a2
app: use the GimpImageMap as it's meant to be used
...
Have an incremental live preview of the rendering and actually use the
rendering instead of throwing it away and doing it all over again on
commit. gimp_cage_tool_process() is therefore currently unused but I
left it there for Alexia to fix the tool for layers with masks.
2010-11-05 19:10:03 +01:00
e0dad1bf35
app: canonicalize cage op names, and some indentation fixes
2010-11-05 12:45:07 +01:00
eb3db78b06
app: rename config->cage_vertice_number to config->n_cage_vertices
...
and some minor cleanup.
2010-11-05 10:04:45 +01:00
09aae9a919
app: more minor cage tool cleanup
2010-11-05 09:49:03 +01:00
c98688873d
app: more minor cage cleanup
2010-11-04 22:47:03 +01:00
a6d85e8d57
app: more formatting cleanup
2010-11-04 22:38:41 +01:00
33a8c15403
app: large scale formatting cleanup in the new cage code
...
- move enum to the new gimp-gegl-enums.[ch]
- clean up includes
- spacing
- indentation
- coding style
2010-11-04 22:16:27 +01:00
5ce581f797
app: Use Shift+G for Cage Tool
...
We can't use Shift+R which is taken by the rotate tool, so use Shift+G
instead. G is for "Green coordinate".
2010-11-04 21:44:31 +01:00
9b96120c31
app: Make cage tool behave nice with offset layers
2010-11-04 00:26:43 +02:00
e529428a68
app: Make cage tool apply to layer mask as well if one is present
2010-11-04 00:26:04 +02:00
f09f6dae06
app: Make cage tool work with gegl master
2010-11-02 20:56:53 +02:00
d7492cb528
app: remove forward transform preview from cage tool, reverse is actually faster
2010-10-07 00:41:40 +03:00
1a5bacf649
Fix cage tool to work with the draw tool in master
2010-09-26 23:57:45 +03:00
e133035440
Fix point selection detection
2010-09-05 13:33:26 +03:00
d261248792
Clean up debug code
2010-09-05 12:48:23 +03:00
55b0c9f08e
Some generic method sorting and cleanup in the tool
2010-09-02 22:28:06 +03:00
6ecb219c4f
Fix a preview update related segfault
2010-09-02 20:11:34 +03:00
6dc2042fe2
app: cage tool adjustments and fixes
...
Just show the complete preview and take the fill color from under first point.
2010-08-30 23:36:20 +03:00
f44dcf26b3
fill the original cage position with a plain color + UI
2010-08-15 14:20:47 +02:00
28cfa9d3df
tools: Fix some warnings I introduced into cage tool earlyer
2010-08-15 02:58:31 +03:00
f037300658
tools: Many cage tool fixes.
...
Adds idle function to update the projection while imagemap is rendering.
2010-08-15 02:32:31 +03:00
6c36d7ac13
gimpcagetool: add preview
2010-08-13 18:25:48 +02:00
c29396a0c2
GimpCageTool: add code in #if #else #endif to test the forward transform
2010-08-12 14:38:21 +02:00
3d79167074
change name of gimp cage gegl op to gimp internal op.
2010-08-12 13:47:31 +02:00
fe9f1f4a01
GimpCageTool: better memory gestion in different handle
...
+ code to render/debug coefficient, in #if #else #endif
+ cleaning / coding style
2010-08-11 20:27:32 +02:00
67c1981a40
GimpCageTool: don't allow to add handle after closing the cage
2010-08-10 00:58:24 +02:00
34b40a6c7e
solve the problem result cropped to the bounding box of the cage
2010-08-09 23:33:11 +02:00
19b81bb097
gimpcagetool: fix buffer leak
2010-08-08 18:21:26 +02:00
459414c9dc
gimpcagetool: use cage_transform and gegl_render_mapping to do the transform
...
gimpoperationcage: cleaning
gimpcageconfig: cleaning
2010-08-08 13:27:20 +02:00
9677eeeffc
gimpcagetool: add a warning if the coef buffer isn't initialised
2010-08-08 13:27:11 +02:00
8c33eb83f7
gimpcagetool, gimpoperationcage: now the forward transform work as
...
expected
2010-08-08 13:27:02 +02:00
3c5c65ea3c
gimpcagetool: use GimpCageConfig, and apply gegl op. Doesn't work yet.
2010-08-08 13:26:52 +02:00
066bbb80f4
gimpcagetool: flush the image correctly after applying a cage deform
2010-08-08 13:24:39 +02:00
e141953d35
gimpcagetool: the cage can be closed only if the number of point is 3 or more
2010-08-08 13:24:29 +02:00
98ff627955
gimpcagetool: fix a missing include and a function declaration
2010-08-08 13:24:16 +02:00
fcd156014a
gimpcagetool: beginning of the link tool/gegl op
2010-08-08 13:24:06 +02:00