On 10/30/07, Maximilian Albert <Anhalter42@...173...> wrote:
Hmm, seems I still don't completely catch on to the way signals are handled in Inkscape. As part of the abovementioned refactoring, I want the 3D box sides to be SPObjects, too (before, they were handled somewhat separately by the parent box). Now I'm experiencing problems with live updates when dragging handles. Depending on which displayUpdates to the box (i.e., the parent group) or its sides are triggered at which location in the code, either no visual updates happen during dragging or I get warnings like "Requested update while update in progress". Shouldn't a displayUpdate of the box automatically trigger the corresponding update of its children?
Base it on SPGroup - does it update its children? Looks like it does, based on the flags, see CGroup::onUpdate. (I don't know who created CGroup and why it's not just in sp_group_update.)
Do I need to use
SP_OBJECT_CHILD_MODIFIED_FLAG instead of SP_OBJECT_MODIFIED_FLAG?
These flags are a bit of a black magic. They are inherited from Sodipodi and I'm not sure anyone now completely understands the way they work (although Mental may be able to elaborate more on them). You will need to experiment I'm afraid, and of course base your code on existing code that works.