1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-12-24 17:41:13 +01:00

Redo hit test priorities in TrackPanel...

Zoom tool takes precedence;

Otherwise do special hits appropriate to the track subclass -- and only
WaveTrack here uses Tools toolbar state, and now disallows clicks on things
when they are not drawn because the view is spectrogram;

Finally, default to right button zooming in Multi tool, or to time shift in
that tool, or to selection adjustment in Multi or in Select tool.
This commit is contained in:
Paul Licameli
2017-06-19 15:02:45 -04:00
parent 9e0010ec5f
commit bce3571372
10 changed files with 109 additions and 118 deletions

View File

@@ -49,9 +49,10 @@ class TimeTrack final : public Track {
void Silence(double t0, double t1) override;
void InsertSilence(double t, double len) override;
HitTestResult HitTest
HitTestResult DetailedHitTest
(const TrackPanelMouseEvent &event,
const AudacityProject *pProject) override;
const AudacityProject *pProject, int currentTool, bool bMultiTool)
override;
// Identifying the type of track
int GetKind() const override { return Time; }