Audacity 3.2.0
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
17class COMMAND_PARAMETERS_API ShuttlePrefs final
18{
19public:
20 bool mbStoreInClient{};
21 wxString mValueString;
22
23 // constructors and destructors
26
27public:
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
#define W(N, I)
Definition: ToChars.cpp:60
A kind of Shuttle to exchange data with preferences e.g. the registry.
Definition: ShuttlePrefs.h:18
wxString mValueString
Definition: ShuttlePrefs.h:21
Used in type conversions, this wrapper for ints, strings, doubles and enums provides conversions betw...
Definition: WrappedType.h:28