16#ifndef __AUDACITY_TIMERRECORD_DIALOG__
17#define __AUDACITY_TIMERRECORD_DIALOG__
19#include <wx/textctrl.h>
28class wxDatePickerCtrl;
50 POST_TIMER_RECORD_RESTART,
51 POST_TIMER_RECORD_SHUTDOWN
66 void OnTimer(wxTimerEvent& event);
79 void OnOK(wxCommandEvent& event);
103 wxWindow *wParent,
const int iID,
152 DECLARE_EVENT_TABLE()
Toolkit-neutral facade for basic user interface services.
TimerRecordCompletedActions
@ POST_TIMER_RECORD_CLOSE
@ POST_TIMER_RECORD_CANCEL
@ POST_TIMER_RECORD_CANCEL_WAIT
@ POST_TIMER_RECORD_NOTHING
@ POST_TIMER_RECORD_STOPPED
The top-level handle to an Audacity project. It serves as a source of events that other objects can b...
std::vector< std::tuple< ExportOptionID, ExportValue > > Parameters
Derived from ShuttleGuiBase, an Audacity specific class for shuttling data to and from GUI.
Dialog for Timer Record, i.e., timed or long recording.
void OnAutoSaveCheckBox_Change(wxCommandEvent &event)
wxDatePickerCtrl * m_pDatePickerCtrl_Start
NumericTextCtrl * m_pTimeTextCtrl_Duration
wxDateTime m_DateTime_End
void OnHelpButtonClick(wxCommandEvent &event)
void OnTimeText_Duration(wxCommandEvent &event)
NumericTextCtrl * m_pTimeTextCtrl_End
AudacityProject & mProject
wxString m_sAutoExportFormat
TranslatableString GetDisplayDate(wxDateTime &dt)
wxButton * m_pTimerSavePathButtonCtrl
void EnableDisableAutoControls(bool bEnable, int iControlGoup)
wxCheckBox * m_pTimerAutoSaveCheckBoxCtrl
int ExecutePostRecordActions(bool bWasStopped)
void OnOK(wxCommandEvent &event)
void PopulateOrExchange(ShuttleGui &S)
NumericTextCtrl * m_pTimeTextCtrl_Start
wxTextCtrlWrapper * m_pTimerExportPathTextCtrl
int m_iAutoExportSampleRate
wxDateTime m_DateTime_Start
bool m_bAutoExportEnabled
TimerRecordDialog(wxWindow *parent, AudacityProject &project, bool bAlreadySaved)
void OnAutoExportPathButton_Click(wxCommandEvent &event)
bool m_bProjectAlreadySaved
void OnAutoExportCheckBox_Change(wxCommandEvent &event)
void UpdateTextBoxControls()
bool TransferDataFromWindow() override
wxChoice * m_pTimerAfterCompleteChoiceCtrl
wxFileName m_fnAutoSaveFile
void OnDatePicker_End(wxDateEvent &event)
ProgressResult WaitForStart()
wxTextCtrlWrapper * NewPathControl(wxWindow *wParent, const int iID, const TranslatableString &sCaption, const TranslatableString &sValue)
wxCheckBox * m_pTimerAutoExportCheckBoxCtrl
wxFileName m_fnAutoExportFile
void OnTimeText_Start(wxCommandEvent &event)
wxTimeSpan m_TimeSpan_Duration
wxDatePickerCtrl * m_pDatePickerCtrl_End
void OnAutoSavePathButton_Click(wxCommandEvent &event)
wxTextCtrlWrapper * m_pTimerSavePathTextCtrl
ExportProcessor::Parameters m_AutoExportParameters
void OnTimeText_End(wxCommandEvent &event)
wxButton * m_pTimerExportPathButtonCtrl
void OnTimer(wxTimerEvent &event)
int RunWaitDialog()
Runs the wait for start dialog. Returns false if the user clicks stop.
bool m_bProjectCleanupRequired
void OnDatePicker_Start(wxDateEvent &event)
int m_iAutoExportChannels
ProgressResult PreActionDelay(int iActionIndex, TimerRecordCompletedActions eCompletedActions)
Holds a msgid for the translation catalog; may also bind format arguments.