![]() |
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 |
unsigned | mNumLeft |
unsigned | mNumRight |
unsigned | mNumMono |
unsigned | mChannels |
bool | mSelectedOnly |
wxSimplebook * | mBook |
using Exporter::ExportPluginFactory = std::function< std::unique_ptr< ExportPlugin >() > |
Exporter::Exporter | ( | AudacityProject & | project | ) |
Definition at line 321 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 360 of file Export.cpp.
|
private |
Definition at line 766 of file Export.cpp.
References mActualName, mFilename, and wxT().
Referenced by Process(), and ProcessFromTimerRecording().
|
private |
Definition at line 815 of file Export.cpp.
References ImportExportPrefs::ExportDownMixSetting, ProjectWindow::Find(), TrackList::Get(), ExportMixerDialog::GetMixerSpec(), mChannels, mFormat, min(), mMixerSpec, mNumLeft, mNumMono, mNumRight, mPlugins, mProject, mSelectedOnly, mSubFormat, EnumSetting< Enum >::ReadEnum(), ShowWarningDialog(), wxT(), and XO().
Referenced by Process(), and ProcessFromTimerRecording().
|
private |
Definition at line 950 of file Export.cpp.
References ThemeBase::Bitmap(), eIsCreating, mBook, mPlugins, S, safenew, theTheme, and XO().
Referenced by CreateUserPaneCallback().
|
staticprivate |
Definition at line 941 of file Export.cpp.
References CreateUserPane().
Referenced by GetFilename().
void Exporter::DisplayOptions | ( | int | index | ) |
Definition at line 785 of file Export.cpp.
References FindProjectFrame(), mDialog, mPlugins, and mProject.
|
private |
Definition at line 493 of file Export.cpp.
References Track::Any(), AudacityExportCaptionStr(), TrackList::Get(), PlayableTrack::GetMute(), PlayableTrack::GetNotSolo(), PlayableTrack::GetSolo(), gPrefs, Track::IsSelected(), Track::LeftChannel, mNumLeft, mNumMono, mNumRight, mNumSelected, Track::MonoChannel, mProject, mSelectedOnly, mT0, mT1, Track::RightChannel, ShowExportErrorDialog(), wxT(), and XO().
Referenced by Process(), and ProcessFromTimerRecording().
|
private |
Definition at line 894 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 381 of file Export.cpp.
References mPlugins.
wxFileName Exporter::GetAutoExportFileName | ( | ) |
Definition at line 1081 of file Export.cpp.
References mFilename.
int Exporter::GetAutoExportFilterIndex | ( | ) |
int Exporter::GetAutoExportFormat | ( | ) |
int Exporter::GetAutoExportSubFormat | ( | ) |
Definition at line 1073 of file Export.cpp.
References mSubFormat.
|
private |
Definition at line 588 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 364 of file Export.cpp.
References mDialog, and FileDialog::SetFileExtension().
|
private |
Definition at line 987 of file Export.cpp.
References mBook, mDialog, mPlugins, and FileDialog::SetFileExtension().
void Exporter::OnHelp | ( | wxCommandEvent & | evt | ) |
Definition at line 369 of file Export.cpp.
References FindProjectFrame(), mProject, and HelpSystem::ShowHelp().
bool Exporter::Process | ( | bool | selectedOnly, |
double | t0, | ||
double | t1 | ||
) |
Definition at line 400 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 454 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 462 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 1025 of file Export.cpp.
References CheckFilename(), CheckMix(), ExamineTracks(), ExportTracks(), mFilename, mFilterIndex, mFormat, mMixerSpec, mSelectedOnly, mSubFormat, mT0, and mT1.
bool Exporter::SetAutoExportOptions | ( | ) |
Definition at line 1085 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 375 of file Export.cpp.
References mFileDialogTitle.
Referenced by Exporter(), and anonymous_namespace{FileMenus.cpp}::OnExportSelection().
|
private |
Definition at line 259 of file Export.h.
Referenced by CheckFilename(), ExportTracks(), and Process().
|
private |
Definition at line 273 of file Export.h.
Referenced by CreateUserPane(), Exporter(), GetFilename(), and OnFilterChanged().
|
private |
Definition at line 270 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 269 of file Export.h.
Referenced by CheckMix(), and ExamineTracks().
|
private |
Definition at line 268 of file Export.h.
Referenced by CheckMix(), and ExamineTracks().
|
private |
Definition at line 266 of file Export.h.
Referenced by 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 271 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().