Audacity 3.2.0
Namespaces | Macros | Enumerations | Functions | Variables
TimerRecordDialog.cpp File Reference
#include "TimerRecordDialog.h"
#include "FileNames.h"
#include <thread>
#include <wx/setup.h>
#include <wx/app.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/dynlib.h>
#include "AudioIO.h"
#include "SelectFile.h"
#include "ShuttleGui.h"
#include "ProjectAudioManager.h"
#include "ProjectFileIO.h"
#include "ProjectFileManager.h"
#include "ProjectManager.h"
#include "ProjectRate.h"
#include "Prefs.h"
#include "Track.h"
#include "widgets/NumericTextCtrl.h"
#include "HelpSystem.h"
#include "AudacityMessageBox.h"
#include "ProgressDialog.h"
#include "wxTextCtrlWrapper.h"
#include "commands/CommandContext.h"
#include "commands/CommandManager.h"
#include "CommonCommandFlags.h"
#include "Project.h"
#include "ProjectHistory.h"
#include "ProjectSettings.h"
#include "ProjectWindow.h"
#include "UndoManager.h"
Include dependency graph for TimerRecordDialog.cpp:

Go to the source code of this file.

Namespaces

namespace  anonymous_namespace{TimerRecordDialog.cpp}
 

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)
 
void anonymous_namespace{TimerRecordDialog.cpp}::OnTimerRecord (const CommandContext &context)
 

Variables

const int kSlowTimerInterval = 1000
 
constexpr auto kTimerInterval = std::chrono::milliseconds{50}
 
const auto anonymous_namespace{TimerRecordDialog.cpp}::CanStopFlags = AudioIONotBusyFlag() | CanStopAudioStreamFlag()
 
AttachedItem anonymous_namespace{TimerRecordDialog.cpp}::sAttachment
 

Macro Definition Documentation

◆ TIMER_ID

#define TIMER_ID   7000

Definition at line 61 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 63 of file TimerRecordDialog.cpp.

63 { // control IDs
64 ID_DATEPICKER_START = 10000,
75};
@ 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 77 of file TimerRecordDialog.cpp.

77 {
80};
@ CONTROL_GROUP_SAVE
@ CONTROL_GROUP_EXPORT

Function Documentation

◆ wxDateTime_to_AudacityTime()

static double wxDateTime_to_AudacityTime ( wxDateTime &  dateTime)
static

Definition at line 89 of file TimerRecordDialog.cpp.

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

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 84 of file TimerRecordDialog.cpp.

◆ kTimerInterval

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