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

Method OnGetForeground

src/effects/Contrast.cpp:280–294  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

278}
279
280void 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
296void ContrastDialog::OnGetBackground(wxCommandEvent & /*event*/)
297{

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