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

Method SetBandwidthSelectionFormatName

src/toolbars/SpectralSelectionBar.cpp:497–510  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

495}
496
497void SpectralSelectionBar::SetBandwidthSelectionFormatName(
498 const NumericFormatID &formatName)
499{
500 if (mbCenterAndWidth) {
501 bool changed =
502 mWidthCtrl->SetFormatName(formatName);
503 // Test first whether changed, to avoid infinite recursion from OnUpdate
504 if (changed) {
505 wxCommandEvent e(EVT_BANDWIDTHTEXTCTRL_UPDATED);
506 e.SetString(mWidthCtrl->GetFormatName().GET());
507 OnUpdate(e);
508 }
509 }
510}
511
512static RegisteredToolbarFactory factory{
513 []( AudacityProject &project ){

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