1. 27 Jun, 2006 2 commits
    • Sven Neumann's avatar
      Applied patch from Zbigniew Chyla (bug 345982): · 92821802
      Sven Neumann authored
      2006-06-27  Sven Neumann  <sven@gimp.org>
      
      	Applied patch from Zbigniew Chyla (bug 345982):
      
      	* app/tools/gimptransformtool.[ch]: added undo_desc field for
      	storing undo string and use that, not tool_info->blurb.
      
      	* app/tools/gimpfliptool.c
      	* app/tools/gimpperspectivetool.c
      	* app/tools/gimprotatetool.c
      	* app/tools/gimpscaletool.c
      	* app/tools/gimpsheartool.c: set undo_desc.
      92821802
    • Sven Neumann's avatar
      do not call bounds() and recalc() with a NULL display. Added sanity checks · 9c445e8d
      Sven Neumann authored
      2006-06-27  Sven Neumann  <sven@gimp.org>
      
      	* app/tools/gimptransformtool.c
      (gimp_transform_tool_notify_type):
      	do not call bounds() and recalc() with a NULL display.  Added
      	sanity checks for the display parameter to both functions.
      	Fixes bug #345791.
      9c445e8d
  2. 22 Jun, 2006 1 commit
    • Michael Natterer's avatar
      always upchain. · de603f4f
      Michael Natterer authored
      2006-06-22  Michael Natterer  <mitch@gimp.org>
      
      	* app/tools/gimptransformtool.c: (gimp_transform_tool_control):
      	always upchain.
      
      	(gimp_transform_tool_cursor_update): use the small crosshair
      	instead of GIMP_CURSOR_MOUSE as default cursor to avoid hotspot
      	jumping.
      
      	(gimp_transform_tool_doit): call prepare() after bounds().
      de603f4f
  3. 20 Jun, 2006 1 commit
    • Sven Neumann's avatar
      added TRANSFORM_HANDLE_NONE (will get rid of TRANSFORM_CREATING later). · 7caa9093
      Sven Neumann authored
      2006-06-20  Sven Neumann  <sven@gimp.org>
      
      	* app/tools/tools-enums.h: added TRANSFORM_HANDLE_NONE (will
      	get rid of TRANSFORM_CREATING later).
      
      	* app/tools/gimptransformtool.[ch]: added member "use_handles" and
      	default to FALSE for all "use_foo" variables.  Only deal with the
      	handles the specific transform tool asks for.  Set cursors
      	according to the active handle.
      
      	* app/tools/gimpfliptool.c
      	* app/tools/gimpperspectivetool.c
      	* app/tools/gimprotatetool.c
      	* app/tools/gimpscaletool.c
      	* app/tools/gimpsheartool.c: changed accordingly.
      7caa9093
  4. 19 Jun, 2006 1 commit
    • Sven Neumann's avatar
      cleanup. · 5f7e1ac3
      Sven Neumann authored
      2006-06-19  Sven Neumann  <sven@gimp.org>
      
      	* app/tools/gimpscaletool.c (gimp_scale_tool_motion): cleanup.
      
      	* app/tools/gimptransformtool.c
      (gimp_transform_tool_cursor_update):
      	simplified; removed checks that didn't change the cursor anyway.
      5f7e1ac3
  5. 18 Jun, 2006 1 commit
    • Sven Neumann's avatar
      renamed TransformAction enum values to something more descriptive. · df731062
      Sven Neumann authored
      
      2006-06-18  Sven Neumann  <sven@gimp.org>
      
      	* app/tools/tools-enums.h: renamed TransformAction enum values
      to
      	something more descriptive.
      
      	* app/tools/gimpperspectivetool.c
      	* app/tools/gimpscaletool.c
      	* app/tools/gimpsheartool.c
      	* app/tools/gimptransformtool.c: changed accordingly.
      df731062
  6. 03 Jun, 2006 1 commit
    • Michael Natterer's avatar
      renamed gimp_image_coords_in_active_drawable() to · e2862590
      Michael Natterer authored
      2006-06-03  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpimage.[ch]: renamed
      	gimp_image_coords_in_active_drawable() to
      	gimp_image_coords_in_active_pickable() and added boolean
      	"sample_merged" and "selected_only" parameters. Use floor()
      	instead of ROUND(), we want to round to the actual pixel, not to
      	the nearest pixel boundary.
      
      	* app/tools/gimpbucketfilltool.c
      	* app/tools/gimpclonetool.c
      	* app/tools/gimpcolortool.c
      	* app/tools/gimpfliptool.c
      	* app/tools/gimptransformtool.c: changed accordingly. Removed
      	quite some duplicated code which checked sample_merged and the
      	mask value at the cursor location.
      
      	* app/tools/gimpbycolorselecttool.c: use the hand tool cursor,
      	there's also a hand in the toolbox icon. Fixed cursor_update()
      	function to set the bad modifier when there is no pickable pixel
      	at the cursor loction.
      
      	* app/tools/gimpfuzzyselecttool.c: added cursor_update()
      	implementation which does the same as by_color_select's one.
      
      	* app/tools/gimpselectiontool.c
      	(gimp_selection_tool_cursor_update): don't override the bad
      	modifier which was set by a subclass' cursor_update().
      e2862590
  7. 01 Jun, 2006 1 commit
    • Michael Natterer's avatar
      cursors/Makefile.am cursors/modifier-bad.png · 3f7b1182
      Michael Natterer authored
      2006-06-01  Michael Natterer  <mitch@gimp.org>
      
      	* cursors/Makefile.am
      	* cursors/modifier-bad.png
      	* cursors/xbm/modifier-bad-mask.xbm
      	* cursors/xbm/modifier-bad.xbm: new "bad" cursor
      	modifier. Replaces the "bad" cursor.
      
      	* cursors/gimp-tool-cursors.xcf: added it here too.
      
      	* app/widgets/widgets-enums.h: added GIMP_CURSOR_MODIFIER_BAD.
      
      	* app/widgets/gimpcursor.c: add the bad modifier. Leave the bad
      	cursor there for now.
      
      	* app/display/gimpdisplayshell-callbacks.c
      	* app/tools/gimpaligntool.c
      	* app/tools/gimpblendtool.c
      	* app/tools/gimpbycolorselecttool.c
      	* app/tools/gimpclonetool.c
      	* app/tools/gimpcolortool.c
      	* app/tools/gimpfliptool.c
      	* app/tools/gimpiscissorstool.c
      	* app/tools/gimpmovetool.c
      	* app/tools/gimptransformtool.c
      	* app/tools/gimpvectortool.c: use the modifier instead of the
      	cursor. Fixes hotspot jumping when switching between normal and
      	bad cursors. The changed cursor_update() functions even make more
      	sense IMHO. Fixes bug #158407.
      3f7b1182
  8. 23 May, 2006 1 commit
    • Michael Natterer's avatar
      don't call the virtual function if there is no dialog. · 5b4660a3
      Michael Natterer authored
      2006-05-23  Michael Natterer  <mitch@gimp.org>
      
      	* app/tools/gimptransformtool.c (gimp_transform_tool_dialog_update):
      	don't call the virtual function if there is no dialog.
      
      	(gimp_transform_tool_recalc): show the dialog here after updating it.
      
      	* app/tools/gimpperspectivetool.c
      	* app/tools/gimprotatetool.c
      	* app/tools/gimpscaletool.c
      	* app/tools/gimpsheartool.c (dialog_update): don't show it here.
      5b4660a3
  9. 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
  10. 19 May, 2006 1 commit
    • Sven Neumann's avatar
      removed one of the two constrain properties. · fec7ca95
      Sven Neumann authored
      2006-05-19  Sven Neumann  <sven@gimp.org>
      
      	* app/tools/gimptransformoptions.[ch]: removed one of the two
      	constrain properties.
      
      	* app/tools/gimprotatetool.c
      	* app/tools/gimptransformtool.c: changed accordingly.
      
      	* app/tools/gimpscaletool.c: sync "constrain" with the size-box's
      	"keep-aspect" property.
      fec7ca95
  11. 15 May, 2006 1 commit
  12. 31 Mar, 2006 1 commit
    • Sven Neumann's avatar
      app/dialogs/Makefile.am app/dialogs/dialogs-types.h app/dialogs/dialogs.c · 9996bb7a
      Sven Neumann authored
      2006-03-31  Sven Neumann  <sven@gimp.org>
      
      	* app/dialogs/Makefile.am
      	* app/dialogs/dialogs-types.h
      	* app/dialogs/dialogs.c
      	* app/dialogs/info-dialog.[ch]: good bye InfoDialog.
      
      	* app/tools/gimpperspectivetool.[ch]
      	* app/tools/gimprotatetool.[ch]
      	* app/tools/gimpsheartool.[ch]
      	* app/tools/gimptransformtool.[ch]: use GimpToolDialog instead of
      	InfoDialog and add the widgets manually.
      
      	* app/tools/gimpscaletool.c: commented out use of InfoDialog. This
      	tools still needs to be ported to GimpToolDialog.
      9996bb7a
  13. 28 Mar, 2006 2 commits
  14. 25 Mar, 2006 1 commit
    • Michael Natterer's avatar
      app/tools/gimptool.[ch] add "gboolean proximity" parameter to · 2ed407b5
      Michael Natterer authored
      2006-03-25  Michael Natterer  <mitch@gimp.org>
      
      	* app/tools/gimptool.[ch]
      	* app/tools/tool_manager.[ch]: add "gboolean proximity" parameter
      	to GimpTool::oper_update() in order to emphasize its importance
      	and to avoid peeking around in the GimpDisplayShell struct.
      
      	* app/tools/gimpbycolorselecttool.c
      	* app/tools/gimpclonetool.c
      	* app/tools/gimpcolorpickertool.c
      	* app/tools/gimpcolortool.c
      	* app/tools/gimpcurvestool.c
      	* app/tools/gimpforegroundselecttool.c
      	* app/tools/gimpiscissorstool.c
      	* app/tools/gimpmovetool.c
      	* app/tools/gimpnewrectselecttool.c
      	* app/tools/gimppainttool.c
      	* app/tools/gimprectangletool.[ch]
      	* app/tools/gimpselectiontool.c
      	* app/tools/gimptransformtool.c
      	* app/tools/gimpvectortool.c: changed accordingly. Got rid of
      	quite some "display/gimpdisplayshell.h" includes.
      
      	* app/display/gimpdisplayshell-callbacks.c
      	(gimp_display_shell_canvas_tool_events): pass shell->proximity to
      	tool_manager_oper_update_active().
      2ed407b5
  15. 07 Jan, 2006 1 commit
    • Michael Natterer's avatar
      implement GtkWidget::hide() and set the the focus widget to NULL, so a · 55cc4233
      Michael Natterer authored
      2006-01-07  Michael Natterer  <mitch@gimp.org>
      
      	* libgimpwidgets/gimpdialog.c: implement GtkWidget::hide() and set
      	the the focus widget to NULL, so a focussed entry emits focus_out
      	and its callbacks are invoked immediately (before the call to
      	gtk_widget_hide() returns). Fixes crashes and warnings in tool
      	dialogs when hitting escape while a spinbutton is being edited.
      
      	* app/tools/gimptransformtool.c
      	(gimp_transform_tool_force_expose_preview): return silently
      	instead of warning when being called while the draw tool is not
      	active (same scenario as above).
      55cc4233
  16. 13 Dec, 2005 1 commit
  17. 19 Nov, 2005 1 commit
    • Michael Natterer's avatar
      app/tools/gimpaligntool.c app/tools/gimpcolortool.c · 68cecb38
      Michael Natterer authored
      2005-11-19  Michael Natterer  <mitch@gimp.org>
      
      	* app/tools/gimpaligntool.c
      	* app/tools/gimpcolortool.c
      	* app/tools/gimpfliptool.c
      	* app/tools/gimpmagnifytool.c
      	* app/tools/gimpmovetool.c
      	* app/tools/gimptransformtool.c
      	* app/tools/gimpvectortool.c: started to get rid of all stock GDK
      	cursors in preparation of fixing bug #158407.
      68cecb38
  18. 30 Sep, 2005 1 commit
    • Michael Natterer's avatar
      app/actions/image-commands.c app/actions/layers-commands.c · e7e2296f
      Michael Natterer authored
      2005-09-30  Michael Natterer  <mitch@gimp.org>
      
      	* app/actions/image-commands.c
      	* app/actions/layers-commands.c
      	* app/actions/view-actions.c
      	* app/core/gimpdrawable-foreground-extract.c
      	* app/core/gimpimagefile.c
      	* app/core/gimpprogress.c
      	* app/dialogs/convert-dialog.c
      	* app/tools/gimpblendtool.c
      	* app/tools/gimpperspectivetool.c
      	* app/tools/gimprotatetool.c
      	* app/tools/gimpscaletool.c
      	* app/tools/gimpsheartool.c
      	* app/tools/gimptransformtool.c
      	* app/widgets/gimpthumbbox.c
      	* tools/pdbgen/pdb/drawable_transform.pdb
      	* tools/pdbgen/pdb/edit.pdb
      	* tools/pdbgen/pdb/transform_tools.pdb: removed '...' from
      	progress messages. Removed spaces between the text and the '...'
      	in some other places.
      
      	* app/pdb/drawable_transform_cmds.c
      	* app/pdb/edit_cmds.c
      	* app/pdb/transform_tools_cmds.c: regenerated.
      e7e2296f
  19. 11 Jul, 2005 1 commit
    • Michael Natterer's avatar
      added GimpPickable::get_opacity_at() · d64bf356
      Michael Natterer authored
      2005-07-11  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimppickable.[ch]: added GimpPickable::get_opacity_at()
      
      	* app/core/gimpchannel.[ch]: removed gimp_channel_value() and
      	implement ::get_opacity_at() instead.
      
      	* app/core/gimplayer.[ch]: removed gimp_layer_pick_correlate()
      	and implement ::get_opacity_at() instead.
      
      	* app/core/gimpselection.c: GimpChannel::value() doesn't exist
      	any more.
      
      	* app/core/gimpprojection.c: implement ::get_opacity_at(), always
      	returns OPAQUE.
      
      	* app/core/gimpimage.c
      	* app/tools/gimpbucketfilltool.c
      	* app/tools/gimpclonetool.c
      	* app/tools/gimpfliptool.c
      	* app/tools/gimpiscissorstool.c
      	* app/tools/gimpnewrectselecttool.c
      	* app/tools/gimprectangletool.c
      	* app/tools/gimpselectiontool.c
      	* app/tools/gimptransformtool.c
      	* tools/pdbgen/pdb/selection.pdb: changed accordingly.
      
      	* app/pdb/selection_cmds.c: regenerated.
      d64bf356
  20. 07 May, 2005 2 commits
  21. 21 Mar, 2005 1 commit
    • William Skaggs's avatar
      Bill Skaggs <weskaggs@primate.ucdavis.edu> · 1cc9701b
      William Skaggs authored
      	* app/tools/gimptransformtool.c
      	* app/tools/gimpfliptool.c
      	* app/core/gimpdrawabletransform.c: avoid messages and critical
      	error when transforming a drawable that does not intersect
      	the selection.
      1cc9701b
  22. 10 Feb, 2005 1 commit
  23. 25 Jan, 2005 1 commit
  24. 06 Dec, 2004 1 commit
    • Michael Natterer's avatar
      applied patch from Sven Neumann which removes code that prevents layers · 13a32c91
      Michael Natterer authored
      2004-12-06  Michael Natterer  <mitch@gimp.org>
      
      	* app/tools/gimptransformtool.c: applied patch from Sven Neumann
      	which removes code that prevents layers with mask from being
      	transformed.
      
      	* app/tools/gimptransformtool.[ch]: added "gboolean mask_empty"
      	parameter to GimpTransformTool::transform(). Needed because the
      	selection gets cleared by cutting from the drawable and we need
      	the selection's state before that cutting.
      
      	(gimp_transform_tool_doit): pass "mask_empty" to
      	GimpTransformTool::transform():
      
      	* app/tools/gimptransformtool.c (gimp_transform_tool_real_transform)
      	* app/tools/gimpfliptool.c (gimp_flip_tool_transform): when
      	transforming a layer with mask and there is no selection,
      	transform the mask just as if it was a linked item.
      	Fixes bug #143837 and bug #159697.
      13a32c91
  25. 01 Oct, 2004 1 commit
    • Michael Natterer's avatar
      dispatch GDK_Escape to GimpTool::key_press(). · dbd941c9
      Michael Natterer authored
      2004-10-01  Michael Natterer  <mitch@gimp.org>
      
      	* app/display/gimpdisplayshell-callbacks.c
      	(gimp_display_shell_tool_events): dispatch GDK_Escape to
      	GimpTool::key_press().
      
      	* app/tools/gimpcroptool.c (gimp_crop_tool_key_press)
      	* app/tools/gimpimagemaptool.c (gimp_image_map_tool_key_press):
      	* app/tools/gimptransformtool.c (gimp_transform_tool_key_press):
      	cancel the tool on <Escape>.
      dbd941c9
  26. 13 Sep, 2004 1 commit
    • Michael Natterer's avatar
      configure.in added new directory app/dialogs and link libappdialogs.c into · 7d065360
      Michael Natterer authored
      2004-09-13  Michael Natterer  <mitch@gimp.org>
      
      	* configure.in
      	* app/Makefile.am: added new directory app/dialogs and link
      	libappdialogs.c into the gimp binary.
      
      	* app/gui/Makefile.am
      	* app/gui/gui-types.h
      	* app/gui/gui-vtable.c
      	* app/gui/gui.c
      
      	* app/gui/about-dialog.[ch]
      	* app/gui/authors.h
      	* app/gui/color-notebook.[ch]
      	* app/gui/convert-dialog.[ch]
      	* app/gui/dialogs-constructors.[ch]
      	* app/gui/dialogs.[ch]
      	* app/gui/file-dialog-utils.[ch]
      	* app/gui/file-new-dialog.[ch]
      	* app/gui/file-open-dialog.[ch]
      	* app/gui/file-open-location-dialog.[ch]
      	* app/gui/file-save-dialog.[ch]
      	* app/gui/grid-dialog.[ch]
      	* app/gui/info-dialog.[ch]
      	* app/gui/info-window.[ch]
      	* app/gui/module-browser.[ch]
      	* app/gui/offset-dialog.[ch]
      	* app/gui/palette-import-dialog.[ch]
      	* app/gui/preferences-dialog.[ch]
      	* app/gui/quit-dialog.[ch]
      	* app/gui/resize-dialog.[ch]
      	* app/gui/resolution-calibrate-dialog.[ch]
      	* app/gui/stroke-dialog.[ch]
      	* app/gui/tips-dialog.[ch]
      	* app/gui/tips-parser.[ch]
      	* app/gui/user-install-dialog.[ch]: removed these files...
      
      	* app/dialogs/Makefile.am
      	* app/dialogs/dialogs-types.h
      
      	* app/dialogs/*.[ch]: ...and added them here. Changed some
      	filenames like module-browser -> module-dialog.
      
      	* app/app_procs.c
      	* app/actions/actions-types.h
      	* app/actions/actions.c
      	* app/actions/dialogs-actions.c
      	* app/actions/dialogs-commands.c
      	* app/actions/dockable-commands.c
      	* app/actions/drawable-commands.c
      	* app/actions/edit-commands.c
      	* app/actions/file-commands.c
      	* app/actions/gradient-editor-commands.c
      	* app/actions/image-commands.c
      	* app/actions/layers-commands.c
      	* app/actions/palettes-commands.c
      	* app/actions/select-commands.c
      	* app/actions/templates-commands.c
      	* app/actions/templates-commands.h
      	* app/actions/vectors-commands.c
      	* app/actions/view-commands.c
      	* app/display/gimpdisplayshell-cursor.c
      	* app/display/gimpdisplayshell-title.c
      	* app/display/gimpdisplayshell.[ch]
      	* app/tools/gimpcroptool.c
      	* app/tools/gimpperspectivetool.c
      	* app/tools/gimprotatetool.c
      	* app/tools/gimpscaletool.c
      	* app/tools/gimpsheartool.c
      	* app/tools/gimptransformtool.[ch]
      	* app/tools/gimpvectortool.c
      	* app/widgets/gimpcolormapeditor.[ch]
      	* app/widgets/gimpcolorpanel.c
      	* app/widgets/gimpgradienteditor.[ch]
      	* app/widgets/gimppaletteeditor.[ch]
      	* app/widgets/gimptoolbox-color-area.c
      	* menus/toolbox-menu.xml.in
      	* tools/authorsgen/authorsgen.pl: changed accordingly.
      7d065360
  27. 10 Aug, 2004 1 commit
    • Michael Natterer's avatar
      Redid the whole internal progress stuff: don't pass around · 02d2b990
      Michael Natterer authored
      2004-08-10  Michael Natterer  <mitch@gimp.org>
      
      	Redid the whole internal progress stuff: don't pass around
      	progress_callback and progress_data; instead, provide a
      	pointer to a GimpProgressInterface which can be implemented
      	by a variety of backends.
      
      	Addresses (but not yet fixes) bugs #6010, #97266 and #135185.
      
      	* app/display/Makefile.am
      	* app/display/gimpprogress.[ch]: removed the old progress hack.
      
      	* app/core/Makefile.am
      	* app/core/core-types.h
      	* app/core/gimpprogress.[ch]: implement GimpProgressInterface.
      
      	* app/widgets/Makefile.am
      	* app/widgets/widgets-types.h
      	* app/widgets/gimpprogressdialog.[ch]: the standalone progress
      	dialog as widget implementing GimpProgressInterface.
      
      	* app/display/gimpdisplay.c
      	* app/display/gimpstatusbar.[ch]
      	* app/widgets/gimpfiledialog.[ch]
      	* app/widgets/gimpthumbbox.[ch]: added GimpProgressInterface
      	implementation to these classes.
      
      	* app/core/gimp-gui.[ch]
      	* app/gui/gui-vtable.c: replaced the old progress vtable entries
      	by two new to create and destroy a GimpProgressDialog in case
      	no other progress is available.
      
      	* app/pdb/procedural_db.[ch]
      	* app/plug-in/plug-in-run.[ch]
      	* tools/pdbgen/app.pl: pass a GimpProgress to all PDB wrappers and
      	all plug-ins.
      
      	* app/plug-in/plug-in.[ch]
      	* app/plug-in/plug-ins.c
      	* app/plug-in/plug-in-message.c
      	* app/plug-in/plug-in-progress.c: handle the case there the
      	plug-in was crated with a progress as well as the case where it
      	wasn't.
      
      	* app/app_procs.c
      	* app/batch.c
      	* app/xcf/xcf.c
      	* app/file/file-open.[ch]
      	* app/file/file-save.[ch]
      	* app/widgets/gimphelp.c
      	* app/widgets/gimpbrushselect.c
      	* app/widgets/gimpfontselect.c
      	* app/widgets/gimpgradientselect.c
      	* app/widgets/gimppaletteselect.c
      	* app/widgets/gimppatternselect.c: changed accordingly.
      
      	* app/core/gimpimagefile.[ch]
      	* app/display/gimpdisplayshell-dnd.c
      	* app/gui/file-open-dialog.c
      	* app/gui/file-open-location-dialog.c
      	* app/gui/file-save-dialog.c
      	* app/widgets/gimplayertreeview.c
      	* app/widgets/gimptoolbox-dnd.c: pass a GimpProgress to all file
      	related functions. Embed the progress in the file dialog where
      	possible.
      
      	* app/core/gimpdrawable-blend.[ch]
      	* app/core/gimpdrawable-transform.[ch]
      	* app/core/gimpimage-convert.[ch]
      	* app/core/gimpimage-flip.[ch]
      	* app/core/gimpimage-resize.[ch]
      	* app/core/gimpimage-rotate.[ch]
      	* app/core/gimpimage-scale.[ch]
      	* app/core/gimpitem-linked.[ch]
      	* app/core/gimpitem.[ch]
      	* app/core/gimpchannel.c
      	* app/core/gimpdrawable.c
      	* app/core/gimplayer.c
      	* app/core/gimpselection.c
      	* app/vectors/gimpvectors.c: replaced callback/data by GimpProgress.
      
      	* app/tools/gimpblendtool.c
      	* app/tools/gimptransformtool.c
      	* app/gui/convert-dialog.c
      	* app/actions/documents-commands.c
      	* app/actions/file-commands.c
      	* app/actions/image-commands.c
      	* app/actions/layers-commands.c
      	* app/actions/plug-in-commands.c
      	* app/actions/vectors-commands.c
      	* tools/pdbgen/pdb/convert.pdb
      	* tools/pdbgen/pdb/edit.pdb
      	* tools/pdbgen/pdb/image.pdb
      	* tools/pdbgen/pdb/layer.pdb: changed callers accordingly.
      
      	* app/pdb/*_cmds.c: regenerated.
      02d2b990
  28. 06 Aug, 2004 1 commit
    • Michael Natterer's avatar
      Transform tool cleanup: · db821565
      Michael Natterer authored
      2004-08-06  Michael Natterer  <mitch@gimp.org>
      
      	Transform tool cleanup:
      
      	* app/tools/gimptransformtool.[ch]: added new virtual function
      	GimpTransformTool::dialog_update().
      	Made wrapper for ::recalc() public and function
      	transform_bounding_box() private.
      	Call ::dialog_update() and transform_bounding_box() from the
      	::recalc() wrapper.
      
      	* app/tools/gimpperspectivetool.[ch]
      	* app/tools/gimprotatetool.[ch]
      	* app/tools/gimpscaletool.[ch]
      	* app/tools/gimpsheartool.[ch]: turned all info_dialog update
      	functions into GimpTransformTool::dialog_update() implementations
      	and don't call them from ::recalc(), also removed calls to
      	transform_bounding_box(); both functions are called by the parent
      	class now. Call gimp_transform_tool_recalc() when dialog values
      	were changed, not the tool's internal function.
      	Moved all static variables to the instance structs.
      db821565
  29. 29 Jul, 2004 1 commit
    • Michael Natterer's avatar
      Replaced the concept of having a boolean indicating if an undo step · 4b582b48
      Michael Natterer authored
      2004-07-29  Michael Natterer  <mitch@gimp.org>
      
      	Replaced the concept of having a boolean indicating if an undo
      	step dirties the image by a bitfield indicating which parts
      	of the image are dirtied:
      
      	* app/core/core-enums.[ch]: reordered two values in enum
      	GimpUndoType, added GIMP_DIRTY_IMAGE_SIZE to enum GimpDirtyMask.
      
      	The values of GimpDirtyMask are still questionable and will
      	probably change...
      
      	* app/core/gimpimage.[ch]: removed signal "undo_start" and added
      	a GimpDirtyMask parameter to the "dirty" and "clean" signals.
      
      	* app/core/gimpimage-undo.[ch] (gimp_image_undo_push): replaced
      	"gboolean dirties_image" by "GimpDirtyMask dirty_mask" and pass
      	it to gimp_image_dirty().
      
      	(gimp_image_undo_group_start): added *ugly* code which tries to
      	figure GimpDirtyMask from the group's GimpUndoType and store it in
      	the GimpUndoGroup. Call gimp_image_dirty() instead of the removed
      	gimp_image_undo_start(). This means the undo group now dirties the
      	image just like one of its undo steps, but that's no problem since
      	undoing cleans it in the same way.
      
      	* app/core/gimpundo.[ch]: s/dirties_image/dirty_mask/g
      
      	(gimp_undo_pop): emit clean/dirty signals *before* performing the
      	actual undo step so listeners can detach from the image before it
      	is changed by undo.
      
      	* app/core/gimpimage-undo-push.c (gimp_image_undo_push_*): pass a
      	GimpDirtyMask instead of TRUE/FALSE to gimp_image_undo_push().
      
      	* app/core/gimpimagemap.[ch]: removed "gboolean interactive"
      	because it makes no sense to use GimpImageMap noninteractively.
      	Don't freeze()/thaw() undo while the image_map is active which
      	fixes many ways of trashing the image's undo state but probably
      	introduces new ways of doing evil things.
      
      	* app/display/gimpdisplay-foreach.c
      	* app/display/gimpdisplayshell-handlers.c: changed according
      	to the GimpImage::clean()/dirty() signal changes. Small fixes
      	in the quit dialog's dirty image container.
      
      	* app/tools/gimptoolcontrol.[ch]: added member and API to
      	set/get the dirty_mask.
      
      	* app/tools/gimpcroptool.c
      	* app/tools/gimpimagemaptool.c
      	* app/tools/gimpiscissorstool.c
      	* app/tools/gimptexttool.c
      	* app/tools/gimptransformtool.c: whenever setting "preserve" to
      	FALSE, also set a "dirty_mask" which specifies on which image
      	changes the tool wants to be canceled.
      
      	* app/tools/tool_manager.c: removed "undo_start" connection and
      	connect to both "dirty" *and* "clean" to check if the active_tool
      	needs to be canceled. Cancel the tool only if the dirty_mask
      	passed in the signal has common bits with the tool's dirty_mask.
      
      	Fixes bug #109561 and probably opens some new ones...
      4b582b48
  30. 13 Jul, 2004 1 commit
  31. 02 Jul, 2004 1 commit
  32. 24 Jun, 2004 1 commit
    • Michael Natterer's avatar
      app/tools/gimptool.[ch] added boolean return value to · 02b91f66
      Michael Natterer authored
      2004-06-24  Michael Natterer  <mitch@gimp.org>
      
      	* app/tools/gimptool.[ch]
      	* app/tools/tool_manager.[ch]: added boolean return value to
      	GimpTool::key_press() which indicates if the event was handled.
      
      	* app/tools/gimpcroptool.c
      	* app/tools/gimpeditselectiontool.[ch]
      	* app/tools/gimptransformtool.c
      	* app/tools/gimpvectortool.c: return TRUE if the key event was handled.
      
      	* app/tools/gimppainttool.c: removed key_press() implementation.
      
      	* app/widgets/Makefile.am
      	* app/widgets/widgets-types.h
      	* app/widgets/gimpcontrollerkeyboard.[ch]: new controller class
      	which takes GdkEventKey and emits controller events for all
      	combinations of modifiers and cursor keys.
      
      	* app/widgets/gimpcontrollers.[ch]: added new function
      	gimp_controllers_get_keyboard().
      
      	* app/display/gimpdisplayshell-callbacks.c: if a key event was not
      	handled by the active tool, dispatch it to the keyboard controller.
      
      	* etc/controllerrc: add a keyboard controller which is configured
      	to do the same as the removed gimp_paint_tool_key_press().
      02b91f66
  33. 18 Jun, 2004 2 commits
  34. 14 Jun, 2004 3 commits