Audacity 3.2.0
|
SettingsVisitor that sets parameters to a value (from a string) More...
#include <ShuttleAutomation.h>
Public Member Functions | |
ShuttleSetAutomation () | |
bool | CouldGet (const wxString &key) |
void | SetForValidating (CommandParameters *pEap) |
void | SetForWriting (CommandParameters *pEap) |
SettingsVisitor & | Optional (bool &var) override |
void | Define (bool &var, const wxChar *key, bool vdefault, bool vmin, bool vmax, bool vscl) override |
void | Define (int &var, const wxChar *key, int vdefault, int vmin, int vmax, int vscl) override |
void | Define (size_t &var, const wxChar *key, int vdefault, int vmin, int vmax, int vscl) override |
void | Define (float &var, const wxChar *key, float vdefault, float vmin, float vmax, float vscl) override |
void | Define (double &var, const wxChar *key, float vdefault, float vmin, float vmax, float vscl) override |
void | Define (double &var, const wxChar *key, double vdefault, double vmin, double vmax, double vscl) override |
void | Define (wxString &var, const wxChar *key, wxString vdefault, wxString vmin, wxString vmax, wxString vscl) override |
void | DefineEnum (int &var, const wxChar *key, int vdefault, const EnumValueSymbol strings[], size_t nStrings) override |
Public Member Functions inherited from SettingsVisitorBase< Const > | |
SettingsVisitorBase () | |
virtual | ~SettingsVisitorBase () |
bool | ShouldSet () |
virtual SettingsVisitorBase & | Optional (Ref< bool > var) |
virtual SettingsVisitorBase & | OptionalY (Ref< bool > var) |
virtual SettingsVisitorBase & | OptionalN (Ref< bool > var) |
virtual void | Define (Arg< bool > var, const wxChar *key, bool vdefault, bool vmin=false, bool vmax=false, bool vscl=false) |
virtual void | Define (Arg< size_t > var, const wxChar *key, int vdefault, int vmin=0, int vmax=100000, int vscl=1) |
virtual void | Define (Arg< int > var, const wxChar *key, int vdefault, int vmin=0, int vmax=100000, int vscl=1) |
virtual void | Define (Arg< float > var, const wxChar *key, float vdefault, float vmin, float vmax, float vscl=1.0f) |
virtual void | Define (Arg< double > var, const wxChar *key, float vdefault, float vmin, float vmax, float vscl=1.0f) |
virtual void | Define (Arg< double > var, const wxChar *key, double vdefault, double vmin, double vmax, double vscl=1.0f) |
virtual void | Define (Ref< wxString > var, const wxChar *key, wxString vdefault, wxString vmin={}, wxString vmax={}, wxString vscl={}) |
virtual void | DefineEnum (Arg< int > var, const wxChar *key, int vdefault, const EnumValueSymbol strings[], size_t nStrings) |
Public Attributes | |
bool | bOK { false } |
bool | bWrite { false } |
Public Attributes inherited from SettingsVisitorBase< Const > | |
wxString | mParams |
std::conditional_t< Const, const bool, bool > * | pOptionalFlag {} |
CommandParameters * | mpEap {} |
Additional Inherited Members | |
Public Types inherited from SettingsVisitorBase< Const > | |
template<typename T > | |
using | Ref = std::conditional_t< Const, const T &, T & > |
template<typename T > | |
using | Arg = std::conditional_t< Const, T, T & > |
SettingsVisitor that sets parameters to a value (from a string)
Definition at line 270 of file ShuttleAutomation.h.
|
inline |
Definition at line 273 of file ShuttleAutomation.h.
bool ShuttleSetAutomation::CouldGet | ( | const wxString & | key | ) |
Definition at line 92 of file ShuttleAutomation.cpp.
References CommandParameters::HasEntry(), key, SettingsVisitorBase< Const >::mpEap, and SettingsVisitorBase< Const >::pOptionalFlag.
Referenced by Define(), and DefineEnum().
|
override |
Definition at line 102 of file ShuttleAutomation.cpp.
References bOK, bWrite, CouldGet(), key, SettingsVisitorBase< Const >::mpEap, and CommandParameters::ReadAndVerify().
|
override |
Definition at line 160 of file ShuttleAutomation.cpp.
References bOK, bWrite, CouldGet(), key, SettingsVisitorBase< Const >::mpEap, and CommandParameters::ReadAndVerify().
|
override |
Definition at line 149 of file ShuttleAutomation.cpp.
References bOK, bWrite, CouldGet(), key, SettingsVisitorBase< Const >::mpEap, and CommandParameters::ReadAndVerify().
|
override |
Definition at line 137 of file ShuttleAutomation.cpp.
References bOK, bWrite, CouldGet(), key, SettingsVisitorBase< Const >::mpEap, and CommandParameters::ReadAndVerify().
|
override |
Definition at line 115 of file ShuttleAutomation.cpp.
References bOK, bWrite, CouldGet(), key, SettingsVisitorBase< Const >::mpEap, and CommandParameters::ReadAndVerify().
|
override |
Definition at line 126 of file ShuttleAutomation.cpp.
References bOK, bWrite, CouldGet(), key, SettingsVisitorBase< Const >::mpEap, and CommandParameters::ReadAndVerify().
|
override |
Definition at line 172 of file ShuttleAutomation.cpp.
References bOK, bWrite, CouldGet(), key, SettingsVisitorBase< Const >::mpEap, and CommandParameters::ReadAndVerify().
|
override |
Definition at line 184 of file ShuttleAutomation.cpp.
References bOK, bWrite, CouldGet(), key, SettingsVisitorBase< Const >::mpEap, and CommandParameters::ReadAndVerify().
|
override |
Definition at line 82 of file ShuttleAutomation.cpp.
References SettingsVisitorBase< Const >::pOptionalFlag.
|
inline |
Definition at line 278 of file ShuttleAutomation.h.
|
inline |
Definition at line 283 of file ShuttleAutomation.h.
bool ShuttleSetAutomation::bOK { false } |
Definition at line 274 of file ShuttleAutomation.h.
Referenced by Define(), and DefineEnum().
bool ShuttleSetAutomation::bWrite { false } |
Definition at line 275 of file ShuttleAutomation.h.
Referenced by Define(), and DefineEnum().