Hi,
I've got "some sort of" handle connection protocol in place. For this
to work properly, I removed the canvas update code into a separate
idle handler (using a nice descriptor. (reason to move it out of the
View.do_expose_event() was that when an item is connected to another
item, and one of them moves, the other item might move too, and
therefore should be updated).
There is plenty of space for optimizations.
The basic idea is:
1. canvas does it's update
2. It notified the connected views (directly , like i implemented it,
or through a signal)
3. The view queues a redraw based on the current item bounds and does
a "draw" to determine the new item bounds, which are also added to the
draw request.
4. do_expose_event draws to the canvas.
The pseudo-draw is used to determine if items have new bounding boxes
(bounding boxes are managed by the View, not by the item!).
As always, comments are welcome.
Regards,
Arjan
-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Gaphor-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gaphor-list