1. 03 Jun, 2003 1 commit
    • Michael Natterer's avatar
      fixed offset calculation for 90 and 270 degree rotations. · 0c3ff3b0
      Michael Natterer authored
      2003-06-03  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpimage-rotate.c (gimp_image_rotate_item_offset):
      	fixed offset calculation for 90 and 270 degree rotations.
      
      	* app/core/gimpimage-flip.c
      	* app/core/gimpimage-rotate.c
      	* app/core/gimpimage-scale.c: increase the progress also when
      	transforming the selection. Makes the progress appear more
      	continuous. Also clened up and simplified the progress code
      	in all files.
      
      	* app/core/gimpimage-resize.[ch]: added a progress like in the
      	files above.
      
      	* app/gui/image-commands.c (image_resize_callback): changed
      	accordingly.
      
      	(image_scale_implement): clened up and simplified a lot.
      
      	* tools/pdbgen/pdb/image.pdb: changed accordingly.
      
      	* app/pdb/image_cmds.c: regenerated.
      0c3ff3b0
  2. 02 Jun, 2003 1 commit
  3. 26 May, 2003 1 commit
    • Michael Natterer's avatar
      added "gint ref_count" to the TileManager struct. · 707e5976
      Michael Natterer authored
      2003-05-26  Michael Natterer  <mitch@gimp.org>
      
      	* app/base/tile-manager-private.h: added "gint ref_count" to the
      	TileManager struct.
      
      	* app/base/tile-manager.[ch]: replaced tile_manager_destroy()
      	by tile_manager_ref() and tile_manager_unref().
      
      	* app/core/gimpimage-undo-push.c: ref the tile managers stored in
      	the undo system and DON'T destroy them if no undo could be pushed.
      	Should fix the remaining crashes with undo disabled like in
      	bug #9350.
      
      	(!!!) Note that the tiles passed to gimp_image_undo_push_image()
      	and gimp_drawable_push_undo() as well as the tile managers of
      	drawables passed to gimp_image_undo_push_[layer|channel]_mod()
      	must be unref'ed by the caller now.
      
      	* app/core/gimpdrawable-transform.c (gimp_drawable_transform_paste):
      	don't take ownership of the passed tiles but ref them if needed.
      
      	(!!!) Callers must unref the passed tiles themselves now.
      
      	* app/core/gimpbuffer.c
      	* app/core/gimpdrawable-blend.c
      	* app/core/gimpdrawable-bucket-fill.c
      	* app/core/gimpdrawable-offset.c
      	* app/core/gimpdrawable.c
      	* app/core/gimpedit.c
      	* app/core/gimpimage-convert.c
      	* app/core/gimpimage-mask.c
      	* app/core/gimpimage-projection.c
      	* app/core/gimpimage.c
      	* app/core/gimpimagemap.c
      	* app/core/gimplayer-floating-sel.c
      	* app/core/gimplayer.c
      	* app/paint/gimppaintcore.c
      	* app/text/gimptextlayer.c
      	* app/tools/gimpinktool.c
      	* app/tools/gimpiscissorstool.c
      	* app/tools/gimptransformtool-undo.c
      	* app/tools/gimptransformtool.c: changed accordingly.
      707e5976
  4. 24 May, 2003 1 commit
    • Hans Breuer's avatar
      updated win32 (msvc) build · 89bfbdf6
      Hans Breuer authored
      2003-05-24  Hans Breuer  <hans@breuer.org>
      
      	* **/makefile.msc **/*.def : updated win32 (msvc) build
      
      	* plug-ins/twain/twain.c plug-ins/winsnap/winsnap.c :
      	add the extra parameter to gimp_main() calls
      89bfbdf6
  5. 23 May, 2003 1 commit
  6. 21 May, 2003 3 commits
    • Michael Natterer's avatar
      Removed the old paths and the remaining legacy stuff it needed. Fixes bug · 487f71ba
      Michael Natterer authored
      2003-05-21  Michael Natterer  <mitch@gimp.org>
      
      	Removed the old paths and the remaining legacy stuff it needed.
      	Fixes bug #104471.
      
      	* Makefile.am
      	* configure.in
      	* pixmaps/*: removed the pixmaps/ directory.
      
      	* app/ops_buttons.[ch]
      	* app/path.[ch]
      	* app/pathP.h
      	* app/path_transform.h
      	* app/gui/paths-dialog.[ch]
      	* app/tools/gimpbezierselecttool.[ch]: removed these files.
      
      	* app/Makefile.am
      	* app/gui/Makefile.am
      	* app/tools/Makefile.am: changed accordingly.
      
      	* app/core/core-types.h: removed the Path* types.
      
      	* app/core/gimpimage.[ch]
      	* app/core/gimpimage-duplicate.c: removed gimage->paths.
      
      	* app/gui/about-dialog.c: inline wilber2_xpm for now.
      
      	* app/gui/dialogs-constructors.c
      	* app/gui/dialogs-menu.c
      	* app/gui/dialogs.c
      	* app/gui/menus.c: removed the old paths dialog.
      
      	* app/gui/gui.c: removed gui_rotate_the_shield_harmonics() hack
      	which was broken anyway.
      
      	* app/tools/gimptransformtool.c: #if 0 path_transform preview stuff.
      
      	* app/tools/gimpiscissorstool.c: removed useless include.
      
      	* app/tools/tools.c: removed the bezier select tool.
      
      	* app/vectors/gimpvectors.c (gimp_vectors_real_stroke_add): use
      	g_list_append(), not g_list_prepend() so some ugly side conditions
      	of legacy path loading are honored.
      
      	* app/xcf/xcf-load.c
      	* app/xcf/xcf-save.c: load and save only GimpVectors.
      487f71ba
    • Michael Natterer's avatar
      added GimpDrawable::alpha_changed() signal. · 31bf3c90
      Michael Natterer authored
      2003-05-21  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpdrawable.[ch]: added GimpDrawable::alpha_changed()
      	signal.
      
      	* app/core/gimpimage-undo-push.c
      	* app/core/gimplayer.c: emit it when alpha is removed from or
      	added to a layer.
      
      	* app/widgets/gimpcontainertreeview.[ch]: added a
      	"name_attributes" column to the list store which provides a
      	PangoAttrList for the name column.
      
      	* app/widgets/gimplayertreeview.[ch]: connect to all layers'
      	"alpha_changed" and set the BG layer's name to bold.
      
      	* app/widgets/gimpdrawabletreeview.c: removed redundant assertions.
      31bf3c90
    • Simon Budig's avatar
      Extended to be able to handle multiple polygons in a sane way. · c6aa6a9e
      Simon Budig authored
      2003-05-21  Simon Budig  <simon@gimp.org>
      
      	* app/core/gimpscanconvert.[ch]: Extended to be able to handle
      	multiple polygons in a sane way.
      
      	* app/core/gimpimage-mask-select.c: Use this to convert
      	multiple-stroke vectors objects to selections. Libart rocks!
      
      	* app/tools/gimpiscissorstool.c: Changed accordingly.
      c6aa6a9e
  7. 20 May, 2003 8 commits
    • Michael Natterer's avatar
      removed redundant functions gimp_rgb_to_hsv_double() and · fc6ddb05
      Michael Natterer authored
      2003-05-20  Michael Natterer  <mitch@gimp.org>
      
      	* libgimpcolor/gimpcolorspace.[ch]: removed redundant functions
      	gimp_rgb_to_hsv_double() and gimp_hsv_to_rgb_double().
      
      	* app/core/gimpdrawable-blend.c: use gimp_rgb_to_hsv() and
      	gimp_hsv_to_rgb() instead.
      
      	* plug-ins/fp/fp.[ch]
      	* plug-ins/fp/fp_misc.c: ditto. Deuglyfied the changed functions'
      	coding style a lot.
      fc6ddb05
    • Michael Natterer's avatar
      call gimp_layer_invalidate_boundary() because the layer extents may · a1abf2c5
      Michael Natterer authored
      2003-05-20  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpimage-undo-push.c (undo_pop_layer_mod): call
      	gimp_layer_invalidate_boundary() because the layer extents may
      	change.
      
      	* app/core/gimpitem-linked.c: pass clip_result == TRUE when
      	rotating linked channels.
      
      	* app/core/gimpdrawable-transform.c: implement clip_result so
      	linked channels can be rotated without leaving the image in an
      	inconsistent state. Added utility function
      	gimp_drawable_transform_rotate_point().
      a1abf2c5
    • Sven Neumann's avatar
      fixed a harmless compiler warning. · c90a88fd
      Sven Neumann authored
      2003-05-20  Sven Neumann  <sven@gimp.org>
      
      	* app/core/gimpimage-rotate.c (gimp_image_rotate): fixed a harmless
      	compiler warning.
      c90a88fd
    • Michael Natterer's avatar
      don't default to clip_result == TRUE (unlike the other transform · 966fb559
      Michael Natterer authored
      2003-05-20  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpchannel.c (gimp_channel_rotate): don't default to
      	clip_result == TRUE (unlike the other transform functions).
      
      	* app/core/gimpdrawable-transform.c
      	(gimp_drawable_transform_tiles_rotate): fixed offset calculation.
      
      	* app/core/gimpimage-rotate.c: change the image size *after* all items
      	are rotated. Adjust all items' offsets after rotation. Rotate the
      	resolutions too. Seems to work now and fixes bug #6101.
      
      	* app/core/gimpimage.c (gimp_image_size_changed): emit
      	"size_changed" on all vectors.
      
      	* app/core/gimpitem-linked.[ch]: added gimp_item_linked_rotate().
      
      	* app/gui/drawable-commands.c: flip and rotate linked items too.
      
      	* app/vectors/gimpvectors.c (gimp_vectors_rotate): fixed rotation
      	angles.
      
      	Unrelated:
      
      	* app/core/gimpimage-merge.c: don't #include "path.h".
      966fb559
    • Sven Neumann's avatar
      fixed algorithm for GIMP_ROTATE_180. · a996ba39
      Sven Neumann authored
      2003-05-20  Sven Neumann  <sven@gimp.org>
      
      	* app/core/gimpdrawable-transform.c
      	(gimp_drawable_transform_tiles_rotate): fixed algorithm for
      	GIMP_ROTATE_180.
      a996ba39
    • Sven Neumann's avatar
      no need to include gimp-intl.h. · 4e335f7f
      Sven Neumann authored
      2003-05-20  Sven Neumann  <sven@gimp.org>
      
      	* app/core/gimpimage-flip.c: no need to include gimp-intl.h.
      
      	* app/core/gimpimage-rotate.c: change the image size if needed;
      	implemented rotation of guides.
      
      	* app/vectors/gimpvectors.c: implemented rotation of vectors.
      4e335f7f
    • Michael Natterer's avatar
      remember the guide's orientation in the guide undo. Needed for · f46c16c8
      Michael Natterer authored
      2003-05-20  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpimage-undo-push.c: remember the guide's orientation
      	in the guide undo. Needed for gimp_image_rotate().
      f46c16c8
    • Sven Neumann's avatar
      added new enum GimpRotationType. · 1de667f0
      Sven Neumann authored
      2003-05-20  Sven Neumann  <sven@gimp.org>
      
      	* app/core/core-enums.[ch]: added new enum GimpRotationType.
      
      	* app/core/Makefile.am
      	* app/core/gimpimage-rotate.[ch]: new files.
      
      	* app/core/gimpchannel.c
      	* app/core/gimpdrawable-transform.[ch]
      	* app/core/gimpdrawable.c
      	* app/core/gimpitem.[ch]
      	* app/core/gimplayer.c
      	* app/vectors/gimpvectors.c: added GimpItem::rotate. Still work in
      	progress.
      
      	* plug-ins/common/rotate.c: don't install any menu entries. The
      	plug-in is only kept around to provide plug_in_rotate for backward
      	compatibility.
      
      	* app/gui/drawable-commands.[ch]
      	* app/gui/image-commands.[ch]
      	* app/gui/image-menu.c: use the new rotate implementation and use
      	stock icons for the menu entries. Fixes bug #57797.
      1de667f0
  8. 18 May, 2003 5 commits
    • Michael Natterer's avatar
      snap correctly to the bottom and right sides of the rectangle. Also snap · 272ee133
      Michael Natterer authored
      2003-05-18  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpimage-guides.c (gimp_image_snap_rectangle): snap
      	correctly to the bottom and right sides of the rectangle. Also
      	snap to the closer guide if we snap twice on one axis.
      	Fixes bug #113233.
      
      	All snapping functions: use ROUND() instead of truncating the
      	double coords.
      272ee133
    • Michael Natterer's avatar
      push a colormap undo if the image was INDEXED. Fixes bug #113236. Minor · a27b8850
      Michael Natterer authored
      2003-05-18  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpimage-convert.c (gimp_image_convert): push a
      	colormap undo if the image was INDEXED. Fixes bug #113236.
      	Minor Cleanups.
      a27b8850
    • Michael Natterer's avatar
      Implemented "Flip Image". Fixes bug #23179: · 1358fafb
      Michael Natterer authored
      2003-05-18  Michael Natterer  <mitch@gimp.org>
      
      	Implemented "Flip Image". Fixes bug #23179:
      
      	* app/core/core-enums.[ch]: added GIMP_UNDO_GROUP_IMAGE_FLIP.
      
      	* app/core/Makefile.am
      	* app/core/gimpimage-flip.[ch]: new files implementing
      	gimp_image_flip().
      
      	* app/gui/image-menu.c
      	* app/gui/image-commands.[ch]: added it to the "Image" menu.
      
      	* themes/Default/images/Makefile.am
      	* themes/Default/images/stock-flip-horizontal-16.png
      	* themes/Default/images/stock-flip-vertical-16.png
      	* libgimpwidgets/gimpstock.[ch]: added icons for the new
      	menu items.
      
      	Bugs found while hacking the stuff above:
      
      	* app/core/gimpdrawable-transform.c (gimp_drawable_transform_paste):
      	only call gimp_layer_add_alpha() if the pasted tiles have alpha.
      
      	* app/core/gimpimage-undo-push.c (undo_pop_channel_mod): fixed to
      	do the right thing if the channel is the selection mask.
      1358fafb
    • Michael Natterer's avatar
      added BOOLEAN: OBJECT, POINTER. · 256701f6
      Michael Natterer authored
      2003-05-18  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpmarshal.list: added BOOLEAN: OBJECT, POINTER.
      
      	* app/widgets/gimpcontainerview.[ch]: added a boolean return
      	value to GimpContainerView::select_item() which indicates if
      	the select operation was successful.
      
      	* app/widgets/gimpchanneltreeview.c
      	* app/widgets/gimpcontainereditor.c
      	* app/widgets/gimpcontainergridview.c
      	* app/widgets/gimpcontainertreeview.c
      	* app/widgets/gimpitemtreeview.c
      	* app/widgets/gimplayertreeview.c
      	* app/widgets/gimpvectorstreeview.c: changed accordingly.
      
      	* app/widgets/gimpdrawabletreeview.c: ditto. Removed the
      	tree_view's select_function because it was only constraining the
      	widget, not the underlying select operation. Instead, implement
      	GimpContainerView::select_item() and disallow anything but the
      	floating selection to be selected. Also re-enabled the
      	"floating_selection_changed" callback and explicitely set the
      	active item so the button states get updated. Fixes bug #112487.
      256701f6
    • Michael Natterer's avatar
      call gimp_item_set_image() on the new layer's mask too if it exists. · 4624d496
      Michael Natterer authored
      2003-05-18  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimplayer.c (gimp_layer_new_from_drawable): call
      	gimp_item_set_image() on the new layer's mask too if it exists.
      4624d496
  9. 17 May, 2003 1 commit
  10. 16 May, 2003 1 commit
    • Michael Natterer's avatar
      added "gboolean cut_image" parameter so we can float selections without · 9981c464
      Michael Natterer authored
      2003-05-16  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpimage-mask.[ch] (gimp_image_mask_extract): added
      	"gboolean cut_image" parameter so we can float selections
      	without cutting them from the original drawable.
      
      	* app/gui/select-commands.c
      	* tools/pdbgen/pdb/selection.pdb: pass cut_image == TRUE.
      
      	* app/pdb/selection_cmds.c: regenerated.
      
      	* app/tools/tools-enums.[ch]: added SELECTION_MOVE_COPY value
      	to the SelectOps enum.
      
      	* app/tools/gimpselectiontool.c: use the new mode when
      	<ctrl>+<alt>-dragging a selction (yes, this is evil but there are
      	no modifiers left).
      
      	* app/tools/gimpeditselectiontool.[ch]: extended EditType enum by
      	EDIT_MASK_COPY_TO_LAYER_TRANSLATE and pass cut_image == FALSE if
      	it's passed to init_edit_selection().
      
      	* app/tools/gimpfreeselecttool.c
      	* app/tools/gimpfuzzyselecttool.c
      	* app/tools/gimprectselecttool.c: pass the new mode to
      	GimpEditSelectionTool.
      9981c464
  11. 15 May, 2003 1 commit
    • Sven Neumann's avatar
      fixed typo: use x1 instead of the uninitialized variable x. · 254cfb27
      Sven Neumann authored
      2003-05-15  Sven Neumann  <sven@gimp.org>
      
      	* app/core/gimpdrawable-transform.c
      	(gimp_drawable_transform_tiles_affine): fixed typo: use x1 instead
      	of the uninitialized variable x.
      
      	* app/paint-funcs/paint-funcs-generic.h
      	* app/paint-funcs/paint-funcs.[ch]: removed unused variable
      	has_alpha from blend_pixels() function.
      
      	* app/base/temp-buf.c: cosmetics.
      254cfb27
  12. 14 May, 2003 2 commits
    • Michael Natterer's avatar
      app/core/Makefile.am new file for utility functions. Contains · 149e81da
      Michael Natterer authored
      2003-05-14  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/Makefile.am
      	* app/core/gimp-utils.[ch]: new file for utility functions.
      	Contains gimp_rectangle_intersect() for now.
      
      	* app/core/gimpdrawable-transform.c: removed the function here.
      
      	* app/core/gimpdrawable.c (gimp_drawable_resize): use it to
      	determine the amount of pixels to copy between the old and new
      	tile managers. Removed restriction that forced the areas to
      	overlap by at least one pixel.
      
      	* app/core/gimpitem.c (gimp_item_real_transform): removed the
      	restriction here, too.
      
      	* app/core/gimplayer.c (gimp_layer_create_mask): use the new
      	function to decide how much to copy from the selection when
      	creating a mask from it.
      149e81da
    • Michael Natterer's avatar
      changed the TileManager variable names to "orig_tiles" and "new_tiles" in · 5f42f8da
      Michael Natterer authored
      2003-05-14  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpdrawable-transform.[ch]: changed the TileManager
      	variable names to "orig_tiles" and "new_tiles" in the whole file.
      
      	(gimp_drawable_transform_tiles_flip): implement "clip_result".
      	Enables flipping of linked channels.
      5f42f8da
  13. 13 May, 2003 2 commits
    • Michael Natterer's avatar
      added "gboolean clip_result" to GimpItem::flip(). · a4395cea
      Michael Natterer authored
      2003-05-13  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpitem.[ch]: added "gboolean clip_result" to
      	GimpItem::flip().
      
      	* app/vectors/gimpvectors.c
      	* app/tools/gimpfliptool.c: changed accordingly.
      
      	* app/core/gimpdrawable.c: implement GimpItem::flip() and
      	GimpItem::transform().
      
      	* app/core/gimpchannel.c
      	* app/core/gimplayer.c: chain up in flip() and transform() and do
      	only the layer/channel specific stuff here.
      
      	* app/core/gimpdrawable-transform.[ch]: fixed indentation.
      	(gimp_drawable_transform_tiles_flip): added "gboolean clip_result"
      	and warn that it is not yet implemented.
      	(gimp_drawable_transform_tiles_affine): when transforming a
      	channel set bg_color to transparent. Clip channels (but not layer
      	masks) only if the passed tiles have bpp == 1 (the channel is
      	unfloated).
      	(gimp_drawable_transform_affine): clip all unfloated channels.
      
      	* app/core/gimpitem-linked.[ch]: added gimp_item_linked_get_list()
      	utility function to avoind iterating all layers/channels/vectors
      	in all functions.
      
      	* app/tools/gimptransformtool.c: clip all unfloated channels.
      
      	The clipping fixes above together fix bug #112858.
      a4395cea
    • Michael Natterer's avatar
      s/bg/bg_color/g, cleanup. · 67454469
      Michael Natterer authored
      2003-05-13  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpimage-mask.c (gimp_image_mask_extract):
      	s/bg/bg_color/g, cleanup.
      67454469
  14. 12 May, 2003 1 commit
    • Michael Natterer's avatar
      Added support for transforming linked layers, channels and vectors. Fixes · 45334e63
      Michael Natterer authored
      2003-05-12  Michael Natterer  <mitch@gimp.org>
      
      	Added support for transforming linked layers, channels
      	and vectors. Fixes bug #86277.
      
      	* app/core/gimpdrawable-transform.[ch]
      	(gimp_drawable_transform_tiles_flip): added "gdouble axis" and
      	calculate the resulting drawable offset.
      	(gimp_drawable_transform_flip): calculate the axis and pass it to
      	the function above.
      	(gimp_drawable_transform_[tiles_]affine): reordered parameters.
      
      	* app/core/gimpitem.[ch]: added virtual functions GimpItem::flip()
      	and GimpItem::transform().
      
      	* app/core/gimpchannel.c
      	* app/core/gimplayer.c
      	* app/vectors/gimpvectors.c: implement flip() and transform().
      	Note that all functions always transform the whole item,
      	regardless of a present selection.
      
      	* app/core/Makefile.am
      	* app/core/gimpitem-linked.[ch]: new files containing utility
      	functions which translate, flip and transform all linked items.
      
      	* app/tools/gimpfliptool.c
      	* app/tools/gimptransformtool.c
      	* tools/pdbgen/pdb/layer.pdb: use the new gimp_item_linked_*()
      	functions to translate, flip and transform all linked items.
      
      	* tools/pdbgen/pdb/transform_tools.pdb: follow
      	gimp_drawable_transform_affine() API change.
      
      	* app/pdb/layer_cmds.c
      	* app/pdb/transform_tools_cmds.c: regenerated.
      45334e63
  15. 09 May, 2003 4 commits
    • Michael Natterer's avatar
      added "gboolean push_undo" to GimpItem::translate() and don't push and · 45736814
      Michael Natterer authored
      2003-05-09  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpitem.[ch]: added "gboolean push_undo" to
      	GimpItem::translate() and don't push and undo in
      	gimp_item_translate().
      
      	* app/core/gimpchannel.[ch]: removed public function
      	gimp_channel_translate() and implement GimpItem::translate().
      
      	* app/core/gimpimage-mask.c
      	* app/core/gimplayer.c: changed accordingly.
      
      	* app/vectors/gimpvectors.c: actually translate the vectors
      	in translate().
      
      	* app/gui/channels-commands.c (channels_new_channel_query): removed
      	useless call to gimp_channel_translate().
      
      	* app/tools/gimpeditselectiontool.c
      	* tools/pdbgen/pdb/layer.pdb: when translating a linked layer,
      	also translate all linked channels and vectors. Cleanup.
      
      	Note that the "linked" behaviour has changed: before this change,
      	moving a layer moved all linked layers unconditionally. Now,
      	linked layers/channels/vectors are moved *only* if the moved layer
      	is also linked (the linked items behave as a group now and moving
      	something not in the group does not affect the group).
      
      	* app/pdb/layer_cmds.c: regenerated.
      45736814
    • Michael Natterer's avatar
      app/core/gimpimage-crop.c (gimp_image_crop) app/core/gimpimage-resize.c · 3a8ef85b
      Michael Natterer authored
      2003-05-09  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpimage-crop.c (gimp_image_crop)
      	* app/core/gimpimage-resize.c (gimp_image_resize)
      	* app/core/gimpimage-scale.c (gimp_image_scale):
      	don't #include "gimpchannel.h". Moved code around so they all do
      	their stuff in the same order (improves readability when comparing
      	the functions). Use GimpItem variables instead of GimpChannel or
      	GimpLayer ones. Lots of cleanup.
      3a8ef85b
    • Michael Natterer's avatar
      resize all vectors here, too. · 2de90bdb
      Michael Natterer authored
      2003-05-09  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpimage-crop.c (gimp_image_crop): resize all vectors
      	here, too.
      2de90bdb
    • Michael Natterer's avatar
      added default implementations for scale() and resize() which just set the · 882a8eca
      Michael Natterer authored
      2003-05-09  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpitem.c: added default implementations for scale()
      	and resize() which just set the resulting width/height and offset
      	values.
      
      	* app/core/gimpdrawable.c: chain up in scale() and resize().
      
      	* app/vectors/gimpvectors.[ch]: buncha vectors changes/features:
      
      	- Removed unused "linked" and "locked" members.
      	- Removed "changed" signal.
      	- Added "freeze" and "thaw" signals and functions to emit them.
      	- Added "freeze_count" member so we emit only one freeze/thaw pair
      	  even when doing nested changes.
      	- Added GimpItem::translate() implementation.
      	- Actually scale and resize the vectors in scale() and resize().
      	- Added undo for scale() and resize().
      	- Added freeze()/thaw() pairs around all modifying functions.
      	- Changed gimp_vectors_copy_strokes() to work as needed.
      
      	* app/core/gimpimage-resize.c
      	* app/core/gimpimage-scale.c: resize and scale all vectors.
      	Fixes bug #36491.
      
      	* app/core/gimpimage-undo-push.c (undo_pop_vectors_mod): added
      	freeze()/thaw() around the vectors-modifying code. Also restore
      	width, height and offsets.
      
      	* app/tools/gimpvectortool.c: connect to "freeze" and "thaw"
      	and pause()/resume() vectors drawing accordingly.
      882a8eca
  16. 08 May, 2003 7 commits
    • Michael Natterer's avatar
      removed "linked" member and API... · 33b7d779
      Michael Natterer authored
      2003-05-08  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimplayer.[ch]: removed "linked" member and API...
      
      	* app/core/gimpitem.[ch]: ...and added it here.
      
      	* app/core/core-enums.[ch]
      	* app/core/gimpimage-undo-push.[ch]: changed layer_linked undo
      	types and functions to be item_linked ones.
      
      	* app/tools/gimpeditselectiontool.c
      	* app/xcf/xcf-load.c
      	* app/xcf/xcf-save.c
      	* tools/pdbgen/pdb/layer.pdb: changed accordingly.
      
      	* app/pdb/layer_cmds.c: regenerated.
      
      	* app/widgets/gimplayertreeview.[ch]: removed "linked" icon and
      	functions...
      
      	* app/widgets/gimpitemtreeview.[ch]: and added them here. Setting
      	channels or vectors to "linked" does nothing yet.
      33b7d779
    • Michael Natterer's avatar
      added gimp_item_translate() and virtual function GimpItem::translate(). · 129c78d2
      Michael Natterer authored
      2003-05-08  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpitem.[ch]: added gimp_item_translate() and
      	virtual function GimpItem::translate().
      
      	* app/core/gimplayer.[ch]: removed public function
      	gimp_layer_translate() and implement GimpItem::translate()
      	instead.
      
      	* app/core/core-enums.[ch]
      	* app/core/gimpimage-undo-push.[ch]: changed layer_displace undo
      	types and functions to be item_displace ones.
      
      	* app/core/gimpimage-crop.c
      	* app/core/gimpimage-resize.c
      	* app/display/gimpdisplayshell-dnd.c
      	* app/gui/layers-commands.c
      	* app/tools/gimpeditselectiontool.c
      	* app/widgets/gimptoolbox.c
      	* tools/pdbgen/pdb/layer.pdb: changed accordingly.
      
      	* app/pdb/layer_cmds.c: regenerated.
      129c78d2
    • Michael Natterer's avatar
      removed the remaining layer scale API. · ab0ac847
      Michael Natterer authored
      2003-05-08  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimplayer.[ch]: removed the remaining layer scale API.
      
      	* app/core/gimpitem.[ch]: added the same functions here.
      
      	* app/core/gimpimage-scale.c
      	* app/gui/layers-commands.c
      	* tools/pdbgen/pdb/layer.pdb: changed accordingly.
      
      	* app/pdb/layer_cmds.c: regenerated.
      ab0ac847
    • Michael Natterer's avatar
      added width, height, offset_x and offset_y parameters. · 766930db
      Michael Natterer authored
      2003-05-08  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpitem.[ch] (gimp_item_configure): added width,
      	height, offset_x and offset_y parameters.
      
      	* app/core/gimpdrawable.c
      	* app/vectors/gimpvectors.c: changed accordingly.
      
      	* app/tools/gimpfliptool.c: removed unused variable.
      766930db
    • Michael Natterer's avatar
      removed gimp_drawable_offsets(). · c1ab39a5
      Michael Natterer authored
      2003-05-08  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpdrawable.[ch]: removed gimp_drawable_offsets().
      
      	* app/core/gimpitem.[ch]: added gimp_item_offsets().
      
      	* app/core/gimpdrawable-blend.c
      	* app/core/gimpdrawable-bucket-fill.c
      	* app/core/gimpdrawable-histogram.c
      	* app/core/gimpedit.c
      	* app/core/gimpimage-convert.c
      	* app/core/gimpimage-crop.c
      	* app/core/gimpimage-mask-select.c
      	* app/core/gimpimage-mask.c
      	* app/core/gimpimage-merge.c
      	* app/core/gimpimage-pick-color.c
      	* app/core/gimpimage-preview.c
      	* app/core/gimpimage-projection.c
      	* app/core/gimpimage-undo-push.c
      	* app/core/gimpimage.c
      	* app/core/gimplayer-floating-sel.c
      	* app/core/gimplayer.c
      	* app/display/gimpdisplay.c
      	* app/display/gimpdisplayshell-transform.c
      	* app/display/gimpdisplayshell.c
      	* app/gui/channels-commands.c
      	* app/gui/layers-commands.c
      	* app/paint/gimppaintcore.c
      	* app/tools/gimpbezierselecttool.c
      	* app/tools/gimpblendtool.c
      	* app/tools/gimpbucketfilltool.c
      	* app/tools/gimpbycolorselecttool.c
      	* app/tools/gimpclonetool.c
      	* app/tools/gimpcolorpickertool.c
      	* app/tools/gimpcroptool.c
      	* app/tools/gimpcurvestool.c
      	* app/tools/gimpeditselectiontool.c
      	* app/tools/gimpfliptool.c
      	* app/tools/gimpfuzzyselecttool.c
      	* app/tools/gimpinktool.c
      	* app/tools/gimplevelstool.c
      	* app/tools/gimppainttool.c
      	* app/tools/gimprectselecttool.c
      	* app/tools/gimptransformtool.c
      	* app/widgets/gimpselectioneditor.c
      	* app/widgets/gimptoolbox.c
      	* tools/pdbgen/pdb/color.pdb
      	* tools/pdbgen/pdb/drawable.pdb: changed accordingly.
      
      	* app/pdb/color_cmds.c
      	* app/pdb/drawable_cmds.c: regenerated.
      c1ab39a5
    • Michael Natterer's avatar
      removed gimp_drawable_width,height(). · 54878b79
      Michael Natterer authored
      2003-05-08  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpdrawable.[ch]: removed gimp_drawable_width,height().
      
      	* app/core/gimpitem.[ch]: added gimp_item_width,height().
      
      	* app/core/gimpchannel.c
      	* app/core/gimpdrawable-bucket-fill.c
      	* app/core/gimpdrawable-offset.c
      	* app/core/gimpdrawable-preview.c
      	* app/core/gimpdrawable-transform.c
      	* app/core/gimpimage-contiguous-region.c
      	* app/core/gimpimage-crop.c
      	* app/core/gimpimage-mask.c
      	* app/core/gimpimage-merge.c
      	* app/core/gimpimage-preview.c
      	* app/core/gimpimage-projection.c
      	* app/core/gimpimage-undo-push.c
      	* app/core/gimpimage.c
      	* app/core/gimpimagemap.c
      	* app/core/gimplayer-floating-sel.c
      	* app/core/gimplayer.c
      	* app/core/gimplayermask.c
      	* app/core/gimpscanconvert.c
      	* app/display/gimpdisplay.c
      	* app/display/gimpdisplayshell-dnd.c
      	* app/display/gimpdisplayshell.c
      	* app/gui/channels-commands.c
      	* app/gui/layers-commands.c
      	* app/paint/gimpclone.c
      	* app/paint/gimpconvolve.c
      	* app/paint/gimpdodgeburn.c
      	* app/paint/gimppaintcore.c
      	* app/paint/gimpsmudge.c
      	* app/text/gimptextlayer.c
      	* app/tools/gimpbezierselecttool.c
      	* app/tools/gimpbucketfilltool.c
      	* app/tools/gimpbycolorselecttool.c
      	* app/tools/gimpclonetool.c
      	* app/tools/gimpcroptool.c
      	* app/tools/gimpeditselectiontool.c
      	* app/tools/gimpfliptool.c
      	* app/tools/gimpfuzzyselecttool.c
      	* app/tools/gimphistogramtool.c
      	* app/tools/gimpinktool.c
      	* app/tools/gimprectselecttool.c
      	* app/tools/gimptransformtool.c
      	* app/widgets/gimpselectioneditor.c
      	* app/widgets/gimptoolbox.c
      	* tools/pdbgen/pdb/drawable.pdb
      	* tools/pdbgen/pdb/selection.pdb: changed accordingly.
      
      	* app/pdb/drawable_cmds.c
      	* app/pdb/selection_cmds.c: regenerated.
      54878b79
    • Michael Natterer's avatar
      More transform virtualization preparation: · 4136e61d
      Michael Natterer authored
      2003-05-08  Michael Natterer  <mitch@gimp.org>
      
      	More transform virtualization preparation:
      
      	* app/core/gimpdrawable.[ch]: removed "width", "height", "offset_x"
      	and "offset_y"...
      
      	* app/core/gimpitem.[ch]: ...and added them here.
      
      	* app/core/gimpchannel.c
      	* app/core/gimpdrawable-preview.c
      	* app/core/gimpdrawable-transform.c
      	* app/core/gimpedit.c
      	* app/core/gimpimage-convert.c
      	* app/core/gimpimage-mask.c
      	* app/core/gimpimage-merge.c
      	* app/core/gimpimage-qmask.c
      	* app/core/gimpimage-undo-push.c
      	* app/core/gimplayer-floating-sel.c
      	* app/core/gimplayer.c
      	* app/text/gimptext-compat.c
      	* app/text/gimptextlayer.c
      	* app/tools/gimptexttool.c
      	* app/tools/gimptransformtool.c
      	* app/widgets/gimppreviewrendererdrawable.c
      	* app/xcf/xcf-load.c
      	* app/xcf/xcf-save.c
      	* tools/pdbgen/pdb/layer.pdb: changed accordingly.
      
      	* app/pdb/layer_cmds.c: regenerated.
      4136e61d