mirror of
https://github.com/cookiengineer/audacity
synced 2025-06-24 08:10:05 +02:00
One more alternate play button image, for seeking
This commit is contained in:
parent
6a3613e8e9
commit
bbb93a7400
@ -168,6 +168,8 @@ void ControlToolBar::Populate()
|
||||
bmpCutPreview, bmpCutPreview, bmpCutPreviewDisabled);
|
||||
MakeAlternateImages(*mPlay, 3,
|
||||
bmpScrub, bmpScrub, bmpScrubDisabled);
|
||||
MakeAlternateImages(*mPlay, 4,
|
||||
bmpSeek, bmpSeek, bmpSeekDisabled);
|
||||
mPlay->FollowModifierKeys();
|
||||
|
||||
mStop = MakeButton( bmpStop, bmpStop, bmpStopDisabled ,
|
||||
|
@ -62,7 +62,7 @@ class ControlToolBar final : public ToolBar {
|
||||
|
||||
// Choice among the appearances of the play button:
|
||||
enum class PlayAppearance {
|
||||
Straight, Looped, CutPreview, Scrub
|
||||
Straight, Looped, CutPreview, Scrub, Seek
|
||||
};
|
||||
|
||||
//These allow buttons to be controlled externally:
|
||||
|
@ -269,7 +269,9 @@ void Scrubber::MarkScrubStart(
|
||||
// scrubber state
|
||||
mProject->SetAudioIOToken(0);
|
||||
|
||||
ctb->SetPlay(true, ControlToolBar::PlayAppearance::Scrub);
|
||||
ctb->SetPlay(true, mSeeking
|
||||
? ControlToolBar::PlayAppearance::Seek
|
||||
: ControlToolBar::PlayAppearance::Scrub);
|
||||
|
||||
ctb->UpdateStatusBar(mProject);
|
||||
|
||||
@ -349,8 +351,9 @@ bool Scrubber::MaybeStartScrubbing(wxCoord xx)
|
||||
mOptions.minStutter =
|
||||
mDragging ? 0.0 : lrint(std::max(0.0, MinStutter) * options.rate);
|
||||
|
||||
ControlToolBar::PlayAppearance appearance =
|
||||
ControlToolBar::PlayAppearance::Scrub;
|
||||
ControlToolBar::PlayAppearance appearance = mSeeking
|
||||
? ControlToolBar::PlayAppearance::Seek
|
||||
: ControlToolBar::PlayAppearance::Scrub;
|
||||
const bool cutPreview = false;
|
||||
const bool backwards = time1 < time0;
|
||||
#ifdef EXPERIMENTAL_SCRUBBING_SCROLL_WHEEL
|
||||
|
Loading…
x
Reference in New Issue
Block a user