![]() |
Audacity 3.2.0
|
Adapts EnumSettingBase to a particular enumeration type. More...
#include <Prefs.h>
Public Member Functions | |
template<typename Key > | |
EnumSetting (Key &&key, EnumValueSymbols symbols, long defaultSymbol, std::vector< Enum > values, const wxString &oldKey={}) | |
Enum | ReadEnum () const |
Enum | ReadEnumWithDefault (Enum defaultValue) const |
bool | WriteEnum (Enum value) |
![]() | |
template<typename Key > | |
EnumSettingBase (Key &&key, EnumValueSymbols symbols, long defaultSymbol, std::vector< int > intValues, const wxString &oldKey={}) | |
![]() | |
ChoiceSetting (const SettingPath &, EnumValueSymbols, long=-1)=delete | |
ChoiceSetting (TransactionalSettingBase &key, EnumValueSymbols symbols, long defaultSymbol=-1) | |
ChoiceSetting (const SettingBase &key, EnumValueSymbols symbols, long defaultSymbol=-1) | |
const wxString & | Key () const |
const EnumValueSymbol & | Default () const |
const EnumValueSymbols & | GetSymbols () const |
wxString | Read () const |
wxString | ReadWithDefault (const wxString &) const |
bool | Write (const wxString &value) |
void | SetDefault (long value) |
Private Member Functions | |
std::vector< int > | ConvertValues (const std::vector< Enum > &values) |
Additional Inherited Members | |
![]() | |
int | ReadInt () const |
int | ReadIntWithDefault (int defaultValue) const |
bool | WriteInt (int code) |
size_t | FindInt (int code) const |
void | Migrate (wxString &) override |
![]() | |
size_t | Find (const wxString &value) const |
virtual void | Migrate (wxString &) |
![]() | |
const wxString | mKey |
const EnumValueSymbols | mSymbols |
TransactionalSettingBase *const | mpOtherSettings {} |
bool | mMigrated { false } |
long | mDefaultSymbol |
Adapts EnumSettingBase to a particular enumeration type.
|
inline |
intValues.size() == symbols.size()
Definition at line 512 of file Prefs.h.
|
inlineprivate |
|
inline |
Definition at line 527 of file Prefs.h.
References anonymous_namespace{ProjectSerializer.cpp}::ReadInt.
Referenced by Dither::BestDitherChoice(), Exporter::CheckMix(), NoteTrack::ExportAllegro(), Dither::FastDitherChoice(), SpectrogramSettings::LoadPrefs(), Resample::SetMethod(), SpectrogramSettings::UpdatePrefs(), and TracksPrefs::ViewModeChoice().
|
inline |
Definition at line 533 of file Prefs.h.
|
inline |
Definition at line 539 of file Prefs.h.
References anonymous_namespace{ProjectSerializer.cpp}::WriteInt.
Referenced by SpectrogramSettings::SavePrefs().