Audacity 3.2.0
NoteTrackView.h
Go to the documentation of this file.
1/**********************************************************************
2
3Audacity: A Digital Audio Editor
4
5NoteTrackView.h
6
7Paul Licameli split from class NoteTrack
8
9**********************************************************************/
10
11#ifndef __AUDACITY_NOTE_TRACK_VIEW__
12#define __AUDACITY_NOTE_TRACK_VIEW__
13
14#include "../../../ui/CommonChannelView.h"
15
16class NoteTrackView final : public CommonChannelView
17{
18 NoteTrackView( const NoteTrackView& ) = delete;
20
21public:
22 explicit
23 NoteTrackView(const std::shared_ptr<Channel> &pChannel);
24 ~NoteTrackView() override;
25
26private:
27 std::shared_ptr<ChannelVRulerControls> DoGetVRulerControls() override;
28 std::shared_ptr<CommonTrackCell> GetAffordanceControls() override;
29
30 std::vector<UIHandlePtr> DetailedHitTest
31 (const TrackPanelMouseState &state,
32 const AudacityProject *pProject, int currentTool, bool bMultiTool)
33 override;
34
35 // TrackPanelDrawable implementation
36 void Draw(
38 const wxRect &rect, unsigned iPass ) override;
39
40 std::shared_ptr<CommonTrackCell> mpAffordanceCellControl;
41
42#ifdef EXPERIMENTAL_MIDI_STRETCHING
43 std::weak_ptr<class StretchHandle> mStretchHandle;
44#endif
45};
46#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
Implements some hit-testing shared by many ChannelView subtypes.
std::shared_ptr< CommonTrackCell > mpAffordanceCellControl
Definition: NoteTrackView.h:40
std::vector< UIHandlePtr > DetailedHitTest(const TrackPanelMouseState &state, const AudacityProject *pProject, int currentTool, bool bMultiTool) override
std::shared_ptr< CommonTrackCell > GetAffordanceControls() override
NoteTrackView(const NoteTrackView &)=delete
~NoteTrackView() override
std::shared_ptr< ChannelVRulerControls > DoGetVRulerControls() override
NoteTrackView & operator=(const NoteTrackView &)=delete
void Draw(TrackPanelDrawingContext &context, const wxRect &rect, unsigned iPass) override