mirror of
https://github.com/cookiengineer/audacity
synced 2025-10-15 23:21:12 +02:00
... except for Tags; also some uses of final and explicit This caught a mistake in Scrubbing.cpp
43 lines
980 B
C++
43 lines
980 B
C++
/**********************************************************************
|
|
|
|
Audacity: A Digital Audio Editor
|
|
|
|
EditCursorOverlay.h
|
|
|
|
Paul Licameli split from TrackPanel.cpp
|
|
|
|
**********************************************************************/
|
|
|
|
#ifndef __AUDACITY_EDIT_CURSOR_OVERLAY__
|
|
#define __AUDACITY_EDIT_CURSOR_OVERLAY__
|
|
|
|
#include <memory>
|
|
#include "../../ClientData.h" // to inherit
|
|
#include "../../widgets/Overlay.h" // to inherit
|
|
|
|
class AudacityProject;
|
|
|
|
class EditCursorOverlay final
|
|
: public Overlay
|
|
, public ClientData::Base
|
|
{
|
|
public:
|
|
explicit
|
|
EditCursorOverlay(AudacityProject *project, bool isMaster = true);
|
|
|
|
private:
|
|
unsigned SequenceNumber() const override;
|
|
std::pair<wxRect, bool> DoGetRectangle(wxSize size) override;
|
|
void Draw(OverlayPanel &panel, wxDC &dc) override;
|
|
|
|
AudacityProject *mProject;
|
|
bool mIsMaster;
|
|
std::shared_ptr<EditCursorOverlay> mPartner;
|
|
|
|
int mLastCursorX;
|
|
double mCursorTime;
|
|
int mNewCursorX;
|
|
};
|
|
|
|
#endif
|