I've been looking at how one would go with cleaning up the element drawing,
and -- repeating myself a bit -- the only way I see is to cleanly decouple 
elements
from current editing/drawing context.

Such context would include the following:
- current selection
- pointer to a new element (if any) so that the plist count hack can be 
vanquished
- editing hierarchy depth
- matrix stack
- undo stack
- drawing recursion depth
- QPainter (all-in-one equivalent of Xlib's drawable+GC)

The element draw() methods would then take the context as an argument.

If anyone has anything to add, suggest, etc -- I'm all ears. I'm sure there 
will be other
stuff added to the context as I'm working over the code.

Cheers, Kuba
_______________________________________________
Xcircuit-dev mailing list
[email protected]
http://www.opencircuitdesign.com/mailman/listinfo/xcircuit-dev

Reply via email to