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 <wx/frame.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 "ProjectWindows.h"
#include "Project.h"
#include "Prefs.h"
#include "Track.h"
#include "TagsEditor.h"
#include "widgets/NumericTextCtrl.h"
#include "HelpSystem.h"
#include "AudacityMessageBox.h"
#include "ExportPluginRegistry.h"
#include "ExportUtils.h"
#include "ProgressDialog.h"
#include "wxTextCtrlWrapper.h"
#include "prefs/ImportExportPrefs.h"
#include "TimerRecordExportDialog.h"
#include "ExportProgressUI.h"
#include "CommandContext.h"
#include "MenuRegistry.h"
#include "CommonCommandFlags.h"
#include "ProjectHistory.h"
#include "ProjectSettings.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}
 
StringSetting anonymous_namespace{TimerRecordDialog.cpp}::DefaultExportAudioFormat { L"/TimerRecordDialog/ExportFormat", L"WAV" }
 
StringSetting anonymous_namespace{TimerRecordDialog.cpp}::DefaultExportAudioPath { L"/TimerRecordDialog/ExportPath", L"" }
 
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 72 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 74 of file TimerRecordDialog.cpp.

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

88 {
91};
@ CONTROL_GROUP_SAVE
@ CONTROL_GROUP_EXPORT

Function Documentation

◆ wxDateTime_to_AudacityTime()

static double wxDateTime_to_AudacityTime ( wxDateTime &  dateTime)
static

Definition at line 100 of file TimerRecordDialog.cpp.

101{
102 return (dateTime.GetHour() * 3600.0) + (dateTime.GetMinute() * 60.0) + dateTime.GetSecond();
103};

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

◆ kTimerInterval

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