mirror of
https://github.com/cookiengineer/audacity
synced 2025-11-19 15:44:20 +01:00
Future static text box distinguishing track settings from globals? ...
... Leave this idea just commented out for now.
This commit is contained in:
@@ -127,98 +127,102 @@ void SpectrumPrefs::PopulateOrExchange(ShuttleGui & S)
|
|||||||
{
|
{
|
||||||
S.SetBorder(2);
|
S.SetBorder(2);
|
||||||
|
|
||||||
S.StartStatic(_("FFT Window"));
|
// S.StartStatic(_("Track Settings"));
|
||||||
{
|
{
|
||||||
S.StartMultiColumn(2);
|
S.StartStatic(_("FFT Window"));
|
||||||
{
|
{
|
||||||
S.Id(ID_WINDOW_SIZE).TieChoice(_("Window &size:"),
|
S.StartMultiColumn(2);
|
||||||
mTempSettings.windowSize,
|
{
|
||||||
&mSizeChoices);
|
S.Id(ID_WINDOW_SIZE).TieChoice(_("Window &size:"),
|
||||||
S.SetSizeHints(mSizeChoices);
|
mTempSettings.windowSize,
|
||||||
|
&mSizeChoices);
|
||||||
|
S.SetSizeHints(mSizeChoices);
|
||||||
|
|
||||||
S.TieChoice(_("Window &type:"),
|
S.TieChoice(_("Window &type:"),
|
||||||
mTempSettings.windowType,
|
mTempSettings.windowType,
|
||||||
&mTypeChoices);
|
&mTypeChoices);
|
||||||
S.SetSizeHints(mTypeChoices);
|
S.SetSizeHints(mTypeChoices);
|
||||||
|
|
||||||
#ifdef EXPERIMENTAL_ZERO_PADDED_SPECTROGRAMS
|
#ifdef EXPERIMENTAL_ZERO_PADDED_SPECTROGRAMS
|
||||||
S.Id(ID_PADDING_SIZE).TieChoice(_("&Zero padding factor") + wxString(wxT(":")),
|
S.Id(ID_PADDING_SIZE).TieChoice(_("&Zero padding factor") + wxString(wxT(":")),
|
||||||
mTempSettings.zeroPaddingFactor,
|
mTempSettings.zeroPaddingFactor,
|
||||||
&mZeroPaddingChoices);
|
&mZeroPaddingChoices);
|
||||||
S.SetSizeHints(mZeroPaddingChoices);
|
S.SetSizeHints(mZeroPaddingChoices);
|
||||||
#endif
|
#endif
|
||||||
|
}
|
||||||
|
S.EndMultiColumn();
|
||||||
}
|
}
|
||||||
S.EndMultiColumn();
|
S.EndStatic();
|
||||||
}
|
|
||||||
S.EndStatic();
|
|
||||||
|
|
||||||
S.StartStatic(_("Display"));
|
S.StartStatic(_("Display"));
|
||||||
{
|
|
||||||
S.StartTwoColumn();
|
|
||||||
{
|
{
|
||||||
mMinFreq =
|
S.StartTwoColumn();
|
||||||
S.TieNumericTextBox(_("Mi&nimum Frequency (Hz):"),
|
{
|
||||||
mTempSettings.minFreq,
|
mMinFreq =
|
||||||
12);
|
S.TieNumericTextBox(_("Mi&nimum Frequency (Hz):"),
|
||||||
|
mTempSettings.minFreq,
|
||||||
|
12);
|
||||||
|
|
||||||
mMaxFreq =
|
mMaxFreq =
|
||||||
S.TieNumericTextBox(_("Ma&ximum Frequency (Hz):"),
|
S.TieNumericTextBox(_("Ma&ximum Frequency (Hz):"),
|
||||||
mTempSettings.maxFreq,
|
mTempSettings.maxFreq,
|
||||||
12);
|
12);
|
||||||
|
|
||||||
mGain =
|
mGain =
|
||||||
S.TieNumericTextBox(_("&Gain (dB):"),
|
S.TieNumericTextBox(_("&Gain (dB):"),
|
||||||
mTempSettings.gain,
|
mTempSettings.gain,
|
||||||
8);
|
8);
|
||||||
|
|
||||||
mRange =
|
mRange =
|
||||||
S.TieNumericTextBox(_("&Range (dB):"),
|
S.TieNumericTextBox(_("&Range (dB):"),
|
||||||
mTempSettings.range,
|
mTempSettings.range,
|
||||||
8);
|
8);
|
||||||
|
|
||||||
mFrequencyGain =
|
mFrequencyGain =
|
||||||
S.TieNumericTextBox(_("Frequency g&ain (dB/dec):"),
|
S.TieNumericTextBox(_("Frequency g&ain (dB/dec):"),
|
||||||
mTempSettings.frequencyGain,
|
mTempSettings.frequencyGain,
|
||||||
4);
|
4);
|
||||||
}
|
}
|
||||||
S.EndTwoColumn();
|
S.EndTwoColumn();
|
||||||
|
|
||||||
S.TieCheckBox(_("S&how the spectrum using grayscale colors"),
|
S.TieCheckBox(_("S&how the spectrum using grayscale colors"),
|
||||||
mTempSettings.isGrayscale);
|
mTempSettings.isGrayscale);
|
||||||
|
|
||||||
#ifdef EXPERIMENTAL_FFT_Y_GRID
|
#ifdef EXPERIMENTAL_FFT_Y_GRID
|
||||||
S.TieCheckBox(_("Show a grid along the &Y-axis"),
|
S.TieCheckBox(_("Show a grid along the &Y-axis"),
|
||||||
mTempSettings.fftYGrid);
|
mTempSettings.fftYGrid);
|
||||||
#endif //EXPERIMENTAL_FFT_Y_GRID
|
#endif //EXPERIMENTAL_FFT_Y_GRID
|
||||||
}
|
}
|
||||||
S.EndStatic();
|
S.EndStatic();
|
||||||
|
|
||||||
#ifdef EXPERIMENTAL_FIND_NOTES
|
#ifdef EXPERIMENTAL_FIND_NOTES
|
||||||
/* i18n-hint: FFT stands for Fast Fourier Transform and probably shouldn't be translated*/
|
/* i18n-hint: FFT stands for Fast Fourier Transform and probably shouldn't be translated*/
|
||||||
S.StartStatic(_("FFT Find Notes"));
|
S.StartStatic(_("FFT Find Notes"));
|
||||||
{
|
|
||||||
S.StartTwoColumn();
|
|
||||||
{
|
{
|
||||||
mFindNotesMinA =
|
S.StartTwoColumn();
|
||||||
S.TieNumericTextBox(_("Minimum Amplitude (dB):"),
|
{
|
||||||
mTempSettings.fftFindNotes,
|
mFindNotesMinA =
|
||||||
8);
|
S.TieNumericTextBox(_("Minimum Amplitude (dB):"),
|
||||||
|
mTempSettings.fftFindNotes,
|
||||||
|
8);
|
||||||
|
|
||||||
mFindNotesN =
|
mFindNotesN =
|
||||||
S.TieNumericTextBox(_("Max. Number of Notes (1..128):"),
|
S.TieNumericTextBox(_("Max. Number of Notes (1..128):"),
|
||||||
mTempSettings.findNotesMinA,
|
mTempSettings.findNotesMinA,
|
||||||
8);
|
8);
|
||||||
|
}
|
||||||
|
S.EndTwoColumn();
|
||||||
|
|
||||||
|
S.TieCheckBox(_("&Find Notes"),
|
||||||
|
mTempSettings.numberOfMaxima);
|
||||||
|
|
||||||
|
S.TieCheckBox(_("&Quantize Notes"),
|
||||||
|
mTempSettings.findNotesQuantize);
|
||||||
}
|
}
|
||||||
S.EndTwoColumn();
|
S.EndStatic();
|
||||||
|
|
||||||
S.TieCheckBox(_("&Find Notes"),
|
|
||||||
mTempSettings.numberOfMaxima);
|
|
||||||
|
|
||||||
S.TieCheckBox(_("&Quantize Notes"),
|
|
||||||
mTempSettings.findNotesQuantize);
|
|
||||||
}
|
|
||||||
S.EndStatic();
|
|
||||||
#endif //EXPERIMENTAL_FIND_NOTES
|
#endif //EXPERIMENTAL_FIND_NOTES
|
||||||
|
}
|
||||||
|
// S.EndStatic();
|
||||||
}
|
}
|
||||||
|
|
||||||
bool SpectrumPrefs::Validate()
|
bool SpectrumPrefs::Validate()
|
||||||
|
|||||||
Reference in New Issue
Block a user