Audacity 3.2.0
|
Dialog for Timer Record, i.e., timed or long recording. More...
#include <TimerRecordDialog.h>
Public Types | |
using | ProgressResult = BasicUI::ProgressResult |
Public Member Functions | |
TimerRecordDialog (wxWindow *parent, AudacityProject &project, bool bAlreadySaved) | |
~TimerRecordDialog () | |
void | OnTimer (wxTimerEvent &event) |
int | RunWaitDialog () |
Runs the wait for start dialog. Returns false if the user clicks stop. More... | |
Public Member Functions inherited from wxDialogWrapper | |
wxDialogWrapper () | |
wxDialogWrapper (wxWindow *parent, wxWindowID id, const TranslatableString &title, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxDEFAULT_DIALOG_STYLE, const TranslatableString &name=XO("Dialog")) | |
bool | Create (wxWindow *parent, wxWindowID id, const TranslatableString &title, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxDEFAULT_DIALOG_STYLE, const TranslatableString &name=XO("Dialog")) |
void | SetTitle (const TranslatableString &title) |
void | SetLabel (const TranslatableString &title) |
void | SetName (const TranslatableString &title) |
void | SetName () |
Public Member Functions inherited from wxTabTraversalWrapper< wxDialog > | |
wxTabTraversalWrapper (Args &&... args) | |
wxTabTraversalWrapper (const wxTabTraversalWrapper &)=delete | |
wxTabTraversalWrapper (wxTabTraversalWrapper &&)=delete | |
wxTabTraversalWrapper & | operator= (const wxTabTraversalWrapper &)=delete |
wxTabTraversalWrapper & | operator= (wxTabTraversalWrapper &&)=delete |
Private Member Functions | |
void | OnDatePicker_Start (wxDateEvent &event) |
void | OnTimeText_Start (wxCommandEvent &event) |
void | OnDatePicker_End (wxDateEvent &event) |
void | OnTimeText_End (wxCommandEvent &event) |
void | OnTimeText_Duration (wxCommandEvent &event) |
void | OnOK (wxCommandEvent &event) |
void | OnHelpButtonClick (wxCommandEvent &event) |
TranslatableString | GetDisplayDate (wxDateTime &dt) |
void | PopulateOrExchange (ShuttleGui &S) |
bool | TransferDataFromWindow () override |
void | UpdateDuration () |
void | UpdateEnd () |
ProgressResult | WaitForStart () |
void | OnAutoSavePathButton_Click (wxCommandEvent &event) |
void | OnAutoExportPathButton_Click (wxCommandEvent &event) |
void | OnAutoSaveCheckBox_Change (wxCommandEvent &event) |
void | OnAutoExportCheckBox_Change (wxCommandEvent &event) |
void | EnableDisableAutoControls (bool bEnable, int iControlGoup) |
void | UpdateTextBoxControls () |
wxTextCtrlWrapper * | NewPathControl (wxWindow *wParent, const int iID, const TranslatableString &sCaption, const TranslatableString &sValue) |
int | ExecutePostRecordActions (bool bWasStopped) |
ProgressResult | PreActionDelay (int iActionIndex, TimerRecordCompletedActions eCompletedActions) |
Private Attributes | |
AudacityProject & | mProject |
wxDateTime | m_DateTime_Start |
wxDateTime | m_DateTime_End |
wxTimeSpan | m_TimeSpan_Duration |
wxDatePickerCtrl * | m_pDatePickerCtrl_Start |
NumericTextCtrl * | m_pTimeTextCtrl_Start |
wxDatePickerCtrl * | m_pDatePickerCtrl_End |
NumericTextCtrl * | m_pTimeTextCtrl_End |
NumericTextCtrl * | m_pTimeTextCtrl_Duration |
wxTimer | m_timer |
wxCheckBox * | m_pTimerAutoSaveCheckBoxCtrl |
wxTextCtrlWrapper * | m_pTimerSavePathTextCtrl |
wxButton * | m_pTimerSavePathButtonCtrl |
wxCheckBox * | m_pTimerAutoExportCheckBoxCtrl |
wxTextCtrlWrapper * | m_pTimerExportPathTextCtrl |
wxButton * | m_pTimerExportPathButtonCtrl |
wxChoice * | m_pTimerAfterCompleteChoiceCtrl |
bool | m_bProjectCleanupRequired |
bool | m_bAutoSaveEnabled |
wxFileName | m_fnAutoSaveFile |
bool | m_bAutoExportEnabled |
wxFileName | m_fnAutoExportFile |
wxString | m_sAutoExportFormat |
int | m_iAutoExportSampleRate {0} |
int | m_iAutoExportChannels {0} |
ExportProcessor::Parameters | m_AutoExportParameters |
bool | m_bProjectAlreadySaved |
Dialog for Timer Record, i.e., timed or long recording.
Definition at line 57 of file TimerRecordDialog.h.
Definition at line 60 of file TimerRecordDialog.h.
TimerRecordDialog::TimerRecordDialog | ( | wxWindow * | parent, |
AudacityProject & | project, | ||
bool | bAlreadySaved | ||
) |
Definition at line 168 of file TimerRecordDialog.cpp.
References project.
|
default |
|
private |
Definition at line 490 of file TimerRecordDialog.cpp.
References CONTROL_GROUP_EXPORT, CONTROL_GROUP_SAVE, m_pTimerAfterCompleteChoiceCtrl, m_pTimerAutoExportCheckBoxCtrl, m_pTimerAutoSaveCheckBoxCtrl, m_pTimerExportPathButtonCtrl, m_pTimerExportPathTextCtrl, m_pTimerSavePathButtonCtrl, m_pTimerSavePathTextCtrl, and POST_TIMER_RECORD_NOTHING.
Referenced by OnAutoExportCheckBox_Change(), OnAutoSaveCheckBox_Change(), and PopulateOrExchange().
|
private |
Definition at line 599 of file TimerRecordDialog.cpp.
References AudacityMessageBox(), anonymous_namespace{TimerRecordDialog.cpp}::DefaultExportAudioFormat, anonymous_namespace{TimerRecordDialog.cpp}::DefaultExportAudioPath, ExportProgressUI::ExceptionWrappedCall(), ExportUtils::FindExportWaveTracks(), ExportPluginRegistry::FindFormat(), ExportPluginRegistry::Get(), TrackList::Get(), ProjectFileManager::Get(), m_AutoExportParameters, m_bAutoExportEnabled, m_bAutoSaveEnabled, m_bProjectAlreadySaved, m_fnAutoExportFile, m_fnAutoSaveFile, m_iAutoExportChannels, m_iAutoExportSampleRate, m_pTimerAfterCompleteChoiceCtrl, m_sAutoExportFormat, mProject, POST_TIMER_RECORD_CLOSE, POST_TIMER_RECORD_NOTHING, PreActionDelay(), ExportTaskBuilder::SetFileName(), ExportTaskBuilder::SetNumChannels(), ExportTaskBuilder::SetParameters(), ExportTaskBuilder::SetPlugin(), ExportTaskBuilder::SetRange(), ExportTaskBuilder::SetSampleRate(), ExportProgressUI::Show(), ShowExportErrorDialog(), Stopped, BasicUI::Success, Success, TR_ACTION_EXPORTED, TR_ACTION_NOTHING, TR_ACTION_SAVED, tracks, Setting< T >::Write(), and XO().
Referenced by RunWaitDialog().
|
private |
Definition at line 757 of file TimerRecordDialog.cpp.
References Verbatim(), and wxT().
Referenced by RunWaitDialog(), and WaitForStart().
|
private |
Definition at line 806 of file TimerRecordDialog.cpp.
References safenew, and TranslatableString::Translation().
Referenced by PopulateOrExchange().
|
private |
Definition at line 402 of file TimerRecordDialog.cpp.
References CONTROL_GROUP_EXPORT, EnableDisableAutoControls(), and m_pTimerAutoExportCheckBoxCtrl.
|
private |
Definition at line 378 of file TimerRecordDialog.cpp.
References TimerRecordExportDialog::Bind(), m_AutoExportParameters, m_fnAutoExportFile, m_iAutoExportChannels, m_iAutoExportSampleRate, m_pTimerExportPathTextCtrl, m_sAutoExportFormat, mProject, and UpdateTextBoxControls().
|
private |
Definition at line 398 of file TimerRecordDialog.cpp.
References CONTROL_GROUP_SAVE, EnableDisableAutoControls(), and m_pTimerAutoSaveCheckBoxCtrl.
|
private |
Definition at line 340 of file TimerRecordDialog.cpp.
References FileNames::AudacityProjects, ProjectFileIO::Get(), m_bProjectAlreadySaved, m_fnAutoSaveFile, mProject, SelectFile(), UpdateTextBoxControls(), wxT(), and XO().
|
private |
Definition at line 286 of file TimerRecordDialog.cpp.
References NumericConverter::GetValue(), m_DateTime_End, m_DateTime_Start, m_pDatePickerCtrl_End, m_pTimeTextCtrl_End, min(), NumericTextCtrl::SetValue(), UpdateDuration(), and wxDateTime_to_AudacityTime().
Referenced by OnTimeText_End().
|
private |
Definition at line 244 of file TimerRecordDialog.cpp.
References NumericConverter::GetValue(), m_DateTime_Start, m_pDatePickerCtrl_Start, m_pTimeTextCtrl_Start, min(), OnTimer(), and UpdateEnd().
Referenced by OnTimeText_Start().
|
private |
Definition at line 406 of file TimerRecordDialog.cpp.
References HelpSystem::ShowHelp().
|
private |
Definition at line 411 of file TimerRecordDialog.cpp.
References AudacityMessageBox(), audacity::BasicSettings::Flush(), ProjectManager::Get(), gPrefs, m_fnAutoExportFile, m_fnAutoSaveFile, m_pTimerAutoExportCheckBoxCtrl, m_pTimerAutoSaveCheckBoxCtrl, m_timer, m_TimeSpan_Duration, mProject, TransferDataFromWindow(), audacity::BasicSettings::Write(), wxT(), and XO().
void TimerRecordDialog::OnTimer | ( | wxTimerEvent & | event | ) |
Definition at line 233 of file TimerRecordDialog.cpp.
References m_DateTime_Start, m_pDatePickerCtrl_Start, m_pTimeTextCtrl_Start, NumericTextCtrl::SetValue(), UpdateEnd(), and wxDateTime_to_AudacityTime().
Referenced by OnDatePicker_Start(), and RunWaitDialog().
|
private |
Definition at line 328 of file TimerRecordDialog.cpp.
References NumericConverter::GetValue(), m_pTimeTextCtrl_Duration, m_TimeSpan_Duration, min(), and UpdateEnd().
|
private |
Definition at line 308 of file TimerRecordDialog.cpp.
References NumericConverter::GetValue(), m_DateTime_End, m_pDatePickerCtrl_End, m_pTimeTextCtrl_End, OnDatePicker_End(), and NumericTextCtrl::SetValue().
|
private |
Definition at line 266 of file TimerRecordDialog.cpp.
References NumericConverter::GetValue(), m_DateTime_Start, m_pDatePickerCtrl_Start, m_pTimeTextCtrl_Start, OnDatePicker_Start(), and NumericTextCtrl::SetValue().
|
private |
Definition at line 817 of file TimerRecordDialog.cpp.
References CONTROL_GROUP_EXPORT, CONTROL_GROUP_SAVE, eCancelButton, eHelpButton, FormatterContext::EmptyContext(), EnableDisableAutoControls(), eOkButton, ProjectFileIO::Get(), ProjectFileIO::GetFileName(), gPrefs, ID_AUTOEXPORT_CHECKBOX, ID_AUTOEXPORTPATH_BUTTON, ID_AUTOEXPORTPATH_TEXT, ID_AUTOSAVE_CHECKBOX, ID_AUTOSAVEPATH_BUTTON, ID_AUTOSAVEPATH_TEXT, ID_DATEPICKER_END, ID_DATEPICKER_START, ID_TIMETEXT_DURATION, ID_TIMETEXT_END, ID_TIMETEXT_START, m_DateTime_End, m_DateTime_Start, m_fnAutoExportFile, m_fnAutoSaveFile, m_pDatePickerCtrl_End, m_pDatePickerCtrl_Start, m_pTimerAfterCompleteChoiceCtrl, m_pTimerAutoExportCheckBoxCtrl, m_pTimerAutoSaveCheckBoxCtrl, m_pTimerExportPathButtonCtrl, m_pTimerExportPathTextCtrl, m_pTimerSavePathButtonCtrl, m_pTimerSavePathTextCtrl, m_pTimeTextCtrl_Duration, m_pTimeTextCtrl_End, m_pTimeTextCtrl_Start, m_TimeSpan_Duration, mProject, NewPathControl(), NumericConverterType_TIME(), audacity::BasicSettings::ReadBool(), audacity::BasicSettings::ReadLong(), S, safenew, wxTextCtrlWrapper::SetReadOnly(), wxDateTime_to_AudacityTime(), XO(), and XXO().
|
private |
Definition at line 1121 of file TimerRecordDialog.cpp.
References kTimerInterval, m_pTimerAfterCompleteChoiceCtrl, pdlgHideElapsedTime, pdlgHideStopButton, BasicUI::Success, TR_ACTION_EXPORTED, TR_ACTION_SAVED, TimerProgressDialog::UpdateProgress(), Verbatim(), and XO().
Referenced by ExecutePostRecordActions().
int TimerRecordDialog::RunWaitDialog | ( | ) |
Runs the wait for start dialog. Returns false if the user clicks stop.
Runs the wait for start dialog. Returns -1 if the user clicks stop while we are recording or if the post recording actions fail.
Definition at line 522 of file TimerRecordDialog.cpp.
References BasicUI::Cancelled, ExecutePostRecordActions(), BasicUI::Failed, AudioIO::Get(), ProjectAudioManager::Get(), GetDisplayDate(), kTimerInterval, m_bAutoExportEnabled, m_bAutoSaveEnabled, m_DateTime_End, m_DateTime_Start, m_pTimerAfterCompleteChoiceCtrl, m_TimeSpan_Duration, mProject, ProjectAudioManager::OnRecord(), OnTimer(), pdlgConfirmStopCancel, pdlgHideCancelButton, POST_TIMER_RECORD_CANCEL, POST_TIMER_RECORD_CANCEL_WAIT, ProjectAudioManager::Stop(), BasicUI::Stopped, BasicUI::Success, TimerProgressDialog::UpdateProgress(), Verbatim(), WaitForStart(), and XO().
Referenced by anonymous_namespace{TimerRecordDialog.cpp}::OnTimerRecord().
|
overrideprivate |
Definition at line 1003 of file TimerRecordDialog.cpp.
References NumericConverter::GetValue(), gPrefs, m_bAutoExportEnabled, m_bAutoSaveEnabled, m_DateTime_End, m_DateTime_Start, m_pDatePickerCtrl_End, m_pDatePickerCtrl_Start, m_pTimerAfterCompleteChoiceCtrl, m_pTimerAutoExportCheckBoxCtrl, m_pTimerAutoSaveCheckBoxCtrl, m_pTimeTextCtrl_End, m_pTimeTextCtrl_Start, m_TimeSpan_Duration, min(), and audacity::BasicSettings::Write().
Referenced by OnOK().
|
private |
Definition at line 1046 of file TimerRecordDialog.cpp.
References m_DateTime_End, m_DateTime_Start, m_pTimeTextCtrl_Duration, m_TimeSpan_Duration, and NumericTextCtrl::SetValue().
Referenced by OnDatePicker_End().
|
private |
Definition at line 1053 of file TimerRecordDialog.cpp.
References m_DateTime_End, m_DateTime_Start, m_pDatePickerCtrl_End, m_pTimeTextCtrl_End, m_TimeSpan_Duration, NumericTextCtrl::SetValue(), and wxDateTime_to_AudacityTime().
Referenced by OnDatePicker_Start(), OnTimer(), and OnTimeText_Duration().
|
private |
Definition at line 509 of file TimerRecordDialog.cpp.
References _, m_bProjectAlreadySaved, m_fnAutoExportFile, m_fnAutoSaveFile, m_pTimerExportPathTextCtrl, and m_pTimerSavePathTextCtrl.
Referenced by OnAutoExportPathButton_Click(), and OnAutoSavePathButton_Click().
|
private |
Definition at line 1071 of file TimerRecordDialog.cpp.
References GetDisplayDate(), kTimerInterval, m_bAutoExportEnabled, m_bAutoSaveEnabled, m_DateTime_End, m_DateTime_Start, m_pTimerAfterCompleteChoiceCtrl, m_TimeSpan_Duration, pdlgConfirmStopCancel, pdlgHideElapsedTime, pdlgHideStopButton, BasicUI::Success, TimerProgressDialog::UpdateProgress(), Verbatim(), and XO().
Referenced by RunWaitDialog().
|
private |
Definition at line 149 of file TimerRecordDialog.h.
Referenced by ExecutePostRecordActions(), and OnAutoExportPathButton_Click().
|
private |
Definition at line 144 of file TimerRecordDialog.h.
Referenced by ExecutePostRecordActions(), RunWaitDialog(), TransferDataFromWindow(), and WaitForStart().
|
private |
Definition at line 142 of file TimerRecordDialog.h.
Referenced by ExecutePostRecordActions(), RunWaitDialog(), TransferDataFromWindow(), and WaitForStart().
|
private |
Definition at line 150 of file TimerRecordDialog.h.
Referenced by ExecutePostRecordActions(), OnAutoSavePathButton_Click(), and UpdateTextBoxControls().
|
private |
Definition at line 139 of file TimerRecordDialog.h.
|
private |
Definition at line 113 of file TimerRecordDialog.h.
Referenced by OnDatePicker_End(), OnTimeText_End(), PopulateOrExchange(), RunWaitDialog(), TransferDataFromWindow(), UpdateDuration(), UpdateEnd(), and WaitForStart().
|
private |
Definition at line 112 of file TimerRecordDialog.h.
Referenced by OnDatePicker_End(), OnDatePicker_Start(), OnTimer(), OnTimeText_Start(), PopulateOrExchange(), RunWaitDialog(), TransferDataFromWindow(), UpdateDuration(), UpdateEnd(), and WaitForStart().
|
private |
Definition at line 145 of file TimerRecordDialog.h.
Referenced by ExecutePostRecordActions(), OnAutoExportPathButton_Click(), OnOK(), PopulateOrExchange(), and UpdateTextBoxControls().
|
private |
Definition at line 143 of file TimerRecordDialog.h.
Referenced by ExecutePostRecordActions(), OnAutoSavePathButton_Click(), OnOK(), PopulateOrExchange(), and UpdateTextBoxControls().
|
private |
Definition at line 148 of file TimerRecordDialog.h.
Referenced by ExecutePostRecordActions(), and OnAutoExportPathButton_Click().
|
private |
Definition at line 147 of file TimerRecordDialog.h.
Referenced by ExecutePostRecordActions(), and OnAutoExportPathButton_Click().
|
private |
Definition at line 120 of file TimerRecordDialog.h.
Referenced by OnDatePicker_End(), OnTimeText_End(), PopulateOrExchange(), TransferDataFromWindow(), and UpdateEnd().
|
private |
Definition at line 117 of file TimerRecordDialog.h.
Referenced by OnDatePicker_Start(), OnTimer(), OnTimeText_Start(), PopulateOrExchange(), and TransferDataFromWindow().
|
private |
Definition at line 136 of file TimerRecordDialog.h.
Referenced by EnableDisableAutoControls(), ExecutePostRecordActions(), PopulateOrExchange(), PreActionDelay(), RunWaitDialog(), TransferDataFromWindow(), and WaitForStart().
|
private |
Definition at line 131 of file TimerRecordDialog.h.
Referenced by EnableDisableAutoControls(), OnAutoExportCheckBox_Change(), OnOK(), PopulateOrExchange(), and TransferDataFromWindow().
|
private |
Definition at line 128 of file TimerRecordDialog.h.
Referenced by EnableDisableAutoControls(), OnAutoSaveCheckBox_Change(), OnOK(), PopulateOrExchange(), and TransferDataFromWindow().
|
private |
Definition at line 133 of file TimerRecordDialog.h.
Referenced by EnableDisableAutoControls(), and PopulateOrExchange().
|
private |
Definition at line 132 of file TimerRecordDialog.h.
Referenced by EnableDisableAutoControls(), OnAutoExportPathButton_Click(), PopulateOrExchange(), and UpdateTextBoxControls().
|
private |
Definition at line 130 of file TimerRecordDialog.h.
Referenced by EnableDisableAutoControls(), and PopulateOrExchange().
|
private |
Definition at line 129 of file TimerRecordDialog.h.
Referenced by EnableDisableAutoControls(), PopulateOrExchange(), and UpdateTextBoxControls().
|
private |
Definition at line 123 of file TimerRecordDialog.h.
Referenced by OnTimeText_Duration(), PopulateOrExchange(), and UpdateDuration().
|
private |
Definition at line 121 of file TimerRecordDialog.h.
Referenced by OnDatePicker_End(), OnTimeText_End(), PopulateOrExchange(), TransferDataFromWindow(), and UpdateEnd().
|
private |
Definition at line 118 of file TimerRecordDialog.h.
Referenced by OnDatePicker_Start(), OnTimer(), OnTimeText_Start(), PopulateOrExchange(), and TransferDataFromWindow().
|
private |
Definition at line 146 of file TimerRecordDialog.h.
Referenced by ExecutePostRecordActions(), and OnAutoExportPathButton_Click().
|
private |
Definition at line 125 of file TimerRecordDialog.h.
Referenced by OnOK().
|
private |
Definition at line 114 of file TimerRecordDialog.h.
Referenced by OnOK(), OnTimeText_Duration(), PopulateOrExchange(), RunWaitDialog(), TransferDataFromWindow(), UpdateDuration(), UpdateEnd(), and WaitForStart().
|
private |
Definition at line 110 of file TimerRecordDialog.h.
Referenced by ExecutePostRecordActions(), OnAutoExportPathButton_Click(), OnAutoSavePathButton_Click(), OnOK(), PopulateOrExchange(), and RunWaitDialog().