Audacity 3.2.0
Classes | Namespaces | Typedefs | Enumerations | Functions | Variables
Export.cpp File Reference
#include "Export.h"
#include <wx/bmpbuttn.h>
#include <wx/dcclient.h>
#include <wx/file.h>
#include <wx/filectrl.h>
#include <wx/filename.h>
#include <wx/simplebook.h>
#include <wx/sizer.h>
#include <wx/slider.h>
#include <wx/statbox.h>
#include <wx/stattext.h>
#include <wx/textctrl.h>
#include <wx/dcmemory.h>
#include <wx/window.h>
#include "sndfile.h"
#include "widgets/FileDialog/FileDialog.h"
#include "AllThemeResources.h"
#include "BasicUI.h"
#include "Mix.h"
#include "MixAndRender.h"
#include "Prefs.h"
#include "../prefs/ImportExportPrefs.h"
#include "Project.h"
#include "ProjectHistory.h"
#include "../ProjectSettings.h"
#include "../ProjectWindow.h"
#include "../ProjectWindows.h"
#include "../ShuttleGui.h"
#include "../TagsEditor.h"
#include "Theme.h"
#include "../WaveTrack.h"
#include "../widgets/AudacityMessageBox.h"
#include "../widgets/Warning.h"
#include "../widgets/HelpSystem.h"
#include "AColor.h"
#include "FileNames.h"
#include "widgets/ProgressDialog.h"
#include "wxFileNameWrapper.h"
Include dependency graph for Export.cpp:

Go to the source code of this file.

Classes

struct  anonymous_namespace{Export.cpp}::ExporterItem
 

Namespaces

namespace  anonymous_namespace{Export.cpp}
 

Typedefs

using anonymous_namespace{Export.cpp}::ExportPluginFactories = std::vector< Exporter::ExportPluginFactory >
 

Enumerations

enum  { ID_MIXERPANEL = 10001 , ID_SLIDER_CHANNEL }
 

Functions

 wxDEFINE_EVENT (AUDACITY_FILE_SUFFIX_EVENT, wxCommandEvent)
 
static Registry::GroupItemanonymous_namespace{Export.cpp}::sRegistry ()
 
ExportPluginFactories & anonymous_namespace{Export.cpp}::sFactories ()
 
TranslatableString AudacityExportCaptionStr ()
 
TranslatableString AudacityExportMessageStr ()
 
void ShowExportErrorDialog (wxString ErrorCode, TranslatableString message, const TranslatableString &caption, bool allowReporting)
 
void ShowDiskFullExportErrorDialog (const wxFileNameWrapper &fileName)
 

Variables

const auto anonymous_namespace{Export.cpp}::PathStart = wxT("Exporters")
 

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
ID_MIXERPANEL 
ID_SLIDER_CHANNEL 

Definition at line 1347 of file Export.cpp.

1348{
1349 ID_MIXERPANEL = 10001,
1351};
@ ID_SLIDER_CHANNEL
Definition: Export.cpp:1350
@ ID_MIXERPANEL
Definition: Export.cpp:1349

Function Documentation

◆ AudacityExportCaptionStr()

TranslatableString AudacityExportCaptionStr ( )

Definition at line 1489 of file Export.cpp.

1490{
1491 return XO("Warning");
1492}
XO("Cut/Copy/Paste")

References XO().

Referenced by Exporter::ExamineTracks().

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

◆ AudacityExportMessageStr()

TranslatableString AudacityExportMessageStr ( )

Definition at line 1493 of file Export.cpp.

1494{
1495 return XO("Unable to export.\nError %s");
1496}

References XO().

Here is the call graph for this function:

◆ ShowDiskFullExportErrorDialog()

void ShowDiskFullExportErrorDialog ( const wxFileNameWrapper fileName)

Definition at line 1519 of file Export.cpp.

1520{
1522 XO("Warning"),
1524 "Error:_Disk_full_or_not_writable"
1525 );
1526}
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:254

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()

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 1506 of file Export.cpp.

1510{
1511 using namespace BasicUI;
1512 ShowErrorDialog( {},
1513 caption,
1514 message.Format( ErrorCode ),
1515 "Error:_Unable_to_export", // URL.
1516 ErrorDialogOptions { allowReporting ? ErrorDialogType::ModalErrorReport : ErrorDialogType::ModalError });
1517}
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:49

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:

◆ wxDEFINE_EVENT()

wxDEFINE_EVENT ( AUDACITY_FILE_SUFFIX_EVENT  ,
wxCommandEvent   
)