55 auto &mutTrack =
const_cast<WaveTrack&
>(track);
61 WaveTrack &track, std::unique_ptr<WaveformSettings> pSettings)
64 ::Assign(
key1, move(pSettings));
146 for (
int nn = codes.size(); ii < nn; ++ii) {
148 codes[ii].ToLong(&value);
184 {
wxT(
"Linear"),
XO(
"Linear (amp)") },
185 {
wxT(
"dB"),
XO(
"Logarithmic (dB)") },
186 {
wxT(
"LinearDB"),
XO(
"Linear (dB)") },
197 return std::make_unique<WaveformSettings>(*
this);
201key2{ [](
auto &) {
return std::make_unique<WaveformScale>(); } };
205 auto &mutTrack =
const_cast<WaveTrack&
>(track);
214 return std::make_unique<WaveformScale>(*
this);
219 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 */
ChannelGroupData & GetGroupData()
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