Audacity 3.2.0
|
#include <Export.h>
Classes | |
struct | ExporterItem |
struct | RegisteredExportPlugin |
Public Types | |
using | ExportPluginFactory = std::function< std::unique_ptr< ExportPlugin >() > |
Public Member Functions | |
Exporter (AudacityProject &project) | |
virtual | ~Exporter () |
void | SetFileDialogTitle (const TranslatableString &DialogTitle) |
void | SetDefaultFormat (const FileExtension &Format) |
bool | Process (bool selectedOnly, double t0, double t1) |
bool | Process (unsigned numChannels, const FileExtension &type, const wxString &filename, bool selectedOnly, double t0, double t1) |
bool | Process (unsigned numChannels, const FileExtension &type, const wxString &filename, bool selectedOnly, double t0, double t1, std::unique_ptr< BasicUI::ProgressDialog > &progressDialog) |
void | DisplayOptions (int index) |
int | FindFormatIndex (int exportindex) |
const ExportPluginArray & | GetPlugins () |
bool | ProcessFromTimerRecording (bool selectedOnly, double t0, double t1, wxFileName fnFile, int iFormat, int iSubFormat, int iFilterIndex) |
bool | SetAutoExportOptions () |
int | GetAutoExportFormat () |
int | GetAutoExportSubFormat () |
int | GetAutoExportFilterIndex () |
wxFileName | GetAutoExportFileName () |
void | OnExtensionChanged (wxCommandEvent &evt) |
void | OnHelp (wxCommandEvent &evt) |
Private Member Functions | |
bool | ExamineTracks () |
bool | GetFilename () |
bool | CheckFilename () |
bool | CheckMix (bool prompt=true) |
bool | ExportTracks (std::unique_ptr< BasicUI::ProgressDialog > &progressDialog) |
void | CreateUserPane (wxWindow *parent) |
void | OnFilterChanged (wxFileCtrlEvent &evt) |
Static Private Member Functions | |
static void | CreateUserPaneCallback (wxWindow *parent, wxUIntPtr userdata) |
Private Attributes | |
FileExtension | mFormatName |
FileDialogWrapper * | mDialog |
TranslatableString | mFileDialogTitle |
AudacityProject * | mProject |
std::unique_ptr< MixerSpec > | mMixerSpec |
ExportPluginArray | mPlugins |
wxFileName | mFilename |
wxFileName | mActualName |
double | mT0 |
double | mT1 |
int | mFilterIndex |
int | mFormat |
int | mSubFormat |
int | mNumSelected {} |
bool | mMono {} |
unsigned | mNumMono |
unsigned | mChannels |
bool | mSelectedOnly |
wxSimplebook * | mBook |
using Exporter::ExportPluginFactory = std::function< std::unique_ptr< ExportPlugin >() > |
Exporter::Exporter | ( | AudacityProject & | project | ) |
Definition at line 324 of file Export.cpp.
References cloud::factory, mBook, mMixerSpec, mPlugins, anonymous_namespace{Export.cpp}::PathStart, Exporter::ExporterItem::Registry(), SetFileDialogTitle(), anonymous_namespace{Export.cpp}::sFactories(), Registry::Visit(), wxT(), and XO().
|
virtual |
Definition at line 363 of file Export.cpp.
|
private |
Definition at line 748 of file Export.cpp.
References mActualName, mFilename, and wxT().
Referenced by Process(), and ProcessFromTimerRecording().
|
private |
Definition at line 797 of file Export.cpp.
References ImportExportPrefs::ExportDownMixSetting, ProjectWindow::Find(), TrackList::Get(), ExportMixerDialog::GetMixerSpec(), mChannels, mFormat, min(), mMixerSpec, mMono, mNumSelected, mPlugins, mProject, mSelectedOnly, mSubFormat, EnumSetting< Enum >::ReadEnum(), ShowWarningDialog(), wxT(), and XO().
Referenced by Process(), and ProcessFromTimerRecording().
|
private |
Definition at line 925 of file Export.cpp.
References ThemeBase::Bitmap(), eIsCreating, mBook, mPlugins, S, safenew, theTheme, and XO().
Referenced by CreateUserPaneCallback().
|
staticprivate |
Definition at line 916 of file Export.cpp.
References CreateUserPane().
Referenced by GetFilename().
void Exporter::DisplayOptions | ( | int | index | ) |
Definition at line 767 of file Export.cpp.
References FindProjectFrame(), mDialog, mPlugins, and mProject.
|
private |
Definition at line 496 of file Export.cpp.
References Track::Any(), AudacityExportCaptionStr(), TrackList::Get(), WaveTrack::GetMute(), PlayableTrack::GetNotSolo(), WaveTrack::GetSolo(), gPrefs, Track::IsSelected(), mMono, mNumSelected, mProject, mSelectedOnly, mT0, mT1, ShowExportErrorDialog(), tracks, wxT(), and XO().
Referenced by Process(), and ProcessFromTimerRecording().
|
private |
Definition at line 869 of file Export.cpp.
References mActualName, mChannels, mFilename, mFormat, mMixerSpec, mPlugins, mProject, mSelectedOnly, mSubFormat, mT0, mT1, and BasicUI::Success.
Referenced by Process(), and ProcessFromTimerRecording().
int Exporter::FindFormatIndex | ( | int | exportindex | ) |
Definition at line 384 of file Export.cpp.
References mPlugins.
wxFileName Exporter::GetAutoExportFileName | ( | ) |
Definition at line 1056 of file Export.cpp.
References mFilename.
int Exporter::GetAutoExportFilterIndex | ( | ) |
int Exporter::GetAutoExportFormat | ( | ) |
int Exporter::GetAutoExportSubFormat | ( | ) |
Definition at line 1048 of file Export.cpp.
References mSubFormat.
|
private |
Definition at line 570 of file Export.cpp.
References _, AudacityMessageBox(), CreateUserPaneCallback(), ProjectWindow::Find(), FileNames::FindDefaultPath(), FileDialog::GetFilterIndex(), FileDialog::GetPath(), AudacityProject::GetProjectName(), gPrefs, mBook, mDialog, mFileDialogTitle, mFilename, mFilterIndex, mFormat, mFormatName, mPlugins, mProject, mSubFormat, FileDialog::SetFilterIndex(), FileDialogBase::SetUserPaneCreator(), FileDialog::ShowModal(), wxT(), and XO().
Referenced by Process(), and SetAutoExportOptions().
const ExportPluginArray & Exporter::GetPlugins | ( | ) |
void Exporter::OnExtensionChanged | ( | wxCommandEvent & | evt | ) |
Definition at line 367 of file Export.cpp.
References mDialog, and FileDialog::SetFileExtension().
|
private |
Definition at line 962 of file Export.cpp.
References mBook, mDialog, mPlugins, and FileDialog::SetFileExtension().
void Exporter::OnHelp | ( | wxCommandEvent & | evt | ) |
Definition at line 372 of file Export.cpp.
References FindProjectFrame(), mProject, and HelpSystem::ShowHelp().
bool Exporter::Process | ( | bool | selectedOnly, |
double | t0, | ||
double | t1 | ||
) |
Definition at line 403 of file Export.cpp.
References CheckFilename(), CheckMix(), TagsEditorDialog::DoEditMetadata(), ExamineTracks(), ExportTracks(), ProjectSettings::Get(), GetFilename(), ProjectSettings::GetShowId3Dialog(), gPrefs, mFilename, mFormat, mFormatName, mMixerSpec, mPlugins, mProject, mSelectedOnly, mSubFormat, mT0, mT1, FileNames::UpdateDefaultPath(), wxT(), and XO().
Referenced by Process().
bool Exporter::Process | ( | unsigned | numChannels, |
const FileExtension & | type, | ||
const wxString & | filename, | ||
bool | selectedOnly, | ||
double | t0, | ||
double | t1 | ||
) |
Definition at line 457 of file Export.cpp.
References Process().
bool Exporter::Process | ( | unsigned | numChannels, |
const FileExtension & | type, | ||
const wxString & | filename, | ||
bool | selectedOnly, | ||
double | t0, | ||
double | t1, | ||
std::unique_ptr< BasicUI::ProgressDialog > & | progressDialog | ||
) |
Definition at line 465 of file Export.cpp.
References CheckFilename(), ExportTracks(), mActualName, mChannels, mFilename, mFormat, mPlugins, mSelectedOnly, mSubFormat, mT0, and mT1.
bool Exporter::ProcessFromTimerRecording | ( | bool | selectedOnly, |
double | t0, | ||
double | t1, | ||
wxFileName | fnFile, | ||
int | iFormat, | ||
int | iSubFormat, | ||
int | iFilterIndex | ||
) |
Definition at line 1000 of file Export.cpp.
References CheckFilename(), CheckMix(), ExamineTracks(), ExportTracks(), mFilename, mFilterIndex, mFormat, mMixerSpec, mSelectedOnly, mSubFormat, mT0, and mT1.
bool Exporter::SetAutoExportOptions | ( | ) |
Definition at line 1060 of file Export.cpp.
References TagsEditorDialog::DoEditMetadata(), ProjectSettings::Get(), GetFilename(), ProjectSettings::GetShowId3Dialog(), mFormat, mPlugins, mProject, mSubFormat, and XO().
|
inline |
void Exporter::SetFileDialogTitle | ( | const TranslatableString & | DialogTitle | ) |
Definition at line 378 of file Export.cpp.
References mFileDialogTitle.
Referenced by Exporter().
|
private |
Definition at line 259 of file Export.h.
Referenced by CheckFilename(), ExportTracks(), and Process().
|
private |
Definition at line 272 of file Export.h.
Referenced by CreateUserPane(), Exporter(), GetFilename(), and OnFilterChanged().
|
private |
Definition at line 269 of file Export.h.
Referenced by CheckMix(), ExportTracks(), and Process().
|
private |
Definition at line 251 of file Export.h.
Referenced by DisplayOptions(), GetFilename(), OnExtensionChanged(), and OnFilterChanged().
|
private |
Definition at line 252 of file Export.h.
Referenced by GetFilename(), and SetFileDialogTitle().
|
private |
Definition at line 258 of file Export.h.
Referenced by CheckFilename(), ExportTracks(), GetAutoExportFileName(), GetFilename(), Process(), and ProcessFromTimerRecording().
|
private |
Definition at line 263 of file Export.h.
Referenced by GetFilename(), and ProcessFromTimerRecording().
|
private |
Definition at line 264 of file Export.h.
Referenced by CheckMix(), ExportTracks(), GetAutoExportFilterIndex(), GetAutoExportFormat(), GetFilename(), Process(), ProcessFromTimerRecording(), and SetAutoExportOptions().
|
private |
Definition at line 250 of file Export.h.
Referenced by GetFilename(), and Process().
|
private |
Definition at line 254 of file Export.h.
Referenced by CheckMix(), Exporter(), ExportTracks(), Process(), and ProcessFromTimerRecording().
|
private |
Definition at line 267 of file Export.h.
Referenced by CheckMix(), and ExamineTracks().
|
private |
Definition at line 266 of file Export.h.
Referenced by CheckMix(), and ExamineTracks().
|
private |
Definition at line 256 of file Export.h.
Referenced by CheckMix(), CreateUserPane(), DisplayOptions(), Exporter(), ExportTracks(), FindFormatIndex(), GetFilename(), GetPlugins(), OnFilterChanged(), Process(), and SetAutoExportOptions().
|
private |
Definition at line 253 of file Export.h.
Referenced by CheckMix(), DisplayOptions(), ExamineTracks(), ExportTracks(), GetFilename(), OnHelp(), Process(), and SetAutoExportOptions().
|
private |
Definition at line 270 of file Export.h.
Referenced by CheckMix(), ExamineTracks(), ExportTracks(), Process(), and ProcessFromTimerRecording().
|
private |
Definition at line 265 of file Export.h.
Referenced by CheckMix(), ExportTracks(), GetAutoExportSubFormat(), GetFilename(), Process(), ProcessFromTimerRecording(), and SetAutoExportOptions().
|
private |
Definition at line 261 of file Export.h.
Referenced by ExamineTracks(), ExportTracks(), Process(), and ProcessFromTimerRecording().
|
private |
Definition at line 262 of file Export.h.
Referenced by ExamineTracks(), ExportTracks(), Process(), and ProcessFromTimerRecording().