Audacity 3.2.0
Public Member Functions | Public Attributes | List of all members
ShuttleDefaults Class Referencefinal

SettingsVisitor that sets parameters to their default values. More...

#include <ShuttleAutomation.h>

Inheritance diagram for ShuttleDefaults:
[legend]
Collaboration diagram for ShuttleDefaults:
[legend]

Public Member Functions

SettingsVisitorOptional (bool &var) override
 
SettingsVisitorOptionalY (bool &var) override
 
SettingsVisitorOptionalN (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 SettingsVisitorBaseOptional (Ref< bool > var)
 
virtual SettingsVisitorBaseOptionalY (Ref< bool > var)
 
virtual SettingsVisitorBaseOptionalN (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 Result
 
- Public Attributes inherited from SettingsVisitorBase< Const >
wxString mParams
 
std::conditional_t< Const, const bool, bool > * pOptionalFlag {}
 
CommandParametersmpEap {}
 

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 & >
 

Detailed Description

SettingsVisitor that sets parameters to their default values.

Definition at line 311 of file ShuttleAutomation.h.

Member Function Documentation

◆ Define() [1/7]

void ShuttleDefaults::Define ( bool &  var,
const wxChar *  key,
bool  vdefault,
bool  vmin,
bool  vmax,
bool  vscl 
)
override

Definition at line 216 of file ShuttleAutomation.cpp.

218{
219 var = vdefault;
220}

◆ Define() [2/7]

void ShuttleDefaults::Define ( double &  var,
const wxChar *  key,
double  vdefault,
double  vmin,
double  vmax,
double  vscl 
)
override

Definition at line 246 of file ShuttleAutomation.cpp.

248{
249 var = vdefault;
250}

◆ Define() [3/7]

void ShuttleDefaults::Define ( double &  var,
const wxChar *  key,
float  vdefault,
float  vmin,
float  vmax,
float  vscl 
)
override

Definition at line 240 of file ShuttleAutomation.cpp.

242{
243 var = vdefault;
244}

◆ Define() [4/7]

void ShuttleDefaults::Define ( float &  var,
const wxChar *  key,
float  vdefault,
float  vmin,
float  vmax,
float  vscl 
)
override

Definition at line 234 of file ShuttleAutomation.cpp.

236{
237 var = vdefault;
238}

◆ Define() [5/7]

void ShuttleDefaults::Define ( int &  var,
const wxChar *  key,
int  vdefault,
int  vmin,
int  vmax,
int  vscl 
)
override

Definition at line 222 of file ShuttleAutomation.cpp.

224{
225 var = vdefault;
226}

◆ Define() [6/7]

void ShuttleDefaults::Define ( size_t &  var,
const wxChar *  key,
int  vdefault,
int  vmin,
int  vmax,
int  vscl 
)
override

Definition at line 228 of file ShuttleAutomation.cpp.

230{
231 var = vdefault;
232}

◆ Define() [7/7]

void ShuttleDefaults::Define ( wxString &  var,
const wxChar *  key,
wxString  vdefault,
wxString  vmin,
wxString  vmax,
wxString  vscl 
)
override

Definition at line 252 of file ShuttleAutomation.cpp.

254{
255 var = vdefault;
256}

◆ DefineEnum()

void ShuttleDefaults::DefineEnum ( int &  var,
const wxChar *  key,
int  vdefault,
const EnumValueSymbol  strings[],
size_t  nStrings 
)
override

Definition at line 258 of file ShuttleAutomation.cpp.

260{
261 var = vdefault;
262}

◆ Optional()

SettingsVisitor & ShuttleDefaults::Optional ( bool &  var)
override

Definition at line 195 of file ShuttleAutomation.cpp.

196{
197 var = true;
198 pOptionalFlag = nullptr;
199 return *this;
200}
std::conditional_t< Const, const bool, bool > * pOptionalFlag

References SettingsVisitorBase< Const >::pOptionalFlag.

◆ OptionalN()

SettingsVisitor & ShuttleDefaults::OptionalN ( bool &  var)
override

Definition at line 209 of file ShuttleAutomation.cpp.

210{
211 var = false;
212 pOptionalFlag = nullptr;
213 return *this;
214}

References SettingsVisitorBase< Const >::pOptionalFlag.

◆ OptionalY()

SettingsVisitor & ShuttleDefaults::OptionalY ( bool &  var)
override

Definition at line 202 of file ShuttleAutomation.cpp.

203{
204 var = true;
205 pOptionalFlag = nullptr;
206 return *this;
207}

References SettingsVisitorBase< Const >::pOptionalFlag.

Member Data Documentation

◆ Result

wxString ShuttleDefaults::Result

Definition at line 314 of file ShuttleAutomation.h.


The documentation for this class was generated from the following files: