Audacity 3.2.0
Classes | Namespaces | Typedefs | Functions
Export.h File Reference
#include <functional>
#include <vector>
#include <wx/filename.h>
#include "Identifier.h"
#include "SampleFormat.h"
#include "wxPanelWrapper.h"
#include "FileNames.h"
#include "Registry.h"
Include dependency graph for Export.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


class  FormatInfo
class  ExportPlugin
class  Exporter
struct  Exporter::RegisteredExportPlugin
struct  Exporter::ExporterItem
class  ExportMixerPanel
 Panel that displays mixing for advanced mixing option. More...
class  ExportMixerDialog
 Dialog for advanced mixing. More...


namespace  MixerOptions
namespace  BasicUI


using MixerSpec = MixerOptions::Downmix
using WaveTrackConstArray = std::vector< std::shared_ptr< const WaveTrack > >
using ExportPluginArray = std::vector< std::unique_ptr< ExportPlugin > >


AUDACITY_DLL_API TranslatableString AudacityExportCaptionStr ()
AUDACITY_DLL_API TranslatableString AudacityExportMessageStr ()
AUDACITY_DLL_API void ShowExportErrorDialog (wxString ErrorCode, TranslatableString message=AudacityExportMessageStr(), const TranslatableString &caption=AudacityExportCaptionStr(), bool allowReporting=true)
AUDACITY_DLL_API void ShowDiskFullExportErrorDialog (const wxFileNameWrapper &fileName)

Typedef Documentation

◆ ExportPluginArray

using ExportPluginArray = std::vector < std::unique_ptr< ExportPlugin > >

Definition at line 161 of file Export.h.

◆ MixerSpec

Definition at line 35 of file Export.h.

◆ WaveTrackConstArray

using WaveTrackConstArray = std::vector < std::shared_ptr < const WaveTrack > >

Definition at line 39 of file Export.h.

Function Documentation

◆ AudacityExportCaptionStr()

AUDACITY_DLL_API TranslatableString AudacityExportCaptionStr ( )

Definition at line 1486 of file Export.cpp.

1488 return XO("Warning");

References XO().

Referenced by Exporter::ExamineTracks().

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

◆ AudacityExportMessageStr()

AUDACITY_DLL_API TranslatableString AudacityExportMessageStr ( )

Definition at line 1490 of file Export.cpp.

1492 return XO("Unable to export.\nError %s");

References XO().

Here is the call graph for this function:

◆ ShowDiskFullExportErrorDialog()

AUDACITY_DLL_API void ShowDiskFullExportErrorDialog ( const wxFileNameWrapper fileName)

Definition at line 1516 of file Export.cpp.

1519 XO("Warning"),
1521 "Error:_Disk_full_or_not_writable"
1522 );
static TranslatableString WriteFailureMessage(const wxFileName &fileName)
void ShowErrorDialog(const WindowPlacement &placement, const TranslatableString &dlogTitle, const TranslatableString &message, const ManualPageID &helpPage, const ErrorDialogOptions &options={})
Show an error dialog with a link to the manual for further help.
Definition: BasicUI.h:259

References BasicUI::ShowErrorDialog(), FileException::WriteFailureMessage(), and XO().

Referenced by ExportFLAC::Export(), ExportMP3::Export(), and ExportOGG::Export().

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

◆ ShowExportErrorDialog()

AUDACITY_DLL_API void ShowExportErrorDialog ( wxString  ErrorCode,
TranslatableString  message = AudacityExportMessageStr(),
const TranslatableString caption = AudacityExportCaptionStr(),
bool  allowReporting = true 

We have many Export errors that are essentially anonymous and are distinguished only by an error code number. Rather than repeat the code, we have it just once.

Definition at line 1503 of file Export.cpp.

1508 using namespace BasicUI;
1509 ShowErrorDialog( {},
1510 caption,
1511 message.Format( ErrorCode ),
1512 "Error:_Unable_to_export", // URL.
1513 ErrorDialogOptions { allowReporting ? ErrorDialogType::ModalErrorReport : ErrorDialogType::ModalError });
TranslatableString & Format(Args &&...args) &
Capture variadic format arguments (by copy) when there is no plural.
Options for variations of error dialogs; the default is for modal dialogs.
Definition: BasicUI.h:51

References TranslatableString::Format(), and BasicUI::ShowErrorDialog().

Referenced by ExportCL::CheckFileName(), ExportFFmpeg::EncodeAudioFrame(), Exporter::ExamineTracks(), ExportFFmpeg::Export(), ExportFLAC::Export(), ExportMP3::Export(), ExportOGG::Export(), ExportPCM::Export(), ExportWavPack::Export(), and ExportFFmpeg::Finalize().

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