Audacity 3.2.0
Static Public Member Functions | List of all members
ExportUtils Class Referencefinal

#include <ExportUtils.h>

Static Public Member Functions

static TrackIterRange< const WaveTrackFindExportWaveTracks (const TrackList &tracks, bool selectedOnly)
static ExportProcessor::Parameters ParametersFromEditor (const ExportOptionsEditor &editor)

Detailed Description

Definition at line 23 of file ExportUtils.h.

Member Function Documentation

◆ FindExportWaveTracks()

TrackIterRange< const WaveTrack > ExportUtils::FindExportWaveTracks ( const TrackList tracks,
bool  selectedOnly 

Definition at line 18 of file ExportUtils.cpp.

20 bool anySolo =
21 !(tracks.Any<const WaveTrack>() + &WaveTrack::GetSolo).empty();
23 return tracks.Any<const WaveTrack>()
24 + (selectedOnly ? &Track::IsSelected : &Track::Any)
const auto tracks
bool GetNotSolo() const
Definition: PlayableTrack.h:50
bool IsSelected() const
Definition: Track.cpp:288
bool Any() const
Definition: Track.cpp:285
A Track that contains audio waveform data.
Definition: WaveTrack.h:227
bool GetMute() const override
May vary asynchronously.
Definition: WaveTrack.cpp:2830
bool GetSolo() const override
May vary asynchronously.
Definition: WaveTrack.cpp:2835

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(), ExportFilePanel::Init(), and ExportAudioDialog::OnExport().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ParametersFromEditor()

ExportProcessor::Parameters ExportUtils::ParametersFromEditor ( const ExportOptionsEditor editor)

Definition at line 28 of file ExportUtils.cpp.

31 for(int i = 0, count = editor.GetOptionsCount(); i < count; ++i)
32 {
33 ExportOption option;
34 ExportValue value;
35 if(editor.GetOption(i, option) && editor.GetValue(, value))
36 parameters.emplace_back(, value);
37 }
38 return parameters;
std::variant< bool, int, double, std::string > ExportValue
A type of option values (parameters) used by exporting plugins.
Definition: ExportTypes.h:38
virtual bool GetValue(ExportOptionID id, ExportValue &value) const =0
virtual bool GetOption(int index, ExportOption &option) const =0
virtual int GetOptionsCount() const =0
std::vector< std::tuple< ExportOptionID, ExportValue > > Parameters
Definition: ExportPlugin.h:93
A type that provides a description of an exporting option. Isn't allowed to change except non-type re...
Definition: ExportTypes.h:43
ExportOptionID id
Internal option id.
Definition: ExportTypes.h:56

References ExportOptionsEditor::GetOption(), ExportOptionsEditor::GetOptionsCount(), ExportOptionsEditor::GetValue(), and ExportOption::id.

Referenced by ExportCommand::Apply(), anonymous_namespace{FileMenus.cpp}::DoExport(), and ExportOptionsHandler::GetParameters().

Here is the call graph for this function:
Here is the caller graph for this function:

The documentation for this class was generated from the following files: