> Hi Yves, Michael and all, > > I've had a look at your implementation Yves, from a practical perspective >using > > aggregation to preserve the original segment is a feature worth having, > particularly to prevent undesirable spontaneous closing of editors. > > You are right in something that you said in a previous post - if we use > aggregation with the SegmentLinker, there is no need in principle to have > the
> LinkedSegmentReferencer. All the functionality can be dumped in the > SegmentLinker, which should simplify things. > > I want to try some experiments with this approach. What I'll try to do over >the > > next couple of days is to modify my branch to get Segments to be linked via >the > > SegmentLinker, and refactor away the LinkedSegmentReference. If this turns > out > > to be successful, I think this will provide a nice simple code we can both > use > > well. > > I am aware that you need to know for the repeated segment case which segment >is > > the master and which are the slaves. In my use-cases (ordinary linking of > segments) there are no masters or slaves, but I'm aware that for repeated > segments it's important that there's definite master and slaves. I guess > that > for repeated segments there should be different rules for the master and > slave > > segments, in that the master segment can be moved but the slaves should not > be > > able to be moved. I've had an experiment with a few ideas, and the one I like the best is one which replaces my LinkedSegment objects with ordinary Segment ones, and has a SegmentLinker instead of a LinkedSegmentReference. It uses Yves idea of a Segment being linked when it has a particular pointer set to something non-null (a SegmentLinker I've called it), but there is only one SegmentLinker per linked Segment group. The SegmentLinker sorts out all of the inter-segment coordination. It works just as well as my original one, but is nice and simple an doesn't close editors when you link stuff. I'm aiming to get something committed this week, need to iron out a few probs, tidy up the code, put all my broken serialisation and transposition back together then we should be good to go with doing something for repeating segments. Cheers, Ian. ------------------------------------------------------------------------------ Learn how Oracle Real Application Clusters (RAC) One Node allows customers to consolidate database storage, standardize their database environment, and, should the need arise, upgrade to a full multi-node Oracle RAC database without downtime or disruption http://p.sf.net/sfu/oracle-sfdevnl _______________________________________________ Rosegarden-devel mailing list Rosegarden-devel@lists.sourceforge.net - use the link below to unsubscribe https://lists.sourceforge.net/lists/listinfo/rosegarden-devel