Audacity 3.2.0
TimeTrackVRulerControls.h
Go to the documentation of this file.
1/**********************************************************************
2
3Audacity: A Digital Audio Editor
4
5TimeTrackVRulerControls.h
6
7Paul Licameli split from TrackPanel.cpp
8
9**********************************************************************/
10
11#ifndef __AUDACITY_TIME_TRACK_VRULER_CONTROLS__
12#define __AUDACITY_TIME_TRACK_VRULER_CONTROLS__
13
14#include "../../ui/ChannelVRulerControls.h"
15
17
18// This class is here for completeness, by analogy with other track
19// types, but it does nothing.
21{
24
25public:
26 explicit
27 TimeTrackVRulerControls(const std::shared_ptr<ChannelView> &pChannelView)
28 : ChannelVRulerControls{ pChannelView } {}
30
31 std::vector<UIHandlePtr> HitTest(
32 const TrackPanelMouseState &state,
33 const AudacityProject *) override;
34
35private:
36
37 // TrackPanelDrawable implementation
38 void Draw(
40 const wxRect &rect, unsigned iPass) override;
41
42 // ChannelVRulerControls implementation
43 void UpdateRuler(const wxRect &rect) override;
44
45 std::weak_ptr<TimeTrackVZoomHandle> mVZoomHandle;
46};
47
48#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
TimeTrackVRulerControls & operator=(const TimeTrackVRulerControls &)=delete
TimeTrackVRulerControls(const std::shared_ptr< ChannelView > &pChannelView)
void Draw(TrackPanelDrawingContext &context, const wxRect &rect, unsigned iPass) override
TimeTrackVRulerControls(const TimeTrackVRulerControls &)=delete
std::weak_ptr< TimeTrackVZoomHandle > mVZoomHandle
void UpdateRuler(const wxRect &rect) override
std::vector< UIHandlePtr > HitTest(const TrackPanelMouseState &state, const AudacityProject *) override