Audacity  2.2.0
LabelTrackControls.h
Go to the documentation of this file.
1 /**********************************************************************
2 
3 Audacity: A Digital Audio Editor
4 
5 LabelTrackControls.h
6 
7 Paul Licameli split from TrackPanel.cpp
8 
9 **********************************************************************/
10 
11 #ifndef __AUDACITY_LABEL_TRACK_CONTROLS__
12 #define __AUDACITY_LABEL_TRACK_CONTROLS__
13 
14 #include "../../ui/TrackControls.h"
15 
16 class LabelTrackControls final : public TrackControls
17 {
18  LabelTrackControls(const LabelTrackControls&) = delete;
20 
21 public:
22  explicit
23  LabelTrackControls( std::shared_ptr<Track> pTrack )
24  : TrackControls( pTrack ) {}
26 
27  std::vector<UIHandlePtr> HitTest
28  (const TrackPanelMouseState &state,
29  const AudacityProject *pProject) override;
30 
31  PopupMenuTable *GetMenuExtension(Track *pTrack) override;
32 };
33 
34 #endif
std::vector< UIHandlePtr > HitTest(const TrackPanelMouseState &state, const AudacityProject *pProject) override
Definition: LabelTrackControls.cpp:30
LabelTrackControls(const LabelTrackControls &)=delete
LabelTrackControls(std::shared_ptr< Track > pTrack)
Definition: LabelTrackControls.h:23
LabelTrackControls & operator=(const LabelTrackControls &)=delete
Definition: TrackPanelMouseEvent.h:23
Definition: LabelTrackControls.h:16
~LabelTrackControls()
Definition: LabelTrackControls.cpp:25
AudacityProject provides the main window, with tools and tracks contained within it.
Definition: Project.h:161
Definition: TrackControls.h:25
Fundamental data object of Audacity, placed in the TrackPanel. Classes derived form it include the Wa...
Definition: Track.h:85
Definition: PopupMenuTable.h:56
PopupMenuTable * GetMenuExtension(Track *pTrack) override
Definition: LabelTrackControls.cpp:167