57 auto &mutTrack =
const_cast<WaveTrack&
>(track);
59 mutTrack.WaveTrack::Attachments::Get(
key1));
63 WaveTrack &track, std::unique_ptr<WaveformSettings> pSettings)
65 track.WaveTrack::Attachments::Assign(
key1, move(pSettings));
147 for (
int nn = codes.size(); ii < nn; ++ii) {
149 codes[ii].ToLong(&value);
185 {
wxT(
"Linear"),
XO(
"Linear (amp)") },
186 {
wxT(
"dB"),
XO(
"Logarithmic (dB)") },
187 {
wxT(
"LinearDB"),
XO(
"Linear (dB)") },
198 return std::make_unique<WaveformSettings>(*
this);
203 return std::make_unique<WaveformScale>();
209 auto &mutTrack =
const_cast<WaveTrack&
>(track);
211 mutTrack.WaveTrack::Attachments::Get(
key2));
218 return std::make_unique<WaveformScale>(*
this);
223 return rect.GetTop() +
IntSetting DecibelScaleCutoff
Negation of this value is the lowest dB level that should be shown in dB scales.
Client code makes static instance from a factory of attachments; passes it to Get or Find as a retrie...
static void GetRangeChoices(TranslatableStrings *pChoices, wxArrayStringEx *pCodes, int *pDefaultRangeIndex=nullptr)
bool Read(T *pVar) const
overload of Read returning a boolean that is true if the value was previously defined */
static WaveformSettings::ScaleTypeValues WaveformScaleChoice()
A Track that contains audio waveform data.
Extend wxArrayString with move operations and construction and insertion fromstd::initializer_list.
ClientData::UniquePtr< Base > PointerType