mirror of
https://github.com/cookiengineer/audacity
synced 2025-06-21 14:50:06 +02:00
Bug 1864 - Spectrogram settings dialog hides the checkbox for "Enable Spectral Selection"
Fixed by a more compact layout. Also we now size the dialogs for unique pages to fit their contents.
This commit is contained in:
parent
26860d9ef0
commit
d1c2ff82f0
@ -352,6 +352,7 @@ PrefsDialog::PrefsDialog
|
||||
|
||||
sz.DecTo(screenRect.GetSize());
|
||||
|
||||
if( !mUniquePage ){
|
||||
int prefWidth, prefHeight;
|
||||
gPrefs->Read(wxT("/Prefs/Width"), &prefWidth, sz.x);
|
||||
gPrefs->Read(wxT("/Prefs/Height"), &prefHeight, sz.y);
|
||||
@ -359,6 +360,7 @@ PrefsDialog::PrefsDialog
|
||||
wxSize prefSize = wxSize(prefWidth, prefHeight);
|
||||
prefSize.DecTo(screenRect.GetSize());
|
||||
SetSize(prefSize);
|
||||
}
|
||||
SetMinSize(sz);
|
||||
|
||||
// Center after all that resizing, but make sure it doesn't end up
|
||||
@ -500,9 +502,11 @@ void PrefsDialog::OnOK(wxCommandEvent & WXUNUSED(event))
|
||||
mUniquePage->Commit();
|
||||
}
|
||||
|
||||
if( !mUniquePage ){
|
||||
wxSize sz = GetSize();
|
||||
gPrefs->Write(wxT("/Prefs/Width"), sz.x);
|
||||
gPrefs->Write(wxT("/Prefs/Height"), sz.y);
|
||||
}
|
||||
gPrefs->Flush();
|
||||
|
||||
// Reads preference /GUI/Theme
|
||||
|
@ -171,54 +171,60 @@ void SpectrumPrefs::PopulateOrExchange(ShuttleGui & S)
|
||||
mDefaultsCheckbox = S.Id(ID_DEFAULTS).TieCheckBox(_("&Use Preferences"), mDefaulted);
|
||||
}
|
||||
|
||||
S.StartStatic(_("Scale"));
|
||||
S.StartMultiColumn(2,wxEXPAND);
|
||||
{
|
||||
S.StartTwoColumn();
|
||||
S.SetStretchyCol( 0 );
|
||||
S.SetStretchyCol( 1 );
|
||||
S.StartStatic(_("Scale"),1);
|
||||
{
|
||||
S.StartMultiColumn(2,wxEXPAND);
|
||||
{
|
||||
S.SetStretchyCol( 0 );
|
||||
S.SetStretchyCol( 1 );
|
||||
S.Id(ID_SCALE).TieChoice(_("S&cale") + wxString(wxT(":")),
|
||||
mTempSettings.scaleType,
|
||||
&mScaleChoices);
|
||||
|
||||
mMinFreq =
|
||||
S.Id(ID_MINIMUM).TieNumericTextBox(_("Mi&nimum Frequency (Hz):"),
|
||||
S.Id(ID_MINIMUM).TieNumericTextBox(_("Mi&n Frequency (Hz):"),
|
||||
mTempSettings.minFreq,
|
||||
12);
|
||||
|
||||
mMaxFreq =
|
||||
S.Id(ID_MAXIMUM).TieNumericTextBox(_("Ma&ximum Frequency (Hz):"),
|
||||
S.Id(ID_MAXIMUM).TieNumericTextBox(_("Ma&x Frequency (Hz):"),
|
||||
mTempSettings.maxFreq,
|
||||
12);
|
||||
}
|
||||
S.EndTwoColumn();
|
||||
S.EndMultiColumn();
|
||||
}
|
||||
S.EndStatic();
|
||||
|
||||
S.StartStatic(_("Colors"));
|
||||
S.StartStatic(_("Colors"),1);
|
||||
{
|
||||
S.StartTwoColumn();
|
||||
S.StartMultiColumn(2,wxEXPAND);
|
||||
{
|
||||
S.SetStretchyCol( 0 );
|
||||
S.SetStretchyCol( 1 );
|
||||
mGain =
|
||||
S.Id(ID_GAIN).TieNumericTextBox(_("&Gain (dB):"),
|
||||
mTempSettings.gain,
|
||||
8);
|
||||
|
||||
mRange =
|
||||
S.Id(ID_RANGE).TieNumericTextBox(_("&Range (dB):"),
|
||||
mTempSettings.range,
|
||||
8);
|
||||
|
||||
mFrequencyGain =
|
||||
S.Id(ID_FREQUENCY_GAIN).TieNumericTextBox(_("Frequency g&ain (dB/dec):"),
|
||||
S.Id(ID_FREQUENCY_GAIN).TieNumericTextBox(_("High &boost (dB/dec):"),
|
||||
mTempSettings.frequencyGain,
|
||||
4);
|
||||
8);
|
||||
}
|
||||
S.EndMultiColumn();
|
||||
|
||||
S.Id(ID_GRAYSCALE).TieCheckBox(_("Gra&yscale"),
|
||||
mTempSettings.isGrayscale);
|
||||
|
||||
S.EndTwoColumn();
|
||||
}
|
||||
S.EndStatic();
|
||||
}
|
||||
S.EndMultiColumn();
|
||||
|
||||
S.StartStatic(_("Algorithm"));
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user