After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 86277 - use the linking of layers for more useful action than moving only
use the linking of layers for more useful action than moving only
Status: RESOLVED FIXED
Product: GIMP
Classification: Other
Component: General
git master
Other All
: Normal enhancement
: ---
Assigned To: GIMP Bugs
Daniel Egger
Depends on:
Blocks:
 
 
Reported: 2002-06-23 19:13 UTC by Jakub Steiner
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Jakub Steiner 2002-06-23 19:13:25 UTC
Layers can be linked together to move them simultaniously. It would be nice
to be able to 

* use the transformation tool on such a group
* have a 'merge linked' function, similar to 'merge visible'
Comment 1 Raphaël Quinet 2002-06-24 11:08:09 UTC
Implementing the "merge linked" feature could be interesting.  But
regarding other operations such as applying a transformation to the
linked layers, I would prefer to have this implemented in the context
of "layer groups" instead of relying to the "linked layers".

See bug #51112 for details.  Should I mark this one as a duplicate?
Comment 2 Jakub Steiner 2002-06-24 11:25:59 UTC
I think groups/tree branches are more of a fixed structure you want to
keep for a long time. 

Linking layers is a one-time action that you want to perform something
on. I don't think it's a duplicate. 

Of course it will make sense to perform some tasks on a tree branch or
group too, including filters, transformations etc. But it's a
different thing.
Comment 3 Raphaël Quinet 2002-11-29 17:51:27 UTC
Since several bugs reports describe different but similar features
related to "groups of layers", here is a list for quick reference:
- "linked" layers: bug #51112, bug #86277, bug #86337.
- "active" layers: bug #79025, bug #98262 (dup).
Comment 4 Sven Neumann 2003-05-12 15:53:47 UTC
I tend to see this the other way around than Raphael:

Linking layers should apply for all kinds of transformations. I don't
see any advantage of providing "Merge linked layers" however. You can
already achieve that using the "Merge visible layers" and it would
only complicate the user interface unnecessarily.
Comment 5 Michael Natterer 2003-05-12 15:57:47 UTC
Fixed in CVS:

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.