----- Original Message -----
> From:D. Michael McIntyre <[email protected]>
> For un-linking a segment... Well, why not just double click on the linked
> segment to turn them into independent copies? That already works on repeat
> segments, and the behavior has been around for ages. The one seems to flow
> naturally into the other.
Ok, sounds good.
> Perhaps use a different fill pattern, or play with opacity instead,
> depending on how expensive these drawing operations turn out to be.
>
> I used a fill pattern variation in the matrix to show tied notes, and that
> seemed to work out reasonably well, although I'm not generally fond of using
> fill patterns.
Thanks for the tip, I'll look into it. Sounds like it should work.
> > I found it hard to implement the idea of prompting for "copy as copy
> or
> > link?" on mouse up when dropping the copied segment, because the
> command
> > which either copies or links is already done at the start of the drag
> > command.
>
> You've said this before, but I don't understand how this could be so. I
> went
> on a little expedition through the code just now, and I still don't see it.
>
> I don't doubt you, but I need a guided tour to see what's going on here,
> so I
> can figure out where we are, and how to get there from here.
> --
Unless I'm misunderstanding it myself, it's in
SegmentSelector::handleMouseMove(). First time through the function,
m_segmentQuickCopyDone is false, so the code which does either the copy or the
link-copy is done, then m_segmentQuickCopyDone is set to true. Subsequent calls
to SegmentSelector::handleMouseMove() therefore skip over the copy/link-copy
section and just process the move.
On mouse up the segment reconfigure command (which is presumably handling the
"segment move" we see on the canvas) is added to the stack. If you Ctrl-Z after
a quick copy command you have to do it twice, once to undo the move and again
to undo the copy. In order to prompt on mouse release and do a link instead of
a copy, we'd have to rewind the undo stack, do a link instead of the copy and
redo the segment reconfigure to process the equivalent move.
That's the way the code reads to me anyway.
Cheers,
Ian.
------------------------------------------------------------------------------
The modern datacenter depends on network connectivity to access resources
and provide services. The best practices for maximizing a physical server's
connectivity to a physical network are well understood - see how these
rules translate into the virtual world?
http://p.sf.net/sfu/oracle-sfdevnlfb
_______________________________________________
Rosegarden-devel mailing list
[email protected] - use the link below to unsubscribe
https://lists.sourceforge.net/lists/listinfo/rosegarden-devel