Audacity  2.2.0
NoteTrackVRulerControls.h
Go to the documentation of this file.
1 /**********************************************************************
2 
3 Audacity: A Digital Audio Editor
4 
5 NoteTrackVRulerControls.h
6 
7 Paul Licameli split from TrackPanel.cpp
8 
9 **********************************************************************/
10 
11 #ifndef __AUDACITY_NOTE_TRACK_VRULER_CONTROLS__
12 #define __AUDACITY_NOTE_TRACK_VRULER_CONTROLS__
13 
14 #include "../../../ui/TrackVRulerControls.h"
15 
17 
19 {
22 
23 public:
24  explicit
25  NoteTrackVRulerControls( std::shared_ptr<Track> pTrack )
26  : TrackVRulerControls( pTrack ) {}
28 
29  std::vector<UIHandlePtr> HitTest
30  (const TrackPanelMouseState &state,
31  const AudacityProject *pProject) override;
32 
33  unsigned HandleWheelRotation
34  (const TrackPanelMouseEvent &event,
35  AudacityProject *pProject) override;
36 
37 private:
38  std::weak_ptr<NoteTrackVZoomHandle> mVZoomHandle;
39 };
40 
41 #endif
unsigned HandleWheelRotation(const TrackPanelMouseEvent &event, AudacityProject *pProject) override
Definition: TrackPanelMouseEvent.h:27
AudacityProject provides the main window, with tools and tracks contained within it.
Definition: Project.h:161
std::vector< UIHandlePtr > HitTest(const TrackPanelMouseState &state, const AudacityProject *pProject) override
NoteTrackVRulerControls(std::shared_ptr< Track > pTrack)
Definition: NoteTrackVRulerControls.h:25
NoteTrackVRulerControls & operator=(const NoteTrackVRulerControls &)=delete
NoteTrackVRulerControls(const NoteTrackVRulerControls &)=delete
std::weak_ptr< NoteTrackVZoomHandle > mVZoomHandle
Definition: NoteTrackVRulerControls.h:38
Definition: TrackVRulerControls.h:20
Definition: NoteTrackVZoomHandle.h:21
Definition: NoteTrackVRulerControls.h:18
Definition: TrackPanelMouseEvent.h:45