Hi, all!<br><br>Boud said recently that the KisLayer and other nodes must not store the link to the KisImage. I'm totally agree with this point. We have a special interface for this (KisNodeGraphListener), so there is no reason for it.<br>
<br>I think we can do this right now. KisLayer uses image for three reasons only:<br>1) Sending setDirty() notifications.<br>2) Accessing global selection<br>3) Fetching colorspace of the image<br><br>How can it be solved:<br>
1) KisNodeGraphListener is created exactly for this. So we can just add an updateProjection() method there.<br>2) If we make global selection as a selection mask, then global selection will be easily accessed by traversing parent() hierarchy. This method will be very easy and useful for a user. Because currently, there is no meaning in creating a selection mask inside a group layer. But if we use parent() calls, then a selection mask, created inside a group layer works like a global selection for child nodes. I think this is very good and useful from both sides user and developer.<br>
3) Completely the same as bullet 2). Just ask a parent. Colorspace of the root group layer coicide with the colorspace of the image.<br><br>So what do you think of it?<br clear="all"><br>-- <br>Dmitry Kazakov<br>