Audacity 3.2.0
Macros | Enumerations | Functions | Variables
TimerRecordDialog.cpp File Reference
#include "TimerRecordDialog.h"
#include "FileNames.h"
#include <thread>
#include <wx/setup.h>
#include <wx/wxcrtvararg.h>
#include <wx/button.h>
#include <wx/calctrl.h>
#include <wx/checkbox.h>
#include <wx/choice.h>
#include <wx/defs.h>
#include <wx/dir.h>
#include <wx/datectrl.h>
#include <wx/datetime.h>
#include <wx/intl.h>
#include <wx/sizer.h>
#include <wx/string.h>
#include <wx/timer.h>
#include <wx/dynlib.h>
#include "AudioIO.h"
#include "SelectFile.h"
#include "ShuttleGui.h"
#include "ProjectAudioManager.h"
#include "ProjectFileIO.h"
#include "ProjectFileManager.h"
#include "ProjectManager.h"
#include "Prefs.h"
#include "Track.h"
#include "widgets/NumericTextCtrl.h"
#include "widgets/HelpSystem.h"
#include "widgets/AudacityMessageBox.h"
#include "widgets/ProgressDialog.h"
#include "widgets/wxTextCtrlWrapper.h"
Include dependency graph for TimerRecordDialog.cpp:

Go to the source code of this file.

Macros

#define TIMER_ID   7000
 

Enumerations

enum  {
  ID_DATEPICKER_START = 10000 , ID_TIMETEXT_START , ID_DATEPICKER_END , ID_TIMETEXT_END ,
  ID_TIMETEXT_DURATION , ID_AUTOSAVEPATH_BUTTON , ID_AUTOSAVEPATH_TEXT , ID_AUTOEXPORTPATH_BUTTON ,
  ID_AUTOEXPORTPATH_TEXT , ID_AUTOSAVE_CHECKBOX , ID_AUTOEXPORT_CHECKBOX
}
 
enum  { CONTROL_GROUP_SAVE , CONTROL_GROUP_EXPORT }
 

Functions

static double wxDateTime_to_AudacityTime (wxDateTime &dateTime)
 

Variables

const int kSlowTimerInterval = 1000
 
constexpr auto kTimerInterval = std::chrono::milliseconds{50}
 

Macro Definition Documentation

◆ TIMER_ID

#define TIMER_ID   7000

Definition at line 63 of file TimerRecordDialog.cpp.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
ID_DATEPICKER_START 
ID_TIMETEXT_START 
ID_DATEPICKER_END 
ID_TIMETEXT_END 
ID_TIMETEXT_DURATION 
ID_AUTOSAVEPATH_BUTTON 
ID_AUTOSAVEPATH_TEXT 
ID_AUTOEXPORTPATH_BUTTON 
ID_AUTOEXPORTPATH_TEXT 
ID_AUTOSAVE_CHECKBOX 
ID_AUTOEXPORT_CHECKBOX 

Definition at line 65 of file TimerRecordDialog.cpp.

65 { // control IDs
66 ID_DATEPICKER_START = 10000,
77};
@ ID_AUTOEXPORTPATH_BUTTON
@ ID_AUTOSAVEPATH_TEXT
@ ID_DATEPICKER_START
@ ID_AUTOSAVEPATH_BUTTON
@ ID_AUTOSAVE_CHECKBOX
@ ID_AUTOEXPORTPATH_TEXT
@ ID_TIMETEXT_DURATION
@ ID_TIMETEXT_END
@ ID_DATEPICKER_END
@ ID_TIMETEXT_START
@ ID_AUTOEXPORT_CHECKBOX

◆ anonymous enum

anonymous enum
Enumerator
CONTROL_GROUP_SAVE 
CONTROL_GROUP_EXPORT 

Definition at line 79 of file TimerRecordDialog.cpp.

79 {
82};
@ CONTROL_GROUP_SAVE
@ CONTROL_GROUP_EXPORT

Function Documentation

◆ wxDateTime_to_AudacityTime()

static double wxDateTime_to_AudacityTime ( wxDateTime &  dateTime)
static

Definition at line 91 of file TimerRecordDialog.cpp.

92{
93 return (dateTime.GetHour() * 3600.0) + (dateTime.GetMinute() * 60.0) + dateTime.GetSecond();
94};

Referenced by TimerRecordDialog::OnDatePicker_End(), TimerRecordDialog::OnTimer(), TimerRecordDialog::PopulateOrExchange(), and TimerRecordDialog::UpdateEnd().

Here is the caller graph for this function:

Variable Documentation

◆ kSlowTimerInterval

const int kSlowTimerInterval = 1000

Definition at line 86 of file TimerRecordDialog.cpp.

◆ kTimerInterval

constexpr auto kTimerInterval = std::chrono::milliseconds{50}
constexpr