Audacity  2.2.0
NoteTrackControls.h
Go to the documentation of this file.
1 /**********************************************************************
2 
3 Audacity: A Digital Audio Editor
4 
5 NoteTrackControls.h
6 
7 Paul Licameli split from TrackPanel.cpp
8 
9 **********************************************************************/
10 
11 #ifndef __AUDACITY_NOTE_TRACK_CONTROLS__
12 #define __AUDACITY_NOTE_TRACK_CONTROLS__
13 
14 #include "../../../ui/TrackControls.h"
15 #include "../../../../MemoryX.h"
16 class MuteButtonHandle;
17 class SoloButtonHandle;
19 class VelocitySliderHandle;
20 
23 {
24  NoteTrackControls(const NoteTrackControls&) = delete;
26 
27  std::weak_ptr<MuteButtonHandle> mMuteHandle;
28  std::weak_ptr<SoloButtonHandle> mSoloHandle;
29  std::weak_ptr<NoteTrackButtonHandle> mClickHandle;
30  std::weak_ptr<VelocitySliderHandle> mVelocityHandle;
31 
32 public:
33  explicit
34  NoteTrackControls( std::shared_ptr<Track> pTrack )
35  : TrackControls( pTrack ) {}
37 
38  std::vector<UIHandlePtr> HitTest
39  (const TrackPanelMouseState &state,
40  const AudacityProject *pProject) override;
41 
42  PopupMenuTable *GetMenuExtension(Track *pTrack) override;
43 };
44 
45 #endif
std::weak_ptr< VelocitySliderHandle > mVelocityHandle
Definition: NoteTrackControls.h:30
Definition: NoteTrackButtonHandle.h:23
Definition: TrackPanelMouseEvent.h:23
AudacityProject provides the main window, with tools and tracks contained within it.
Definition: Project.h:161
Definition: TrackControls.h:25
Definition: PlayableTrackButtonHandles.h:17
std::weak_ptr< NoteTrackButtonHandle > mClickHandle
Definition: NoteTrackControls.h:29
Fundamental data object of Audacity, placed in the TrackPanel. Classes derived form it include the Wa...
Definition: Track.h:85
std::vector< UIHandlePtr > HitTest(const TrackPanelMouseState &state, const AudacityProject *pProject) override
std::weak_ptr< MuteButtonHandle > mMuteHandle
Definition: NoteTrackControls.h:27
Definition: PlayableTrackButtonHandles.h:47
Definition: PopupMenuTable.h:56
Definition: NoteTrackControls.h:22
NoteTrackControls(std::shared_ptr< Track > pTrack)
Definition: NoteTrackControls.h:34
PopupMenuTable * GetMenuExtension(Track *pTrack) override
NoteTrackControls(const NoteTrackControls &)=delete
NoteTrackControls & operator=(const NoteTrackControls &)=delete
std::weak_ptr< SoloButtonHandle > mSoloHandle
Definition: NoteTrackControls.h:28