Gimp/app/tools
Michael Natterer 18d9161eea Get rid of the "current_context" which was in fact just a bunch of global
2004-04-15  Michael Natterer  <mitch@gimp.org>

	Get rid of the "current_context" which was in fact just a bunch of
	global variables. Instead, pass the needed context all the way
	from the GUI and the PDB to the core. This is a prerequisite for
	macro recording and generally helps separating the various
	subsystems from each other. Work in progress...

	* app/core/gimp.[ch]: removed member "current_context" and
	gimp_[get|set]_current_context().

	* app/core/gimp-edit.[ch]
	* app/core/gimpdrawable-blend.[ch]
	* app/core/gimpdrawable-bucket-fill.[ch]
	* app/core/gimpdrawable-offset.[ch]
	* app/core/gimpdrawable-transform.[ch]
	* app/core/gimpimage-crop.[ch]
	* app/core/gimpimage-flip.[ch]
	* app/core/gimpimage-merge.[ch]
	* app/core/gimpimage-resize.[ch]
	* app/core/gimpimage-rotate.[ch]
	* app/core/gimpimage.[ch]
	* app/core/gimpimagefile.[ch]
	* app/core/gimpitem-linked.[ch]
	* app/core/gimpitem.[ch]
	* app/core/gimplayer.[ch]
	* app/core/gimpselection.[ch]
	* app/core/gimptemplate.[ch]
	* app/file/file-open.[ch]
	* app/file/file-save.[ch]
	* app/pdb/procedural_db.[ch]
	* app/text/gimptext-compat.[ch]
	* app/text/gimptextlayer-transform.[ch]
	* app/gui/brush-select.[ch]
	* app/gui/font-select.[ch]
	* app/gui/gradient-select.[ch]
	* app/gui/palette-select.[ch]
	* app/gui/pattern-select.[ch]: added tons of "GimpContext *context"
	parameters and use the passed context instead of
	gimp_get_current_context().

	* app/app_procs.c
	* app/batch.c
	* app/core/gimpchannel.c
	* app/core/gimpdrawable.c
	* app/paint/gimperaser.c
	* app/paint/gimppaintbrush.c
	* app/plug-in/plug-in-message.c
	* app/plug-in/plug-ins.c
	* app/text/gimptextlayer.c
	* app/tools/gimpblendtool.c
	* app/tools/gimpbucketfilltool.c
	* app/tools/gimpcroptool.c
	* app/tools/gimpeditselectiontool.c
	* app/tools/gimpfliptool.c
	* app/tools/gimpinktool.c
	* app/tools/gimptransformtool.c
	* app/vectors/gimpvectors.c
	* app/gui/convert-dialog.c
	* app/gui/drawable-commands.c
	* app/gui/edit-commands.c
	* app/gui/file-commands.c
	* app/gui/file-new-dialog.c
	* app/gui/file-open-dialog.c
	* app/gui/file-save-dialog.c
	* app/gui/image-commands.c
	* app/gui/layers-commands.c
	* app/gui/offset-dialog.c
	* app/gui/select-commands.c
	* app/gui/vectors-commands.c
	* app/widgets/gimpdnd.c
	* app/widgets/gimpdocumentview.c
	* app/widgets/gimphelp.c
	* app/widgets/gimpthumbbox.c: pass gimp_get_user_context() or
	GIMP_CONTEXT(tool_options) or whatever is the right context
	to the changed core functions.

	* tools/pdbgen/app.pl: pass "GimpContext *context" to all
	generated PDB invokers.

	* tools/pdbgen/pdb/brush_select.pdb
	* tools/pdbgen/pdb/brushes.pdb
	* tools/pdbgen/pdb/drawable.pdb
	* tools/pdbgen/pdb/edit.pdb
	* tools/pdbgen/pdb/font_select.pdb
	* tools/pdbgen/pdb/gradient_select.pdb
	* tools/pdbgen/pdb/gradients.pdb
	* tools/pdbgen/pdb/image.pdb
	* tools/pdbgen/pdb/layer.pdb
	* tools/pdbgen/pdb/paint_tools.pdb
	* tools/pdbgen/pdb/palette.pdb
	* tools/pdbgen/pdb/palette_select.pdb
	* tools/pdbgen/pdb/palettes.pdb
	* tools/pdbgen/pdb/paths.pdb
	* tools/pdbgen/pdb/pattern_select.pdb
	* tools/pdbgen/pdb/patterns.pdb
	* tools/pdbgen/pdb/selection.pdb
	* tools/pdbgen/pdb/text_tool.pdb
	* tools/pdbgen/pdb/transform_tools.pdb: pass the new context
	parameter to the changed core functions.

	* app/pdb/*_cmds.c: regenerated.
2004-04-14 23:37:34 +00:00
..
.cvsignore
gimp-tools.c Replaced the histogram tool by a histogram dialog: 2003-11-01 02:39:34 +00:00
gimp-tools.h app/paint/Makefile.am removed... ...and added. 2003-09-18 13:51:10 +00:00
gimpairbrushtool.c added GIMP_COLOR_PICK_MODE_NONE to the GimpColorPickMode enum. 2003-10-25 19:00:49 +00:00
gimpairbrushtool.h
gimpblendoptions.c override the "gradient_repeat" property inherited from GimpPaintOptions 2004-03-13 15:48:32 +00:00
gimpblendoptions.h
gimpblendtool.c Get rid of the "current_context" which was in fact just a bunch of global 2004-04-14 23:37:34 +00:00
gimpblendtool.h
gimpbrightnesscontrasttool.c moved "shell_desc" from GimpImageMapTool to GimpImageMapToolClass and 2004-02-25 13:55:45 +00:00
gimpbrightnesscontrasttool.h
gimpbrushtool.c added "use_offsets" parameter to gimp_draw_tool_draw_boundary() for 2004-02-21 16:06:56 +00:00
gimpbrushtool.h added GIMP_COLOR_PICK_MODE_NONE to the GimpColorPickMode enum. 2003-10-25 19:00:49 +00:00
gimpbucketfilloptions.c Re-enabled filling the whole selection using the bucket fill tool. Fixes 2004-01-27 15:26:11 +00:00
gimpbucketfilloptions.h Re-enabled filling the whole selection using the bucket fill tool. Fixes 2004-01-27 15:26:11 +00:00
gimpbucketfilltool.c Get rid of the "current_context" which was in fact just a bunch of global 2004-04-14 23:37:34 +00:00
gimpbucketfilltool.h
gimpbycolorselecttool.c Treat changes to the selection like changes to any other drawable: 2003-10-06 12:17:11 +00:00
gimpbycolorselecttool.h
gimpclonetool.c Ctrl only sets the clone source when Shift isn't pressed at the same time 2003-09-03 16:41:30 +00:00
gimpclonetool.h
gimpcolorbalancetool.c moved "shell_desc" from GimpImageMapTool to GimpImageMapToolClass and 2004-02-25 13:55:45 +00:00
gimpcolorbalancetool.h
gimpcolorizetool.c moved "shell_desc" from GimpImageMapTool to GimpImageMapToolClass and 2004-02-25 13:55:45 +00:00
gimpcolorizetool.h changed the range of the "lightness" parameter to [-100..+100], where -100 2003-11-18 16:06:47 +00:00
gimpcoloroptions.c Let all GimpImageMap tools remember the state of the preview toggle (bug 2004-02-22 14:28:53 +00:00
gimpcoloroptions.h Let all GimpImageMap tools remember the state of the preview toggle (bug 2004-02-22 14:28:53 +00:00
gimpcolorpickeroptions.c added GIMP_COLOR_PICK_MODE_NONE to the GimpColorPickMode enum. 2003-10-25 19:00:49 +00:00
gimpcolorpickeroptions.h added GIMP_COLOR_PICK_MODE_NONE to the GimpColorPickMode enum. 2003-10-25 19:00:49 +00:00
gimpcolorpickertool.c app/tools/gimpcolorpickertool.c app/tools/gimpcroptool.c 2004-03-14 22:16:12 +00:00
gimpcolorpickertool.h new enum GimpColorFrameMode. 2003-10-15 15:16:50 +00:00
gimpcolortool.c added GIMP_COLOR_PICK_MODE_NONE to the GimpColorPickMode enum. 2003-10-25 19:00:49 +00:00
gimpcolortool.h Cleaned up all places which pick colors to work consistently: the concept 2003-09-26 13:33:54 +00:00
gimpconvolvetool.c made "tool-info" a G_PARAM_CONSTRUCT_ONLY property. 2003-08-30 16:41:35 +00:00
gimpconvolvetool.h
gimpcropoptions.c app/tools/gimpcropoptions.c revert back to "Current". 2003-10-19 16:04:01 +00:00
gimpcropoptions.h don't scan "app/tools/tools-enums.h" for PDB types since the PDB doesn't 2003-09-26 16:20:05 +00:00
gimpcroptool.c Get rid of the "current_context" which was in fact just a bunch of global 2004-04-14 23:37:34 +00:00
gimpcroptool.h
gimpcurvestool.c app/tools/gimpcurvestool.c app/tools/gimpinktool.c print debug output to 2004-03-12 13:50:36 +00:00
gimpcurvestool.h app/tools/gimpcurvestool.[ch] removed obsoleted variables. 2004-02-25 12:31:18 +00:00
gimpdodgeburntool.c made "tool-info" a G_PARAM_CONSTRUCT_ONLY property. 2003-08-30 16:41:35 +00:00
gimpdodgeburntool.h
gimpdrawtool.c Fixed several off-by-one problems in display: 2004-03-20 21:59:41 +00:00
gimpdrawtool.h added "use_offsets" parameter to gimp_draw_tool_draw_boundary() for 2004-02-21 16:06:56 +00:00
gimpeditselectiontool.c Get rid of the "current_context" which was in fact just a bunch of global 2004-04-14 23:37:34 +00:00
gimpeditselectiontool.h Enabled/fixed moving of channels and layer masks (was something between 2004-01-12 14:13:24 +00:00
gimpellipseselecttool.c Sanitize rectangle and ellipse selection handling (bug #138237 and bug 2004-04-05 08:08:23 +00:00
gimpellipseselecttool.h
gimperasertool.c added GIMP_COLOR_PICK_MODE_NONE to the GimpColorPickMode enum. 2003-10-25 19:00:49 +00:00
gimperasertool.h
gimpflipoptions.c
gimpflipoptions.h
gimpfliptool.c Get rid of the "current_context" which was in fact just a bunch of global 2004-04-14 23:37:34 +00:00
gimpfliptool.h
gimpfreeselecttool.c Treat changes to the selection like changes to any other drawable: 2003-10-06 12:17:11 +00:00
gimpfreeselecttool.h
gimpfuzzyselecttool.c restore the cap_style and join_style properties for the XOR GdkGC to the 2003-12-17 12:59:06 +00:00
gimpfuzzyselecttool.h
gimphistogramoptions.c make it a two-way connection and added a property_name parameter so it can 2003-10-25 17:25:34 +00:00
gimphistogramoptions.h call gimp_image_colormap_changed() after installing the colormap. 2004-02-12 14:09:35 +00:00
gimphuesaturationtool.c moved "shell_desc" from GimpImageMapTool to GimpImageMapToolClass and 2004-02-25 13:55:45 +00:00
gimphuesaturationtool.h
gimpimagemapoptions.c app/tools/gimpcurvestool.[ch] app/tools/gimpimagemapoptions.[ch] 2004-02-25 10:23:43 +00:00
gimpimagemapoptions.h app/tools/gimpcurvestool.[ch] app/tools/gimpimagemapoptions.[ch] 2004-02-25 10:23:43 +00:00
gimpimagemaptool.c app/tools/gimpcolorpickertool.c app/tools/gimpcroptool.c 2004-03-14 22:16:12 +00:00
gimpimagemaptool.h moved "shell_desc" from GimpImageMapTool to GimpImageMapToolClass and 2004-02-25 13:55:45 +00:00
gimpinkoptions-gui.c app/tools/gimpcurvestool.c app/tools/gimpinkoptions.c removed explicit 2004-01-29 13:59:14 +00:00
gimpinkoptions-gui.h
gimpinkoptions.c app/tools/gimpcurvestool.c app/tools/gimpinkoptions.c removed explicit 2004-01-29 13:59:14 +00:00
gimpinkoptions.h
gimpinktool-blob.c don't access the array before checking if the index is within the valid 2004-02-23 20:12:35 +00:00
gimpinktool-blob.h
gimpinktool.c Get rid of the "current_context" which was in fact just a bunch of global 2004-04-14 23:37:34 +00:00
gimpinktool.h
gimpiscissorstool.c don't activate the iscissors tool if it's already active (bug #132351). 2004-02-08 22:28:21 +00:00
gimpiscissorstool.h
gimplevelstool.c compute the slider positions in the expose event handler so that the 2004-03-05 14:22:02 +00:00
gimplevelstool.h app/tools/gimpcurvestool.[ch] removed obsoleted variables. 2004-02-25 12:31:18 +00:00
gimpmagnifyoptions.c
gimpmagnifyoptions.h
gimpmagnifytool.c Store the zoom factor as float, not as a ratio. 2004-01-29 22:22:29 +00:00
gimpmagnifytool.h
gimpmeasureoptions.c
gimpmeasureoptions.h
gimpmeasuretool.c app/tools/gimpcolorpickertool.c app/tools/gimpcroptool.c 2004-03-14 22:16:12 +00:00
gimpmeasuretool.h don't use InfoDialog; always display pixels and real-world units in the 2003-10-20 17:36:18 +00:00
gimpmoveoptions.c app/tools/gimpcropoptions.c revert back to "Current". 2003-10-19 16:04:01 +00:00
gimpmoveoptions.h changed "gboolean move_mask" to "GimpTransformType move_type" and added an 2003-09-16 16:23:38 +00:00
gimpmovetool.c redid my last layer_mask vs. layer move fix by reordering the whole 2004-03-09 13:24:15 +00:00
gimpmovetool.h call tool_manager_oper_active_update() also on GDK_ENTER_NOTIFY, 2003-10-29 15:03:56 +00:00
gimppaintbrushtool.c added GIMP_COLOR_PICK_MODE_NONE to the GimpColorPickMode enum. 2003-10-25 19:00:49 +00:00
gimppaintbrushtool.h
gimppaintoptions-gui.c marked new strings for translation. 2004-03-04 16:10:57 +00:00
gimppaintoptions-gui.h
gimppainttool.c added "use_offsets" parameter to gimp_draw_tool_draw_boundary() for 2004-02-21 16:06:56 +00:00
gimppainttool.h added GIMP_COLOR_PICK_MODE_NONE to the GimpColorPickMode enum. 2003-10-25 19:00:49 +00:00
gimppenciltool.c added GIMP_COLOR_PICK_MODE_NONE to the GimpColorPickMode enum. 2003-10-25 19:00:49 +00:00
gimppenciltool.h
gimpperspectivetool.c renamed info_dialog_popdown() to info_dialog_hide() and 2004-01-21 11:16:57 +00:00
gimpperspectivetool.h
gimpposterizetool.c moved "shell_desc" from GimpImageMapTool to GimpImageMapToolClass and 2004-02-25 13:55:45 +00:00
gimpposterizetool.h
gimprectselecttool.c Sanitize rectangle and ellipse selection handling (bug #138237 and bug 2004-04-05 08:08:23 +00:00
gimprectselecttool.h Sanitize rectangle and ellipse selection handling (bug #138237 and bug 2004-04-05 08:08:23 +00:00
gimpregionselecttool.c restore the cap_style and join_style properties for the XOR GdkGC to the 2003-12-17 12:59:06 +00:00
gimpregionselecttool.h
gimprotatetool.c renamed info_dialog_popdown() to info_dialog_hide() and 2004-01-21 11:16:57 +00:00
gimprotatetool.h
gimpscaletool.c renamed info_dialog_popdown() to info_dialog_hide() and 2004-01-21 11:16:57 +00:00
gimpscaletool.h
gimpselectionoptions.c
gimpselectionoptions.h
gimpselectiontool.c app/tools/gimpdrawtool.c app/tools/gimpselectiontool.c 2004-03-10 12:45:11 +00:00
gimpselectiontool.h
gimpsheartool.c renamed info_dialog_popdown() to info_dialog_hide() and 2004-01-21 11:16:57 +00:00
gimpsheartool.h
gimpsmudgetool.c added GIMP_COLOR_PICK_MODE_NONE to the GimpColorPickMode enum. 2003-10-25 19:00:49 +00:00
gimpsmudgetool.h
gimpsourcetool.c Ctrl only sets the clone source when Shift isn't pressed at the same time 2003-09-03 16:41:30 +00:00
gimpsourcetool.h
gimptextoptions.c app/tools/gimptextoptions.[ch] introduced a proxy GimpText object that is 2004-03-14 17:54:23 +00:00
gimptextoptions.h app/tools/gimptextoptions.[ch] introduced a proxy GimpText object that is 2004-03-14 17:54:23 +00:00
gimptexttool.c push an undo group only when it's needed. This resurrects text undo 2004-04-10 18:11:00 +00:00
gimptexttool.h preserve the text tool on image changes. Instead connect to the text 2004-03-22 14:32:47 +00:00
gimpthresholdtool.c app/tools/gimpcurvestool.c app/tools/gimplevelstool.c added buttons to 2004-03-05 01:31:33 +00:00
gimpthresholdtool.h
gimptool.c app/tools/gimpcurvestool.c app/tools/gimpinktool.c print debug output to 2004-03-12 13:50:36 +00:00
gimptool.h added boolean return value to GimpTool::initialize(). Returning FALSE 2004-01-21 16:07:48 +00:00
gimptoolcontrol.c put overly picky sanity checks into #ifdef GIMP_UNSTABLE ... #endif so we 2004-02-08 21:46:30 +00:00
gimptoolcontrol.h
gimptooloptions-gui.c
gimptooloptions-gui.h
gimptransformoptions.c Completed the fix for bug #136702: 2004-03-13 17:45:58 +00:00
gimptransformoptions.h Completed the fix for bug #136702: 2004-03-13 17:45:58 +00:00
gimptransformtool-undo.c
gimptransformtool-undo.h
gimptransformtool.c Get rid of the "current_context" which was in fact just a bunch of global 2004-04-14 23:37:34 +00:00
gimptransformtool.h app/widgets/Makefile.am added a simple utility function 2003-10-20 21:27:34 +00:00
gimpvectoroptions.c Since GimpVectorTool is no GimpSelectionTool, it does not make sense to 2003-11-14 23:10:24 +00:00
gimpvectoroptions.h Since GimpVectorTool is no GimpSelectionTool, it does not make sense to 2003-11-14 23:10:24 +00:00
gimpvectortool.c fixed condition which triggers the path tool's undo hack. Fixes bug 2004-03-25 12:46:20 +00:00
gimpvectortool.h Fixed missing undo step when moving (components of) the path. Don't add an 2003-12-31 02:10:09 +00:00
Makefile.am Let all GimpImageMap tools remember the state of the preview toggle (bug 2004-02-22 14:28:53 +00:00
makefile.msc updated 2004-03-07 23:13:51 +00:00
tool_manager.c don't reinitialize the tool when the image becomes dirty but just cancel 2004-03-10 12:25:15 +00:00
tool_manager.h added boolean return value to GimpTool::initialize(). Returning FALSE 2004-01-21 16:07:48 +00:00
tools-enums.c added GIMP_COLOR_PICK_MODE_NONE to the GimpColorPickMode enum. 2003-10-25 19:00:49 +00:00
tools-enums.h added GIMP_COLOR_PICK_MODE_NONE to the GimpColorPickMode enum. 2003-10-25 19:00:49 +00:00
tools-types.h Let all GimpImageMap tools remember the state of the preview toggle (bug 2004-02-22 14:28:53 +00:00