1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-06-28 22:28:44 +02:00

Bug1183: make spectrogram settings scrollable for limited resolution

This commit is contained in:
Paul Licameli 2017-07-24 21:08:55 -04:00
parent ff60610adf
commit 4a4fa8d97c
2 changed files with 10 additions and 0 deletions

View File

@ -352,7 +352,13 @@ PrefsDialog::PrefsDialog
// Frankly, this is a hack to work around a bug in wxTreebook, and // Frankly, this is a hack to work around a bug in wxTreebook, and
// will have to be revisited if we add another category to mCategories. // will have to be revisited if we add another category to mCategories.
// JKC later added a category and 20 onto the 7. // JKC later added a category and 20 onto the 7.
sz.y += 7 + 20; sz.y += 7 + 20;
// PRL: Bug 161 is an obsolete concern with wx3; bug 1183 is a problem
// of minimum size being too great at low resolution.
sz.DecTo( ::wxGetDisplaySize() );
SetSize(sz); SetSize(sz);
SetMinSize(sz); SetMinSize(sz);

View File

@ -164,6 +164,8 @@ void SpectrumPrefs::PopulateOrExchange(ShuttleGui & S)
// S.StartStatic(_("Track Settings")); // S.StartStatic(_("Track Settings"));
// { // {
S.StartScroller(); {
mDefaultsCheckbox = 0; mDefaultsCheckbox = 0;
if (mWt) { if (mWt) {
/* i18n-hint: use is a verb */ /* i18n-hint: use is a verb */
@ -297,6 +299,8 @@ void SpectrumPrefs::PopulateOrExchange(ShuttleGui & S)
S.EndStatic(); S.EndStatic();
#endif #endif
} S.EndScroller();
EnableDisableSTFTOnlyControls(); EnableDisableSTFTOnlyControls();
mPopulating = false; mPopulating = false;