Audacity 3.2.0
|
#include <ExportAudioDialog.h>
Classes | |
struct | ExportSetting |
A private class used to store the information needed to do an export. More... | |
Public Types | |
enum class | ExportMode { Auto , SelectedOnly } |
Public Member Functions | |
ExportAudioDialog (wxWindow *parent, AudacityProject &project, const wxString &defaultName, const wxString &defaultFormat, ExportMode mode=ExportMode::Auto) | |
~ExportAudioDialog () override | |
bool | Show (bool show=true) override |
Public Member Functions inherited from wxDialogWrapper | |
wxDialogWrapper () | |
wxDialogWrapper (wxWindow *parent, wxWindowID id, const TranslatableString &title, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxDEFAULT_DIALOG_STYLE, const TranslatableString &name=XO("Dialog")) | |
bool | Create (wxWindow *parent, wxWindowID id, const TranslatableString &title, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxDEFAULT_DIALOG_STYLE, const TranslatableString &name=XO("Dialog")) |
void | SetTitle (const TranslatableString &title) |
void | SetLabel (const TranslatableString &title) |
void | SetName (const TranslatableString &title) |
void | SetName () |
Public Member Functions inherited from wxTabTraversalWrapper< wxDialog > | |
wxTabTraversalWrapper (Args &&... args) | |
wxTabTraversalWrapper (const wxTabTraversalWrapper &)=delete | |
wxTabTraversalWrapper (wxTabTraversalWrapper &&)=delete | |
wxTabTraversalWrapper & | operator= (const wxTabTraversalWrapper &)=delete |
wxTabTraversalWrapper & | operator= (wxTabTraversalWrapper &&)=delete |
Private Member Functions | |
void | PopulateOrExchange (ShuttleGui &S) |
void | OnExportRangeChange (wxCommandEvent &event) |
void | OnSplitModeChange (wxCommandEvent &event) |
void | OnSplitNamePolicyChange (wxCommandEvent &event) |
void | OnTrimBlankSpaceBeforeFirstClip (wxCommandEvent &) |
void | OnIncludeAudioBeforeFirstLabelChange (wxCommandEvent &) |
void | OnFileNamePrefixChange (wxCommandEvent &) |
void | OnEditMetadata (wxCommandEvent &event) |
void | OnHelp (wxCommandEvent &event) |
void | OnExport (wxCommandEvent &event) |
void | OnFormatChange (wxCommandEvent &event) |
void | UpdateExportSettings () |
void | UpdateLabelExportSettings (const ExportPlugin &plugin, int formatIndex, bool byName, bool addNumber, const wxString &prefix) |
void | UpdateTrackExportSettings (const ExportPlugin &plugin, int formatIndex, bool byName, bool addNumber, const wxString &prefix) |
ExportResult | DoExportSplitByLabels (const ExportPlugin &plugin, int formatIndex, const ExportProcessor::Parameters ¶meters, FilePaths &exporterFiles) |
ExportResult | DoExportSplitByTracks (const ExportPlugin &plugin, int formatIndex, const ExportProcessor::Parameters ¶meters, FilePaths &exporterFiles) |
ExportResult | DoExport (const ExportPlugin &plugin, int formatIndex, const ExportProcessor::Parameters ¶meters, const wxFileName &filename, int channels, double t0, double t1, bool selectedOnly, const Tags &tags, FilePaths &exportedFiles) |
Private Attributes | |
AudacityProject & | mProject |
ExportFilePanel * | mExportOptionsPanel {} |
wxWindow * | mSplitsPanel {} |
wxCheckBox * | mIncludeAudioBeforeFirstLabel {} |
wxTextCtrl * | mSplitFileNamePrefix {} |
wxButton * | mEditMetadata {} |
wxRadioButton * | mRangeProject |
wxRadioButton * | mRangeSelection {} |
wxRadioButton * | mRangeSplit {} |
wxRadioButton * | mSplitByLabels {} |
wxRadioButton * | mSplitByTracks {} |
wxRadioButton * | mExportRangeSelection {} |
wxRadioButton * | mSplitModeTracks {} |
wxRadioButton * | mSplitModeLabels {} |
wxRadioButton * | mSplitUseName {} |
wxRadioButton * | mSplitUseNumAndName {} |
wxRadioButton * | mSplitUseNumAndPrefix {} |
wxCheckBox * | mOverwriteExisting {} |
wxCheckBox * | mSkipSilenceAtBeginning {} |
std::vector< ExportSetting > | mExportSettings |
bool | mExportSettingsDirty {true} |
Definition at line 42 of file ExportAudioDialog.h.
|
strong |
Enumerator | |
---|---|
Auto | |
SelectedOnly |
Definition at line 55 of file ExportAudioDialog.h.
ExportAudioDialog::ExportAudioDialog | ( | wxWindow * | parent, |
AudacityProject & | project, | ||
const wxString & | defaultName, | ||
const wxString & | defaultFormat, | ||
ExportMode | mode = ExportMode::Auto |
||
) |
Definition at line 161 of file ExportAudioDialog.cpp.
References _, eIsCreatingFromPrefs, anonymous_namespace{ExportAudioDialog.cpp}::ExportAudioDefaultFormat, anonymous_namespace{ExportAudioDialog.cpp}::ExportAudioDefaultPath, anonymous_namespace{ExportAudioDialog.cpp}::ExportAudioExportRange, anonymous_namespace{ExportAudioDialog.cpp}::ExportAudioSplitNamePolicy, FileNames::FindDefaultPath(), ExportUtils::FindExportWaveTracks(), anonymous_namespace{ExportPCM.cpp}::format, ImportExport::Get(), RealtimeEffectList::Get(), TrackList::Get(), ImportExport::GetPreferredExportRate(), RealtimeEffectList::GetStatesCount(), ExportUtils::HasSelectedAudio(), ImportExport::InvalidRate, project, ChoiceSetting::Read(), Setting< T >::Read(), S, anonymous_namespace{ClipSegmentTest.cpp}::sampleRate, size, and tracks.
|
overridedefault |
|
private |
Definition at line 974 of file ExportAudioDialog.cpp.
References mOverwriteExisting, name, and wxT().
Referenced by DoExportSplitByLabels(), and DoExportSplitByTracks().
|
private |
Definition at line 872 of file ExportAudioDialog.cpp.
References DoExport(), mExportSettings, Stopped, Success, and XO().
Referenced by OnExport().
|
private |
Definition at line 910 of file ExportAudioDialog.cpp.
References DoExport(), SelectionState::Get(), TrackList::Get(), WaveTrack::GetMute(), PlayableTrack::GetNotSolo(), WaveTrack::GetSolo(), mExportSettings, mProject, Stopped, Success, tracks, and XO().
Referenced by OnExport().
|
private |
Definition at line 452 of file ExportAudioDialog.cpp.
References TagsEditorDialog::EditProjectMetadata(), mExportSettings, mProject, mRangeSplit, names, UpdateExportSettings(), and XO().
|
private |
Definition at line 482 of file ExportAudioDialog.cpp.
References TrackList::Any(), AudacityMessageBox(), ExportTaskBuilder::Build(), Cancelled, DoExportSplitByLabels(), DoExportSplitByTracks(), eIsSavingToPrefs, Error, ExportProgressUI::ExceptionWrappedCall(), anonymous_namespace{ExportAudioDialog.cpp}::ExportAudioDefaultFormat, anonymous_namespace{ExportAudioDialog.cpp}::ExportAudioDefaultPath, ExportUtils::FindExportWaveTracks(), ImportExport::Get(), ViewInfo::Get(), TrackList::Get(), ExportFilePanel::GetChannels(), TrackList::GetEndTime(), ExportFilePanel::GetFormat(), ExportFilePanel::GetFullName(), ExportFilePanel::GetMixerSpec(), ExportFilePanel::GetParameters(), ExportFilePanel::GetPath(), ExportFilePanel::GetPlugin(), ExportFilePanel::GetSampleRate(), ChannelGroup::GetStartTime(), mExportOptionsPanel, min(), mProject, mRangeSelection, mRangeSplit, mSkipSilenceAtBeginning, mSplitByLabels, mSplitByTracks, PopulateOrExchange(), S, ExportTaskBuilder::SetFileName(), ExportTaskBuilder::SetMixerSpec(), ExportTaskBuilder::SetNumChannels(), ExportTaskBuilder::SetParameters(), ExportTaskBuilder::SetPlugin(), ImportExport::SetPreferredExportRate(), ExportTaskBuilder::SetRange(), ExportTaskBuilder::SetSampleRate(), ExportProgressUI::Show(), ShowExportErrorDialog(), HelpSystem::ShowInfoDialog(), Stopped, Success, tracks, UpdateExportSettings(), Setting< T >::Write(), and XO().
|
private |
Definition at line 412 of file ExportAudioDialog.cpp.
References anonymous_namespace{ExportAudioDialog.cpp}::ExportRangeSplitID, mExportOptionsPanel, mExportSettingsDirty, mSplitsPanel, and ExportFilePanel::SetCustomMappingEnabled().
|
private |
Definition at line 447 of file ExportAudioDialog.cpp.
References mExportSettingsDirty.
|
private |
Definition at line 647 of file ExportAudioDialog.cpp.
References ExportFilePanel::GetFormat(), ExportFilePanel::GetPlugin(), mEditMetadata, mExportOptionsPanel, and mExportSettingsDirty.
|
private |
Definition at line 477 of file ExportAudioDialog.cpp.
References HelpSystem::ShowHelp().
|
private |
Definition at line 442 of file ExportAudioDialog.cpp.
References mExportSettingsDirty.
|
private |
Definition at line 425 of file ExportAudioDialog.cpp.
References anonymous_namespace{ExportAudioDialog.cpp}::ExportModeLabelsID, mExportSettingsDirty, and mIncludeAudioBeforeFirstLabel.
|
private |
Definition at line 431 of file ExportAudioDialog.cpp.
References anonymous_namespace{ExportAudioDialog.cpp}::ExportSplitNamePolicyNumberingAfterPrefixID, mExportSettingsDirty, and mSplitFileNamePrefix.
|
private |
Definition at line 437 of file ExportAudioDialog.cpp.
References mExportSettingsDirty.
|
private |
Definition at line 272 of file ExportAudioDialog.cpp.
References anonymous_namespace{ExportAudioDialog.cpp}::EditMetadataID, eIsCreating, anonymous_namespace{ExportAudioDialog.cpp}::ExportAudioExportRange, anonymous_namespace{ExportAudioDialog.cpp}::ExportAudioIncludeAudioBeforeFirstLabel, anonymous_namespace{ExportAudioDialog.cpp}::ExportAudioOverwriteExisting, anonymous_namespace{ExportAudioDialog.cpp}::ExportAudioSkipSilenceAtBeginning, anonymous_namespace{ExportAudioDialog.cpp}::ExportAudioSplitMode, anonymous_namespace{ExportAudioDialog.cpp}::ExportAudioSplitNamePolicy, anonymous_namespace{ExportAudioDialog.cpp}::ExportFilePanelID, anonymous_namespace{ExportAudioDialog.cpp}::ExportModeLabelsID, anonymous_namespace{ExportAudioDialog.cpp}::ExportModeTracksID, anonymous_namespace{ExportAudioDialog.cpp}::ExportRangeProjectID, anonymous_namespace{ExportAudioDialog.cpp}::ExportRangeSelectionID, anonymous_namespace{ExportAudioDialog.cpp}::ExportRangeSplitID, anonymous_namespace{ExportAudioDialog.cpp}::ExportSplitNamePolicyNumberingAfterPrefixID, anonymous_namespace{ExportAudioDialog.cpp}::ExportSplitNamePolicyNumberingBeforeNameID, anonymous_namespace{ExportAudioDialog.cpp}::ExportSplitNamePolicyTrackNameID, anonymous_namespace{ExportAudioDialog.cpp}::FileNamePrefixID, anonymous_namespace{ExportAudioDialog.cpp}::IncludeAudioBeforeFirstLabelID, mEditMetadata, mExportOptionsPanel, mIncludeAudioBeforeFirstLabel, mOverwriteExisting, mProject, mRangeProject, mRangeSelection, mRangeSplit, mSkipSilenceAtBeginning, mSplitByLabels, mSplitByTracks, mSplitFileNamePrefix, mSplitsPanel, mSplitUseName, mSplitUseNumAndName, mSplitUseNumAndPrefix, anonymous_namespace{ExportAudioDialog.cpp}::OverwriteExistingFilesID, S, safenew, anonymous_namespace{ExportAudioDialog.cpp}::TrimBlankSpaceBeforeFirstClipID, and XO().
Referenced by OnExport().
|
override |
Definition at line 260 of file ExportAudioDialog.cpp.
References mExportOptionsPanel, ExportFilePanel::SetInitialFocus(), and ExportProgressUI::Show().
|
private |
Definition at line 659 of file ExportAudioDialog.cpp.
References ExportFilePanel::GetFormat(), ExportFilePanel::GetPlugin(), mExportOptionsPanel, mExportSettingsDirty, mRangeSplit, mSplitByLabels, mSplitByTracks, mSplitFileNamePrefix, mSplitUseName, mSplitUseNumAndName, UpdateLabelExportSettings(), and UpdateTrackExportSettings().
Referenced by OnEditMetadata(), and OnExport().
|
private |
Definition at line 685 of file ExportAudioDialog.cpp.
References _, details::begin(), ExportAudioDialog::ExportSetting::channels, ExportAudioDialog::ExportSetting::filename, Tags::Get(), TrackList::Get(), ExportFilePanel::GetChannels(), ExportPlugin::GetFormatInfo(), ExportFilePanel::GetFullName(), ExportFilePanel::GetPath(), SelectedRegion::isPoint(), Tags::LoadDefaults(), FileNames::MakeNameUnique(), mExportOptionsPanel, mExportSettings, mIncludeAudioBeforeFirstLabel, mProject, name, Internat::SanitiseFilename(), LabelStruct::selectedRegion, Tags::SetTag(), anonymous_namespace{NoteTrack.cpp}::swap(), SelectedRegion::t0(), ExportAudioDialog::ExportSetting::t0, SelectedRegion::t1(), ExportAudioDialog::ExportSetting::t1, TAG_TITLE, TAG_TRACK, ExportAudioDialog::ExportSetting::tags, LabelStruct::title, title, tracks, and wxT().
Referenced by UpdateExportSettings().
|
private |
Definition at line 788 of file ExportAudioDialog.cpp.
References _, ExportAudioDialog::ExportSetting::channels, ExportAudioDialog::ExportSetting::filename, Tags::Get(), TrackList::Get(), ExportFilePanel::GetChannels(), ExportPlugin::GetFormatInfo(), ExportFilePanel::GetFullName(), WaveTrack::GetMute(), PlayableTrack::GetNotSolo(), ExportFilePanel::GetPath(), WaveTrack::GetSolo(), Tags::LoadDefaults(), FileNames::MakeNameUnique(), mExportOptionsPanel, mExportSettings, mProject, mSkipSilenceAtBeginning, name, Internat::SanitiseFilename(), Tags::SetTag(), anonymous_namespace{NoteTrack.cpp}::swap(), ExportAudioDialog::ExportSetting::t0, ExportAudioDialog::ExportSetting::t1, TAG_TITLE, TAG_TRACK, ExportAudioDialog::ExportSetting::tags, title, tracks, and wxT().
Referenced by UpdateExportSettings().
|
private |
Definition at line 121 of file ExportAudioDialog.h.
Referenced by OnFormatChange(), and PopulateOrExchange().
|
private |
Definition at line 116 of file ExportAudioDialog.h.
Referenced by OnExport(), OnExportRangeChange(), OnFormatChange(), PopulateOrExchange(), Show(), UpdateExportSettings(), UpdateLabelExportSettings(), and UpdateTrackExportSettings().
|
private |
Definition at line 127 of file ExportAudioDialog.h.
|
private |
Definition at line 136 of file ExportAudioDialog.h.
Referenced by DoExportSplitByLabels(), DoExportSplitByTracks(), OnEditMetadata(), UpdateLabelExportSettings(), and UpdateTrackExportSettings().
|
private |
Definition at line 137 of file ExportAudioDialog.h.
Referenced by OnExportRangeChange(), OnFileNamePrefixChange(), OnFormatChange(), OnIncludeAudioBeforeFirstLabelChange(), OnSplitModeChange(), OnSplitNamePolicyChange(), OnTrimBlankSpaceBeforeFirstClip(), and UpdateExportSettings().
|
private |
Definition at line 119 of file ExportAudioDialog.h.
Referenced by OnSplitModeChange(), PopulateOrExchange(), and UpdateLabelExportSettings().
|
private |
Definition at line 133 of file ExportAudioDialog.h.
Referenced by DoExport(), and PopulateOrExchange().
|
private |
Definition at line 114 of file ExportAudioDialog.h.
Referenced by DoExportSplitByTracks(), OnEditMetadata(), OnExport(), PopulateOrExchange(), UpdateLabelExportSettings(), and UpdateTrackExportSettings().
|
private |
Definition at line 122 of file ExportAudioDialog.h.
Referenced by PopulateOrExchange().
|
private |
Definition at line 123 of file ExportAudioDialog.h.
Referenced by OnExport(), and PopulateOrExchange().
|
private |
Definition at line 124 of file ExportAudioDialog.h.
Referenced by OnEditMetadata(), OnExport(), PopulateOrExchange(), and UpdateExportSettings().
|
private |
Definition at line 134 of file ExportAudioDialog.h.
Referenced by OnExport(), PopulateOrExchange(), and UpdateTrackExportSettings().
|
private |
Definition at line 125 of file ExportAudioDialog.h.
Referenced by OnExport(), PopulateOrExchange(), and UpdateExportSettings().
|
private |
Definition at line 126 of file ExportAudioDialog.h.
Referenced by OnExport(), PopulateOrExchange(), and UpdateExportSettings().
|
private |
Definition at line 120 of file ExportAudioDialog.h.
Referenced by OnSplitNamePolicyChange(), PopulateOrExchange(), and UpdateExportSettings().
|
private |
Definition at line 129 of file ExportAudioDialog.h.
|
private |
Definition at line 128 of file ExportAudioDialog.h.
|
private |
Definition at line 118 of file ExportAudioDialog.h.
Referenced by OnExportRangeChange(), and PopulateOrExchange().
|
private |
Definition at line 130 of file ExportAudioDialog.h.
Referenced by PopulateOrExchange(), and UpdateExportSettings().
|
private |
Definition at line 131 of file ExportAudioDialog.h.
Referenced by PopulateOrExchange(), and UpdateExportSettings().
|
private |
Definition at line 132 of file ExportAudioDialog.h.
Referenced by PopulateOrExchange().