Layer tree model

Boudewijn Rempt boud at valdyas.org
Fri Mar 23 15:11:09 CET 2007


On Friday 23 March 2007, Cyrille Berger wrote:
> > * Keep the hierarchy administration inside KisGroupLayer and KisLayer.
> > Access only through KisImage. Keep the external KisLayerModel updated
> > from KisLayer.
>
> That's the way to go.

Good, because it's the way I was going before getting all confused :-)

> > * Make KisLayerModel leading. Give KisImage and all layers a pointer to
> > the KisLayerModel instance and make them use the model to find their
> > peers. All layer inserts and removals go through KisModel, with perhaps a
> > facade on KisImage.
>
> I don't think the layer nor the image needs to know about the model.

But when do I do the calls to beginInsertRows, endInsertRows, beginRemoveRows 
and endRemoveRows if not in KisImage::addLayer and KisImage::removeLayer? I 
could do signals for that, of course. That would fix this part up.

-- 
Boudewijn Rempt 
http://www.valdyas.org/fading/index.cgi
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/kimageshop/attachments/20070323/899e1656/attachment.pgp 


More information about the kimageshop mailing list