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

Method OnTimeText_Duration

src/TimerRecordDialog.cpp:332–341  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

330}
331
332void TimerRecordDialog::OnTimeText_Duration(wxCommandEvent& WXUNUSED(event))
333{
334 double dTime = m_pTimeTextCtrl_Duration->GetValue();
335 long hr = (long)(dTime / 3600.0);
336 long min = (long)((dTime - (hr * 3600.0)) / 60.0);
337 long sec = (long)(dTime - (hr * 3600.0) - (min * 60.0));
338 m_TimeSpan_Duration = wxTimeSpan(hr, min, sec); //v milliseconds?
339
340 this->UpdateEnd(); // Keep Start constant and update End for changed Duration.
341}
342
343// New events for timer recording automation
344void TimerRecordDialog::OnAutoSavePathButton_Click(wxCommandEvent& WXUNUSED(event))

Callers

nothing calls this directly

Calls 2

UpdateEndMethod · 0.95
GetValueMethod · 0.45

Tested by

no test coverage detected