Hi Michael, Tom & RG devs,
I've been keeping an eye on the list for problems with the code I wrote
in '09. I do recall (very vaguely) some problems with getting the rulers
to update to matrix changes but would be pretty confident that they did
update to note adds/deletes/moves etc.

> >>  * Segment now derives from QObject; Qt insists on it being the first
> >> base.
> >
> > Part of me admires the obvious simplicity of that solution, while part of
> > me
> > is still rooted in a past when Qt wasn't allowed in base/.
> 
> I actually sympathize with that concern.  I looked at other ways to do it.
>  I looked at MatrixWidget, but unlike NotationWidget, MatrixWidget doesn't
> seem to have a workable signal to forward to the rulers (I mentioned that
> even NotationWidget seems to be only succeeding by accident) Then I
> considered emitting the signal from commands.  But that didn't prove
> reasonable.  BasicCommand does know which segment is affected, but does
> not know anything about segment connections or ruler slots.  And ISTM it
> shouldn't have to know that.
> 
> That proved to me that the segment updating signal is about segments, so I
> bit the bullet and made Segment a QObject.

Wasn't there an "observer" mechanism of some sort to notify the rulers
of segment changes? If I recall correctly, it confused the hell out of
me when I first saw it but was pretty elegant. Something like the ruler
would inherit an observer class and register itself with the segment on
creation. The segment keeps a list of observers and calls their
segmentchanged method when something changes ... or some such.

Quite possible I'm misremembering!

Regards
Chris


------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2dcopy1
_______________________________________________
Rosegarden-devel mailing list
[email protected] - use the link below to unsubscribe
https://lists.sourceforge.net/lists/listinfo/rosegarden-devel

Reply via email to