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) |
Public Member Functions inherited from EnumSettingBase | |
template<typename Key > | |
EnumSettingBase (Key &&key, EnumValueSymbols symbols, long defaultSymbol, std::vector< int > intValues, const wxString &oldKey={}) | |
Public Member Functions inherited from ChoiceSetting | |
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 | |
Protected Member Functions inherited from EnumSettingBase | |
int | ReadInt () const |
int | ReadIntWithDefault (int defaultValue) const |
bool | WriteInt (int code) |
size_t | FindInt (int code) const |
void | Migrate (wxString &) override |
Protected Member Functions inherited from ChoiceSetting | |
size_t | Find (const wxString &value) const |
virtual void | Migrate (wxString &) |
Protected Attributes inherited from ChoiceSetting | |
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 519 of file Prefs.h.
|
inlineprivate |
|
inline |
Definition at line 534 of file Prefs.h.
References anonymous_namespace{ProjectSerializer.cpp}::ReadInt.
Referenced by AdornedRulerPanel::AdornedRulerPanel(), anonymous_namespace{AudioComPrefsPanel.cpp}::AudioComPrefsPanel::AudioComPrefsPanel(), Dither::BestDitherChoice(), LabelStruct::Export(), NoteTrack::ExportAllegro(), Dither::FastDitherChoice(), SpectrogramSettings::LoadPrefs(), WaveformSettings::LoadPrefs(), anonymous_namespace{AudioComPrefsPanel.cpp}::AudioComPrefsPanel::PopulateOrExchange(), Resample::SetMethod(), audacity::cloud::audiocom::sync::CloudLocationDialog::ShowDialog(), SpectrogramSettings::UpdatePrefs(), WaveformSettings::UpdatePrefs(), AdornedRulerPanel::UpdatePrefs(), and TracksPrefs::ViewModeChoice().
|
inline |
Definition at line 540 of file Prefs.h.
|
inline |
Definition at line 546 of file Prefs.h.
References anonymous_namespace{ProjectSerializer.cpp}::WriteInt.
Referenced by anonymous_namespace{AudioComPrefsPanel.cpp}::AudioComPrefsPanel::Cancel(), anonymous_namespace{AudioComPrefsPanel.cpp}::AudioComPrefsPanel::PopulateOrExchange(), SpectrogramSettings::SavePrefs(), and TimeDisplayModeSetting::WriteEnum().