Now keeping notes for todos and notes to help me work through problems. I'll keep notes for record keeping if/when I can be bothered.
todo Found an issue with bottom beam of 3rd/4th notes, last bar, 5th last line of rev etude (has stroke but no fill).
Working on controls that appear over the score with mouseover (currently bar for bar start/end).
Bar popup has the target bar and start/end toggle. Its DataContext is the ScoreEditVM (which has access to the UserToScore). UserToScore has current start/end bars.
There's only ever one bar popup in focus at the time. Could bind popup bar to ScoreEditVM CurrentBar and make IsStart/IsEnd, but that's getting messy.
Could create UserToScore DP in barpopup, bind it and call methods on UTS, but that subverts try/catches etc. I think the messiness above is required, but perhaps not in ScoreEditVM.
Process is:
Mouse moves over panel,
translate mouse coords to ScoreLine coords
find bar from coords (method in ScoreLine)
if (can/should show bar ui [ie not playing]), show it <---
on click, call set start bar with current bar [react to property change]
if (can/should show bar ui [ie not playing]), show it (mouseMovement when playing is ok, timer to hide ui)
IsPlaying comes from ScoreEditVM.
bool ScoreEditVM.ShowOverlayUI
on mouse leave etc similar.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment