| 278 | } |
| 279 | |
| 280 | void ContrastDialog::OnGetForeground(wxCommandEvent & /*event*/) |
| 281 | { |
| 282 | auto p = FindProjectFromWindow( this ); |
| 283 | auto &selectedRegion = ViewInfo::Get( *p ).selectedRegion; |
| 284 | |
| 285 | if (TrackList::Get(*p).Selected<const WaveTrack>()) { |
| 286 | mForegroundStartT->SetValue(selectedRegion.t0()); |
| 287 | mForegroundEndT->SetValue(selectedRegion.t1()); |
| 288 | } |
| 289 | |
| 290 | SetStartAndEndTime(); |
| 291 | mForegroundIsDefined = GetDB(foregrounddB); |
| 292 | m_pButton_UseCurrentF->SetFocus(); |
| 293 | results(); |
| 294 | } |
| 295 | |
| 296 | void ContrastDialog::OnGetBackground(wxCommandEvent & /*event*/) |
| 297 | { |
nothing calls this directly
no test coverage detected