gimp/app/tools
Michael Natterer 99e78c7074 General cleanup of the selection tools and their PDB wrappers:
2001-10-22  Michael Natterer  <mitch@gimp.org>

	General cleanup of the selection tools and their PDB wrappers:

	* app/core/Makefile.am
	* app/core/gimpimage-contiguous-region.[ch]
	* app/core/gimpimage-mask-select.[ch]: new files providing a clean,
	uniform API for the selection functionalities. Changed order of
	parameters to be consistent, removed code duplication.

	The region returned by the "by_color" function is not really
	contiguous but the API is so similar to "by_seed" and it's used
	in the same context so it's fair enough to put them together.

	Also, I'm not sure if the two is_pixel_sufficiently_different()
	I've optimized away were meant to do *exactly* the same. Added
	a comment there to remember the former difference.

	* app/core/gimpchannel.[ch] (gimp_channel_feather): removed the
	"output" channel parameter and made it optionally push an undo
	(like the other channel operations do).

	* app/core/gimpimage-mask.c: call gimp_channel_feather() with
	"push_undo == TRUE", removed some useless comments.

	* app/tools/gimpbycolorselecttool.[ch]
	* app/tools/gimpellipseselecttool.[ch]
	* app/tools/gimpfreeselecttool.[ch]
	* app/tools/gimpfuzzyselecttool.[ch]
	* app/tools/gimprectselecttool.[ch]: removed all the actual
	selection functionality and call the new gimp_image_mask_select_*()
	and gimp_image_contiguous_region_*() functions instead.

	* app/tools/gimpbezierselecttool.c
	* app/tools/gimpiscissorstool.c: use new function
	gimp_image_mask_select_channel() instead of doing the same manually.

	* app/tools/gimpbucketfilltool.c: find_contiguous_region() ->
	gimp_image_contiguous_region_by_seed().

	* tools/pdbgen/Makefile.am
	* tools/pdbgen/groups.pl
	* tools/pdbgen/pdb/selection_tools.pdb: added new group "Selection
	Tools" which depends only on "core/" stuff (not on "tools/" any
	more, brrrr).

	* tools/pdbgen/pdb/text_tool.pdb: don't include "appenv.h"

	* tools/pdbgen/pdb/tools.pdb: removed the selection tools.

	* app/pdb/Makefile.am
	* app/pdb/selection_tools_cmds.c: new file.

	* app/pdb/internal_procs.c
	* app/pdb/text_tool_cmds.c
	* app/pdb/tools_cmds.c: regenerated.

	* libgimp/Makefile.am
	* libgimp/gimp_pdb.h
	* libgimp/gimpselectiontools_pdb.[ch]: new files.

	* libgimp/gimptools_pdb.[ch]: regenerated

	Misc cleanups:

	* app/app_procs.c: call splash_create() with "no_splash_image"
	as parameter.

	* app/display/gimpdisplay-render.c
	* app/display/gximage.c: don't include "appenv.h".

	* app/gui/gui.c: call session_restore() only if "restore_session"
	is TRUE.

	* app/gui/session.c: don't "if(restore_session)" here and don't
	include "appenv.h"

	* app/gui/splash.[ch]: added "gboolean show_image" parameter to
	splash_create(), don't include "appenv.h"

	* app/tools/gimppainttool.[ch]: added a "GimpGradient" parameter
	to gimp_paint_tool_get_color_from_gradient().

	* app/tools/gimppaintbrushtool.c: pass the gradient.

	* app/tools/gimpselectiontool.c
	* app/tools/gimptransformtool.c
	* app/tools/tool_manager.c: s/GDisplay/GimpDisplay/.

	* app/widgets/gimpcontainergridview.[ch]: removed the "white_style"
	class variable and don't fiddle around with colors and styles...

	* themes/Default/gtkrc: ...do the same here with a simple rc style.
2001-10-22 12:13:44 +00:00
..
.cvsignore configure.in app/Makefile.am moved all tool sources to app/tools 2001-01-22 01:46:28 +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 gdk_pixbuf_new_from_stream -> _from_inline 2001-10-13 12:52:30 +00:00
gimpairbrushtool.h an evil temp_hack which lets GimpContext managing the active display 2001-08-14 14:53:55 +00:00
gimpbezierselecttool.c General cleanup of the selection tools and their PDB wrappers: 2001-10-22 12:13:44 +00:00
gimpbezierselecttool.h app/gimpprogress.[ch] s/GDisplay/GimpDisplay/ 2001-10-17 11:33:43 +00:00
gimpblendtool.c gdk_pixbuf_new_from_stream -> _from_inline 2001-10-13 12:52:30 +00:00
gimpblendtool.h an evil temp_hack which lets GimpContext managing the active display 2001-08-14 14:53:55 +00:00
gimpbrightnesscontrasttool.c app/gimpprogress.[ch] s/GDisplay/GimpDisplay/ 2001-10-17 11:33:43 +00:00
gimpbrightnesscontrasttool.h app/gimpprogress.[ch] s/GDisplay/GimpDisplay/ 2001-10-17 11:33:43 +00:00
gimpbrushtool.c General cleanup of the selection tools and their PDB wrappers: 2001-10-22 12:13:44 +00:00
gimpbrushtool.h General cleanup of the selection tools and their PDB wrappers: 2001-10-22 12:13:44 +00:00
gimpbucketfilltool.c General cleanup of the selection tools and their PDB wrappers: 2001-10-22 12:13:44 +00:00
gimpbucketfilltool.h an evil temp_hack which lets GimpContext managing the active display 2001-08-14 14:53:55 +00:00
gimpbycolorselecttool.c General cleanup of the selection tools and their PDB wrappers: 2001-10-22 12:13:44 +00:00
gimpbycolorselecttool.h General cleanup of the selection tools and their PDB wrappers: 2001-10-22 12:13:44 +00:00
gimpclonetool.c app/Makefile.am app/disp_callbacks.[ch] app/gdisplay.[ch] 2001-09-25 23:23:09 +00:00
gimpclonetool.h an evil temp_hack which lets GimpContext managing the active display 2001-08-14 14:53:55 +00:00
gimpcolorbalancetool-transfer.c app/Makefile.am removed. 2001-06-26 12:09:43 +00:00
gimpcolorbalancetool-transfer.h app/Makefile.am removed. 2001-06-26 12:09:43 +00:00
gimpcolorbalancetool.c app/gimpprogress.[ch] s/GDisplay/GimpDisplay/ 2001-10-17 11:33:43 +00:00
gimpcolorbalancetool.h app/gimpprogress.[ch] s/GDisplay/GimpDisplay/ 2001-10-17 11:33:43 +00:00
gimpcolorpickertool.c app/Makefile.am app/disp_callbacks.[ch] app/gdisplay.[ch] 2001-09-25 23:23:09 +00:00
gimpcolorpickertool.h an evil temp_hack which lets GimpContext managing the active display 2001-08-14 14:53:55 +00:00
gimpconvolvetool.c app/Makefile.am app/disp_callbacks.[ch] app/gdisplay.[ch] 2001-09-25 23:23:09 +00:00
gimpconvolvetool.h an evil temp_hack which lets GimpContext managing the active display 2001-08-14 14:53:55 +00:00
gimpcroptool.c gdk_pixbuf_new_from_stream -> _from_inline 2001-10-13 12:52:30 +00:00
gimpcroptool.h an evil temp_hack which lets GimpContext managing the active display 2001-08-14 14:53:55 +00:00
gimpcurvestool.c app/gimpprogress.[ch] s/GDisplay/GimpDisplay/ 2001-10-17 11:33:43 +00:00
gimpcurvestool.h app/gimpprogress.[ch] s/GDisplay/GimpDisplay/ 2001-10-17 11:33:43 +00:00
gimpdodgeburntool.c app/Makefile.am app/disp_callbacks.[ch] app/gdisplay.[ch] 2001-09-25 23:23:09 +00:00
gimpdodgeburntool.h defined GimpTransferMode enum. 2001-08-01 02:01:49 +00:00
gimpdrawtool.c app/Makefile.am app/disp_callbacks.[ch] app/gdisplay.[ch] 2001-09-25 23:23:09 +00:00
gimpdrawtool.h an evil temp_hack which lets GimpContext managing the active display 2001-08-14 14:53:55 +00:00
gimpeditselectiontool.c gdk_pixbuf_new_from_stream -> _from_inline 2001-10-13 12:52:30 +00:00
gimpeditselectiontool.h app/gimpprogress.[ch] s/GDisplay/GimpDisplay/ 2001-10-17 11:33:43 +00:00
gimpellipseselecttool.c General cleanup of the selection tools and their PDB wrappers: 2001-10-22 12:13:44 +00:00
gimpellipseselecttool.h General cleanup of the selection tools and their PDB wrappers: 2001-10-22 12:13:44 +00:00
gimperasertool.c app/Makefile.am app/disp_callbacks.[ch] app/gdisplay.[ch] 2001-09-25 23:23:09 +00:00
gimperasertool.h an evil temp_hack which lets GimpContext managing the active display 2001-08-14 14:53:55 +00:00
gimpfliptool.c app/Makefile.am app/disp_callbacks.[ch] app/gdisplay.[ch] 2001-09-25 23:23:09 +00:00
gimpfliptool.h an evil temp_hack which lets GimpContext managing the active display 2001-08-14 14:53:55 +00:00
gimpfreeselecttool.c General cleanup of the selection tools and their PDB wrappers: 2001-10-22 12:13:44 +00:00
gimpfreeselecttool.h General cleanup of the selection tools and their PDB wrappers: 2001-10-22 12:13:44 +00:00
gimpfuzzyselecttool.c General cleanup of the selection tools and their PDB wrappers: 2001-10-22 12:13:44 +00:00
gimpfuzzyselecttool.h General cleanup of the selection tools and their PDB wrappers: 2001-10-22 12:13:44 +00:00
gimphistogramtool.c app/gimpprogress.[ch] s/GDisplay/GimpDisplay/ 2001-10-17 11:33:43 +00:00
gimphistogramtool.h app/gimpprogress.[ch] s/GDisplay/GimpDisplay/ 2001-10-17 11:33:43 +00:00
gimphuesaturationtool.c app/gimpprogress.[ch] s/GDisplay/GimpDisplay/ 2001-10-17 11:33:43 +00:00
gimphuesaturationtool.h app/gimpprogress.[ch] s/GDisplay/GimpDisplay/ 2001-10-17 11:33:43 +00:00
gimpimagemaptool.c an evil temp_hack which lets GimpContext managing the active display 2001-08-14 14:53:55 +00:00
gimpimagemaptool.h an evil temp_hack which lets GimpContext managing the active display 2001-08-14 14:53:55 +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 app/tools/Makefile.am lots of files renamed to gimp*tool.[ch] 2001-03-08 01:07:03 +00:00
gimpinktool.c gdk_pixbuf_new_from_stream -> _from_inline 2001-10-13 12:52:30 +00:00
gimpinktool.h an evil temp_hack which lets GimpContext managing the active display 2001-08-14 14:53:55 +00:00
gimpiscissorstool.c General cleanup of the selection tools and their PDB wrappers: 2001-10-22 12:13:44 +00:00
gimpiscissorstool.h an evil temp_hack which lets GimpContext managing the active display 2001-08-14 14:53:55 +00:00
gimplevelstool.c app/gimpprogress.[ch] s/GDisplay/GimpDisplay/ 2001-10-17 11:33:43 +00:00
gimplevelstool.h app/gimpprogress.[ch] s/GDisplay/GimpDisplay/ 2001-10-17 11:33:43 +00:00
gimpmagnifytool.c gdk_pixbuf_new_from_stream -> _from_inline 2001-10-13 12:52:30 +00:00
gimpmagnifytool.h an evil temp_hack which lets GimpContext managing the active display 2001-08-14 14:53:55 +00:00
gimpmeasuretool.c gdk_pixbuf_new_from_stream -> _from_inline 2001-10-13 12:52:30 +00:00
gimpmeasuretool.h an evil temp_hack which lets GimpContext managing the active display 2001-08-14 14:53:55 +00:00
gimpmovetool.c gdk_pixbuf_new_from_stream -> _from_inline 2001-10-13 12:52:30 +00:00
gimpmovetool.h app/gimpprogress.[ch] s/GDisplay/GimpDisplay/ 2001-10-17 11:33:43 +00:00
gimppaintbrushtool.c General cleanup of the selection tools and their PDB wrappers: 2001-10-22 12:13:44 +00:00
gimppaintbrushtool.h an evil temp_hack which lets GimpContext managing the active display 2001-08-14 14:53:55 +00:00
gimppaintoptions-gui.c app/interface.c app/gui/about-dialog.c app/gui/brush-editor.c 2001-08-14 16:33:28 +00:00
gimppaintoptions-gui.h an evil temp_hack which lets GimpContext managing the active display 2001-08-14 14:53:55 +00:00
gimppainttool.c General cleanup of the selection tools and their PDB wrappers: 2001-10-22 12:13:44 +00:00
gimppainttool.h General cleanup of the selection tools and their PDB wrappers: 2001-10-22 12:13:44 +00:00
gimppainttool_kernels.h Introduced GimpPaintTool and GimpDrawTool 2001-02-27 05:21:12 +00:00
gimppathtool.c app/Makefile.am app/disp_callbacks.[ch] app/gdisplay.[ch] 2001-09-25 23:23:09 +00:00
gimppathtool.h an evil temp_hack which lets GimpContext managing the active display 2001-08-14 14:53:55 +00:00
gimppenciltool.c app/Makefile.am app/disp_callbacks.[ch] app/gdisplay.[ch] 2001-09-25 23:23:09 +00:00
gimppenciltool.h an evil temp_hack which lets GimpContext managing the active display 2001-08-14 14:53:55 +00:00
gimpperspectivetool.c app/Makefile.am app/disp_callbacks.[ch] app/gdisplay.[ch] 2001-09-25 23:23:09 +00:00
gimpperspectivetool.h app/gimpprogress.[ch] s/GDisplay/GimpDisplay/ 2001-10-17 11:33:43 +00:00
gimpposterizetool.c app/gimpprogress.[ch] s/GDisplay/GimpDisplay/ 2001-10-17 11:33:43 +00:00
gimpposterizetool.h app/gimpprogress.[ch] s/GDisplay/GimpDisplay/ 2001-10-17 11:33:43 +00:00
gimprectselecttool.c General cleanup of the selection tools and their PDB wrappers: 2001-10-22 12:13:44 +00:00
gimprectselecttool.h General cleanup of the selection tools and their PDB wrappers: 2001-10-22 12:13:44 +00:00
gimpregionselecttool.c General cleanup of the selection tools and their PDB wrappers: 2001-10-22 12:13:44 +00:00
gimpregionselecttool.h General cleanup of the selection tools and their PDB wrappers: 2001-10-22 12:13:44 +00:00
gimprotatetool.c app/Makefile.am app/disp_callbacks.[ch] app/gdisplay.[ch] 2001-09-25 23:23:09 +00:00
gimprotatetool.h app/gimpprogress.[ch] s/GDisplay/GimpDisplay/ 2001-10-17 11:33:43 +00:00
gimpscaletool.c app/Makefile.am app/disp_callbacks.[ch] app/gdisplay.[ch] 2001-09-25 23:23:09 +00:00
gimpscaletool.h app/gimpprogress.[ch] s/GDisplay/GimpDisplay/ 2001-10-17 11:33:43 +00:00
gimpselectionoptions.c an evil temp_hack which lets GimpContext managing the active display 2001-08-14 14:53:55 +00:00
gimpselectionoptions.h an evil temp_hack which lets GimpContext managing the active display 2001-08-14 14:53:55 +00:00
gimpselectiontool.c General cleanup of the selection tools and their PDB wrappers: 2001-10-22 12:13:44 +00:00
gimpselectiontool.h an evil temp_hack which lets GimpContext managing the active display 2001-08-14 14:53:55 +00:00
gimpsheartool.c app/Makefile.am app/disp_callbacks.[ch] app/gdisplay.[ch] 2001-09-25 23:23:09 +00:00
gimpsheartool.h app/gimpprogress.[ch] s/GDisplay/GimpDisplay/ 2001-10-17 11:33:43 +00:00
gimpsmudgetool.c app/Makefile.am app/disp_callbacks.[ch] app/gdisplay.[ch] 2001-09-25 23:23:09 +00:00
gimpsmudgetool.h an evil temp_hack which lets GimpContext managing the active display 2001-08-14 14:53:55 +00:00
gimpsourcetool.c app/Makefile.am app/disp_callbacks.[ch] app/gdisplay.[ch] 2001-09-25 23:23:09 +00:00
gimpsourcetool.h an evil temp_hack which lets GimpContext managing the active display 2001-08-14 14:53:55 +00:00
gimptexttool.c gdk_pixbuf_new_from_stream -> _from_inline 2001-10-13 12:52:30 +00:00
gimptexttool.h app/gimpprogress.[ch] s/GDisplay/GimpDisplay/ 2001-10-17 11:33:43 +00:00
gimpthresholdtool.c app/gimpprogress.[ch] s/GDisplay/GimpDisplay/ 2001-10-17 11:33:43 +00:00
gimpthresholdtool.h app/gimpprogress.[ch] s/GDisplay/GimpDisplay/ 2001-10-17 11:33:43 +00:00
gimptool.c app/gimpprogress.[ch] s/GDisplay/GimpDisplay/ 2001-10-17 11:33:43 +00:00
gimptool.h app/gimpprogress.[ch] s/GDisplay/GimpDisplay/ 2001-10-17 11:33:43 +00:00
gimptransformoptions.c an evil temp_hack which lets GimpContext managing the active display 2001-08-14 14:53:55 +00:00
gimptransformoptions.h an evil temp_hack which lets GimpContext managing the active display 2001-08-14 14:53:55 +00:00
gimptransformtool.c General cleanup of the selection tools and their PDB wrappers: 2001-10-22 12:13:44 +00:00
gimptransformtool.h app/gimpprogress.[ch] s/GDisplay/GimpDisplay/ 2001-10-17 11:33:43 +00:00
Makefile.am added dependency on PangoFT2 (Pango compiled with FreeType2 support). 2001-08-11 15:35:16 +00:00
makefile.msc need to link with pangof2 2001-09-22 19:47:27 +00:00
paint_options.c app/interface.c app/gui/about-dialog.c app/gui/brush-editor.c 2001-08-14 16:33:28 +00:00
paint_options.h an evil temp_hack which lets GimpContext managing the active display 2001-08-14 14:53:55 +00:00
path_tool.c removed path_to_beziersel() so this file can be safely included from 2001-07-17 20:50:01 +00:00
path_tool.h app/tools/gimppathtool.[ch] app/tools/path_tool.[ch] 2001-04-11 15:25:49 +00:00
path_toolP.h app/path_curves.[ch] app/tools/gimpdrawtool.c app/tools/gimppathtool.[ch] 2001-04-11 13:28:53 +00:00
selection_options.c an evil temp_hack which lets GimpContext managing the active display 2001-08-14 14:53:55 +00:00
selection_options.h an evil temp_hack which lets GimpContext managing the active display 2001-08-14 14:53:55 +00:00
tool_manager.c General cleanup of the selection tools and their PDB wrappers: 2001-10-22 12:13:44 +00:00
tool_manager.h app/gimpprogress.[ch] s/GDisplay/GimpDisplay/ 2001-10-17 11:33:43 +00:00
tool_options.c removed path_to_beziersel() so this file can be safely included from 2001-07-17 20:50:01 +00:00
tool_options.h removed path_to_beziersel() so this file can be safely included from 2001-07-17 20:50:01 +00:00
tools-types.h added app/display/ and app/plug-in/. Empty for now except for the types 2001-08-17 14:27:31 +00:00
tools.c an evil temp_hack which lets GimpContext managing the active display 2001-08-14 14:53:55 +00:00
tools.h app/Makefile.am removed. 2001-07-07 12:17:23 +00:00
transform_options.c an evil temp_hack which lets GimpContext managing the active display 2001-08-14 14:53:55 +00:00
transform_options.h an evil temp_hack which lets GimpContext managing the active display 2001-08-14 14:53:55 +00:00
xinput_airbrush.c allocate the tool's paint_core with g_new0. This prevents us from having 2000-06-23 00:14:07 +00:00
xinput_airbrush.h Okay I have committed the ugly airbrush now 1999-09-07 01:33:44 +00:00