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

Method OnGetBackground

src/effects/Contrast.cpp:296–310  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

294}
295
296void 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
312namespace {
313 // PRL: I gathered formatting into these functions, and eliminated some

Callers

nothing calls this directly

Calls 4

FindProjectFromWindowFunction · 0.85
GetFunction · 0.85
SetValueMethod · 0.45
SetFocusMethod · 0.45

Tested by

no test coverage detected