mirror of
https://github.com/cookiengineer/audacity
synced 2025-10-25 15:53:52 +02:00
Automatic setting size hints in all choice controls in ShuttleGui...
... excpet in a few places that populate the choice control late and then do it explicitly
This commit is contained in:
@@ -123,7 +123,6 @@ void DevicePrefs::PopulateOrExchange(ShuttleGui & S)
|
||||
wxT(""),
|
||||
mHostNames,
|
||||
mHostLabels);
|
||||
S.SetSizeHints(mHostNames);
|
||||
|
||||
S.AddPrompt(_("Using:"));
|
||||
S.AddFixedText(wxString(wxSafeConvertMB2WX(Pa_GetVersionText())));
|
||||
|
||||
@@ -142,28 +142,24 @@ void GUIPrefs::PopulateOrExchange(ShuttleGui & S)
|
||||
wxT(""),
|
||||
mLangNames,
|
||||
mLangCodes);
|
||||
S.SetSizeHints(mLangNames);
|
||||
|
||||
S.TieChoice(_("Location of &Manual:"),
|
||||
wxT("/GUI/Help"),
|
||||
wxT("Local"),
|
||||
mHtmlHelpChoices,
|
||||
mHtmlHelpCodes);
|
||||
S.SetSizeHints(mHtmlHelpChoices);
|
||||
|
||||
S.TieChoice(_("Th&eme:"),
|
||||
wxT("/GUI/Theme"),
|
||||
defaultTheme,
|
||||
mThemeChoices,
|
||||
mThemeCodes);
|
||||
S.SetSizeHints(mThemeChoices);
|
||||
|
||||
S.TieChoice(_("Meter dB &range:"),
|
||||
ENV_DB_KEY,
|
||||
defaultRange,
|
||||
mRangeChoices,
|
||||
mRangeCodes);
|
||||
S.SetSizeHints(mRangeChoices);
|
||||
}
|
||||
S.EndMultiColumn();
|
||||
// S.AddSpace(10);
|
||||
|
||||
@@ -128,7 +128,6 @@ void MidiIOPrefs::PopulateOrExchange( ShuttleGui & S ) {
|
||||
wxT(""),
|
||||
mHostNames,
|
||||
mHostLabels);
|
||||
S.SetSizeHints(mHostNames);
|
||||
|
||||
S.AddPrompt(_("Using: PortMidi"));
|
||||
}
|
||||
|
||||
@@ -140,7 +140,6 @@ void QualityPrefs::PopulateOrExchange(ShuttleGui & S)
|
||||
AudioIO::GetOptimalSupportedSampleRate(),
|
||||
mSampleRateNames,
|
||||
mSampleRateLabels);
|
||||
S.SetSizeHints(mSampleRateNames);
|
||||
|
||||
// Now do the edit box...
|
||||
mOtherSampleRate = S.TieNumericTextBox( {},
|
||||
@@ -154,7 +153,6 @@ void QualityPrefs::PopulateOrExchange(ShuttleGui & S)
|
||||
floatSample,
|
||||
mSampleFormatNames,
|
||||
mSampleFormatLabels);
|
||||
S.SetSizeHints(mSampleFormatNames);
|
||||
}
|
||||
S.EndMultiColumn();
|
||||
}
|
||||
@@ -169,7 +167,6 @@ void QualityPrefs::PopulateOrExchange(ShuttleGui & S)
|
||||
Resample::GetFastMethodDefault(),
|
||||
mConverterNames,
|
||||
mConverterLabels);
|
||||
S.SetSizeHints(mConverterNames);
|
||||
|
||||
/* i18n-hint: technical term for randomization to reduce undesirable resampling artifacts */
|
||||
S.TieChoice(_("&Dither:"),
|
||||
@@ -177,7 +174,6 @@ void QualityPrefs::PopulateOrExchange(ShuttleGui & S)
|
||||
Dither::none,
|
||||
mDitherNames,
|
||||
mDitherLabels);
|
||||
S.SetSizeHints(mDitherNames);
|
||||
}
|
||||
S.EndMultiColumn();
|
||||
}
|
||||
@@ -192,7 +188,6 @@ void QualityPrefs::PopulateOrExchange(ShuttleGui & S)
|
||||
Resample::GetBestMethodDefault(),
|
||||
mConverterNames,
|
||||
mConverterLabels);
|
||||
S.SetSizeHints(mConverterNames);
|
||||
|
||||
/* i18n-hint: technical term for randomization to reduce undesirable resampling artifacts */
|
||||
S.TieChoice(_("Dit&her:"),
|
||||
@@ -200,7 +195,6 @@ void QualityPrefs::PopulateOrExchange(ShuttleGui & S)
|
||||
Dither::shaped,
|
||||
mDitherNames,
|
||||
mDitherLabels);
|
||||
S.SetSizeHints(mDitherNames);
|
||||
}
|
||||
S.EndMultiColumn();
|
||||
}
|
||||
|
||||
@@ -232,19 +232,16 @@ void SpectrumPrefs::PopulateOrExchange(ShuttleGui & S)
|
||||
S.Id(ID_WINDOW_SIZE).TieChoice(_("Window &size:"),
|
||||
mTempSettings.windowSize,
|
||||
&mSizeChoices);
|
||||
S.SetSizeHints(mSizeChoices);
|
||||
|
||||
S.Id(ID_WINDOW_TYPE).TieChoice(_("Window &type:"),
|
||||
mTempSettings.windowType,
|
||||
&mTypeChoices);
|
||||
S.SetSizeHints(mTypeChoices);
|
||||
|
||||
#ifdef EXPERIMENTAL_ZERO_PADDED_SPECTROGRAMS
|
||||
mZeroPaddingChoiceCtrl =
|
||||
S.Id(ID_PADDING_SIZE).TieChoice(_("&Zero padding factor") + wxString(wxT(":")),
|
||||
mTempSettings.zeroPaddingFactor,
|
||||
&mZeroPaddingChoices);
|
||||
S.SetSizeHints(mZeroPaddingChoices);
|
||||
#endif
|
||||
}
|
||||
S.EndMultiColumn();
|
||||
|
||||
@@ -100,7 +100,6 @@ void TracksBehaviorsPrefs::PopulateOrExchange(ShuttleGui & S)
|
||||
wxT("Standard"),
|
||||
mSoloChoices,
|
||||
mSoloCodes);
|
||||
S.SetSizeHints(mSoloChoices);
|
||||
}
|
||||
S.EndMultiColumn();
|
||||
}
|
||||
|
||||
@@ -157,14 +157,12 @@ void TracksPrefs::PopulateOrExchange(ShuttleGui & S)
|
||||
0,
|
||||
mViewChoices,
|
||||
mViewCodes);
|
||||
S.SetSizeHints(mViewChoices);
|
||||
|
||||
S.TieChoice(_("Display &samples:"),
|
||||
wxT("/GUI/SampleView"),
|
||||
1,
|
||||
mSampleDisplayChoices,
|
||||
mSampleDisplayCodes);
|
||||
S.SetSizeHints(mSampleDisplayChoices);
|
||||
|
||||
S.TieTextBox(_("Default audio track &name:"),
|
||||
wxT("/GUI/TrackNames/DefaultTrackName"),
|
||||
@@ -184,14 +182,12 @@ void TracksPrefs::PopulateOrExchange(ShuttleGui & S)
|
||||
WaveTrack::kZoomDefault,
|
||||
mZoomChoices,
|
||||
mZoomCodes);
|
||||
S.SetSizeHints(mZoomChoices);
|
||||
|
||||
S.TieChoice(_("Preset 2:"),
|
||||
wxT("/GUI/ZoomPreset2"),
|
||||
WaveTrack::kZoom4To1,
|
||||
mZoomChoices,
|
||||
mZoomCodes);
|
||||
S.SetSizeHints(mZoomChoices);
|
||||
}
|
||||
}
|
||||
S.EndStatic();
|
||||
|
||||
@@ -99,7 +99,6 @@ void WaveformPrefs::PopulateOrExchange(ShuttleGui & S)
|
||||
S.Id(ID_RANGE).TieChoice(_("Waveform dB &range") + wxString(wxT(":")),
|
||||
mTempSettings.dBRange,
|
||||
&mRangeChoices);
|
||||
S.SetSizeHints(mRangeChoices);
|
||||
}
|
||||
S.EndTwoColumn();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user