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

Method UpdateStart

src/TimerRecordDialog.cpp:233–242  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

231TimerRecordDialog::~TimerRecordDialog() = default;
232
233void TimerRecordDialog::UpdateStart()
234{
235 wxDateTime dateTime_UNow = wxDateTime::UNow();
236 if (m_DateTime_Start < dateTime_UNow) {
237 m_DateTime_Start = dateTime_UNow;
238 m_pDatePickerCtrl_Start->SetValue(m_DateTime_Start);
239 m_pTimeTextCtrl_Start->SetValue(wxDateTime_to_AudacityTime(m_DateTime_Start));
240 this->UpdateEnd(); // Keep Duration constant and update End for changed Start.
241 }
242}
243
244void TimerRecordDialog::OnTimer(wxTimerEvent& WXUNUSED(event))
245{

Callers 3

OnTimerMethod · 0.95
OnDatePicker_StartMethod · 0.95
RunWaitDialogMethod · 0.95

Calls 3

UpdateEndMethod · 0.95
SetValueMethod · 0.45

Tested by

no test coverage detected