Audacity 3.2.0
|
CommandParameters, derived from wxFileConfig, is essentially doing the same things as the SettingsVisitor classes. It does text <-> binary conversions of parameters. It does not seem to be using actual file read/writing.
More...
#include <EffectAutomationParameters.h>
Public Types | |
using | ObsoleteMap = std::pair< wxString, size_t > |
Public Member Functions | |
CommandParameters (const wxString &parms={}) | |
virtual | ~CommandParameters () |
virtual bool | HasGroup (const wxString &strName) const override |
virtual bool | HasEntry (const wxString &strName) const override |
virtual bool | DoReadString (const wxString &key, wxString *pStr) const override |
virtual bool | DoReadLong (const wxString &key, long *pl) const override |
virtual bool | DoReadDouble (const wxString &key, double *pd) const override |
virtual bool | DoWriteString (const wxString &key, const wxString &szValue) override |
virtual bool | DoWriteLong (const wxString &key, long lValue) override |
virtual bool | DoWriteDouble (const wxString &key, double value) override |
bool | ReadFloat (const wxString &key, float *pf) const |
bool | ReadFloat (const wxString &key, float *pf, float defVal) const |
bool | WriteFloat (const wxString &key, float f) |
bool | ReadEnum (const wxString &key, int *pi, const EnumValueSymbol choices[], size_t nChoices, const ObsoleteMap obsoletes[]=nullptr, size_t nObsoletes=0) const |
bool | ReadEnum (const wxString &key, int *pi, int defVal, const EnumValueSymbol choices[], size_t nChoices, const ObsoleteMap obsoletes[]=nullptr, size_t nObsoletes=0) const |
bool | WriteEnum (const wxString &key, int value, const EnumValueSymbol choices[], size_t nChoices) |
bool | ReadAndVerify (const wxString &key, float *val, float defVal, float min, float max) const |
bool | ReadAndVerify (const wxString &key, double *val, double defVal, double min, double max) const |
bool | ReadAndVerify (const wxString &key, int *val, int defVal, int min, int max) const |
bool | ReadAndVerify (const wxString &key, long *val, long defVal, long min, long max) const |
bool | ReadAndVerify (const wxString &key, bool *val, bool defVal, bool=false, bool=false) const |
bool | ReadAndVerify (const wxString &key, wxString *val, const wxString &defVal, const wxString &={}, const wxString &={}) const |
bool | ReadAndVerify (const wxString &key, int *val, int defVal, const EnumValueSymbol choices[], size_t nChoices, const ObsoleteMap obsoletes[]=nullptr, size_t nObsoletes=0) const |
bool | GetParameters (wxString &parms) |
bool | SetParameters (const wxString &parms) |
wxString | Escape (wxString val) |
wxString | Unescape (wxString val) |
Static Public Member Functions | |
static wxString | NormalizeName (const wxString &name) |
CommandParameters, derived from wxFileConfig, is essentially doing the same things as the SettingsVisitor classes. It does text <-> binary conversions of parameters. It does not seem to be using actual file read/writing.
Should it be converted to using SettingsVisitor? Probably yes. SettingsVisitor leads to shorter code. And SettingsVisitor is more multi-functional since SettingsVisitor can report on signature, do the work of wxWidget validators, and can create default dialogs. However until that conversion is done, we need this class, and we use a pointer to one from within a SettingsVisitor when interfacing with the code that still uses it.
Definition at line 66 of file EffectAutomationParameters.h.
using CommandParameters::ObsoleteMap = std::pair< wxString, size_t > |
Definition at line 163 of file EffectAutomationParameters.h.
|
inline |
Definition at line 69 of file EffectAutomationParameters.h.
|
virtualdefault |
|
inlineoverridevirtual |
Definition at line 102 of file EffectAutomationParameters.h.
References key, str, and wxT().
|
inlineoverridevirtual |
Definition at line 97 of file EffectAutomationParameters.h.
References key.
|
inlineoverridevirtual |
Definition at line 92 of file EffectAutomationParameters.h.
References key.
|
inlineoverridevirtual |
Definition at line 130 of file EffectAutomationParameters.h.
|
inlineoverridevirtual |
Definition at line 125 of file EffectAutomationParameters.h.
References key.
|
inlineoverridevirtual |
Definition at line 120 of file EffectAutomationParameters.h.
References key.
|
inline |
|
inline |
Definition at line 259 of file EffectAutomationParameters.h.
References key, str, and wxT().
Referenced by EVT_COMMAND_RANGE(), EffectManager::GetDefaultPreset(), EffectManager::GetPreset(), LadspaEffectBase::SaveParameters(), LV2EffectBase::SaveParameters(), Effect::SaveSettingsAsString(), AudacityCommand::SaveSettingsAsString(), and VSTEffectBase::SaveUserPreset().
|
inlineoverridevirtual |
Definition at line 87 of file EffectAutomationParameters.h.
Referenced by ShuttleSetAutomation::CouldGet(), EffectManager::GetPreset(), VST3Wrapper::LoadSettings(), and EffectAndCommandPluginManager::SetEffectParameters().
|
inlineoverridevirtual |
Definition at line 82 of file EffectAutomationParameters.h.
|
inlinestatic |
Definition at line 307 of file EffectAutomationParameters.h.
Referenced by VSTWrapper::ForEachParameter().
|
inline |
Definition at line 237 of file EffectAutomationParameters.h.
References key.
|
inline |
Definition at line 219 of file EffectAutomationParameters.h.
|
inline |
Definition at line 213 of file EffectAutomationParameters.h.
Referenced by ShuttleSetAutomation::Define(), ShuttleSetAutomation::DefineEnum(), TruncSilenceBase::LoadSettings(), and CapturedParameters< EffectType, Parameters >::SetOne().
|
inline |
Definition at line 250 of file EffectAutomationParameters.h.
References key.
|
inline |
|
inline |
|
inline |
Definition at line 243 of file EffectAutomationParameters.h.
|
inline |
Definition at line 165 of file EffectAutomationParameters.h.
References entry, key, and MIR::anonymous_namespace{MirUtils.cpp}::pi.
Referenced by VampEffect::LoadSettings(), and NyquistBase::SetLispVarsFromParameters().
|
inline |
Definition at line 190 of file EffectAutomationParameters.h.
References key, and MIR::anonymous_namespace{MirUtils.cpp}::pi.
|
inline |
Definition at line 135 of file EffectAutomationParameters.h.
References key.
|
inline |
Definition at line 146 of file EffectAutomationParameters.h.
References key.
|
inline |
Definition at line 287 of file EffectAutomationParameters.h.
Referenced by NyquistBase::DoLoadSettings(), EVT_COMMAND_RANGE(), LadspaEffectBase::LoadParameters(), LV2EffectBase::LoadParameters(), VSTEffectBase::LoadUserPreset(), and AudioUnitEffectBase::MigrateOldConfigFile().
|
inline |
|
inline |
Definition at line 202 of file EffectAutomationParameters.h.
Referenced by NyquistBase::SaveSettings(), and VampEffect::SaveSettings().
|
inline |
Definition at line 155 of file EffectAutomationParameters.h.
References key.
Referenced by ShuttleGetAutomation::Define().