![]() |
Audacity 3.2.0
|
A kind of Shuttle to exchange data with preferences e.g. the registry. More...
#include <ShuttlePrefs.h>
Public Member Functions | |
| ShuttlePrefs () | |
| ~ShuttlePrefs () | |
| bool | TransferBool (const wxString &Name, bool &bValue, const bool &bDefault) |
| bool | TransferDouble (const wxString &Name, double &dValue, const double &dDefault) |
| bool | TransferInt (const wxString &Name, int &iValue, const int &iDefault) |
| bool | TransferString (const wxString &Name, wxString &strValue, const wxString &strDefault) |
| bool | TransferWrappedType (const wxString &Name, WrappedType &W) |
| bool | ExchangeWithMaster (const wxString &Name) |
Public Attributes | |
| bool | mbStoreInClient {} |
| wxString | mValueString |
A kind of Shuttle to exchange data with preferences e.g. the registry.
This class may be used by ShuttleGui to do the two step exchange,
Gui -- Data -- Prefs
Definition at line 17 of file ShuttlePrefs.h.
|
inline |
Definition at line 24 of file ShuttlePrefs.h.
|
inline |
Definition at line 25 of file ShuttlePrefs.h.
| bool ShuttlePrefs::ExchangeWithMaster | ( | const wxString & | Name | ) |
Definition at line 116 of file ShuttlePrefs.cpp.
| bool ShuttlePrefs::TransferBool | ( | const wxString & | Name, |
| bool & | bValue, | ||
| const bool & | bDefault | ||
| ) |
Definition at line 34 of file ShuttlePrefs.cpp.
References gPrefs, mbStoreInClient, audacity::BasicSettings::Read(), and audacity::BasicSettings::Write().
Referenced by TransferWrappedType().
| bool ShuttlePrefs::TransferDouble | ( | const wxString & | Name, |
| double & | dValue, | ||
| const double & | dDefault | ||
| ) |
Definition at line 48 of file ShuttlePrefs.cpp.
References gPrefs, mbStoreInClient, audacity::BasicSettings::Read(), and audacity::BasicSettings::Write().
Referenced by TransferWrappedType().
| bool ShuttlePrefs::TransferInt | ( | const wxString & | Name, |
| int & | iValue, | ||
| const int & | iDefault | ||
| ) |
Definition at line 62 of file ShuttlePrefs.cpp.
References gPrefs, mbStoreInClient, audacity::BasicSettings::Read(), and audacity::BasicSettings::Write().
Referenced by TransferWrappedType().
| bool ShuttlePrefs::TransferString | ( | const wxString & | Name, |
| wxString & | strValue, | ||
| const wxString & | strDefault | ||
| ) |
Definition at line 76 of file ShuttlePrefs.cpp.
References gPrefs, mbStoreInClient, audacity::BasicSettings::Read(), and audacity::BasicSettings::Write().
Referenced by TransferWrappedType().
| bool ShuttlePrefs::TransferWrappedType | ( | const wxString & | Name, |
| WrappedType & | W | ||
| ) |
Definition at line 90 of file ShuttlePrefs.cpp.
References eWrappedBool, eWrappedDouble, eWrappedEnum, eWrappedInt, eWrappedString, TransferBool(), TransferDouble(), TransferInt(), TransferString(), and W.
| bool ShuttlePrefs::mbStoreInClient {} |
Definition at line 20 of file ShuttlePrefs.h.
Referenced by TransferBool(), TransferDouble(), TransferInt(), and TransferString().
| wxString ShuttlePrefs::mValueString |
Definition at line 21 of file ShuttlePrefs.h.