Audacity 3.2.0
|
Deserializer of curves from XML files. More...
#include <EqualizationCurves.h>
Public Member Functions | |
EQCurveReader (EQCurveArray &curves, const TranslatableString &name, int options) | |
bool | HandleXMLTag (const std::string_view &tag, const AttributesList &attrs) override |
XMLTagHandler * | HandleXMLChild (const std::string_view &tag) override |
void | LoadCurves (const wxString &fileName={}, bool append=false) |
Public 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) |
Private Member Functions | |
bool | GetDefaultFileName (wxFileName &fileName) |
wxString | GetPrefsPrefix () |
void | UpdateDefaultCurves (bool updateAll=false) |
Private Attributes | |
EQCurveArray & | mCurves |
const TranslatableString | mName |
const int | mOptions |
Deserializer of curves from XML files.
Definition at line 66 of file EqualizationCurves.h.
|
inline |
Definition at line 68 of file EqualizationCurves.h.
|
private |
Definition at line 254 of file EqualizationCurves.cpp.
References FileNames::DataDir(), FileNames::ResourcesDir(), and wxT().
Referenced by LoadCurves().
|
private |
Definition at line 27 of file EqualizationCurves.cpp.
References kEqOptionCurve, kEqOptionGraphic, mOptions, and wxT().
Referenced by LoadCurves(), and UpdateDefaultCurves().
|
overridevirtual |
Implements XMLTagHandler.
Definition at line 419 of file EqualizationCurves.cpp.
|
overridevirtual |
Implements XMLTagHandler.
Definition at line 324 of file EqualizationCurves.cpp.
References mCurves, and wxT().
void EQCurveReader::LoadCurves | ( | const wxString & | fileName = {} , |
bool | append = false |
||
) |
Definition at line 40 of file EqualizationCurves.cpp.
References _, audacity::cloud::audiocom::anonymous_namespace{OAuthService.cpp}::append(), FileNames::DataDir(), EQCURVES_REVISION, EQCURVES_VERSION, fn, GetDefaultFileName(), XMLFileReader::GetErrorStr(), GetPrefsPrefix(), gPrefs, BasicUI::MessageBoxOptions::IconStyle(), mCurves, XMLFileReader::Parse(), EQCurve::points, audacity::BasicSettings::Read(), BasicUI::ShowMessageBox(), UPDATE_ALL, UpdateDefaultCurves(), wxT(), and XO().
|
private |
Definition at line 136 of file EqualizationCurves.cpp.
References EQCURVES_REVISION, EQCURVES_VERSION, audacity::BasicSettings::Flush(), fn, GetPrefsPrefix(), gPrefs, mCurves, EQCurve::Name, XMLFileReader::Parse(), FileNames::ResourcesDir(), audacity::BasicSettings::Write(), and wxT().
Referenced by LoadCurves().
|
private |
Definition at line 84 of file EqualizationCurves.h.
Referenced by HandleXMLTag(), LoadCurves(), and UpdateDefaultCurves().
|
private |
Definition at line 85 of file EqualizationCurves.h.
|
private |
Definition at line 86 of file EqualizationCurves.h.
Referenced by GetPrefsPrefix().