#include <Scrubbing.h>
Definition at line 39 of file Scrubbing.h.
◆ Scrubber() [1/2]
Definition at line 197 of file Scrubbing.cpp.
203#ifdef EXPERIMENTAL_SCRUBBING_SCROLL_WHEEL
204 , mLogMaxScrubSpeed(0)
205#endif
206
208 ,
mPoller { std::make_unique<ScrubPoller>(*
this) }
210
211{
212 if (wxTheApp)
213 wxTheApp->Bind
214 (wxEVT_ACTIVATE_APP,
216
218}
wxCoord mScrubStartPosition
bool mSmoothScrollingScrub
std::unique_ptr< ScrubPoller > mPoller
void OnActivateOrDeactivateApp(wxActivateEvent &event)
int mScrubSpeedDisplayCountdown
AudacityProject * mProject
void UpdatePrefs() override
ScrubbingOptions mOptions
References OnActivateOrDeactivateApp(), and UpdatePrefs().
◆ Scrubber() [2/2]
◆ ~Scrubber()
◆ Cancel()
void Scrubber::Cancel |
( |
| ) |
|
|
inline |
◆ CanScrub()
bool Scrubber::CanScrub |
( |
| ) |
const |
◆ CheckMenuItems()
void Scrubber::CheckMenuItems |
( |
| ) |
|
◆ ChoseSeeking()
bool Scrubber::ChoseSeeking |
( |
| ) |
const |
◆ ContinueScrubbingPoll()
void Scrubber::ContinueScrubbingPoll |
( |
| ) |
|
◆ ContinueScrubbingUI()
void Scrubber::ContinueScrubbingUI |
( |
| ) |
|
◆ DoKeyboardScrub()
void Scrubber::DoKeyboardScrub |
( |
bool |
backwards, |
|
|
bool |
keyUp |
|
) |
| |
◆ DoScrub()
void Scrubber::DoScrub |
( |
bool |
seek | ) |
|
|
private |
◆ FindScrubSpeed()
double Scrubber::FindScrubSpeed |
( |
bool |
seeking, |
|
|
double |
time |
|
) |
| const |
◆ Get() [1/2]
Definition at line 187 of file Scrubbing.cpp.
188{
190}
static const AudacityProject::AttachedObjects::RegisteredFactory key
References key, and project.
Referenced by AdornedRulerPanel::ScrubbingHandle::Cancel(), AdornedRulerPanel::ScrubbingHandle::Click(), ProjectAudioManager::DoPlayStopSelect(), ScrubbingToolBar::DoRegenerateTooltips(), ScrubbingToolBar::EnableDisableButtons(), Get(), anonymous_namespace{PlayIndicatorOverlay.cpp}::GetIndicatorBitmap(), ScrubbingOverlay::GetScrubber(), anonymous_namespace{AdornedRulerPanel.cpp}::PlayheadHandle::HitTest(), ProjectWindow::MayScrollBeyondZero(), ScrubbingToolBar::OnButton(), ControlToolBar::OnIdle(), AudacityApp::OnKeyDown(), ProjectAudioManager::OnPause(), PlayIndicatorOverlay::OnTimer(), AdornedRulerPanel::ScrubbingHandle::Preview(), ScrubForwarder::ScrubForwarder(), AdornedRulerPanel::ShowingScrubRuler(), AdornedRulerPanel::ShowScrubMenu(), ControlToolBar::StartScrollingIfPreferred(), ControlToolBar::StateForStatusBar(), ProjectAudioManager::Stop(), AdornedRulerPanel::TogglePinnedHead(), AdornedRulerPanel::ScrubbingRulerOverlay::Update(), and AdornedRulerPanel::TrackPanelGuidelineOverlay::Update().
◆ Get() [2/2]
Definition at line 192 of file Scrubbing.cpp.
193{
195}
The top-level handle to an Audacity project. It serves as a source of events that other objects can b...
static Scrubber & Get(AudacityProject &project)
References Get(), and project.
◆ GetKeyboardScrubbingSpeed()
double Scrubber::GetKeyboardScrubbingSpeed |
( |
| ) |
|
◆ GetMaxScrubSpeed()
double Scrubber::GetMaxScrubSpeed |
( |
| ) |
const |
|
inline |
◆ GetScrubStartPosition()
wxCoord Scrubber::GetScrubStartPosition |
( |
| ) |
const |
|
inline |
◆ GetUntranslatedStateString()
◆ HandleScrollWheel()
void Scrubber::HandleScrollWheel |
( |
int |
steps | ) |
|
◆ HasMark()
bool Scrubber::HasMark |
( |
| ) |
const |
|
inline |
◆ IsBackwards()
bool Scrubber::IsBackwards |
( |
| ) |
const |
|
inline |
◆ IsKeyboardScrubbing()
bool Scrubber::IsKeyboardScrubbing |
( |
| ) |
const |
|
inline |
◆ IsPaused()
bool Scrubber::IsPaused |
( |
| ) |
const |
◆ IsScrollScrubbing()
bool Scrubber::IsScrollScrubbing |
( |
| ) |
const |
|
inline |
◆ IsScrubbing()
bool Scrubber::IsScrubbing |
( |
| ) |
const |
◆ IsSpeedPlaying()
bool Scrubber::IsSpeedPlaying |
( |
| ) |
const |
|
inline |
◆ IsTransportingPinned()
bool Scrubber::IsTransportingPinned |
( |
| ) |
const |
◆ JoinThread()
void Scrubber::JoinThread |
( |
| ) |
|
|
private |
Definition at line 220 of file Scrubbing.cpp.
221{
222#ifdef USE_SCRUB_THREAD
223 if (mThread.joinable()) {
224 mFinishThread.store(true, std::memory_order_release);
225 mThread.join();
226 }
227#endif
228}
Referenced by ~Scrubber().
◆ MarkScrubStart()
void Scrubber::MarkScrubStart |
( |
wxCoord |
xx, |
|
|
bool |
smoothScrolling, |
|
|
bool |
seek |
|
) |
| |
◆ MaybeStartScrubbing()
bool Scrubber::MaybeStartScrubbing |
( |
wxCoord |
xx | ) |
|
◆ MayDragToSeek()
bool Scrubber::MayDragToSeek |
( |
| ) |
const |
|
inline |
◆ OnActivateOrDeactivateApp()
void Scrubber::OnActivateOrDeactivateApp |
( |
wxActivateEvent & |
event | ) |
|
|
private |
◆ OnKeyboardScrubBackwards()
◆ OnKeyboardScrubForwards()
◆ OnScrub()
◆ OnScrubOrSeek()
void Scrubber::OnScrubOrSeek |
( |
bool |
seek | ) |
|
◆ OnSeek()
◆ OnToggleScrubRuler()
◆ operator=()
◆ Pause()
void Scrubber::Pause |
( |
bool |
paused | ) |
|
◆ PopulatePopupMenu()
void Scrubber::PopulatePopupMenu |
( |
wxMenu & |
menu | ) |
|
◆ ScrubPollerThread()
void Scrubber::ScrubPollerThread |
( |
| ) |
|
|
private |
◆ Scrubs()
bool Scrubber::Scrubs |
( |
| ) |
const |
◆ Seeks()
bool Scrubber::Seeks |
( |
| ) |
const |
◆ SetBackwards()
void Scrubber::SetBackwards |
( |
bool |
backwards | ) |
|
|
inline |
◆ SetMayDragToSeek()
void Scrubber::SetMayDragToSeek |
( |
bool |
value | ) |
|
|
inline |
◆ SetScrollScrubbing()
void Scrubber::SetScrollScrubbing |
( |
bool |
value | ) |
|
|
inline |
◆ SetSeekPress()
void Scrubber::SetSeekPress |
( |
bool |
value | ) |
|
|
inline |
◆ ShouldDrawScrubSpeed()
bool Scrubber::ShouldDrawScrubSpeed |
( |
| ) |
|
◆ ShouldScrubPinned()
bool Scrubber::ShouldScrubPinned |
( |
| ) |
|
|
static |
◆ ShowsBar()
bool Scrubber::ShowsBar |
( |
| ) |
const |
◆ StartKeyboardScrubbing()
bool Scrubber::StartKeyboardScrubbing |
( |
double |
time0, |
|
|
bool |
backwards |
|
) |
| |
◆ StartPolling()
void Scrubber::StartPolling |
( |
| ) |
|
|
private |
- Precondition
!mThread.joinable()
(when defined(USE_SCRUB_THREAD))
◆ StatusMessageForWave()
wxString Scrubber::StatusMessageForWave |
( |
| ) |
const |
◆ StopPolling()
void Scrubber::StopPolling |
( |
| ) |
|
|
private |
◆ StopScrubbing()
void Scrubber::StopScrubbing |
( |
| ) |
|
◆ TemporarilySeeks()
bool Scrubber::TemporarilySeeks |
( |
| ) |
const |
◆ Thunk()
void Scrubber::Thunk |
( |
wxCommandEvent & |
| ) |
|
|
inline |
◆ UpdatePrefs()
void Scrubber::UpdatePrefs |
( |
| ) |
|
|
overrideprivatevirtual |
◆ WasKeyboardScrubbing()
bool Scrubber::WasKeyboardScrubbing |
( |
| ) |
const |
|
inline |
◆ WasSpeedPlaying()
bool Scrubber::WasSpeedPlaying |
( |
| ) |
const |
|
inline |
◆ mBackwards
bool Scrubber::mBackwards {} |
|
private |
◆ mCancelled
bool Scrubber::mCancelled {} |
|
private |
◆ mDragging
bool Scrubber::mDragging {} |
|
private |
◆ mKeyboardScrubbing
bool Scrubber::mKeyboardScrubbing {} |
|
private |
◆ mLastScrubPosition
wxCoord Scrubber::mLastScrubPosition {} |
|
private |
◆ mMaxSpeed
double Scrubber::mMaxSpeed { 1.0 } |
|
private |
◆ mMayDragToSeek
bool Scrubber::mMayDragToSeek { false } |
|
private |
◆ mOptions
◆ mPaused
bool Scrubber::mPaused {} |
|
private |
◆ mPoller
◆ mProject
◆ mScrubSeekPress
bool Scrubber::mScrubSeekPress {} |
|
private |
◆ mScrubSpeedDisplayCountdown
int Scrubber::mScrubSpeedDisplayCountdown |
|
private |
◆ mScrubStartPosition
wxCoord Scrubber::mScrubStartPosition |
|
private |
◆ mScrubToken
int Scrubber::mScrubToken |
|
private |
◆ mSeeking
bool Scrubber::mSeeking {} |
|
private |
◆ mShowScrubbing
bool Scrubber::mShowScrubbing { false } |
|
private |
◆ mSmoothScrollingScrub
bool Scrubber::mSmoothScrollingScrub |
|
private |
◆ mSpeedPlaying
bool Scrubber::mSpeedPlaying {true} |
|
private |
The documentation for this class was generated from the following files: