MCPcopy Create free account
hub / github.com/audacity/audacity / SetFrequencySelectionFormatName

Method SetFrequencySelectionFormatName

src/toolbars/SpectralSelectionBar.cpp:483–495  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

481}
482
483void SpectralSelectionBar::SetFrequencySelectionFormatName(
484 const NumericFormatID &formatName)
485{
486 NumericTextCtrl *frequencyCtrl = (mbCenterAndWidth ? mCenterCtrl : mLowCtrl);
487 bool changed =
488 frequencyCtrl->SetFormatName(formatName);
489 // Test first whether changed, to avoid infinite recursion from OnUpdate
490 if (changed) {
491 wxCommandEvent e(EVT_FREQUENCYTEXTCTRL_UPDATED);
492 e.SetString(frequencyCtrl->GetFormatName().GET());
493 OnUpdate(e);
494 }
495}
496
497void SpectralSelectionBar::SetBandwidthSelectionFormatName(
498 const NumericFormatID &formatName)

Callers 2

ImportMethod · 0.45
OnUpdateMethod · 0.45

Calls 3

SetStringMethod · 0.80
GetFormatNameMethod · 0.80
SetFormatNameMethod · 0.45

Tested by

no test coverage detected