Audacity 3.2.0
|
#include <ExportUtils.h>
Public Types | |
enum class | ExportHookResult { Handled , Continue , Cancel } |
using | ExportHook = std::function< ExportHookResult(AudacityProject &, const FileExtension &, AudiocomTrace, bool)> |
using | Priority = unsigned |
Static Public Member Functions | |
static TrackIterRange< const WaveTrack > | FindExportWaveTracks (const TrackList &tracks, bool selectedOnly) |
static bool | HasSelectedAudio (const AudacityProject &project) |
static ExportProcessor::Parameters | ParametersFromEditor (const ExportOptionsEditor &editor) |
static void | RegisterExportHook (ExportHook hook, Priority=DEFAULT_EXPORT_HOOK_PRIORITY) |
static void | PerformInteractiveExport (AudacityProject &project, const FileExtension &format, AudiocomTrace trace, bool selectedOnly) |
Static Public Attributes | |
static constexpr Priority | DEFAULT_EXPORT_HOOK_PRIORITY = 0 |
Definition at line 43 of file ExportUtils.h.
using ExportUtils::ExportHook = std::function<ExportHookResult( AudacityProject&, const FileExtension&, AudiocomTrace, bool)> |
Definition at line 60 of file ExportUtils.h.
using ExportUtils::Priority = unsigned |
Definition at line 64 of file ExportUtils.h.
|
strong |
Enumerator | |
---|---|
Handled | |
Continue | |
Cancel |
Definition at line 53 of file ExportUtils.h.
|
static |
Definition at line 23 of file ExportUtils.cpp.
References Track::Any(), WaveTrack::GetMute(), PlayableTrack::GetNotSolo(), WaveTrack::GetSolo(), Track::IsSelected(), and tracks.
Referenced by ExportPluginHelpers::CreateMixer(), anonymous_namespace{FileMenus.cpp}::DoExport(), TimerRecordDialog::ExecutePostRecordActions(), ExportAudioDialog::ExportAudioDialog(), HasSelectedAudio(), ExportFilePanel::Init(), and ExportAudioDialog::OnExport().
|
static |
Definition at line 33 of file ExportUtils.cpp.
References FindExportWaveTracks(), ViewInfo::Get(), TrackList::Get(), NotifyingSelectedRegion::isPoint(), project, and ViewInfo::selectedRegion.
Referenced by ExportAudioDialog::ExportAudioDialog(), and anonymous_namespace{FileMenus.cpp}::OnExportSelectedAudio().
|
static |
Definition at line 39 of file ExportUtils.cpp.
References ExportOptionsEditor::GetOption(), ExportOptionsEditor::GetOptionsCount(), ExportOptionsEditor::GetValue(), and ExportOption::id.
Referenced by ExportCommand::Apply(), anonymous_namespace{FileMenus.cpp}::DoExport(), and ExportOptionsHandler::GetParameters().
|
static |
Definition at line 78 of file ExportUtils.cpp.
References Continue, anonymous_namespace{ExportUtils.cpp}::ExportHooks(), anonymous_namespace{ExportPCM.cpp}::format, and project.
Referenced by anonymous_namespace{FileMenus.cpp}::DoExport(), and anonymous_namespace{FileMenus.cpp}::OnExportSelectedAudio().
|
static |
Definition at line 67 of file ExportUtils.cpp.
References anonymous_namespace{ExportUtils.cpp}::ExportHooks().
|
staticconstexpr |
Definition at line 65 of file ExportUtils.h.