Audacity 3.2.0
|
Public Member Functions | |
ScrubbingOverlay (AudacityProject *project) | |
Public Member Functions inherited from Overlay | |
Overlay ()=default | |
Overlay (const Overlay &)=delete | |
Overlay & | operator= (const Overlay &)=delete |
virtual | ~Overlay ()=0 |
virtual unsigned | SequenceNumber () const =0 |
This number determines an ordering of overlays, so that those with higher numbers overpaint those with lower numbers that intersect. More... | |
std::pair< wxRect, bool > | GetRectangle (wxSize size) |
virtual std::pair< wxRect, bool > | DoGetRectangle (wxSize size)=0 |
virtual void | Erase (wxDC &dc, wxDC &src) |
virtual void | Draw (OverlayPanel &panel, wxDC &dc)=0 |
Public Member Functions inherited from ClientData::Base | |
virtual | ~Base () |
Private Member Functions | |
unsigned | SequenceNumber () const override |
This number determines an ordering of overlays, so that those with higher numbers overpaint those with lower numbers that intersect. More... | |
std::pair< wxRect, bool > | DoGetRectangle (wxSize size) override |
void | Draw (OverlayPanel &panel, wxDC &dc) override |
void | OnTimer (Observer::Message) |
const Scrubber & | GetScrubber () const |
Scrubber & | GetScrubber () |
Private Attributes | |
AudacityProject * | mProject |
Observer::Subscription | mSubscription |
wxRect | mLastScrubRect |
wxRect | mNextScrubRect |
wxString | mLastScrubSpeedText |
wxString | mNextScrubSpeedText |
Definition at line 29 of file ScrubUI.cpp.
|
explicit |
Definition at line 54 of file ScrubUI.cpp.
References ProjectWindow::Get(), ProjectWindow::GetPlaybackScroller(), mSubscription, OnTimer(), and Observer::Publisher< Message, NotifyAll >::Subscribe().
|
overrideprivatevirtual |
Implements Overlay.
Definition at line 70 of file ScrubUI.cpp.
References GetScrubber(), mLastScrubRect, mLastScrubSpeedText, mNextScrubRect, mNextScrubSpeedText, and Scrubber::ShouldDrawScrubSpeed().
|
overrideprivatevirtual |
Implements Overlay.
Definition at line 83 of file ScrubUI.cpp.
References GetScrubber(), Scrubber::IsScrollScrubbing(), mLastScrubRect, mLastScrubSpeedText, mNextScrubRect, mNextScrubSpeedText, and Scrubber::ShouldDrawScrubSpeed().
|
private |
Definition at line 196 of file ScrubUI.cpp.
References Scrubber::Get(), and mProject.
|
private |
Definition at line 191 of file ScrubUI.cpp.
References Scrubber::Get(), and mProject.
Referenced by DoGetRectangle(), Draw(), and OnTimer().
|
private |
Definition at line 109 of file ScrubUI.cpp.
References Scrubber::FindScrubSpeed(), anonymous_namespace{ExportPCM.cpp}::format, ViewInfo::Get(), AdornedRulerPanel::Get(), Scrubber::GetMaxScrubSpeed(), GetProjectPanel(), GetScrubber(), Scrubber::HasMark(), Scrubber::IsKeyboardScrubbing(), Scrubber::IsScrollScrubbing(), Scrubber::IsScrubbing(), Scrubber::IsSpeedPlaying(), Scrubber::MaybeStartScrubbing(), min(), mNextScrubRect, mNextScrubSpeedText, mProject, anonymous_namespace{TimeTrackVRulerControls.cpp}::ruler(), Scrubber::Seeks(), Scrubber::ShouldDrawScrubSpeed(), Scrubber::TemporarilySeeks(), and wxT().
Referenced by ScrubbingOverlay().
|
overrideprivatevirtual |
This number determines an ordering of overlays, so that those with higher numbers overpaint those with lower numbers that intersect.
Implements Overlay.
Definition at line 65 of file ScrubUI.cpp.
|
private |
Definition at line 50 of file ScrubUI.cpp.
Referenced by DoGetRectangle(), and Draw().
|
private |
Definition at line 51 of file ScrubUI.cpp.
Referenced by DoGetRectangle(), and Draw().
|
private |
Definition at line 50 of file ScrubUI.cpp.
Referenced by DoGetRectangle(), Draw(), and OnTimer().
|
private |
Definition at line 51 of file ScrubUI.cpp.
Referenced by DoGetRectangle(), Draw(), and OnTimer().
|
private |
Definition at line 47 of file ScrubUI.cpp.
Referenced by GetScrubber(), and OnTimer().
|
private |
Definition at line 48 of file ScrubUI.cpp.
Referenced by ScrubbingOverlay().