1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-12-11 15:16:27 +01:00

Rewrite TrackPanel::FindTrack as FindCell ...

... which reports disjoint rectangles for the track control panel, the vertical
ruler, and the proper track area.
This commit is contained in:
Paul Licameli
2017-01-10 15:53:19 -05:00
parent 8ddbc1d3d3
commit 54aea4bccf
2 changed files with 162 additions and 155 deletions

View File

@@ -479,8 +479,13 @@ protected:
virtual void OnMergeStereo(wxCommandEvent &event);
// Find track info by coordinate
virtual Track *FindTrack(int mouseX, int mouseY, bool label, bool link,
wxRect * trackRect = NULL);
enum class CellType { Label, Track, VRuler };
struct FoundCell {
Track *pTrack;
CellType type;
wxRect rect;
};
virtual FoundCell FindCell(int mouseX, int mouseY);
virtual wxRect FindTrackRect(Track * target, bool label);