Audacity  2.2.0
BackgroundCell.h
Go to the documentation of this file.
1 /**********************************************************************
2 
3 Audacity: A Digital Audio Editor
4 
5 BackgroundCell.h
6 
7 Paul Licameli split from TrackPanel.cpp
8 
9 **********************************************************************/
10 
11 #ifndef __AUDACITY_BACKGROUND_CELL__
12 #define __AUDACITY_BACKGROUND_CELL__
13 
14 #include "CommonTrackPanelCell.h"
15 #include "../../MemoryX.h"
16 
17 class AudacityProject;
18 
19 class BackgroundHandle;
20 class ZoomHandle;
21 
23 {
24 public:
26  : mpProject(pProject)
27  {}
28 
29  virtual ~BackgroundCell();
30 
31 protected:
32  std::vector<UIHandlePtr> HitTest
33  (const TrackPanelMouseState &state,
34  const AudacityProject *) override;
35 
36  std::shared_ptr<Track> FindTrack() override;
37 
38 private:
40 
41  std::weak_ptr<BackgroundHandle> mHandle;
42 
43 public:
44  // For want of a better place...
45  std::weak_ptr<ZoomHandle> mZoomHandle;
46 };
47 
48 #endif
Definition: ZoomHandle.h:20
Definition: BackgroundCell.cpp:25
virtual ~BackgroundCell()
Definition: BackgroundCell.cpp:78
std::shared_ptr< Track > FindTrack() override
Definition: BackgroundCell.cpp:94
BackgroundCell(AudacityProject *pProject)
Definition: BackgroundCell.h:25
AudacityProject * mpProject
Definition: BackgroundCell.h:39
std::vector< UIHandlePtr > HitTest(const TrackPanelMouseState &state, const AudacityProject *) override
Definition: BackgroundCell.cpp:83
Definition: TrackPanelMouseEvent.h:23
AudacityProject provides the main window, with tools and tracks contained within it.
Definition: Project.h:161
std::weak_ptr< ZoomHandle > mZoomHandle
Definition: BackgroundCell.h:45
Definition: CommonTrackPanelCell.h:20
Definition: BackgroundCell.h:22
std::weak_ptr< BackgroundHandle > mHandle
Definition: BackgroundCell.h:41