| 481 | } |
| 482 | |
| 483 | void 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 | |
| 497 | void SpectralSelectionBar::SetBandwidthSelectionFormatName( |
| 498 | const NumericFormatID &formatName) |
no test coverage detected