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:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user