gimp/app/tools
Michael Natterer 8224476afb added utility function gimp_paint_options_get_fade() which calculates an
2003-07-16  Michael Natterer  <mitch@gimp.org>

	* app/paint/gimppaintoptions.[ch]: added utility function
	gimp_paint_options_get_fade() which calculates an opacity
	value from paint_core->pixel_dist.

	* app/paint/gimppaintbrush.c: removed the same code here and use
	gimp_paint_options_get_fade().

	* app/paint/gimpclone.c
	* app/paint/gimpconvolve.c
	* app/paint/gimpdodgeburn.c
	* app/paint/gimperaser.c
	* app/paint/gimpsmudge.c: enabled fade for all paint tools, along
	with a general opacity cleanup:

	Use the opacity from gimp_context_get_opacity() *only* for the
	image_opacity. In particular, *never* use it as initial value for
	calculating the brush_opacity. Instead, start calculating the
	brush_opacity from gimp_paint_options_get_fade() and return early
	if it returns 0.0, if not, multiply tool specific opacity sources
	like the current pressure.

	(This changes the effect of the paint tools for particular opacity
	values, but makes the impact of opacity on the final rendering
	linear and more intuitive)

	* app/tools/gimppaintoptions-gui.c: enabled the "Fade" frame for
	the tools above.

	* app/paint/gimppaintcore.c: purely cosmetic cleanup.
2003-07-16 11:25:37 +00:00
..
.cvsignore configure.in app/Makefile.am moved all tool sources to app/tools 2001-01-22 01:46:28 +00:00
Makefile.am Getting rid of some legacy filenames: 2003-06-29 20:40:45 +00:00
airbrush_blob.c Makefile.am configure.in added stuff for the new library below. 2001-01-23 23:56:18 +00:00
airbrush_blob.h Update of the Xinput airbrush, fixed some bugs. It's a bit closer to a 1999-11-14 20:49:14 +00:00
gimpairbrushtool.c took the fade options out of GimpGradientOptions and added them to the new 2003-07-15 15:38:24 +00:00
gimpairbrushtool.h took the fade options out of GimpGradientOptions and added them to the new 2003-07-15 15:38:24 +00:00
gimpblendoptions.c Getting rid of some legacy filenames: 2003-06-29 20:40:45 +00:00
gimpblendoptions.h simplified everything a lot by merging the public GimpContextPropType enum 2003-02-09 17:32:52 +00:00
gimpblendtool.c app/gui/image-menu.c app/gui/plug-in-menus.c app/gui/toolbox-menu.c Added 2003-07-01 16:22:03 +00:00
gimpblendtool.h app/tools/gimpairbrushtool.[ch] app/tools/gimpbezierselecttool.[ch] 2002-05-03 11:31:08 +00:00
gimpbrightnesscontrasttool.c app/gui/image-menu.c app/gui/plug-in-menus.c app/gui/toolbox-menu.c Added 2003-07-01 16:22:03 +00:00
gimpbrightnesscontrasttool.h Color correction tool chopping: 2002-08-26 11:35:56 +00:00
gimpbrushtool.c removed "gboolean hard" member/property... 2003-07-14 14:50:41 +00:00
gimpbrushtool.h removed gimp_display_shell_transform_boundary() again... 2003-07-10 16:01:45 +00:00
gimpbucketfilloptions.c Getting rid of some legacy filenames: 2003-06-29 20:40:45 +00:00
gimpbucketfilloptions.h simplified everything a lot by merging the public GimpContextPropType enum 2003-02-09 17:32:52 +00:00
gimpbucketfilltool.c app/gui/image-menu.c app/gui/plug-in-menus.c app/gui/toolbox-menu.c Added 2003-07-01 16:22:03 +00:00
gimpbucketfilltool.h Removed support for pluggable tools: 2003-04-15 14:20:19 +00:00
gimpbycolorselecttool.c app/gui/image-menu.c app/gui/plug-in-menus.c app/gui/toolbox-menu.c Added 2003-07-01 16:22:03 +00:00
gimpbycolorselecttool.h bumped version number to 1.3.9 2002-08-22 12:49:01 +00:00
gimpclonetool.c app/gui/image-menu.c app/gui/plug-in-menus.c app/gui/toolbox-menu.c Added 2003-07-01 16:22:03 +00:00
gimpclonetool.h app/tools/gimpairbrushtool.[ch] app/tools/gimpbezierselecttool.[ch] 2002-05-03 11:31:08 +00:00
gimpcolorbalancetool.c app/gui/image-menu.c app/gui/plug-in-menus.c app/gui/toolbox-menu.c Added 2003-07-01 16:22:03 +00:00
gimpcolorbalancetool.h More color correction stuff cleanup: 2002-09-04 15:25:15 +00:00
gimpcolorizetool.c app/gui/image-menu.c app/gui/plug-in-menus.c app/gui/toolbox-menu.c Added 2003-07-01 16:22:03 +00:00
gimpcolorizetool.h fixed to work like gimp_hls_to_rgb_int() (does the right thing now for the 2003-05-19 14:21:03 +00:00
gimpcoloroptions.c Getting rid of some legacy filenames: 2003-06-29 20:40:45 +00:00
gimpcoloroptions.h Getting rid of some legacy filenames: 2003-06-29 20:40:45 +00:00
gimpcolorpickeroptions.c use OPAQUE_OPACITY instead of 255. 2003-06-05 18:47:23 +00:00
gimpcolorpickeroptions.h app/tools/Makefile.am app/tools/gimpcoloroptions.[ch] new files that 2003-06-04 15:48:17 +00:00
gimpcolorpickertool.c show the alpha value in percent as well (as suggested in bug #116384). 2003-07-08 00:20:31 +00:00
gimpcolorpickertool.h app/tools/Makefile.am app/tools/gimpcoloroptions.[ch] new files that 2003-06-04 15:48:17 +00:00
gimpcolortool.c removed gimp_display_shell_transform_boundary() again... 2003-07-10 16:01:45 +00:00
gimpcolortool.h changed the default radius. 2003-06-05 15:43:49 +00:00
gimpconvolvetool.c app/gui/image-menu.c app/gui/plug-in-menus.c app/gui/toolbox-menu.c Added 2003-07-01 16:22:03 +00:00
gimpconvolvetool.h app/tools/gimpairbrushtool.[ch] app/tools/gimpbezierselecttool.[ch] 2002-05-03 11:31:08 +00:00
gimpcropoptions.c Getting rid of some legacy filenames: 2003-06-29 20:40:45 +00:00
gimpcropoptions.h Getting rid of some legacy filenames: 2003-06-29 20:40:45 +00:00
gimpcroptool.c app/gui/image-menu.c app/gui/plug-in-menus.c app/gui/toolbox-menu.c Added 2003-07-01 16:22:03 +00:00
gimpcroptool.h GimpViewableDialogs everywhere, cleanup: 2002-09-01 08:44:57 +00:00
gimpcurvestool.c app/core/gimpbrush.c app/paint/gimppaintcore.c app/tools/gimpcurvestool.c 2003-07-10 12:13:21 +00:00
gimpcurvestool.h themes/Default/images/Makefile.am 2003-03-14 23:24:37 +00:00
gimpdodgeburntool.c app/gui/image-menu.c app/gui/plug-in-menus.c app/gui/toolbox-menu.c Added 2003-07-01 16:22:03 +00:00
gimpdodgeburntool.h app/tools/gimpairbrushtool.[ch] app/tools/gimpbezierselecttool.[ch] 2002-05-03 11:31:08 +00:00
gimpdrawtool.c removed "gboolean hard" member/property... 2003-07-14 14:50:41 +00:00
gimpdrawtool.h removed "gboolean hard" member/property... 2003-07-14 14:50:41 +00:00
gimpeditselectiontool.c removed gimp_display_shell_transform_boundary() again... 2003-07-10 16:01:45 +00:00
gimpeditselectiontool.h added "gboolean cut_image" parameter so we can float selections without 2003-05-16 12:10:47 +00:00
gimpellipseselecttool.c app/gui/image-menu.c app/gui/plug-in-menus.c app/gui/toolbox-menu.c Added 2003-07-01 16:22:03 +00:00
gimpellipseselecttool.h app/tools/gimpairbrushtool.[ch] app/tools/gimpbezierselecttool.[ch] 2002-05-03 11:31:08 +00:00
gimperasertool.c took the fade options out of GimpGradientOptions and added them to the new 2003-07-15 15:38:24 +00:00
gimperasertool.h app/tools/gimpairbrushtool.[ch] app/tools/gimpbezierselecttool.[ch] 2002-05-03 11:31:08 +00:00
gimpflipoptions.c Getting rid of some legacy filenames: 2003-06-29 20:40:45 +00:00
gimpflipoptions.h Getting rid of some legacy filenames: 2003-06-29 20:40:45 +00:00
gimpfliptool.c app/gui/image-menu.c app/gui/plug-in-menus.c app/gui/toolbox-menu.c Added 2003-07-01 16:22:03 +00:00
gimpfliptool.h app/tools/gimpairbrushtool.[ch] app/tools/gimpbezierselecttool.[ch] 2002-05-03 11:31:08 +00:00
gimpfreeselecttool.c app/gui/image-menu.c app/gui/plug-in-menus.c app/gui/toolbox-menu.c Added 2003-07-01 16:22:03 +00:00
gimpfreeselecttool.h app/tools/gimpfreeselecttool.[ch] added the possibility to <alt>+drag the 2003-05-27 11:52:03 +00:00
gimpfuzzyselecttool.c added "guchar threshold" parameters all over the place instead of always 2003-07-10 11:59:38 +00:00
gimpfuzzyselecttool.h removed gdisp->scale, gdisp->dot_for_dot, the scaling marcos and the 2002-06-26 22:16:59 +00:00
gimphistogramtool.c app/gui/image-menu.c app/gui/plug-in-menus.c app/gui/toolbox-menu.c Added 2003-07-01 16:22:03 +00:00
gimphistogramtool.h Histogram cleanup: 2002-09-07 17:27:32 +00:00
gimphuesaturationtool.c app/gui/image-menu.c app/gui/plug-in-menus.c app/gui/toolbox-menu.c Added 2003-07-01 16:22:03 +00:00
gimphuesaturationtool.h Color correction tool chopping: 2002-08-26 11:35:56 +00:00
gimpimagemaptool.c use OPAQUE_OPACITY instead of 255. 2003-06-05 18:47:23 +00:00
gimpimagemaptool.h use OPAQUE_OPACITY instead of 255. 2003-06-05 18:47:23 +00:00
gimpinkoptions-gui.c Getting rid of some legacy filenames: 2003-06-29 20:40:45 +00:00
gimpinkoptions-gui.h simplified everything a lot by merging the public GimpContextPropType enum 2003-02-09 17:32:52 +00:00
gimpinkoptions.c Getting rid of some legacy filenames: 2003-06-29 20:40:45 +00:00
gimpinkoptions.h simplified everything a lot by merging the public GimpContextPropType enum 2003-02-09 17:32:52 +00:00
gimpinktool-blob.c added app/display/ and app/plug-in/. Empty for now except for the types 2001-08-17 14:27:31 +00:00
gimpinktool-blob.h Made GimpToolOptions a GimpContext subclass and objectified all tool 2003-02-05 14:39:40 +00:00
gimpinktool.c app/gui/edit-commands.c added "Fill with Pattern" menu entry as suggested 2003-07-02 18:01:19 +00:00
gimpinktool.h Removed support for pluggable tools: 2003-04-15 14:20:19 +00:00
gimpiscissorstool.c app/gui/image-menu.c app/gui/plug-in-menus.c app/gui/toolbox-menu.c Added 2003-07-01 16:22:03 +00:00
gimpiscissorstool.h app/gui/edit-commands.c added "Fill with Pattern" menu entry as suggested 2003-07-02 18:01:19 +00:00
gimplevelstool.c app/gui/image-menu.c app/gui/plug-in-menus.c app/gui/toolbox-menu.c Added 2003-07-01 16:22:03 +00:00
gimplevelstool.h added the API for level correction using black, gray and white point. 2002-10-15 13:36:28 +00:00
gimpmagnifyoptions.c Getting rid of some legacy filenames: 2003-06-29 20:40:45 +00:00
gimpmagnifyoptions.h Getting rid of some legacy filenames: 2003-06-29 20:40:45 +00:00
gimpmagnifytool.c app/gui/image-menu.c app/gui/plug-in-menus.c app/gui/toolbox-menu.c Added 2003-07-01 16:22:03 +00:00
gimpmagnifytool.h new utility function which takes GimpZoomType and zooms "scalesrc" and 2003-05-05 14:48:15 +00:00
gimpmeasureoptions.c Getting rid of some legacy filenames: 2003-06-29 20:40:45 +00:00
gimpmeasureoptions.h Getting rid of some legacy filenames: 2003-06-29 20:40:45 +00:00
gimpmeasuretool.c app/gui/image-menu.c app/gui/plug-in-menus.c app/gui/toolbox-menu.c Added 2003-07-01 16:22:03 +00:00
gimpmeasuretool.h app/tools/gimpairbrushtool.[ch] app/tools/gimpbezierselecttool.[ch] 2002-05-03 11:31:08 +00:00
gimpmoveoptions.c Getting rid of some legacy filenames: 2003-06-29 20:40:45 +00:00
gimpmoveoptions.h Getting rid of some legacy filenames: 2003-06-29 20:40:45 +00:00
gimpmovetool.c app/gui/image-menu.c app/gui/plug-in-menus.c app/gui/toolbox-menu.c Added 2003-07-01 16:22:03 +00:00
gimpmovetool.h added "position" and "push_undo" parameters to gimp_image_add_[vh]guide(). 2003-03-28 13:52:01 +00:00
gimppaintbrushtool.c app/gui/image-menu.c app/gui/plug-in-menus.c app/gui/toolbox-menu.c Added 2003-07-01 16:22:03 +00:00
gimppaintbrushtool.h app/tools/gimpairbrushtool.[ch] app/tools/gimpbezierselecttool.[ch] 2002-05-03 11:31:08 +00:00
gimppaintoptions-gui.c added utility function gimp_paint_options_get_fade() which calculates an 2003-07-16 11:25:37 +00:00
gimppaintoptions-gui.h Getting rid of some legacy filenames: 2003-06-29 20:40:45 +00:00
gimppainttool.c removed "gboolean hard" member/property... 2003-07-14 14:50:41 +00:00
gimppainttool.h removed gimp_display_shell_transform_boundary() again... 2003-07-10 16:01:45 +00:00
gimppenciltool.c took the fade options out of GimpGradientOptions and added them to the new 2003-07-15 15:38:24 +00:00
gimppenciltool.h took the fade options out of GimpGradientOptions and added them to the new 2003-07-15 15:38:24 +00:00
gimpperspectivetool.c libgimpmath/gimpmathtypes.h moved struct declarations. 2003-07-07 13:50:48 +00:00
gimpperspectivetool.h app/tools/gimpairbrushtool.[ch] app/tools/gimpbezierselecttool.[ch] 2002-05-03 11:31:08 +00:00
gimpposterizetool.c app/gui/image-menu.c app/gui/plug-in-menus.c app/gui/toolbox-menu.c Added 2003-07-01 16:22:03 +00:00
gimpposterizetool.h Color correction tool chopping: 2002-08-26 11:35:56 +00:00
gimprectselecttool.c app/gui/image-menu.c app/gui/plug-in-menus.c app/gui/toolbox-menu.c Added 2003-07-01 16:22:03 +00:00
gimprectselecttool.h app/tools/gimpfreeselecttool.[ch] added the possibility to <alt>+drag the 2003-05-27 11:52:03 +00:00
gimpregionselecttool.c added "guchar threshold" parameters all over the place instead of always 2003-07-10 11:59:38 +00:00
gimpregionselecttool.h removed gdisp->scale, gdisp->dot_for_dot, the scaling marcos and the 2002-06-26 22:16:59 +00:00
gimprotatetool.c libgimpmath/gimpmathtypes.h moved struct declarations. 2003-07-07 13:50:48 +00:00
gimprotatetool.h app/tools/gimpairbrushtool.[ch] app/tools/gimpbezierselecttool.[ch] 2002-05-03 11:31:08 +00:00
gimpscaletool.c libgimpmath/gimpmathtypes.h moved struct declarations. 2003-07-07 13:50:48 +00:00
gimpscaletool.h app/tools/gimpairbrushtool.[ch] app/tools/gimpbezierselecttool.[ch] 2002-05-03 11:31:08 +00:00
gimpselectionoptions.c Getting rid of some legacy filenames: 2003-06-29 20:40:45 +00:00
gimpselectionoptions.h Getting rid of some legacy filenames: 2003-06-29 20:40:45 +00:00
gimpselectiontool.c added "gboolean cut_image" parameter so we can float selections without 2003-05-16 12:10:47 +00:00
gimpselectiontool.h bumped version number to 1.3.1. Require Glib/GTK+-1.3.11 and Pango-0.22. 2001-11-22 23:46:13 +00:00
gimpsheartool.c libgimpmath/gimpmathtypes.h moved struct declarations. 2003-07-07 13:50:48 +00:00
gimpsheartool.h app/tools/gimpairbrushtool.[ch] app/tools/gimpbezierselecttool.[ch] 2002-05-03 11:31:08 +00:00
gimpsmudgetool.c app/gui/image-menu.c app/gui/plug-in-menus.c app/gui/toolbox-menu.c Added 2003-07-01 16:22:03 +00:00
gimpsmudgetool.h app/tools/gimpairbrushtool.[ch] app/tools/gimpbezierselecttool.[ch] 2002-05-03 11:31:08 +00:00
gimpsourcetool.c app/gui/image-menu.c app/gui/plug-in-menus.c app/gui/toolbox-menu.c Added 2003-07-01 16:22:03 +00:00
gimpsourcetool.h app/tools/gimpairbrushtool.[ch] app/tools/gimpbezierselecttool.[ch] 2002-05-03 11:31:08 +00:00
gimptextoptions.c app/gui/edit-commands.c added "Fill with Pattern" menu entry as suggested 2003-07-02 18:01:19 +00:00
gimptextoptions.h Getting rid of some legacy filenames: 2003-06-29 20:40:45 +00:00
gimptexttool.c app/gui/image-menu.c app/gui/plug-in-menus.c app/gui/toolbox-menu.c Added 2003-07-01 16:22:03 +00:00
gimptexttool.h app/display/gimpdisplayshell-callbacks.c app/display/gimpdisplayshell.[ch] 2003-03-11 01:22:57 +00:00
gimpthresholdtool.c app/gui/image-menu.c app/gui/plug-in-menus.c app/gui/toolbox-menu.c Added 2003-07-01 16:22:03 +00:00
gimpthresholdtool.h Histogram cleanup: 2002-09-07 17:27:32 +00:00
gimptool.c app/core/gimpbrush.c app/paint/gimppaintcore.c app/tools/gimpcurvestool.c 2003-07-10 12:13:21 +00:00
gimptool.h check for GIMP_IS_DISPLAY(gdisp) again. 2003-04-15 16:05:52 +00:00
gimptoolcontrol.c removed GimpToolState (ACTIVE, INACTIVE). 2003-05-06 11:11:15 +00:00
gimptoolcontrol.h removed GimpToolState (ACTIVE, INACTIVE). 2003-05-06 11:11:15 +00:00
gimptooloptions-gui.c Getting rid of some legacy filenames: 2003-06-29 20:40:45 +00:00
gimptooloptions-gui.h Getting rid of some legacy filenames: 2003-06-29 20:40:45 +00:00
gimptransformoptions.c Getting rid of some legacy filenames: 2003-06-29 20:40:45 +00:00
gimptransformoptions.h Getting rid of some legacy filenames: 2003-06-29 20:40:45 +00:00
gimptransformtool-undo.c added "gint ref_count" to the TileManager struct. 2003-05-26 17:02:06 +00:00
gimptransformtool-undo.h app/tools/gimptransformtool.c removed old path undo stuff. 2003-05-18 10:44:09 +00:00
gimptransformtool.c libgimpmath/gimpmathtypes.h moved struct declarations. 2003-07-07 13:50:48 +00:00
gimptransformtool.h added enum GimpTransformType which can be one of { LAYER, SELECTION, PATH 2003-05-30 23:52:24 +00:00
gimpvectoroptions.c Makefile.am removed this header file. 2003-03-25 16:38:19 +00:00
gimpvectoroptions.h simplified everything a lot by merging the public GimpContextPropType enum 2003-02-09 17:32:52 +00:00
gimpvectortool.c app/gui/image-menu.c app/gui/plug-in-menus.c app/gui/toolbox-menu.c Added 2003-07-01 16:22:03 +00:00
gimpvectortool.h made gimp_vector_tool_clear_vectors() private. Connect to the vector's 2003-04-14 14:52:00 +00:00
makefile.msc replace the win9x specific cd .... with the portable cd ..\..\.. 2003-06-19 09:57:35 +00:00
tool_manager.c Argh... 2003-07-14 17:10:09 +00:00
tool_manager.h app/core/gimpbrush.c app/paint/gimppaintcore.c app/tools/gimpcurvestool.c 2003-07-10 12:13:21 +00:00
tools-enums.c app/base/base-enums.h app/paint/paint-enums.h use /*< pdb-skip, skip >*/, 2003-07-01 10:53:38 +00:00
tools-enums.h app/base/base-enums.h app/paint/paint-enums.h use /*< pdb-skip, skip >*/, 2003-07-01 10:53:38 +00:00
tools-types.h removed enum GimpContextPropType and enum GimpContextPropMask. 2003-06-28 11:20:37 +00:00
tools.c Getting rid of some legacy filenames: 2003-06-29 20:40:45 +00:00
tools.h app/Makefile.am removed. 2001-07-07 12:17:23 +00:00