From: Chris C. <ca...@al...> - 2002-07-21 19:13:57
|
I was just tidying up the view-element reference count thing, and as part of that work I removed the declaration of friendship between ViewElement and Event. Unfortunately that broke ViewElement, which was accidentally exploiting the friendship to provide setAbsoluteTime and setDuration methods, which are not supposed to be part of the Event API any more. So I removed setAbsoluteTime and setDuration from ViewElement, and that broke MatrixPainter, which used setDuration for the resizing capability. Lots of tools originally used the methods, but most of them had already been updated because they were calling the methods directly on Event; not much code ever used the ViewElement versions, so I didn't notice the code that did. And the MatrixResizer never used either of the methods, it's just the painter. Anyway, I've had a go at fixing MatrixPainter but I got a bit bogged down, and am currently in a situation where you can draw the notes fine but most of the note's duration disappears when you release the mouse button. I really haven't the energy to investigate this now, and I have a load more stuff to commit, so I'm going to commit it in this non-working state anyway. I will look at it another day and fix it, but I'd be very grateful if I didn't have to because someone else happened to get there first. Guillaume? Chris |