1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-12-15 09:01:12 +01:00

Double click on Record button pins record head right, not center

This commit is contained in:
Paul Licameli
2016-05-17 12:19:58 -04:00
parent c01e5dc6b8
commit c66262d790
7 changed files with 44 additions and 14 deletions

View File

@@ -728,16 +728,23 @@ public:
explicit PlaybackScroller(AudacityProject *project);
~PlaybackScroller();
void Activate(bool active)
enum class Mode {
Off,
Centered,
Right,
};
Mode GetMode() const { return mMode; }
void Activate(Mode mode)
{
mActive = active;
mMode = mode;
}
private:
void OnTimer(wxCommandEvent &event);
AudacityProject *mProject;
bool mActive { false };
Mode mMode { Mode::Off };
};
std::unique_ptr<PlaybackScroller> mPlaybackScroller;