mirror of
https://github.com/cookiengineer/audacity
synced 2025-10-25 07:43:54 +02:00
Rename EnumSetting -> ChoiceSetting, EncodedEnumSetting -> EnumSetting
This commit is contained in:
@@ -49,7 +49,7 @@ static_assert( nChoicesFormat == WXSIZEOF(intChoicesFormat), "size mismatch" );
|
||||
|
||||
static const size_t defaultChoiceFormat = 2; // floatSample
|
||||
|
||||
static EncodedEnumSetting formatSetting{
|
||||
static EnumSetting formatSetting{
|
||||
wxT("/SamplingRate/DefaultProjectSampleFormatChoice"),
|
||||
choicesFormat, nChoicesFormat, defaultChoiceFormat,
|
||||
|
||||
@@ -78,7 +78,7 @@ static_assert(
|
||||
|
||||
static const size_t defaultFastDither = 0; // none
|
||||
|
||||
static EncodedEnumSetting fastDitherSetting{
|
||||
static EnumSetting fastDitherSetting{
|
||||
wxT("Quality/DitherAlgorithmChoice"),
|
||||
choicesDither, nChoicesDither, defaultFastDither,
|
||||
intChoicesDither,
|
||||
@@ -87,7 +87,7 @@ static EncodedEnumSetting fastDitherSetting{
|
||||
|
||||
static const size_t defaultBestDither = 3; // shaped
|
||||
|
||||
static EncodedEnumSetting bestDitherSetting{
|
||||
static EnumSetting bestDitherSetting{
|
||||
wxT("Quality/HQDitherAlgorithmChoice"),
|
||||
choicesDither, nChoicesDither, defaultBestDither,
|
||||
|
||||
|
||||
@@ -72,7 +72,7 @@ static_assert( nChoicesView == WXSIZEOF(intChoicesView), "size mismatch" );
|
||||
|
||||
static const size_t defaultChoiceView = 0;
|
||||
|
||||
class TracksViewModeSetting : public EncodedEnumSetting {
|
||||
class TracksViewModeSetting : public EnumSetting {
|
||||
public:
|
||||
TracksViewModeSetting(
|
||||
const wxString &key,
|
||||
@@ -82,7 +82,7 @@ public:
|
||||
const int intValues[],
|
||||
const wxString &oldKey
|
||||
)
|
||||
: EncodedEnumSetting{
|
||||
: EnumSetting{
|
||||
key, symbols, nSymbols, defaultSymbol, intValues, oldKey }
|
||||
{}
|
||||
|
||||
@@ -91,7 +91,7 @@ public:
|
||||
// Special logic for this preference which was twice migrated!
|
||||
|
||||
// First test for the older but not oldest key:
|
||||
EncodedEnumSetting::Migrate(value);
|
||||
EnumSetting::Migrate(value);
|
||||
if (!value.empty())
|
||||
return;
|
||||
|
||||
@@ -144,7 +144,7 @@ static_assert(
|
||||
|
||||
static const size_t defaultChoiceSampleDisplay = 1;
|
||||
|
||||
static EncodedEnumSetting sampleDisplaySetting{
|
||||
static EnumSetting sampleDisplaySetting{
|
||||
wxT("/GUI/SampleViewChoice"),
|
||||
choicesSampleDisplay, nChoicesSampleDisplay, defaultChoiceSampleDisplay,
|
||||
|
||||
@@ -197,7 +197,7 @@ static_assert( nChoicesZoom == WXSIZEOF(intChoicesZoom), "size mismatch" );
|
||||
|
||||
static const size_t defaultChoiceZoom1 = 2; // kZoomDefault
|
||||
|
||||
static EncodedEnumSetting zoom1Setting{
|
||||
static EnumSetting zoom1Setting{
|
||||
wxT("/GUI/ZoomPreset1Choice"),
|
||||
choicesZoom, nChoicesZoom, defaultChoiceZoom1,
|
||||
|
||||
@@ -207,7 +207,7 @@ static EncodedEnumSetting zoom1Setting{
|
||||
|
||||
static const size_t defaultChoiceZoom2 = 13; // kZoom4To1
|
||||
|
||||
static EncodedEnumSetting zoom2Setting{
|
||||
static EnumSetting zoom2Setting{
|
||||
wxT("/GUI/ZoomPreset2Choice"),
|
||||
choicesZoom, nChoicesZoom, defaultChoiceZoom2,
|
||||
|
||||
|
||||
Reference in New Issue
Block a user