> Next step that I would like to do is to offer the functionality that a
> user can click on a certain parallel (in the text window).
> [...]
> I assume that
> NotationView::setCurrentStaff is what I want (just a guess),
Yes.
> but how to I
> get the Staff that the segment (or the event) belongs to?
>
> Could somebody please give me an hint where to look?
As Michael says, it's quite a tangle there. It may require checking all
the staffs to find which one visits that segment. NotationStaff provides
getSegment (inherited), and NotationScene provides getStaffs, and of
course you've found m_notationWidget->getScene(). I think that works, but
I can't remember whether that's what I did last time I worked with that
stuff.
Tom Breton (Tehom)
PS: Clearly the plural "staves" has left the English language.
------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Rosegarden-devel mailing list
[email protected] - use the link below to unsubscribe
https://lists.sourceforge.net/lists/listinfo/rosegarden-devel