Audacity  2.2.0
EditCursorOverlay.h
Go to the documentation of this file.
1 /**********************************************************************
2 
3 Audacity: A Digital Audio Editor
4 
5 EditCursorOverlay.h
6 
7 Paul Licameli split from TrackPanel.cpp
8 
9 **********************************************************************/
10 
11 #ifndef __AUDACITY_EDIT_CURSOR_OVERLAY__
12 #define __AUDACITY_EDIT_CURSOR_OVERLAY__
13 
14 #include "../../MemoryX.h"
15 #include "../../widgets/Overlay.h"
16 
17 class AudacityProject;
18 
19 class EditCursorOverlay final : public Overlay
20 {
21 public:
22  EditCursorOverlay(AudacityProject *project, bool isMaster = true);
23  virtual ~EditCursorOverlay();
24 
25 private:
26  std::pair<wxRect, bool> DoGetRectangle(wxSize size) override;
27  void Draw(OverlayPanel &panel, wxDC &dc) override;
28 
30  bool mIsMaster;
31  std::unique_ptr<EditCursorOverlay> mPartner;
32 
34  double mCursorTime;
36 };
37 
38 #endif
double mCursorTime
Definition: EditCursorOverlay.h:34
AudacityProject provides the main window, with tools and tracks contained within it.
Definition: Project.h:161
void Draw(OverlayPanel &panel, wxDC &dc) override
Definition: EditCursorOverlay.cpp:78
AudacityProject * mProject
Definition: EditCursorOverlay.h:29
std::pair< wxRect, bool > DoGetRectangle(wxSize size) override
Definition: EditCursorOverlay.cpp:55
Definition: OverlayPanel.h:17
int mLastCursorX
Definition: EditCursorOverlay.h:33
std::unique_ptr< EditCursorOverlay > mPartner
Definition: EditCursorOverlay.h:31
virtual ~EditCursorOverlay()
Definition: EditCursorOverlay.cpp:46
Definition: Overlay.h:19
bool mIsMaster
Definition: EditCursorOverlay.h:30
Definition: EditCursorOverlay.h:19
EditCursorOverlay(AudacityProject *project, bool isMaster=true)
Definition: EditCursorOverlay.cpp:37
int mNewCursorX
Definition: EditCursorOverlay.h:35