Audacity 3.2.0
Enumerations | Functions | Variables
WaveTrackViewConstants Namespace Reference

Enumerations

enum  Display : int {
  MultiView = -1 , Waveform = 0 , MinDisplay = Waveform , obsoleteWaveformDBDisplay ,
  Spectrum , obsolete1 , obsolete2 , obsolete3 ,
  obsolete4 , MaxDisplay = Spectrum
}
 
enum  SampleDisplay { LinearInterpolate = 0 , StemPlot }
 
enum  ZoomPresets {
  kZoomToFit = 0 , kZoomToSelection , kZoomDefault , kZoomMinutes ,
  kZoomSeconds , kZoom5ths , kZoom10ths , kZoom20ths ,
  kZoom50ths , kZoom100ths , kZoom500ths , kZoomMilliSeconds ,
  kZoomSamples , kZoom4To1 , kMaxZoom
}
 
enum  ZoomActions {
  kZoom1to1 = 1 , kZoomTimes2 , kZoomDiv2 , kZoomHalfWave ,
  kZoomInByDrag , kZoomIn , kZoomOut , kZoomReset
}
 

Functions

Display ConvertLegacyDisplayValue (int oldValue)
 

Variables

AUDACITY_DLL_API const EnumValueSymbol MultiViewSymbol
 String identifier for a preference for one of each type of view. More...
 

Enumeration Type Documentation

◆ Display

Enumerator
MultiView 

"Multi" is special, not really a view type on par with the others.

Waveform 
MinDisplay 
obsoleteWaveformDBDisplay 
Spectrum 
obsolete1 
obsolete2 
obsolete3 
obsolete4 
MaxDisplay 

Definition at line 18 of file WaveTrackViewConstants.h.

18 : int {
19
20 MultiView = -1,
21
22 // DO NOT REORDER OLD VALUES! Replace obsoletes with placeholders.
23
24 Waveform = 0,
26
28
30
31 obsolete1, // was SpectrumLogDisplay
32 obsolete2, // was SpectralSelectionDisplay
33 obsolete3, // was SpectralSelectionLogDisplay
34 obsolete4, // was PitchDisplay
35
36 // Add values here, and update MaxDisplay.
37
39 };
@ MultiView
"Multi" is special, not really a view type on par with the others.

◆ SampleDisplay

Enumerator
LinearInterpolate 
StemPlot 

Definition at line 43 of file WaveTrackViewConstants.h.

◆ ZoomActions

Enumerator
kZoom1to1 
kZoomTimes2 
kZoomDiv2 
kZoomHalfWave 
kZoomInByDrag 
kZoomIn 
kZoomOut 
kZoomReset 

Definition at line 67 of file WaveTrackViewConstants.h.

◆ ZoomPresets

Enumerator
kZoomToFit 
kZoomToSelection 
kZoomDefault 
kZoomMinutes 
kZoomSeconds 
kZoom5ths 
kZoom10ths 
kZoom20ths 
kZoom50ths 
kZoom100ths 
kZoom500ths 
kZoomMilliSeconds 
kZoomSamples 
kZoom4To1 
kMaxZoom 

Definition at line 49 of file WaveTrackViewConstants.h.

49 {
50 kZoomToFit = 0,
65 };

Function Documentation

◆ ConvertLegacyDisplayValue()

WaveTrackViewConstants::Display WaveTrackViewConstants::ConvertLegacyDisplayValue ( int  oldValue)

Definition at line 16 of file WaveTrackViewConstants.cpp.

17{
18 // Remap old values.
19 enum class OldValues {
21 WaveformDB,
22 Spectrogram,
23 SpectrogramLogF,
24 Pitch,
25 };
26
27 Display newValue;
28 switch ((OldValues)oldValue) {
29 default:
31 newValue = Waveform; break;
32 case OldValues::WaveformDB:
33 newValue = obsoleteWaveformDBDisplay; break;
34 case OldValues::Spectrogram:
35 case OldValues::SpectrogramLogF:
36 case OldValues::Pitch:
37 newValue = Spectrum; break;
38 /*
39 case SpectrogramLogF:
40 newValue = WaveTrack::SpectrumLogDisplay; break;
41 case Pitch:
42 newValue = WaveTrack::PitchDisplay; break;
43 */
44 }
45 return newValue;
46}

References obsoleteWaveformDBDisplay, Spectrum, and Waveform.

Referenced by TracksViewModeEnumSetting::Migrate().

Here is the caller graph for this function:

Variable Documentation

◆ MultiViewSymbol

const EnumValueSymbol WaveTrackViewConstants::MultiViewSymbol
extern
Initial value:
{
wxT("Multiview"), XXO("&Multi-view")
}
wxT("CloseDown"))
#define XXO(s)
Definition: Internat.h:44

String identifier for a preference for one of each type of view.

Definition at line 105 of file WaveTrackViewConstants.cpp.

Referenced by DiscoverSubViewTypes(), and ViewModeSetting().