Michael Natterer
bdf01c6495
Fix gimp_group_layer_scale() to do the right thing
...
Scale all children in relation to the group layer's old and new size
and offset. The group itself will follow the childrens' sizes.
2009-08-25 14:26:26 +02:00
Michael Natterer
62c5b23aaf
Add naive and wrong version of GimpItem::convert()
...
That code will fail badly when dropping layer groups between images of
different types, but will at least work between two RGB images.
2009-08-25 14:23:42 +02:00
Michael Natterer
71134c7f7d
gimp_group_layer_duplicate(): insert children in the right order
2009-08-25 12:11:44 +02:00
Michael Natterer
6934a0d2eb
Make sure all group layers' projections switch to GEGL with the main projection
2009-08-24 22:38:16 +02:00
Michael Natterer
1403db11ef
Fix the layer-offset of the group layer's projection graph
...
Insert a gegl:translate node into the group layer's projection
graph. Produces identical results as the legacy projection now, but is
not yet switched on by checking View->Use Gegl.
2009-08-24 22:01:16 +02:00
Michael Natterer
9fd204977d
Implement GimpItem's transform methods
...
Add implementations for GimpItem::translate(), scale(), resize(),
flip(), rotate() and transform(). Simply transform all children, the
group layer will automatically update itself. Also transform the layer
mask.
2009-08-24 19:33:29 +02:00
Michael Natterer
c8c6d77c35
Fix finalize() so it doesn't crash
2009-08-24 17:30:41 +02:00
Michael Natterer
4fa06d0405
Add a projection to GimpGroupLayer so we finally have a *visible* layer tree
...
Implement the GimpProjectable interface and keep a GimpProjection
around that projects the GimpDrawableStack of our children. Propagate
the childrens' "update" signals to our own "update" signal so our
parent projection picks up all changes.
2009-08-24 16:05:39 +02:00
Michael Natterer
2ec53512c5
Change local variable names from "layer" to "group"
2009-08-24 16:05:37 +02:00
Michael Natterer
a136d86c54
Automatically adjust the size of group layers
...
Connect to size and offset of all children and resize/move the
group layer accordingly.
2009-08-23 23:00:32 +02:00
Michael Natterer
819abf2fa0
Override the "lock-content" property to default to TRUE
2009-08-23 20:02:36 +02:00
Michael Natterer
ea7c07647b
Some group layer fixes
...
- call new group layers "Group Layer" by default.
- when duplicating, don't forget to set the duplicated childrens'
parent viewable.
2009-08-04 00:14:53 +02:00
Michael Natterer
7dafae7f26
Add a GimpGroupLayer class (not used yet)
2009-08-03 23:24:46 +02:00