Audacity  2.2.0
CommonTrackPanelCell.h
Go to the documentation of this file.
1 /**********************************************************************
2 
3 Audacity: A Digital Audio Editor
4 
5 CommonTrackPanelCell.h
6 
7 Paul Licameli split from TrackPanel.cpp
8 
9 **********************************************************************/
10 
11 #ifndef __AUDACITY_COMMON_TRACK_PANEL_CELL__
12 #define __AUDACITY_COMMON_TRACK_PANEL_CELL__
13 
14 #include "../../TrackPanelCell.h"
15 #include "../../MemoryX.h"
16 #include <stdlib.h>
17 
18 class Track;
19 
20 class AUDACITY_DLL_API CommonTrackPanelCell /* not final */
21  : public TrackPanelCell
22 {
23 public:
25  : mVertScrollRemainder(0.0)
26  {}
27 
28  virtual ~CommonTrackPanelCell() = 0;
29 
30  virtual std::shared_ptr<Track> FindTrack() = 0;
31 
32 protected:
33  unsigned HandleWheelRotation
34  (const TrackPanelMouseEvent &event,
35  AudacityProject *pProject) override;
36 
37 private:
39 };
40 
41 #endif
virtual unsigned HandleWheelRotation(const TrackPanelMouseEvent &event, AudacityProject *pProject)
Definition: TrackPanel.cpp:3582
CommonTrackPanelCell()
Definition: CommonTrackPanelCell.h:24
AudacityProject provides the main window, with tools and tracks contained within it.
Definition: Project.h:161
Fundamental data object of Audacity, placed in the TrackPanel. Classes derived form it include the Wa...
Definition: Track.h:85
double mVertScrollRemainder
Definition: CommonTrackPanelCell.h:38
Definition: TrackPanelCell.h:32
Definition: CommonTrackPanelCell.h:20
Definition: TrackPanelMouseEvent.h:41