55 auto &mutTrack =
const_cast<WaveTrack&
>(track);
65 WaveChannel &channel, std::unique_ptr<WaveformSettings> pSettings)
67 channel.
GetTrack().Attachments::Assign(
key1, move(pSettings));
149 for (
int nn = codes.size(); ii < nn; ++ii) {
151 codes[ii].ToLong(&value);
187 {
wxT(
"Linear"),
XO(
"Linear (amp)") },
188 {
wxT(
"dB"),
XO(
"Logarithmic (dB)") },
189 {
wxT(
"LinearDB"),
XO(
"Linear (dB)") },
200 return std::make_unique<WaveformSettings>(*
this);
204key2{ [](
auto &) {
return std::make_unique<WaveformScale>(); } };
208 auto &mutTrack =
const_cast<WaveTrack&
>(track);
221 return std::make_unique<WaveformScale>(*
this);
226 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.
Owner< Base > PointerType