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

Shuttle that gets parameter values into a string. More...

#include <ShuttleAutomation.h>

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

Public Member Functions

ShuttleParamsOptional (bool &var) override
 
void Define (bool &var, const wxChar *key, const bool vdefault, const bool vmin, const bool vmax, const bool vscl) override
 
void Define (int &var, const wxChar *key, const int vdefault, const int vmin, const int vmax, const int vscl) override
 
void Define (size_t &var, const wxChar *key, const int vdefault, const int vmin, const int vmax, const int vscl) override
 
void Define (float &var, const wxChar *key, const float vdefault, const float vmin, const float vmax, const float vscl) override
 
void Define (double &var, const wxChar *key, const float vdefault, const float vmin, const float vmax, const float vscl) override
 
void Define (double &var, const wxChar *key, const double vdefault, const double vmin, const double vmax, const double vscl) override
 
void Define (wxString &var, const wxChar *key, const wxString vdefault, const wxString vmin, const wxString vmax, const wxString vscl) override
 
void DefineEnum (int &var, const wxChar *key, const int vdefault, const EnumValueSymbol strings[], size_t nStrings) override
 
- Public Member Functions inherited from ShuttleParams
 ShuttleParams ()
 
virtual ~ShuttleParams ()
 
bool ShouldSet ()
 
virtual ShuttleParamsOptional (bool &WXUNUSED(var))
 
virtual ShuttleParamsOptionalY (bool &var)
 
virtual ShuttleParamsOptionalN (bool &var)
 

Additional Inherited Members

- Public Attributes inherited from ShuttleParams
wxString mParams
 
bool * pOptionalFlag
 
CommandParametersmpEap
 

Detailed Description

Shuttle that gets parameter values into a string.

Definition at line 19 of file ShuttleAutomation.h.

Member Function Documentation

◆ Define() [1/7]

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

Reimplemented from ShuttleParams.

Definition at line 20 of file ShuttleAutomation.cpp.

21 {
22  if( !ShouldSet() ) return;
23  mpEap->Write(key, var);
24 }

References key, ShuttleParams::mpEap, and ShuttleParams::ShouldSet().

Here is the call graph for this function:

◆ Define() [2/7]

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

Reimplemented from ShuttleParams.

Definition at line 50 of file ShuttleAutomation.cpp.

51 {
52  if( !ShouldSet() ) return;
53  mpEap->Write(key, var);
54 }

References key, ShuttleParams::mpEap, and ShuttleParams::ShouldSet().

Here is the call graph for this function:

◆ Define() [3/7]

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

Reimplemented from ShuttleParams.

Definition at line 38 of file ShuttleAutomation.cpp.

39 {
40  if( !ShouldSet() ) return;
41  mpEap->WriteFloat(key, var);
42 }

References key, ShuttleParams::mpEap, ShuttleParams::ShouldSet(), and CommandParameters::WriteFloat().

Here is the call graph for this function:

◆ Define() [4/7]

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

Reimplemented from ShuttleParams.

Definition at line 44 of file ShuttleAutomation.cpp.

45 {
46  if( !ShouldSet() ) return;
47  mpEap->WriteFloat(key, var);
48 }

References key, ShuttleParams::mpEap, ShuttleParams::ShouldSet(), and CommandParameters::WriteFloat().

Here is the call graph for this function:

◆ Define() [5/7]

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

Reimplemented from ShuttleParams.

Definition at line 26 of file ShuttleAutomation.cpp.

27 {
28  if( !ShouldSet() ) return;
29  mpEap->Write(key, var);
30 }

References key, ShuttleParams::mpEap, and ShuttleParams::ShouldSet().

Here is the call graph for this function:

◆ Define() [6/7]

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

Reimplemented from ShuttleParams.

Definition at line 32 of file ShuttleAutomation.cpp.

33 {
34  if( !ShouldSet() ) return;
35  mpEap->Write(key, (int) var);
36 }

References key, ShuttleParams::mpEap, and ShuttleParams::ShouldSet().

Here is the call graph for this function:

◆ Define() [7/7]

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

Reimplemented from ShuttleParams.

Definition at line 57 of file ShuttleAutomation.cpp.

58 {
59  if( !ShouldSet() ) return;
60  mpEap->Write(key, var);
61 }

References key, ShuttleParams::mpEap, and ShuttleParams::ShouldSet().

Here is the call graph for this function:

◆ DefineEnum()

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

Reimplemented from ShuttleParams.

Definition at line 64 of file ShuttleAutomation.cpp.

65 {
66  if( !ShouldSet() ) return;
67  mpEap->Write(key, strings[var].Internal());
68 }

References Internal, key, ShuttleParams::mpEap, and ShuttleParams::ShouldSet().

Here is the call graph for this function:

◆ Optional()

ShuttleParams & ShuttleGetAutomation::Optional ( bool &  var)
override

Definition at line 15 of file ShuttleAutomation.cpp.

15  {
16  pOptionalFlag = &var;
17  return *this;
18 };

References ShuttleParams::pOptionalFlag.


The documentation for this class was generated from the following files:
CommandParameters::WriteFloat
bool WriteFloat(const wxString &key, float f)
Definition: EffectAutomationParameters.h:155
ShuttleParams::mpEap
CommandParameters * mpEap
Definition: Shuttle.h:65
ShuttleParams::ShouldSet
bool ShouldSet()
Definition: Shuttle.cpp:322
key
static const AudacityProject::AttachedObjects::RegisteredFactory key
Definition: CommandManager.cpp:201
ExceptionType::Internal
@ Internal
Indicates internal failure from Audacity.
ShuttleParams::pOptionalFlag
bool * pOptionalFlag
Definition: Shuttle.h:64