Need suggestion for shape geometry change event handling
Thorsten Zachmann
t.zachmann at zagge.de
Sat Nov 19 14:50:10 GMT 2011
On Thursday, November 17, 2011 16:20:10 Yue Liu wrote:
> Hello,
>
> I'm trying to implement connector auto-routing in Flow, it requires
> connector routings being re-calculated everytime a shape's geometry
> changed. So I'm wondering what should be the right way to do this. My
> idea is add virtual method shapeGeometryChanged() in
> KoShapeBasedDocumentBase and use it in those KoShapeXXXCommands, then
> implement it in FlowDocument. But i'm not sure about this idea so i
> want to get your opion about it.
Something like that already exists. See KoPAPageContainerModel::childChanged.
That is used in KoPageApp to invalidate the cache of the page.
Maybe that acn help with what you want to do.
Thorsten.
More information about the calligra-devel
mailing list