1. 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
  2. 27 Jun, 2006 1 commit
  3. 09 Jun, 2006 1 commit
    • William Skaggs's avatar
      Bill Skaggs <weskaggs@primate.ucdavis.edu> · e732c769
      William Skaggs authored
      	* app/core/core-enums.[ch]: add GimpAlignReferenceType enum
      
      	* app/core/gimpimage-arrange.c: support using a channel as
      	reference for alignment.
      
      	* app/tools/gimpaligntool.[ch]: support aligning with a list item,
      	image, selection, active layer, active channel, or active path.
      	Now similar in form and function to Inkscape Align/Distribute
      	dialog.
      e732c769
  4. 08 Jun, 2006 1 commit
    • William Skaggs's avatar
      Bill Skaggs <weskaggs@primate.ucdavis.edu> · 9dbc0ee1
      William Skaggs authored
      	* app/core/core-enums.[ch]: add GIMP_ARRANGE_FOO values
      	to GimpAlignmentType, and change CENTER to HCENTER,
      	MIDDLE to VCENTER.
      
      	* app/core/gimpimage-arrange.c: extensively rewritten
      	to handle arrangement of objects, and to do the
      	required sorting of lists by offset.
      
      	* app/tools/gimpaligntool.[ch]: added ability to arrange
      	groups of layers etc with constant spacing.  Also try
      	to change things so that the tool aligns with the
      	object that users expect intuitively.
      9dbc0ee1
  5. 07 Jun, 2006 1 commit
    • William Skaggs's avatar
      Bill Skaggs <weskaggs@primate.ucdavis.edu> · 40db64f4
      William Skaggs authored
      	* app/core/gimpimage-arrange.[ch]: added, utility function for
      	aligning and arranging things in an image.
      
      	* app/core/gimpitem-align.[ch}: removed, no longer needed.
      
      	* app/core/gimpimage-item-list.[ch] (gimp_image_item_list_align):
      	removed this function, no longer used.
      
      	* app/core/Makefile.am: changes described above.
      
      	* app/core/gimpguide.c: remove bit of cruft left accidentally.
      
      	* app/tools/gimpalignoptions.[ch]: remove "alignment type"
      	option, not needed at this point.
      
      	* app/tools/gimpaligntool.[ch]: numerous changes, most
      	importantly ability to align guides, and use them for
      	alignment.  More work coming on this tool.
      40db64f4
  6. 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
  7. 21 May, 2006 3 commits
    • 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
    • William Skaggs's avatar
      Bill Skaggs <weskaggs@primate.ucdavis.edu> · 00aad904
      William Skaggs authored
      	* app/tools/gimpaligntool.c: get rid of "dispose" method, use
      	tool-control-halt to shut things down instead.
      00aad904
    • Michael Natterer's avatar
      app/core/Makefile.am new files with functions to translate, flip, rotate, · 3e5b6e0e
      Michael Natterer authored
      2006-05-21  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/Makefile.am
      	* app/core/gimpimage-item-list.[ch]: new files with functions to
      	translate, flip, rotate, transform and align a list of items
      	inside an undo group.
      
      	(gimp_image_item_list_get_list): returns a list of items matching
      	any combination of GimpItemTypeMask and GimpItemSet.
      
      	* app/core/gimpitem.[ch]: added new function gimp_item_is_in_set().
      
      	* app/core/gimpitem-linked.[ch]: use the new functions. Removed
      	gimp_item_linked_get_list().
      
      	* app/tools/gimpeditselectiontool.c: use
      	gimp_image_item_list_get_list() instead of
      	gimp_item_linked_get_list().
      
      	* app/core/gimpimage-resize.c
      	* app/tools/gimpaligntool.c: use the new functions instead of
      	creating and iterating the lists manually.
      3e5b6e0e
  8. 19 May, 2006 1 commit
    • Sven Neumann's avatar
      actually use the new tool icon. · c6d8d492
      Sven Neumann authored
      2006-05-19  Sven Neumann  <sven@gimp.org>
      
              * app/tools/gimpaligntool.c (gimp_align_tool_register): actually
              use the new tool icon.
      c6d8d492
  9. 17 May, 2006 2 commits
    • William Skaggs's avatar
      Bill Skaggs <weskaggs@primate.ucdavis.edu> · 6477f2c1
      William Skaggs authored
      	* themes/Default/images/tools/stock-tool-align-16.png
      	* themes/Default/images/tools/stock-tool-align-22.png
      	* libgimpwidgets/gimpstock.c
      	* libgimpwidgets/gimpstock.h
      	* themes/Default/images/Makefile.am: add new (ugly) icon
      	for alignment tool.
      
      	* app/tools/gimpaligntool.c: use the new icon; change
      	"pressed" to "clicked" for buttons.
      6477f2c1
    • William Skaggs's avatar
      Bill Skaggs <weskaggs@primate.ucdavis.edu> · 0f77a496
      William Skaggs authored
      	* app/tools/gimpaligntool.[ch]: major change in ui, to make
      	this tool behave like alignment tools found in vector apps.
      	now you select items by clicking or drawing a rubber-band
      	rectangle, add items by holding down shift, and then press
      	a button to align all the selected items.
      0f77a496
  10. 15 May, 2006 1 commit
  11. 12 Apr, 2006 1 commit
  12. 28 Mar, 2006 2 commits
  13. 13 Dec, 2005 1 commit
  14. 23 Nov, 2005 1 commit
    • Michael Natterer's avatar
      cleaned up and reordered instance struct and functions. Renamed functions · 855c4efe
      Michael Natterer authored
      2005-11-23  Michael Natterer  <mitch@gimp.org>
      
      	* app/tools/gimptoolcontrol.[ch]: cleaned up and reordered
      	instance struct and functions. Renamed functions so getters and
      	setters actually have "get" and "set" in their names.
      
      	* app/display/gimpdisplayshell-autoscroll.c
      	* app/display/gimpdisplayshell-callbacks.c
      	* app/tools/gimpaligntool.c
      	* app/tools/gimpconvolvetool.c
      	* app/tools/gimpdodgeburntool.c
      	* app/tools/gimperasertool.c
      	* app/tools/gimpfliptool.c
      	* app/tools/gimpforegroundselecttool.c
      	* app/tools/gimpmagnifytool.c
      	* app/tools/gimpmeasuretool.c
      	* app/tools/gimpmovetool.c
      	* app/tools/gimpvectortool.c
      	* app/tools/tool_manager.c: changed accordingly.
      855c4efe
  15. 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
  16. 18 Oct, 2005 2 commits
  17. 23 Aug, 2005 1 commit
  18. 22 Aug, 2005 1 commit
    • Sven Neumann's avatar
      app/actions/channels-commands.c app/actions/qmask-commands.c · 1a94b2be
      Sven Neumann authored
      2005-08-23  Sven Neumann  <sven@gimp.org>
      
      	* app/actions/channels-commands.c
      	* app/actions/qmask-commands.c
      	* app/dialogs/channel-options-dialog.c
      	* app/dialogs/layer-options-dialog.c
      	* app/dialogs/module-dialog.c
      	* app/dialogs/palette-import-dialog.c
      	* app/dialogs/preferences-dialog.c
      	* app/dialogs/resize-dialog.c
      	* app/dialogs/stroke-dialog.c
      	* app/dialogs/vectors-options-dialog.c
      	* app/display/gimpdisplayshell-scale.c
      	* app/tools/gimpaligntool.c
      	* app/tools/gimpblendoptions.c
      	* app/widgets/gimphistogrameditor.c
      	* app/widgets/gimpstrokeeditor.c
      	* libgimpwidgets/gimpcolorselection.c
      	* modules/cdisplay_colorblind.c
      	* modules/cdisplay_highcontrast.c
      	* modules/colorsel_cmyk.c
      	* plug-ins/Lighting/lighting_ui.c
      	* plug-ins/common/colorify.c
      	* plug-ins/common/film.c
      	* plug-ins/common/iwarp.c
      	* plug-ins/common/lic.c
      	* plug-ins/common/pixelize.c
      	* plug-ins/common/sample_colorize.c
      	* plug-ins/common/sinus.c
      	* plug-ins/common/sparkle.c
      	* plug-ins/gflare/gflare.c
      	* plug-ins/ifscompose/ifscompose.c
      	* plug-ins/imagemap/imap_cmd_guides.c
      	* plug-ins/imagemap/imap_preferences.c
      	* plug-ins/metadata/interface.c
      	* plug-ins/print/gimp_color_window.c
      	* plug-ins/print/gimp_main_window.c
      	* plug-ins/rcm/rcm_dialog.c
      	* plug-ins/script-fu/script-fu-server.c: applied patch from
      	Stephan Binner that fixes capitalization issues (bug #309657).
      1a94b2be
  19. 16 Aug, 2005 1 commit
    • Akkana Peck's avatar
      app/actions/image-actions.c app/tools/gimpaligntool.c · c911a1a3
      Akkana Peck authored
      	* app/actions/image-actions.c
      	* app/tools/gimpaligntool.c
      	* menus/image-menu.xml.in
      	* plug-ins/common/AlienMap2.c
      	* plug-ins/common/autostretch_hsv.c
      	* plug-ins/common/borderaverage.c
      	* plug-ins/common/c_astretch.c
      	* plug-ins/common/ccanalyze.c
      	* plug-ins/common/channel_mixer.c
      	* plug-ins/common/color_enhance.c
      	* plug-ins/common/colorify.c
      	* plug-ins/common/colortoalpha.c
      	* plug-ins/common/compose.c
      	* plug-ins/common/decompose.c
      	* plug-ins/common/exchange.c
      	* plug-ins/common/fp.c
      	* plug-ins/common/gradmap.c
      	* plug-ins/common/hot.c
      	* plug-ins/common/mapcolor.c
      	* plug-ins/common/max_rgb.c
      	* plug-ins/common/normalize.c
      	* plug-ins/common/retinex.c
      	* plug-ins/common/sample_colorize.c
      	* plug-ins/common/semiflatten.c
      	* plug-ins/common/smooth_palette.c
      	* plug-ins/common/vinvert.c
      	* plug-ins/rcm/rcm.c
      	* plug-ins/script-fu/scripts/hsv-graph.scm: Move all color-related
      	functions from the Image and Filters menus to a new toplevel
      	Colors menu (as discussed in bug 116145).
      c911a1a3
  20. 07 Jun, 2005 1 commit
    • William Skaggs's avatar
      Bill Skaggs <weskaggs@primate.ucdavis.edu> · 78e6016a
      William Skaggs authored
      	* app/tools/gimpaligntool.[ch]: improve layout of controls.  Add
      	radio buttons allowing selection of reference layer without
      	using Ctrl modifier.  Handle removal of target or reference
      	layers from image more correctly.  More to come.
      78e6016a
  21. 03 Jun, 2005 3 commits
    • William Skaggs's avatar
      Bill Skaggs <weskaggs@primate.ucdavis.edu> · cfed1f28
      William Skaggs authored
      	* app/core/gimpitem-align.c
      	* app/core/gimpitem-align.h (gimp_item_align): remove push_undo
      	arg, useless as pointed out by mitch.
      
      	* app/tools/gimpaligntool.c: changed correspondingly.
      cfed1f28
    • William Skaggs's avatar
      Bill Skaggs <weskaggs@primate.ucdavis.edu> · 643e2257
      William Skaggs authored
      	* app/core/gimpitem-align.[ch]: newly created to
      	hold code for gimp_item_align().
      
      	* app/core/Makefile.am: add new files
      
      	* app/core/gimpitem.[ch]: remove code from here.
      
      	* app/tools/gimpaligntool.c: fix includes and remove
      	unneeded includes.
      643e2257
    • William Skaggs's avatar
      Bill Skaggs <weskaggs@primate.ucdavis.edu> · 72502972
      William Skaggs authored
      	* gimp/app/tools/Makefile.am
      	* gimp/app/tools/gimp-tools.c
      	* gimp/app/tools/gimpalignoptions.c
      	* gimp/app/tools/gimpalignoptions.h
      	* gimp/app/tools/gimpaligntool.c
      	* gimp/app/tools/gimpaligntool.h: Add new tool for
      	aligning layers etc, as described in bug #147437.
      
      	* gimp/app/core/gimpitem.c
      	* gimp/app/core/gimpitem.h (gimp_item_align): add
      	function required by new tool.
      
      	* gimp/app/core/core-enums.c
      	* gimp/app/core/core-enums.h: add enum for alignment
      	types.
      
      	* gimp/themes/Default/images/stock-hcenter-24.png
      	* gimp/themes/Default/images/stock-vcenter-24.png
      	* gimp/libgimpwidgets/gimpstock.c
      	* gimp/libgimpwidgets/gimpstock.h
      	* gimp/themes/Default/images/Makefile.am
      	* gimp/themes/Default/images/makefile.msc: add two
      	stock symbols, modeled on the gravity symbols.
      72502972