1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-10-25 15:53:52 +02:00

Zoom Toggle

Added preferences for Zoom-Toggle and put into menus.
New helper functions for determining zoom scaling.

Optional EXPERIMENTAL_ZOOM_TOGGLE_BUTTON added, and Light theme updated.
Not enabled for 2.2.2.
This commit is contained in:
James Crook
2018-01-04 15:56:15 +00:00
parent f57fdc99d7
commit 0cc9c6bc3b
13 changed files with 3680 additions and 3555 deletions

View File

@@ -577,10 +577,23 @@ class AUDACITY_DLL_API WaveTrack final : public PlayableTrack {
// Only two types of sample display for now, but
// others (eg sinc interpolation) may be added later.
enum SampleDisplay {
LinarInterpolate = 0,
LinearInterpolate = 0,
StemPlot
};
// Various preset zooming levels.
enum ZoomPresets {
kZoomToFit = 0,
kZoomToSelection,
kZoomDefault,
kZoomMinutes,
kZoomSeconds,
kZoomMilliSeconds,
kZoomSamples,
kZoom4To1,
kMaxZoom,
};
// Read appropriate value from preferences
static WaveTrackDisplay FindDefaultViewMode();