1. 25 Oct, 2008 1 commit
    • Michael Natterer's avatar
      More merging from SOC 2006's vector layer branch: · 39af762f
      Michael Natterer authored
      2008-10-25  Michael Natterer  <mitch@gimp.org>
      
      	More merging from SOC 2006's vector layer branch:
      
      	* app/core/gimpitem.[ch]: add "gboolean push_undo" to
      	GimpItem::stroke().
      
      	* app/core/gimpdrawable-stroke.[ch]
      	* app/paint/gimppaintcore-stroke.[ch]
      	* app/paint/gimppaintcore.[ch] (gimp_paint_core_finish): add
      	"push_undo" parameters here too.
      
      	* app/actions/select-commands.c
      	* app/actions/vectors-commands.c
      	* app/core/gimpchannel.c
      	* app/core/gimpselection.c
      	* app/dialogs/stroke-dialog.c
      	* app/tools/gimppainttool.c
      	* app/vectors/gimpvectors.c
      	* tools/pdbgen/pdb/edit.pdb
      	* tools/pdbgen/pdb/paint_tools.pdb
      	* tools/pdbgen/pdb/paths.pdb: pass TRUE all over the place.
      
      	* app/pdb/edit-cmds.c
      	* app/pdb/paint-tools-cmds.c
      	* app/pdb/paths-cmds.c: regenerated.
      
      
      svn path=/trunk/; revision=27398
      39af762f
  2. 09 Oct, 2008 1 commit
    • Michael Natterer's avatar
      Add GEGL_CFLAGS and #includes as if gimpdrawable.h and gimpimage.h had a · 5503e6a0
      Michael Natterer authored
      2008-10-09  Michael Natterer  <mitch@gimp.org>
      
      	Add GEGL_CFLAGS and #includes as if gimpdrawable.h and gimpimage.h
      	had a GEGL dependency (they will have in the next commit, but I
      	wanted to keep the commit separate).
      
      	* app/dialogs/Makefile.am
      	* app/file/Makefile.am
      	* app/gui/Makefile.am
      	* app/menus/Makefile.am
      	* app/paint/Makefile.am
      	* app/plug-in/Makefile.am
      	* app/text/Makefile.am
      	* app/vectors/Makefile.am
      	* app/widgets/Makefile.am
      	* app/xcf/Makefile.am: add GEGL_CFLAGS.
      
      	* app/actions/*.c
      	* app/core/*.c
      	* app/dialogs/*.c
      	* app/display/*.c
      	* app/file/*.c
      	* app/gui/*.c
      	* app/menus/*.c
      	* app/paint/*.c
      	* app/pdb/gimppdb-utils.c
      	* app/pdb/gimpprocedure.c
      	* app/plug-in/*.c
      	* app/text/*.c
      	* app/tools/*.c
      	* app/vectors/*.c
      	* app/widgets/*.c
      	* app/xcf/*.c: add <gegl.h> or replace <glib-object.h> by <gegl.h>
      	to all files which include a drawable subclass or gimpimage.h
      
      	* tools/pdbgen/app.pl: include <gegl.h> instead of <glib-object.h>
      	in all generated files.
      
      	* app/pdb/*-cmds.c: regenerated.
      
      	* data/images/gimp-splash.png: the goat is still sleeping.
      	By Aurore Derriennic.
      
      
      svn path=/trunk/; revision=27202
      5503e6a0
  3. 20 Aug, 2008 1 commit
    • Michael Natterer's avatar
      Bug 496772 – Position shown in the statusbar needs more precision (for · d51c5082
      Michael Natterer authored
      2008-08-20  Michael Natterer  <mitch@gimp.org>
      
      	Bug 496772 – Position shown in the statusbar needs more
      	precision (for some tools)
      
      	* app/display/display-enums.[ch]: add enum GimpCursorPrecision
      	which can be one of { PIXEL_CENTER, PIXEL_BORDER, SUBPIXEL }.
      
      	* app/display/gimpdisplayshell-cursor.[ch]: add "precision"
      	parameter to gimp_display_shell_update_cursor() and pass it
      	on to the statusbar.
      
      	* app/display/gimpstatusbar.[ch]: add "precision" parameters to
      	the cursor coordinates APIs, offset the passed coords accordingly
      	and display them with one decimal point if SUBPIXEL is requested
      	and the display's unit is PIXEL. Keep a second floating-point
      	format string around at any time.
      
      	* app/tools/gimptoolcontrol.[ch]: add a "precision" member and API
      	so tools can configure the precision they need. Defalt to
      	PIXEL_CENTER since that's right for almost all tools.
      
      	* app/display/gimpdisplayshell-callbacks.c: pass the tool's
      	precision to gimp_display_shell_update_cursor().
      
      	* app/tools/gimptool.[ch]: add "precision" parameter to
      	gimp_tool_push_status_coords() and pass it on to the statusbar.
      
      	* app/tools/gimpaligntool.c
      	* app/tools/gimpblendtool.c
      	* app/tools/gimpcolortool.c
      	* app/tools/gimpcroptool.c
      	* app/tools/gimpeditselectiontool.c
      	* app/tools/gimpfliptool.c
      	* app/tools/gimpfreeselecttool.c
      	* app/tools/gimpmovetool.c
      	* app/tools/gimppainttool.c
      	* app/tools/gimpperspectiveclonetool.c
      	* app/tools/gimprectangleselecttool.c
      	* app/tools/gimprectangletool.c
      	* app/tools/gimptransformtool.c
      	* app/tools/gimpvectortool.c: set precision in init() where
      	needed. Adjust the precision in the fly when needed, e.g. while
      	moving guides or when toggling hard-edge on paint tools. Also pass
      	an appropriate precision to gimp_tool_push_status_coords(), which
      	is not always the tool's precision as used for cursor display.
      
      
      svn path=/trunk/; revision=26681
      d51c5082
  4. 07 Aug, 2008 1 commit
    • Sven Neumann's avatar
      added gimp_image_get_projection(). · 3b067cba
      Sven Neumann authored
      2008-08-07  Sven Neumann  <sven@gimp.org>
      
      	* app/core/gimpimage.[ch]: added gimp_image_get_projection().
      
      	* app/display/gimpdisplay-handlers.c
      	* app/display/gimpdisplayshell-render.c
      	* app/display/gimpdisplayshell-scroll.c
      	* app/paint/gimppaintcore.c
      	* app/paint/gimpsourcecore.c
      	* app/tools/gimpbycolorselecttool.c
      	* app/tools/gimpeditselectiontool.c
      	* app/tools/gimpimagemaptool.c
      	* app/tools/gimpiscissorstool.c
      	* app/tools/gimppainttool.c
      	* app/widgets/gimpsamplepointeditor.c
      	* tools/pdbgen/pdb/image.pdb: use the new accessor function.
      
      	* app/pdb/image-cmds.c: regenerated.
      
      
      svn path=/trunk/; revision=26413
      3b067cba
  5. 17 Jul, 2008 1 commit
    • Sven Neumann's avatar
      removed 'use_pressure' field from GimpPaintCore. · caa4c529
      Sven Neumann authored
      2008-07-17  Sven Neumann  <sven@gimp.org>
      
      	* app/paint/gimppaintcore.[ch]: removed 'use_pressure' field 
      from
      	GimpPaintCore.
      	
      	* app/paint/gimppaintoptions.[ch]: removed 'use_pressure' 
      parameter.
      
      	* app/paint/gimpairbrush.c
      	* app/paint/gimpbrushcore.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
      	* app/tools/gimppainttool.c: changed accordingly.
      
      
      svn path=/trunk/; revision=26225
      caa4c529
  6. 09 Jul, 2008 1 commit
  7. 05 May, 2008 1 commit
    • Sven Neumann's avatar
      app/tools/gimppainttool.c applied patch from Alexia Death which changes · 563684d6
      Sven Neumann authored
      2008-05-05  Sven Neumann  <sven@gimp.org>
      
      	* app/tools/gimppainttool.c
      	* app/display/gimpdisplayshell-coords.c: applied patch from 
      Alexia
      	Death which changes the maximum smoothing for paint tools to 
      more
      	conservative default and adds velocity dependent smooth 
      suppression.
      
      
      svn path=/trunk/; revision=25564
      563684d6
  8. 07 Apr, 2008 1 commit
    • Sven Neumann's avatar
      app/display/gimpdisplayshell-callbacks.c · 1006d379
      Sven Neumann authored
      2008-04-07  Sven Neumann  <sven@gimp.org>
      
      	* app/display/gimpdisplayshell-callbacks.c
      	* app/display/gimpdisplayshell-coords.[ch]
      	* app/tools/gimppainttool.c
      	* app/tools/gimptool.[ch]: applied patch from Alexia Death as
      	attached to bug #508639. This change makes the smoothing depend on
      	the active tool.
      
      svn path=/trunk/; revision=25392
      1006d379
  9. 15 Jan, 2008 1 commit
    • Martin Nordholts's avatar
      Added symbolic constants for common values to the n_snap_lines parameter · 8772b0a1
      Martin Nordholts authored
      2008-01-15  Martin Nordholts  <martinn@svn.gnome.org>
      
      	* app/tools/tools-utils.h: Added symbolic constants for common
      	values to the n_snap_lines parameter of
      	gimp_tool_motion_constrain.
      
      	* app/tools/gimpblendtool.c:
      	* app/tools/gimpeditselectiontool.c:
      	* app/tools/gimpmeasuretool.c:
      	* app/tools/gimppainttool.c: Use these new symbolic constants.
      
      svn path=/trunk/; revision=24623
      8772b0a1
  10. 14 Jan, 2008 1 commit
    • Martin Nordholts's avatar
      Generalized to allow a variable number of lines for snapping, and · 4ef8797f
      Martin Nordholts authored
      2008-01-14  Martin Nordholts  <martinn@svn.gnome.org>
      
      	* app/tools/tools-utils.[ch]
      	(gimp_tool_motion_constrain): Generalized to allow a variable
      	number of lines for snapping, and rewritten to make snapping
      	happen more intuitively; snap the shortest distance rather than
      	only horizontally or vertically.
      	(gimp_tool_utils_point_to_line_distance): New helper function.
      
      	* app/tools/gimpblendtool.c
      	* app/tools/gimpmeasuretool.c
      	* app/tools/gimppainttool.c: Adjust to the new function signature.
      
      svn path=/trunk/; revision=24609
      4ef8797f
  11. 26 Dec, 2007 1 commit
    • Michael Natterer's avatar
      app/actions/image-commands.c app/actions/select-commands.c · 1e837136
      Michael Natterer authored
      2007-12-26  Michael Natterer  <mitch@gimp.org>
      
      	* app/actions/image-commands.c
      	* app/actions/select-commands.c
      	* app/core/gimp-edit.c
      	* app/core/gimpdrawable-stroke.c
      	* app/core/gimpimage-duplicate.c
      	* app/core/gimpimage-preview.c
      	* app/core/gimpimage-rotate.c
      	* app/core/gimpimageundo.c
      	* app/core/gimpitem-preview.c
      	* app/dialogs/grid-dialog.c
      	* app/dialogs/layer-options-dialog.c
      	* app/dialogs/offset-dialog.c
      	* app/dialogs/stroke-dialog.c
      	* app/display/gimpdisplayshell-scale.c
      	* app/display/gimpdisplayshell-title.c
      	* app/display/gimpdisplayshell.c
      	* app/display/gimpstatusbar.c
      	* app/paint/gimppaintoptions.c
      	* app/tools/gimpmagnifytool.c
      	* app/tools/gimpmeasuretool.c
      	* app/tools/gimppainttool.c
      	* app/tools/gimprectangletool.c
      	* app/tools/gimprotatetool.c
      	* app/tools/gimpscaletool.c
      	* app/tools/gimptexttool.c
      	* app/vectors/gimpvectors-export.c
      	* app/vectors/gimpvectors-import.c
      	* app/widgets/gimpcursorview.c
      	* app/widgets/gimpimagepropview.c
      	* app/widgets/gimptoolbox-dnd.c
      	* app/widgets/gimpviewrendererdrawable.c
      	* app/widgets/gimpviewrendererimage.c
      	* app/xcf/xcf-load.c
      	* app/xcf/xcf-save.c: use gimp_image_get/set_resolution() instead
      	of accessing the GimpImage members directly.
      
      
      svn path=/trunk/; revision=24436
      1e837136
  12. 30 Oct, 2007 1 commit
    • Sven Neumann's avatar
      Fix drawing of straight lines using the Shift key and a tablet (bug · 81d38532
      Sven Neumann authored
      2007-10-30  Sven Neumann  <sven@gimp.org>
      
      	Fix drawing of straight lines using the Shift key and a tablet
      	(bug #164240):
      
      	* app/tools/gimppainttool.c (gimp_paint_tool_button_press): set
      	use_pressure to FALSE when drawing a straight line.
      
      	* app/paint/gimppaintbrush.c (_gimp_paintbrush_motion): respect
      	the use_pressure flag.
      
      svn path=/trunk/; revision=23988
      81d38532
  13. 19 Jul, 2007 1 commit
  14. 15 Mar, 2007 1 commit
    • Michael Natterer's avatar
      app/tools/gimpaligntool.c app/tools/gimpcolorpickertool.c · 40718dc7
      Michael Natterer authored
      2007-03-15  Michael Natterer  <mitch@gimp.org>
      
      	* app/tools/gimpaligntool.c
      	* app/tools/gimpcolorpickertool.c
      	* app/tools/gimppainttool.c
      	* app/tools/gimpvectortool.c: remove gimp_tool_pop_status() from
      	control() implementations because GimpTool does this generically now.
      
      	* app/tools/gimpblendtool.c
      	* app/tools/gimpselectiontool.c: remove entire control()
      	implementations because they were doing nothing else.
      
      
      svn path=/trunk/; revision=22128
      40718dc7
  15. 09 Mar, 2007 2 commits
    • Michael Natterer's avatar
      include "libgimpmath/gimpmathtypes.h" instead of "libgimpmath/gimpmath.h". · 83d3a750
      Michael Natterer authored
      2007-03-09  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/core-types.h: include "libgimpmath/gimpmathtypes.h"
      	instead of "libgimpmath/gimpmath.h".
      
      	* app/core/gimpbrush.h
      	* app/paint/gimppaintcore.h
      	* app/paint/gimpperspectiveclone.h
      	* app/text/gimptext.h
      	* app/tools/gimptransformtool.h: include gimpvector.h and
      	gimpmatrix.h explicitely where they are needed in public structs.
      
      	* app/*/*.c
      	* tools/pdbgen/pdb/paths.pdb: include "libgimpmath/gimpmath.h"
      	where needed.
      
      	* app/pdb/paths_cmds.c: regenerated.
      
      
      svn path=/trunk/; revision=22084
      83d3a750
    • Michael Natterer's avatar
      remove useless includes. Some minor cleanup. · 974a7400
      Michael Natterer authored
      2007-03-09  Michael Natterer  <mitch@gimp.org>
      
      	* app/tools/*.c: remove useless includes. Some minor cleanup.
      
      
      svn path=/trunk/; revision=22083
      974a7400
  16. 27 Feb, 2007 1 commit
    • Michael Natterer's avatar
      Step one towards enabling tool cancellation by other means than mouse · d7ed6394
      Michael Natterer authored
      2007-02-27  Michael Natterer  <mitch@gimp.org>
      
      	Step one towards enabling tool cancellation by other means than
      	mouse button 3 and towards proper "clicked" semantics.
      
      	* app/tools/tools-enums.[ch]: added enum GimpButtonReleaseType
      	which can be one of { NORMAL, CANCEL, CLICK } (click is curently
      	unused).
      
      	* app/tools/gimptool.[ch] (GimpTool::button_release): added
      	"release_type" parameter.
      
      	(gimp_tool_button_release): if the state contains
      	GDK_BUTTON3_MASK, call the tool's button_release() with CANCEL,
      	use NORMAL otherwise.
      
      	* app/tools/gimpaligntool.c
      	* app/tools/gimpblendtool.c
      	* app/tools/gimpbrightnesscontrasttool.c
      	* app/tools/gimpbucketfilltool.c
      	* app/tools/gimpcolortool.c
      	* app/tools/gimpcroptool.c
      	* app/tools/gimpcurvestool.c
      	* app/tools/gimpeditselectiontool.c
      	* app/tools/gimpforegroundselecttool.c
      	* app/tools/gimpfreeselecttool.c
      	* app/tools/gimpiscissorstool.c
      	* app/tools/gimpmagnifytool.c
      	* app/tools/gimpmeasuretool.c
      	* app/tools/gimpmovetool.c
      	* app/tools/gimppainttool.c
      	* app/tools/gimprectangleselecttool.c
      	* app/tools/gimprectangletool.[ch]
      	* app/tools/gimpregionselecttool.c
      	* app/tools/gimptransformtool.c
      	* app/tools/gimpvectortool.c (button_release): added
      	"release_type" parameters and get rid of own checks for
      	GDK_BUTTON3_MASK.
      
      
      svn path=/trunk/; revision=22015
      d7ed6394
  17. 20 Jan, 2007 1 commit
    • Raphael Quinet's avatar
      pop the status bar message when the tool is halted. This fixes a bug that · 4292db18
      Raphael Quinet authored
      2007-01-20  Raphael Quinet  <raphael@gimp.org>
      
      	* app/tools/gimppainttool.c (gimp_paint_tool_control): pop the
      	status bar message when the tool is halted.  This fixes a bug that
      	was leaving messages in the status bar if the mouse pointer was in
      	the image and the user switched to another tool with the keyboard.
      
      svn path=/trunk/; revision=21744
      4292db18
  18. 09 Dec, 2006 1 commit
  19. 03 Dec, 2006 1 commit
  20. 28 Sep, 2006 2 commits
    • Michael Natterer's avatar
      added _valist() variants of all printf-style functions. · 10f9181e
      Michael Natterer authored
      2006-09-28  Michael Natterer  <mitch@gimp.org>
      
      	* app/display/gimpstatusbar.[ch]: added _valist() variants
      	of all printf-style functions.
      
      	* app/tools/gimptool.[ch] (gimp_tool_push_status)
      	(gimp_tool_replace_status)
      	(gimp_tool_message): take printf-style ... arguments and use the
      	new valist() variants of the statusbar API to avoid additional
      	strdups. Revert previous commit from Sven, he will add back that
      	feature differently right away :)
      
      	* app/tools/gimpmeasuretool.c
      	* app/tools/gimppainttool.c: use the new printf-style status API
      	where possible.
      
      	* app/tools/gimptransformtool.c: accidentially removed
      	"core/gimp.h", added it back.
      10f9181e
    • Michael Natterer's avatar
      added gimp_tool_message() which uses the new statusbar messages. · e19c0977
      Michael Natterer authored
      2006-09-28  Michael Natterer  <mitch@gimp.org>
      
      	* app/tools/gimptool.[ch]: added gimp_tool_message() which uses
      	the new statusbar messages.
      
      	* app/tools/gimptool.c
      	* app/tools/gimppainttool.c: use it instead of accessing the
      	statusbar directly.
      
      	* app/tools/gimptransformtool.c: use it instead of gimp_message().
      e19c0977
  21. 26 Sep, 2006 1 commit
    • Michael Natterer's avatar
      added GError** parameter to GimpPaintCore::start(). · 1b1299af
      Michael Natterer authored
      2006-09-26  Michael Natterer  <mitch@gimp.org>
      
      	* app/paint/gimppaintcore.[ch]: added GError** parameter to
      	GimpPaintCore::start().
      
      	* app/tools/gimppainttool.c (button_press): display the error in
      	the statusbar.
      
      	* app/paint/gimppaintcore-stroke.c: pass a NULL error, effectively
      	swallowing mssages. Will fix that later.
      
      	* app/paint/gimpbrushcore.c
      	* app/paint/gimpclone.c
      	* app/paint/gimpsourcecore.c: changed accordingly. Set the error
      	instead of calling g_message().
      
      	* app/paint/gimpheal.c
      	* app/paint/gimpperspectiveclone.c: implement start() and bail out
      	early on indexed drawables instead of showing a g_message() in
      	other functions that are called later.
      
      	* app/tools/gimptool.[ch]: added GError** to GimpTool::initialize().
      
      	* app/tools/gimptool.c (gimp_tool_initialize): display the error
      	in the statusbar. Keep the external API GError-free.
      
      	* app/tools/gimprectangletool.[ch]: added GError** to
      	gimp_rectangle_tool_initialize().
      
      	* app/tools/gimpbrightnesscontrasttool.c
      	* app/tools/gimpcolorbalancetool.c
      	* app/tools/gimpcolorizetool.c
      	* app/tools/gimpcroptool.c
      	* app/tools/gimpcurvestool.c
      	* app/tools/gimphuesaturationtool.c
      	* app/tools/gimpimagemaptool.c
      	* app/tools/gimplevelstool.c
      	* app/tools/gimpperspectiveclonetool.c
      	* app/tools/gimpposterizetool.c
      	* app/tools/gimpthresholdtool.c
      	* app/tools/gimptransformtool.c: changed accordingly. Set the
      	errors in initialize() instead of using gimp_message().
      
      	* app/tools/gimpblendtool.c: implement initialize() and bail out
      	early on indexed images instead of showing a gimp_message() in
      	button_press().
      1b1299af
  22. 12 Sep, 2006 3 commits
    • Michael Natterer's avatar
      chain up to activate/halt the tool. · d61e8e49
      Michael Natterer authored
      2006-09-12  Michael Natterer  <mitch@gimp.org>
      
      	* app/tools/gimpcolortool.c (gimp_color_tool_button_press)
      	(gimp_color_tool_button_release): chain up to activate/halt the tool.
      
      	* app/tools/gimppainttool.c (gimp_paint_tool_button_press)
      	(gimp_paint_tool_button_release)
      	(gimp_paint_tool_motion): if the color tool is enabled, chain up
      	early and return. Fixes selection PAUSE/RESUME mismatch that was
      	hiding this display's selection forever when moving sample points.
      d61e8e49
    • Michael Natterer's avatar
      app/display/gimpdisplayshell-callbacks.c · 05cd50c9
      Michael Natterer authored
      2006-09-12  Michael Natterer  <mitch@gimp.org>
      
      	* app/display/gimpdisplayshell-callbacks.c
      	* app/tools/gimpforegroundselecttool.c
      	* app/tools/gimpmovetool.c
      	* app/tools/gimppainttool.c
      	* app/tools/gimprectangletool.c
      	* app/tools/gimpselectiontool.c
      	* app/tools/gimpsourcetool.c
      	* app/tools/gimpvectortool.c: back out change committed on
      	2006-08-21 which passed modifier events to tools even while mouse1
      	was down. This generated way too much unexpected events that would
      	have to be special cased in all tools. Will implement an anternate
      	solution soon.
      05cd50c9
    • Sven Neumann's avatar
      app/tools/gimpclonetool.c app/tools/gimpconvolvetool.c · 7053e3da
      Sven Neumann authored
      2006-09-12  Sven Neumann  <sven@gimp.org>
      
      	* app/tools/gimpclonetool.c
      	* app/tools/gimpconvolvetool.c
      	* app/tools/gimpcroptool.c
      	* app/tools/gimpcurvestool.c
      	* app/tools/gimpdodgeburntool.c
      	* app/tools/gimperasertool.c
      	* app/tools/gimppainttool.c
      	* app/tools/gimpperspectiveclonetool.c
      	* app/tools/gimpregionselecttool.c
      	* app/tools/gimpselectiontool.c
      	* app/tools/gimpsmudgetool.c
      	* app/tools/gimpvectortool.c: removed trailing dot from
      statusbar
      	messages.
      
      	* app/widgets/gimpwidgets-utils.c (gimp_suggest_modifiers):
      don't
      	use "try" if the modifier action has been specified.
      7053e3da
  23. 08 Sep, 2006 1 commit
    • Sven Neumann's avatar
      added function gimp_get_tool_info(). · 2426755b
      Sven Neumann authored
      2006-09-08  Sven Neumann  <sven@gimp.org>
      
      	* app/core/gimp.[ch]: added function gimp_get_tool_info().
      
      	* app/actions/tools-commands.c
      	* app/actions/vectors-commands.c
      	* app/tools/gimppainttool.c
      	* app/widgets/gimpdrawabletreeview.c
      	* app/widgets/gimpselectioneditor.c
      	* app/widgets/gimptoolbox.c: use the new function instead of poking
      	into gimp->tool_info_list.
      
      	* app/display/gimpdisplayshell-callbacks.c
      	* app/display/gimpdisplayshell.[ch]: moved code that deals with
      	the space key into separate functions. Added space_shaded_tool
      	to GimpDisplayShell instead of using a static variable for it.
      
      	* app/tools/tool_manager.c: removed unused include.
      2426755b
  24. 05 Sep, 2006 1 commit
    • Michael Natterer's avatar
      added gimp_tool_get_options() so tools don't need to incude · 6c7f0c68
      Michael Natterer authored
      2006-09-05  Michael Natterer  <mitch@gimp.org>
      
      	* app/tools/gimptool.[ch]: added gimp_tool_get_options() so tools
      	don't need to incude "core/gimptoolinfo.h" just to get to
      	their options.
      
      	* app/tools/gimp*tool.h: added macros GIMP_FOO_TOOL_GET_OPTIONS()
      	which return specific tool options types and do all casting
      	themselves.
      
      	* app/tools/*.c: use the new macros and don't include
      	"core/gimptoolinfo.h" in most files.
      
      	* app/tools/gimpcolorpickertool.c (gimp_color_picker_tool_register):
      	make it use the parent context's FG and BG.
      
      	* app/tools/gimpcolortool.c (gimp_color_tool_real_picked): set the
      	color on the tool's options, not on the user context.
      6c7f0c68
  25. 03 Sep, 2006 1 commit
    • Sven Neumann's avatar
      added construct-only property "undo-desc". Use this when pushing an undo · a44d24cc
      Sven Neumann authored
      2006-09-03  Sven Neumann  <sven@gimp.org>
      
              * app/paint/gimppaintcore.[ch]: added construct-only property
              "undo-desc". Use this when pushing an undo instead of attempting
              an unsuccessful lookup of the GimpPaintInfo object.
      
              * tools/pdbgen/pdb/paint_tools.pdb
              * app/tools/gimppainttool.c: use paint_info->blurb as undo
              description when constructing the paint core.
      
              * app/pdb/paint_tools_cmds.c: regenerated.
      a44d24cc
  26. 21 Aug, 2006 1 commit
    • William Skaggs's avatar
      Bill Skaggs <weskaggs@primate.ucdavis.edu> · d4f21713
      William Skaggs authored
      	* app/display/gimpdisplayshell-callbacks.c: allow modifier key events
      	for Shift and Control to be propagated even if button1 is down.
      
      	* app/tools/gimpclonetool.c
      	* app/tools/gimpcroptool.c
      	* app/tools/gimpforegroundselecttool.c
      	* app/tools/gimpmovetool.c
      	* app/tools/gimppainttool.c
      	* app/tools/gimpvectortool.c: change  modifier_key method
      	to prevent any bad consequences.
      
      	* app/tools/gimprectangletool.[ch]:  add modifier_key handler, and use it
      	to toggle "make-square" if Shift is pressed while button1 is down, and
      	"fixed-center" if Control is pressed while button1 is down.
      
      	* app/tools/gimprectangleselecttool.c (gimp_rectangle_tool_modifier_key):
      	call rectangle tool modifer_key method after chaining up.
      d4f21713
  27. 15 Aug, 2006 1 commit
    • Michael Natterer's avatar
      app/tools/Makefile.am app/tools/tools-types.h new GimpPaintTool subclass · 269ab384
      Michael Natterer authored
      2006-08-15  Michael Natterer  <mitch@gimp.org>
      
      	* app/tools/Makefile.am
      	* app/tools/tools-types.h
      	* app/tools/gimpbrushtool.[ch]: new GimpPaintTool subclass which
      	completely handles brush outline drawing.
      
      	* app/tools/gimppainttool.[ch]: removed all brush stuff here.
      
      	* app/tools/gimpclonetool.[ch]
      	* app/tools/gimpconvolvetool.[ch]
      	* app/tools/gimpdodgeburntool.[ch]
      	* app/tools/gimperasertool.[ch]
      	* app/tools/gimppaintbrushtool.[ch]
      	* app/tools/gimpsmudgetool.[ch]: derive from GimpBrushTool.
      
      	* app/tools/gimpinktool.c: removed now obsolete cursor_update()
      	implementation.
      269ab384
  28. 02 Aug, 2006 1 commit
    • Raphael Quinet's avatar
      Allow some paint tools to not suggest using the Ctrl modifier. · 8960d6ac
      Raphael Quinet authored
      2006-08-02  Raphael Quinet  <raphael@gimp.org>
      
      	* app/tools/gimppainttool.c (gimp_paint_tool_oper_update): Allow
      	some paint tools to not suggest using the Ctrl modifier.
      
      	* app/tools/gimpvectortool.c (gimp_vector_tool_status_update):
      	slightly more elegant way to free the status string.
      8960d6ac
  29. 01 Aug, 2006 1 commit
    • Raphael Quinet's avatar
      app/widgets/gimpwidgets-utils.h New utility function to build status bar · a54a6b16
      Raphael Quinet authored
      2006-08-02  Raphael Quinet  <raphael@gimp.org>
      
      	* app/widgets/gimpwidgets-utils.h
      	* app/widgets/gimpwidgets-utils.c (gimp_suggest_modifiers):
      	New utility function to build status bar messages while allowing
      	dynamic names for the modifiers.
      
      	* app/tools/gimppainttool.h
      	* app/tools/gimppainttool.c: Added new members to the class in
      	order to allow paint tools to set different status messages for
      	the normal case or when drawing a line.
      
      	* app/tools/gimpclonetool.c
      	* app/tools/gimpconvolvetool.c
      	* app/tools/gimpdodgeburntool.c
      	* app/tools/gimperasertool.c
      	* app/tools/gimpsmudgetool.c: Use the new functions to set
      	appropriate messages in the status bar.  Still work in progress,
      	partial fix for bug #124040.
      
      	* app/tools/gimpvectortool.c: Use gimp_suggest_modifiers().
      a54a6b16
  30. 30 Jul, 2006 1 commit
  31. 28 May, 2006 1 commit
    • Michael Natterer's avatar
      removed all code except info dialog updating and chain up instead. · 5af5606a
      Michael Natterer authored
      2006-05-28  Michael Natterer  <mitch@gimp.org>
      
      	* app/tools/gimpcolorpickertool.c (gimp_color_picker_tool_picked):
      	removed all code except info dialog updating and chain up instead.
      
      	* app/tools/gimpcolortool.c (gimp_color_tool_real_picked): newly
      	added default implementation. Also updates the colormap dialog and
      	picks into a palette.
      
      	* app/tools/gimppainttool.c (gimp_paint_tool_color_picked):
      	removed. The default impl. does this and much more now. Hopefully
      	fixes bug #320660.
      5af5606a
  32. 22 May, 2006 1 commit
    • Michael Natterer's avatar
      remove some #if 0'ed cruft. · 4a9a8054
      Michael Natterer authored
      2006-05-22  Michael Natterer  <mitch@gimp.org>
      
      	* app/tools/gimppainttool.c (gimp_paint_tool_control): remove
      	some #if 0'ed cruft.
      4a9a8054
  33. 21 May, 2006 1 commit
    • Michael Natterer's avatar
      prefix with GIMP_TOOL_ACTION_ · b3c20ed2
      Michael Natterer authored
      2006-05-21  Michael Natterer  <mitch@gimp.org>
      
      	* app/tools/tools-enums.h (enum GimpToolAction): prefix with
      	GIMP_TOOL_ACTION_
      
      	* app/display/gimpdisplay.c
      	* app/display/gimpdisplayshell.c
      	* app/tools/gimpaligntool.c
      	* app/tools/gimpcolorpickertool.c
      	* app/tools/gimpcolortool.c
      	* app/tools/gimpcroptool.c
      	* app/tools/gimpdrawtool.c
      	* app/tools/gimpforegroundselecttool.c
      	* app/tools/gimpfreeselecttool.c
      	* app/tools/gimpimagemaptool.c
      	* app/tools/gimpiscissorstool.c
      	* app/tools/gimpmeasuretool.c
      	* app/tools/gimpmovetool.c
      	* app/tools/gimpnewrectselecttool.c
      	* app/tools/gimppainttool.c
      	* app/tools/gimpselectiontool.c
      	* app/tools/gimptexttool.c
      	* app/tools/gimptool.c
      	* app/tools/gimptransformtool.c
      	* app/tools/gimpvectortool.c
      	* app/tools/tool_manager.c: changed accordingly. Introduce a
      	common style for GimpTool::control()'s switch() block. Some
      	minor cleanups.
      b3c20ed2
  34. 15 May, 2006 1 commit
  35. 06 May, 2006 1 commit
  36. 12 Apr, 2006 1 commit