Audacity 3.2.0
|
#include <FFmpegPresets.h>
Public Member Functions | |
FFmpegPresets () | |
~FFmpegPresets () override | |
void | GetPresetList (wxArrayString &list) |
void | LoadPreset (ExportFFmpegOptions *parent, wxString &name) |
bool | SavePreset (ExportFFmpegOptions *parent, wxString &name) |
void | DeletePreset (wxString &name) |
bool | OverwriteIsOk (wxString &name) |
FFmpegPreset * | FindPreset (wxString &name) |
void | ImportPresets (wxString &filename) |
void | ExportPresets (wxString &filename) |
bool | HandleXMLTag (const std::string_view &tag, const AttributesList &attrs) override |
XMLTagHandler * | HandleXMLChild (const std::string_view &tag) override |
void | WriteXMLHeader (XMLWriter &xmlFile) const |
void | WriteXML (XMLWriter &xmlFile) const |
Private Attributes | |
FFmpegPresetMap | mPresets |
FFmpegPreset * | mPreset |
bool | mAbortImport |
Additional Inherited Members | |
Private Member Functions inherited from XMLTagHandler | |
XMLTagHandler () | |
virtual | ~XMLTagHandler () |
virtual bool | HandleXMLTag (const std::string_view &tag, const AttributesList &attrs)=0 |
virtual void | HandleXMLEndTag (const std::string_view &WXUNUSED(tag)) |
virtual void | HandleXMLContent (const std::string_view &WXUNUSED(content)) |
virtual XMLTagHandler * | HandleXMLChild (const std::string_view &tag)=0 |
void | ReadXMLEndTag (const char *tag) |
void | ReadXMLContent (const char *s, int len) |
XMLTagHandler * | ReadXMLChild (const char *tag) |
Definition at line 35 of file FFmpegPresets.h.
FFmpegPresets::FFmpegPresets | ( | ) |
Definition at line 40 of file FFmpegPresets.cpp.
References FileNames::DataDir(), mAbortImport, mPreset, XMLFileReader::Parse(), and wxT().
|
override |
Definition at line 50 of file FFmpegPresets.cpp.
References FileNames::DataDir(), GuardedCall(), WriteXML(), WriteXMLHeader(), wxT(), and XO().
void FFmpegPresets::DeletePreset | ( | wxString & | name | ) |
Definition at line 99 of file FFmpegPresets.cpp.
void FFmpegPresets::ExportPresets | ( | wxString & | filename | ) |
Definition at line 77 of file FFmpegPresets.cpp.
References GuardedCall(), WriteXML(), WriteXMLHeader(), and XO().
FFmpegPreset * FFmpegPresets::FindPreset | ( | wxString & | name | ) |
Definition at line 108 of file FFmpegPresets.cpp.
References mPresets, and name.
Referenced by HandleXMLTag(), LoadPreset(), and OverwriteIsOk().
void FFmpegPresets::GetPresetList | ( | wxArrayString & | list | ) |
Definition at line 87 of file FFmpegPresets.cpp.
References mPresets.
|
overridevirtual |
Implements XMLTagHandler.
Definition at line 389 of file FFmpegPresets.cpp.
References mAbortImport.
|
overridevirtual |
Implements XMLTagHandler.
Definition at line 309 of file FFmpegPresets.cpp.
References AudacityMessageBox(), FFmpegExportCtrlIDNames, FindPreset(), mAbortImport, FFmpegPreset::mControlState, mPreset, FFmpegPreset::mPresetName, mPresets, and XO().
void FFmpegPresets::ImportPresets | ( | wxString & | filename | ) |
Definition at line 63 of file FFmpegPresets.cpp.
References mAbortImport, mPreset, mPresets, and XMLFileReader::Parse().
void FFmpegPresets::LoadPreset | ( | ExportFFmpegOptions * | parent, |
wxString & | name | ||
) |
Definition at line 230 of file FFmpegPresets.cpp.
References AudacityMessageBox(), FindPreset(), name, preset, and XO().
bool FFmpegPresets::OverwriteIsOk | ( | wxString & | name | ) |
Definition at line 120 of file FFmpegPresets.cpp.
References AudacityMessageBox(), FindPreset(), name, preset, and XO().
bool FFmpegPresets::SavePreset | ( | ExportFFmpegOptions * | parent, |
wxString & | name | ||
) |
Definition at line 136 of file FFmpegPresets.cpp.
References AudacityMessageBox(), anonymous_namespace{ExportPCM.cpp}::format, mPresets, name, preset, wxT(), and XO().
void FFmpegPresets::WriteXML | ( | XMLWriter & | xmlFile | ) | const |
Definition at line 427 of file FFmpegPresets.cpp.
References FFmpegExportCtrlIDNames, preset, and wxT().
Referenced by ExportPresets(), and ~FFmpegPresets().
void FFmpegPresets::WriteXMLHeader | ( | XMLWriter & | xmlFile | ) | const |
Definition at line 407 of file FFmpegPresets.cpp.
References wxT().
Referenced by ExportPresets(), and ~FFmpegPresets().
|
private |
Definition at line 60 of file FFmpegPresets.h.
Referenced by FFmpegPresets(), HandleXMLChild(), HandleXMLTag(), and ImportPresets().
|
private |
Definition at line 59 of file FFmpegPresets.h.
Referenced by FFmpegPresets(), HandleXMLTag(), and ImportPresets().
|
private |
Definition at line 58 of file FFmpegPresets.h.
Referenced by DeletePreset(), FindPreset(), GetPresetList(), HandleXMLTag(), ImportPresets(), and SavePreset().