Audacity
3.2.0
libraries
lib-command-parameters
ShuttlePrefs.h
Go to the documentation of this file.
1
/**********************************************************************
2
3
Audacity: A Digital Audio Editor
4
5
ShuttlePrefs.h
6
7
Dominic Mazzoni
8
James Crook
9
10
**********************************************************************/
11
12
#ifndef __AUDACITY_SHUTTLE_PREFS__
13
#define __AUDACITY_SHUTTLE_PREFS__
14
15
#include "
SettingsVisitor.h
"
16
17
class
COMMAND_PARAMETERS_API
ShuttlePrefs
final
18
{
19
public
:
20
bool
mbStoreInClient{};
21
wxString
mValueString
;
22
23
// constructors and destructors
24
ShuttlePrefs
(){}
25
~ShuttlePrefs
() {}
26
27
public
:
28
bool
TransferBool(
const
wxString & Name,
bool
& bValue,
const
bool
& bDefault );
29
// bool TransferFloat( const wxString & Name, float & fValue, const float &fDefault );
30
bool
TransferDouble(
const
wxString & Name,
double
& dValue,
const
double
&dDefault );
31
bool
TransferInt(
const
wxString & Name,
int
& iValue,
const
int
&iDefault);
32
bool
TransferString(
const
wxString & Name, wxString & strValue,
const
wxString &strDefault);
33
bool
TransferWrappedType(
const
wxString & Name,
WrappedType
&
W
);
34
bool
ExchangeWithMaster(
const
wxString & Name);
35
};
36
37
#endif
SettingsVisitor.h
W
#define W(N, I)
Definition:
ToChars.cpp:60
ShuttlePrefs
A kind of Shuttle to exchange data with preferences e.g. the registry.
Definition:
ShuttlePrefs.h:18
ShuttlePrefs::~ShuttlePrefs
~ShuttlePrefs()
Definition:
ShuttlePrefs.h:25
ShuttlePrefs::mValueString
wxString mValueString
Definition:
ShuttlePrefs.h:21
ShuttlePrefs::ShuttlePrefs
ShuttlePrefs()
Definition:
ShuttlePrefs.h:24
WrappedType
Used in type conversions, this wrapper for ints, strings, doubles and enums provides conversions betw...
Definition:
WrappedType.h:28
Generated by
1.9.3