| 294 | } |
| 295 | |
| 296 | void ContrastDialog::OnGetBackground(wxCommandEvent & /*event*/) |
| 297 | { |
| 298 | auto p = FindProjectFromWindow( this ); |
| 299 | auto &selectedRegion = ViewInfo::Get( *p ).selectedRegion; |
| 300 | |
| 301 | if (TrackList::Get(*p).Selected<const WaveTrack>()) { |
| 302 | mBackgroundStartT->SetValue(selectedRegion.t0()); |
| 303 | mBackgroundEndT->SetValue(selectedRegion.t1()); |
| 304 | } |
| 305 | |
| 306 | SetStartAndEndTime(); |
| 307 | mBackgroundIsDefined = GetDB(backgrounddB); |
| 308 | m_pButton_UseCurrentB->SetFocus(); |
| 309 | results(); |
| 310 | } |
| 311 | |
| 312 | namespace { |
| 313 | // PRL: I gathered formatting into these functions, and eliminated some |
nothing calls this directly
no test coverage detected