1
0
mirror of https://github.com/cookiengineer/audacity synced 2026-01-26 15:03:47 +01:00

Define TrackPanelOverlay, use it to reimplement play indicator and cursor...

... but scrub speed display is disabled
This commit is contained in:
Paul Licameli
2015-08-25 13:35:32 -04:00
committed by Paul Licameli
parent 54ac17c086
commit 1722ee9e32
20 changed files with 895 additions and 352 deletions

View File

@@ -13,6 +13,7 @@ Paul Licameli
#include <algorithm>
#include "AudioIO.h"
#include "Internat.h"
#include "prefs/GUISettings.h"
#include "Prefs.h"
@@ -123,6 +124,7 @@ ViewInfo::ViewInfo(double start, double screenDuration, double pixelsPerSecond)
, scrollStep(16)
, bUpdateTrackIndicator(true)
, bScrollBeyondZero(false)
, mRecentStreamTime(-1.0)
{
UpdatePrefs();
}
@@ -176,3 +178,9 @@ bool ViewInfo::ReadXMLAttribute(const wxChar *attr, const wxChar *value)
return false;
}
void ViewInfo::OnTimer(wxCommandEvent &event)
{
mRecentStreamTime = gAudioIO->GetStreamTime();
event.Skip();
}