1. 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
  2. 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
  3. 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
  4. 07 May, 2005 2 commits
  5. 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
  6. 10 Feb, 2005 1 commit
  7. 25 Jan, 2005 1 commit
  8. 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
  9. 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
  10. 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
  11. 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
  12. 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
  13. 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
  14. 13 Jul, 2004 1 commit
  15. 02 Jul, 2004 1 commit
  16. 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
  17. 18 Jun, 2004 2 commits
  18. 14 Jun, 2004 6 commits
    • Michael Natterer's avatar
      use gimp_draw_tool_is_active() instead of · 4b9a4db2
      Michael Natterer authored
      2004-06-14  Michael Natterer  <mitch@gimp.org>
      
      	* app/tools/gimptransformtool.c: use gimp_draw_tool_is_active()
      	instead of GIMP_IS_DISPLAY(draw_tool->gdisp).
      4b9a4db2
    • Philip Lafleur's avatar
      Disable preview in corrective mode, and notify preview when switching · 905b0e03
      Philip Lafleur authored
      2004-06-14  Philip Lafleur  <plafleur@cvs.gnome.org>
      
      	* app/tools/gimptransformtool.c: Disable preview in corrective
      	mode, and notify preview when switching transform type and
      	direction.
      905b0e03
    • Philip Lafleur's avatar
      Preview is now only used for layer transformations. · 4ad2d717
      Philip Lafleur authored
      2004-06-14  Philip Lafleur  <plafleur@cvs.gnome.org>
      
      	* app/tools/gimptransformtool.c: Preview is now only used for
      	layer transformations.
      4ad2d717
    • Michael Natterer's avatar
      app/tools/gimpperspectivetool.c app/tools/gimprotatetool.c · 4c68bd87
      Michael Natterer authored
      2004-06-14  Michael Natterer  <mitch@gimp.org>
      
      	* app/tools/gimpperspectivetool.c
      	* app/tools/gimprotatetool.c
      	* app/tools/gimpscaletool.c
      	* app/tools/gimpsheartool.c: removed calls to
      	gimp_transform_tool_expose_preview() from all
      	GimpTransformTool::motion() implementations...
      
      	* app/tools/gimptransformtool.c: ...and call it after calling
      	tr_tool_class->preview().
      4c68bd87
    • Michael Natterer's avatar
      remember the last used GimpCursorFormat so changing the format in prefs · 1082ee6b
      Michael Natterer authored
      2004-06-14  Michael Natterer  <mitch@gimp.org>
      
      	* app/display/gimpdisplayshell.[ch]: remember the last used
      	GimpCursorFormat so changing the format in prefs applies
      	instantly, and not after the next tool change.
      
      	* app/display/gimpdisplayshell-cursor.[ch]
      	* app/tools/gimptool.[ch]
      	* app/tools/gimptoolcontrol.[ch]
      	* app/tools/gimpclonetool.c
      	* app/tools/gimpcolortool.c
      	* app/tools/gimpcroptool.c
      	* app/tools/gimpcurvestool.c
      	* app/tools/gimpiscissorstool.c
      	* app/tools/gimpmeasuretool.c
      	* app/tools/gimpmovetool.c
      	* app/tools/gimptransformtool.c: s/GdkCursorType/GimpCursorType/g
      1082ee6b
    • Philip Lafleur's avatar
      Preview wasn't being turned off before performing a transformation. Also · 71b4d891
      Philip Lafleur authored
      2004-06-14  Philip Lafleur  <plafleur@cvs.gnome.org>
      
      	* app/tools/gimptransformtool.c (gimp_transform_tool_doit): Preview
      	wasn't being turned off before performing a transformation. Also
      	converted tabs to spaces.
      71b4d891
  19. 13 Jun, 2004 1 commit
    • Philip Lafleur's avatar
      Fixed incorrect logic that caused perfect-but-slow pointer tracking to be · afb3f5c1
      Philip Lafleur authored
      2004-06-12  Philip Lafleur  <plafleur@cvs.gnome.org>
      
      	* app/display/gimpdisplayshell-callbacks.c: Fixed incorrect logic that
      	caused perfect-but-slow pointer tracking to be used in tools that
      	don't request exact mode.
      
      	* app/display/Makefile.am:
      	* app/display/gimpdisplayshell-appearance.[ch]:
      	* app/display/gimpdisplayshell-callbacks.c:
      	* app/display/gimpdisplayshell.[ch]:
      	* app/display/gimpdisplayshell-preview.[ch]: added
      	* app/tools/gimpperspectivetool.c:
      	* app/tools/gimprotatetool.c:
      	* app/tools/gimpscaletool.c:
      	* app/tools/gimpsheartool.c:
      	* app/tools/gimptransformoptions.[ch]:
      	* app/tools/gimptransformtool.[ch]: Implemented live transformation
      	previews, available through tool options. Fixes bug #108172.
      afb3f5c1
  20. 12 Jun, 2004 1 commit
  21. 04 Jun, 2004 1 commit
    • Michael Natterer's avatar
      cursors/Makefile.am cursors/cursor-none.png new empty cursor images. · 714d63fc
      Michael Natterer authored
      2004-06-05  Michael Natterer  <mitch@gimp.org>
      
      	* cursors/Makefile.am
      	* cursors/cursor-none.png
      	* cursors/xbm/cursor-none.xbm: new empty cursor images.
      
      	* app/config/gimpdisplayconfig.[ch]
      	* app/config/gimprc-blurbs.h
      	* app/widgets/widgets-enums.h
      	* app/widgets/gimpcursor.c
      	* app/display/gimpdisplayshell-cursor.c
      	* app/tools/gimppainttool.[ch]
      	* app/tools/gimpinktool.c
      	* app/gui/preferences-dialog.c: applied patches from Philip
      	Lafleur which implement hiding the cursor completely for paint
      	tools. Changed the name of the config option from
      	"hide-paint-tool-cursor" to "show-paint-tool-cursor" and default
      	to TRUE because this needs the brush outline being visible while
      	painting to be really usable. Fixes bug #132163.
      
      	* app/widgets/widgets-enums.h: renamed all GimpCursorType and
      	GimpToolCursorType enum values to GIMP_CURSOR_* and
      	GIMP_TOOL_CURSOR_*.
      
      	* app/widgets/gimpcursor.c
      	* app/display/gimpdisplayshell-callbacks.c
      	* app/display/gimpdisplayshell-cursor.c
      	* app/tools/gimp*tool.c; changed accordingly.
      714d63fc
  22. 14 Apr, 2004 1 commit
    • Michael Natterer's avatar
      Get rid of the "current_context" which was in fact just a bunch of global · 18d9161e
      Michael Natterer authored
      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.
      18d9161e
  23. 31 Mar, 2004 1 commit
  24. 19 Mar, 2004 1 commit
    • Michael Natterer's avatar
      app/gui/color-notebook.c (color_notebook_new) app/tools/gimpcroptool.c · fddb9ce0
      Michael Natterer authored
      2004-03-19  Michael Natterer  <mitch@gimp.org>
      
      	* app/gui/color-notebook.c (color_notebook_new)
      	* app/tools/gimpcroptool.c (crop_info_create)
      	* app/tools/gimptransformtool.c (gimp_transform_tool_dialog):
      	explicitely set a default response for dialog buttons which were
      	created using gtk_dialog_add_buttons().
      fddb9ce0
  25. 15 Mar, 2004 3 commits
    • Michael Natterer's avatar
      emit "update" signals from the drawable before and after setting tiles and · 59b77c35
      Michael Natterer authored
      2004-03-15  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpdrawable.c (gimp_drawable_set_tiles_full): emit
      	"update" signals from the drawable before and after setting tiles
      	and offsets.
      
      	* app/core/gimpdrawable-offset.c (gimp_drawable_offset)
      	* app/core/gimpdrawable-transform.c (gimp_drawable_transform_paste)
      	* app/core/gimpimage-undo-push.c (undo_pop_layer_mod, _channel_mod)
      	* app/text/gimptextlayer.c (gimp_text_layer_render)
      	* app/tools/gimptransformtool.c (gimp_transform_tool_doit):
      	removed calls to gimp_drawable_update().
      
      	* app/core/gimpdrawable-offset.c (gimp_drawable_offset): don't
      	push an undo step before calling gimp_drawable_set_tiles()
      	but simply pass push_undo == TRUE and the undo_desc.
      59b77c35
    • Michael Natterer's avatar
      added "offset_x" and "offset_y" parameters to GimpDrawable::set_tiles(). · 1ef5fa93
      Michael Natterer authored
      2004-03-15  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpdrawable.[ch]: added "offset_x" and "offset_y"
      	parameters to GimpDrawable::set_tiles().
      
      	(gimp_drawable_set_tiles): removed the "GimpImageType" parameter.
      
      	(gimp_drawable_set_tiles_full): new function adding type, offset_x
      	and offset_y parameters.
      
      	(gimp_drawable_real_set_tiles): set the drawable's offsets from
      	the offset parameters and its size from the passed TileManager's
      	size. Emit "size_changed" accordingly.
      
      	* app/core/gimpchannel.c
      	* app/core/gimpdrawable-offset.c
      	* app/core/gimpdrawable-transform.c
      	* app/core/gimpimage-convert.c
      	* app/core/gimpimage-undo-push.c
      	* app/core/gimplayer.c
      	* app/text/gimptextlayer.c
      	* app/tools/gimptransformtool.c: changed accordingly: removed
      	calls to gimp_viewable_size_changed() and all sorts of hackish
      	assignments of the drawable's width/height/offset_x/offset_y
      	properties.
      1ef5fa93
    • Michael Natterer's avatar
      don't call gimp_image_flush(). · 79776036
      Michael Natterer authored
      2004-03-15  Michael Natterer  <mitch@gimp.org>
      
      	* app/text/gimptextlayer.c (gimp_text_layer_render): don't call
      	gimp_image_flush().
      
      	* app/tools/gimpxttool.c (gimp_text_tool_apply): call it here
      	instead.
      
      	Now that we have a common place that exchanges drawable->tiles,
      	we can abstract away boundary invalidation for this operation:
      
      	* app/core/gimpdrawable.c (gimp_drawable_real_set_tiles):
      	call gimp_drawable_invalidate_boundary() before setting
      	the new tiles.
      
      	* app/core/gimpchannel.c (gimp_channel_set_tiles)
      	* app/core/gimpdrawable-transform.c (gimp_drawable_transform_paste)
      	* app/core/gimpimage-undo-push.c (undo_pop_layer_mod)
      	* app/core/gimplayer.c (gimp_layer_scale) (gimp_layer_resize)
      	(gimp_layer_flip) (gimp_layer_rotate) (gimp_layer_transform)
      	* app/text/gimptextlayer.c (gimp_text_layer_render): removed
      	calls to gimp_drawable_invalidate_boundary() from all functions
      	which finally call gimp_drawable_real_set_tiles().
      
      	* app/tools/gimptransformtool.c (gimp_transform_tool_doit): no
      	need to set channel->bounds_known to FALSE, because
      	gimp_drawable_set_tiles() already did this.
      79776036
  26. 14 Mar, 2004 1 commit
    • Sven Neumann's avatar
      app/tools/gimpcolorpickertool.c app/tools/gimpcroptool.c · 63bb032f
      Sven Neumann authored
      2004-03-14  Sven Neumann  <sven@gimp.org>
      
      	* app/tools/gimpcolorpickertool.c
      	* app/tools/gimpcroptool.c
      	* app/tools/gimpimagemaptool.c
      	* app/tools/gimpmeasuretool.c
      	* app/tools/gimptransformtool.c: don't set tool dialogs transient
      	to the image window. Fixes bug #128833.
      63bb032f
  27. 13 Mar, 2004 3 commits
    • Michael Natterer's avatar
      Completed the fix for bug #136702: · 2498c665
      Michael Natterer authored
      2004-03-13  Michael Natterer  <mitch@gimp.org>
      
      	Completed the fix for bug #136702:
      
      	* app/core/gimpitem.[ch]: added "gboolean supersample" and
      	"gint recursion_level" to GimpItem::transform().
      
      	* app/core/gimpitem-linked.[ch]	(gimp_item_linked_transform): ditto.
      
      	* app/core/gimpdrawable-transform.[ch]: added "recursion_level"
      	parameters and removed the RECURSION_LEVEL #define.
      
      	* app/core/gimpchannel.c
      	* app/core/gimpdrawable.c
      	* app/core/gimplayer.c
      	* app/vectors/gimpvectors.c: changed accordingly.
      
      	* app/tools/gimptransformoptions.[ch]: added new property
      	"recursion_level" which is not serializable and has no GUI. Pretty
      	useless, but it's IMHO better to hardcode the default value here
      	than in gimpdrawable-transform.c
      
      	* app/tools/gimptransformtool.c: changed accordingly.
      
      	* tools/pdbgen/pdb/transform_tools.pdb: hardcode "recursion_level"
      	to 3.
      
      	* app/pdb/transform_tools_cmds.c: regenerated.
      2498c665
    • Sven Neumann's avatar
      added new virtual function GimpDrawable::set_tiles(). · c179f9ac
      Sven Neumann authored
      2004-03-13  Sven Neumann  <sven@gimp.org>
      
      	* app/core/gimpdrawable.[ch]: added new virtual function
      	GimpDrawable::set_tiles().
      
      	* app/core/gimpchannel.c
      	* app/core/gimplayer.c: push an undo before chaining up in
      	set_tiles().
      
      	* app/core/gimpdrawable-transform.c
      	* app/core/gimpimage-convert.c
      	* app/tools/gimptransformtool.c: use gimp_drawable_set_tiles()
      	instead of fiddling with the drawable's tile manager directly.
      c179f9ac
    • Raphael Quinet's avatar
      added new "supersample" property to GimpTransformOptions and added · 59dfdac9
      Raphael Quinet authored
      2004-03-13  Raphael Quinet  <quinet@gamers.org>
      
      	* app/tools/gimptransformoptions.[ch]: added new "supersample"
      	property to GimpTransformOptions and added corresponding check
      	button in the option dialog for the transform tools.
      
      	* app/core/gimpdrawable-transform.[ch],
      	* app/core/gimpdrawable.c,
      	* app/tools/gimptransformtool.c: new "gboolean supersample"
      	parameter added to gimp_drawable_transform_tiles_affine() and
      	gimp_drawable_transform_affine().
      
      	* tools/pdbgen/pdb/transform_tools.pdb: ditto.  For the PDB calls,
      	the supersample parameter is set to FALSE for "rotate" and "shear"
      	and set to TRUE for "perspective", "scale" and "transform_2d".
      
      	* app/pdb/transform_tools_cmds.c: regenerated.
      
      	The new "supersample" option lets the user decide if the
      	transformations should use supersampling (RECURSION_LEVEL 3) or
      	not.  This fixes both bug #136702 and bug #109817.  Hopefully for
      	good, this time.
      59dfdac9
  28. 10 Mar, 2004 1 commit
  29. 21 Jan, 2004 1 commit
    • Michael Natterer's avatar
      added boolean return value to GimpTool::initialize(). Returning FALSE · 613e328f
      Michael Natterer authored
      2004-01-21  Michael Natterer  <mitch@gimp.org>
      
      	* app/tools/gimptool.[ch]: added boolean return value to
      	GimpTool::initialize(). Returning FALSE means the tool could not
      	be initialized and doesn't want to receive button events.
      	Return TRUE from the default implementation.
      
      	* app/tools/tool_manager.[ch]: added boolean return value to
      	tool_manager_initialize_active(). Don't set the tool's display or
      	drawable if initialize() returns FALSE.
      
      	* app/display/gimpdisplayshell-callbacks.c: don't send button
      	events to the tool if initialize() returns FALSE.
      
      	* app/tools/gimpbrightnesscontrasttool.c
      	* app/tools/gimpcolorbalancetool.c
      	* app/tools/gimpcolorizetool.c
      	* app/tools/gimpcurvestool.c
      	* app/tools/gimphuesaturationtool.c
      	* app/tools/gimplevelstool.c
      	* app/tools/gimpposterizetool.c
      	* app/tools/gimpthresholdtool.c: return FALSE for NULL and indexed
      	drawables.
      
      	* app/tools/gimpimagemaptool.c: always return TRUE because our
      	subclasses already checked if the active drawable is OK.
      
      	* app/tools/gimptransformtool.c: return FALSE for layers with
      	masks. Fixes bug #132089. Some random cleanups.
      613e328f