Audacity 3.2.0
TimeTrackVZoomHandle.h
Go to the documentation of this file.
1/**********************************************************************
2
3Audacity: A Digital Audio Editor
4
5TimeTrackVZoomHandle.h
6
7Paul Licameli split from TimeTrackVZoomHandle.h
8
9**********************************************************************/
10
11#ifndef __AUDACITY_TIMETRACK_VZOOM_HANDLE__
12#define __AUDACITY_TIMETRACK_VZOOM_HANDLE__
13
14#include "../../../UIHandle.h" // to inherit
15
16class TimeTrack;
17
18class TimeTrackVZoomHandle final : public UIHandle
19{
21
22public:
24 (const std::shared_ptr<TimeTrack> &pTrack, const wxRect &rect, int y);
25
27
29
30 std::shared_ptr<const Track> FindTrack() const override;
31
32 void Enter( bool forward, AudacityProject * ) override;
33
34 bool HandlesRightClick() override;
35
37 (const TrackPanelMouseEvent &event, AudacityProject *pProject) override;
38
40 (const TrackPanelMouseEvent &event, AudacityProject *pProject) override;
41
43 (const TrackPanelMouseState &state, AudacityProject *pProject)
44 override;
45
47 (const TrackPanelMouseEvent &event, AudacityProject *pProject,
48 wxWindow *pParent) override;
49
50 Result Cancel(AudacityProject *pProject) override;
51
52private:
53 std::weak_ptr<TimeTrack> mpTrack;
54};
55
56#endif
The top-level handle to an Audacity project. It serves as a source of events that other objects can b...
Definition: Project.h:90
A kind of Track used to 'warp time'.
Definition: TimeTrack.h:24
Result Release(const TrackPanelMouseEvent &event, AudacityProject *pProject, wxWindow *pParent) override
~TimeTrackVZoomHandle() override
TimeTrackVZoomHandle & operator=(const TimeTrackVZoomHandle &)=default
bool HandlesRightClick() override
Whether the handle has any special right-button handling.
void Enter(bool forward, AudacityProject *) override
std::shared_ptr< const Track > FindTrack() const override
std::weak_ptr< TimeTrack > mpTrack
Result Click(const TrackPanelMouseEvent &event, AudacityProject *pProject) override
HitTestPreview Preview(const TrackPanelMouseState &state, AudacityProject *pProject) override
Result Drag(const TrackPanelMouseEvent &event, AudacityProject *pProject) override
Result Cancel(AudacityProject *pProject) override
TimeTrackVZoomHandle(const TimeTrackVZoomHandle &)
Short-lived drawing and event-handling object associated with a TrackPanelCell.
Definition: UIHandle.h:37
unsigned Result
Definition: UIHandle.h:40