| 1 |
/********************************************************************** |
| 2 |
|
| 3 |
Audacity: A Digital Audio Editor |
| 4 |
|
| 5 |
NoteTrackView.h |
| 6 |
|
| 7 |
Paul 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 |
|
| 16 |
class NoteTrackView final : public CommonChannelView |
| 17 |
{ |
| 18 |
NoteTrackView( const NoteTrackView& ) = delete; |
| 19 |
NoteTrackView &operator=( const NoteTrackView& ) = delete; |
| 20 |
|
| 21 |
public: |
| 22 |
explicit |
| 23 |
NoteTrackView(const std::shared_ptr<Channel> &pChannel); |
| 24 |
~NoteTrackView() override; |
| 25 |
|
| 26 |
private: |
| 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( |
| 37 |
TrackPanelDrawingContext &context, |
| 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 |