11#ifndef __AUDACITY_WAVEFORM_SETTINGS__
12#define __AUDACITY_WAVEFORM_SETTINGS__
40 WaveChannel &channel, std::unique_ptr<WaveformSettings> pSettings );
65 return this == &defaults();
68 bool Validate(
bool quiet);
75 void ConvertToEnumeratedDBRange();
76 void ConvertToActualDBRange();
77 void NextLowerDBRange();
78 void NextHigherDBRange();
95 bool isLinear()
const {
return scaleType == stLinearAmp || scaleType == stLinearDb; }
113 int ZeroLevelYCoordinate(wxRect rect)
const;
116 {
min = mDisplayMin; max = mDisplayMax; }
119 { mDisplayMin =
min; mDisplayMax = max; }
128 float mDisplayMin = -1.0f, mDisplayMax = 1.0f;
129 int mLastScaleType = -1;
130 int mLastdBRange = -1;
Utility ClientData::Site to register hooks into a host class that attach client data.
A listener notified of changes in preferences.
virtual void UpdatePrefs()=0
A Track that contains audio waveform data.
Services * Get()
Fetch the global instance, or nullptr if none is yet installed.
A convenient base class defining abstract virtual Clone() for a given kind of pointer.
virtual PointerType Clone() const =0
Owner< Base > PointerType
Cloneable & operator=(const Cloneable &)=default