Audacity 3.2.0
|
Visitor of effect or command parameters. This is a base class with lots of virtual functions that do nothing by default. Unrelated to class Shuttle. More...
#include <SettingsVisitor.h>
Public Types | |
template<typename T > | |
using | Ref = std::conditional_t< Const, const T &, T & > |
template<typename T > | |
using | Arg = std::conditional_t< Const, T, T & > |
Public Member Functions | |
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 | |
wxString | mParams |
std::conditional_t< Const, const bool, bool > * | pOptionalFlag {} |
CommandParameters * | mpEap {} |
Visitor of effect or command parameters. This is a base class with lots of virtual functions that do nothing by default. Unrelated to class Shuttle.
Const | if true, then visited settings are not modifiable. |
Definition at line 78 of file SettingsVisitor.h.
using SettingsVisitorBase< Const >::Arg = std::conditional_t<Const, T, T&> |
Definition at line 84 of file SettingsVisitor.h.
using SettingsVisitorBase< Const >::Ref = std::conditional_t<Const, const T&, T&> |
Definition at line 82 of file SettingsVisitor.h.
|
inline |
Definition at line 90 of file SettingsVisitor.h.
|
virtualdefault |
|
virtual |
Definition at line 65 of file SettingsVisitor.cpp.
Referenced by CapturedParameters< EffectType, Parameters >::VisitOne(), EqualizationBase::VisitSettings(), and NyquistBase::VisitSettings().
|
virtual |
Definition at line 90 of file SettingsVisitor.cpp.
|
virtual |
Definition at line 85 of file SettingsVisitor.cpp.
|
virtual |
Definition at line 80 of file SettingsVisitor.cpp.
|
virtual |
Definition at line 75 of file SettingsVisitor.cpp.
|
virtual |
Definition at line 70 of file SettingsVisitor.cpp.
|
virtual |
Definition at line 95 of file SettingsVisitor.cpp.
|
virtual |
Definition at line 100 of file SettingsVisitor.cpp.
Referenced by CapturedParameters< EffectType, Parameters >::VisitOne(), and NyquistBase::VisitSettings().
|
virtual |
Definition at line 28 of file SettingsVisitor.cpp.
|
virtual |
Definition at line 43 of file SettingsVisitor.cpp.
|
virtual |
Definition at line 36 of file SettingsVisitor.cpp.
bool SettingsVisitorBase< Const >::ShouldSet |
Definition at line 54 of file SettingsVisitor.cpp.
Referenced by ShuttleGetAutomation::Define(), and ShuttleGetAutomation::DefineEnum().
wxString SettingsVisitorBase< Const >::mParams |
Definition at line 86 of file SettingsVisitor.h.
CommandParameters* SettingsVisitorBase< Const >::mpEap {} |
Definition at line 88 of file SettingsVisitor.h.
Referenced by ShuttleSetAutomation::CouldGet(), ShuttleSetAutomation::Define(), ShuttleGetAutomation::Define(), ShuttleSetAutomation::DefineEnum(), and ShuttleGetAutomation::DefineEnum().
std::conditional_t<Const, const bool, bool>* SettingsVisitorBase< Const >::pOptionalFlag {} |
Definition at line 87 of file SettingsVisitor.h.
Referenced by ShuttleSetAutomation::CouldGet(), ShuttleGetDefinition::IsOptional(), ShuttleSetAutomation::Optional(), ShuttleDefaults::Optional(), ShuttleGetAutomation::Optional(), ShuttleGetDefinition::Optional(), ShuttleDefaults::OptionalN(), and ShuttleDefaults::OptionalY().