| 495 | } |
| 496 | |
| 497 | void 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 | |
| 512 | static RegisteredToolbarFactory factory{ |
| 513 | []( AudacityProject &project ){ |
no test coverage detected