1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-11-08 06:03:49 +01:00

Move PositionToTime, TimeToPosition into class ZoomInfo ...

... and use them in many more places in TrackPanel.cpp, so there are fewer
direct uses of ZoomInfo::zoom.

Also use then in horizontal scrolling code
This commit is contained in:
Paul-Licameli
2015-04-19 17:12:06 -04:00
committed by Paul Licameli
parent 5a6d5d1443
commit 5418ce377b
4 changed files with 229 additions and 195 deletions

View File

@@ -356,6 +356,8 @@ class AUDACITY_DLL_API AudacityProject: public wxFrame,
void SafeDisplayStatusMessage(const wxChar *msg);
double ScrollingLowerBoundTime() const;
// How many pixels are covered by the period from lowermost scrollable time, to the given time:
wxInt64 PixelWidthBeforeTime(double scrollto) const;
void SetHorizontalThumb(double scrollto);
// TrackPanel access