1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-10-26 00:03:52 +02: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

@@ -103,9 +103,10 @@ class AUDACITY_DLL_API WaveTrack final : public PlayableTrack {
virtual ~WaveTrack();
HitTestResult HitTest
HitTestResult DetailedHitTest
(const TrackPanelMouseEvent &event,
const AudacityProject *pProject) override;
const AudacityProject *pProject, int currentTool, bool bMultiTool)
override;
double GetOffset() const override;
void SetOffset(double o) override;