Paul Licameli
6684c7b9b0
More careful use of weak pointers to tracks in UIHandles
2017-06-28 01:46:59 -04:00
Paul Licameli
b0c6a67c33
TrackPanelMouseEvent stores shared_ptr to cell; some handles too...
...
... those handles that force a simulated button-up when play interrupts drag,
and can assume that pointers to tracks remain nonNULL and part of the current
project state (not the undo history).
Also pass shared_ptr to Track into more hit test routines.
2017-06-28 01:46:56 -04:00
Paul Licameli
708d84ac22
CommonTrackPanelCell::FindTrack returns shared_ptr
2017-06-27 23:09:35 -04:00
Paul Licameli
28b40e02fb
Manage TrackPanelResizerCell by shared_ptr, no singleton
2017-06-26 16:39:07 -04:00
Paul Licameli
fa5a742e22
weak_ptr not events to avoid dangling track pointers in UIHandles
2017-06-25 13:35:15 -04:00
Paul Licameli
a94eb75b4e
Further regularize the odd case of hit-test on the resizer region
2017-06-16 18:05:09 -04:00
Paul Licameli
bbfa574790
Move track resizing code out of TrackPanel.cpp, though it still...
...
... cooperates more closely with TrackPanel than the other UIHandle subclasses
do.
2017-06-15 08:54:58 -04:00