gimp/app
Michael Natterer 82c2616f0f Applied modified patch from Alexia Death which adds velocity support to
2008-05-10  Michael Natterer  <mitch@gimp.org>

	Applied modified patch from Alexia Death which adds velocity
	support to paint tools in the spirit of the pressure support we
	already have. Fixes bug #529431.

	* app/display/gimpdisplayshell-coords.c
	(gimp_display_shell_eval_event): tweak velocity calculation to
	work in screen coordinates.

	* app/paint/gimppaintoptions.[ch]: add velocity options in the
	same way as there are pressure options. Add utility functions
	which return dynamic opatity and dynamic rate according to the the
	option's settings and some GimpCoords' pressure and velocity.

	* app/tools/gimppaintoptions-gui.c: add GUI for the velocity
	options.

	* app/paint/gimpbrushcore.h: remove PRESSURE_SCALE define, it's
	now in gimppaintoptions.h.

	* app/paint/gimpbrushcore.c (gimp_brush_core_interpolate):
	inerpolate velocity too.

	(gimp_brush_core_calc_brush_scale): take velocity into account.

	(gimp_brush_core_get_brush_mask): always pressurize the mask in
	the GIMP_BRUSH_PRESSURE because there always is velocity (unlike
	pressure which is only there on tablets).

	* app/paint/gimpairbrush.c
	* app/paint/gimpclone.c
	* app/paint/gimpconvolve.c
	* app/paint/gimpdodgeburn.c
	* app/paint/gimperaser.c
	* app/paint/gimpheal.c
	* app/paint/gimppaintbrush.c
	* app/paint/gimpsmudge.c: get opacity and rate from the new paint
	options utility functions which take both pressure and velocity
	into account.

	* app/paint/gimppaintbrush.c: take velocity into account when
	calculating the gradient color offset.

	* app/paint/gimpairbrush.c: do some additional fiddling with
	velocity in the asynchronous airbrush timeout.

	* app/paint/gimpairbrushoptions.c: override the velocity-size
	property and have it default to FALSE.


svn path=/trunk/; revision=25604
2008-05-10 10:03:21 +00:00
..
actions the second parameter of gimp_drawable_levels_stretch() is now a 2008-05-05 19:13:55 +00:00
base applied patch from Michael Deal that fixes use of the overlap option (bug 2008-04-28 14:46:20 +00:00
composite app/composite/gimp-composite-3dnow-test.c 2008-04-07 21:17:25 +00:00
config initialize the units vtable in libgimpbase instead of trying to override 2008-04-16 10:35:52 +00:00
core expose the internal most flexible rendering function. Make use of the 2008-05-09 11:56:58 +00:00
dialogs added infrastructure to access and set some state information of the 2008-05-08 11:30:54 +00:00
display Applied modified patch from Alexia Death which adds velocity support to 2008-05-10 10:03:21 +00:00
file app/core/gimp-gui.[ch] added gimp_get_empty_display() to the vtable. 2008-03-25 10:50:42 +00:00
gegl app/app.c reverted change from 2008-01-31. Use the GEGL option group again 2008-04-25 11:44:00 +00:00
gui app/display/gimpdisplayshell.c (gimp_display_shell_show_tooltip) 2008-04-14 07:39:23 +00:00
menus don't set a help-id on items in the Open Recent menu. 2008-04-02 14:11:32 +00:00
paint Applied modified patch from Alexia Death which adds velocity support to 2008-05-10 10:03:21 +00:00
paint-funcs minor formatting cleanup. 2008-03-19 10:51:12 +00:00
pdb 2008-04-28 Joao S. O. Bueno 2008-04-28 21:02:29 +00:00
plug-in commented out debug message. 2008-05-07 08:05:00 +00:00
text Bill Skaggs <weskaggs@primate.ucdavis.edu> 2008-04-02 21:32:32 +00:00
tools Applied modified patch from Alexia Death which adds velocity support to 2008-05-10 10:03:21 +00:00
vectors Fixes for some Sparse reported issues in app/ 2008-03-28 23:18:19 +00:00
widgets move the focus to the canvas on button-press events. 2008-05-08 12:34:27 +00:00
xcf don't leak the grid. 2008-03-30 17:03:18 +00:00
Makefile.am removed Libart usage, replaced with Cairo. Dashed strokes do not yet work 2008-05-08 23:35:53 +00:00
about.h updated copyright. 2008-01-24 17:07:51 +00:00
app.c app/app.c reverted change from 2008-01-31. Use the GEGL option group again 2008-04-25 11:44:00 +00:00
app.h Allow other applications to open images in GIMP as if they were new images 2007-04-17 15:54:01 +00:00
batch.c app/app.c app/batch.c app/core/gimp.c use G_STRLOC instead of hardcoding 2008-02-19 13:38:24 +00:00
batch.h In all files, changed the standard copyright notice to say "GIMP - The GNU 2006-12-09 21:33:38 +00:00
errors.c added errors_exit() and unset the Gimp reference. Errors may occur after 2007-06-13 09:27:32 +00:00
errors.h added errors_exit() and unset the Gimp reference. Errors may occur after 2007-06-13 09:27:32 +00:00
fileicon.ico fileicon.ico new icons for the Windows build created by Jernej 2006-05-02 06:37:08 +00:00
gimp-intl.h In all files, changed the standard copyright notice to say "GIMP - The GNU 2006-12-09 21:33:38 +00:00
gimp-log.c introduced log domain "menus". 2008-03-21 18:27:56 +00:00
gimp-log.h introduced log domain "menus". 2008-03-21 18:27:56 +00:00
gimp.rc [new file] app/dialogs/Makefile.am : added to EXTRA_DIST 2004-11-21 14:22:45 +00:00
gimpcore.def **/makefile.msc app/gimpcore.def : updated so it compiles and links 2008-01-04 18:42:07 +00:00
main.c New files. Rename gimp_show_version() to gimp_version_show() and move 2008-02-26 14:02:44 +00:00
makefile.msc **/makefile.msc app/gimpcore.def : updated so it compiles and links 2008-01-04 18:42:07 +00:00
sanity.c add check for the GEGL version. 2008-04-22 14:15:30 +00:00
sanity.h In all files, changed the standard copyright notice to say "GIMP - The GNU 2006-12-09 21:33:38 +00:00
units.c In all files, changed the standard copyright notice to say "GIMP - The GNU 2006-12-09 21:33:38 +00:00
units.h In all files, changed the standard copyright notice to say "GIMP - The GNU 2006-12-09 21:33:38 +00:00
version.c tweaked verbose version output. 2008-04-07 19:33:24 +00:00
version.h New files. Rename gimp_show_version() to gimp_version_show() and move 2008-02-26 14:02:44 +00:00
wilber.ico fileicon.ico new icons for the Windows build created by Jernej 2006-05-02 06:37:08 +00:00