mirror of
https://github.com/cookiengineer/audacity
synced 2025-08-08 08:01:19 +02:00
Cautions re. size of Preference pages
Clarify meaning / purpose of assert in PrefsDialog and add scrollers to pages that may grow in future versions.
This commit is contained in:
parent
b4ee17ed82
commit
0a93172265
@ -57,6 +57,7 @@ void EffectsPrefs::PopulateOrExchange(ShuttleGui & S)
|
||||
{
|
||||
S.SetBorder(2);
|
||||
|
||||
S.StartScroller();
|
||||
S.StartStatic(_("Enable Effects"));
|
||||
{
|
||||
|
||||
@ -158,6 +159,7 @@ void EffectsPrefs::PopulateOrExchange(ShuttleGui & S)
|
||||
true);
|
||||
}
|
||||
S.EndStatic();
|
||||
S.EndScroller();
|
||||
#endif
|
||||
}
|
||||
|
||||
|
@ -124,6 +124,7 @@ void GUIPrefs::PopulateOrExchange(ShuttleGui & S)
|
||||
{
|
||||
S.SetBorder(2);
|
||||
|
||||
S.StartScroller();
|
||||
S.StartStatic(_("Display"));
|
||||
{
|
||||
S.StartMultiColumn(2);
|
||||
@ -206,6 +207,7 @@ void GUIPrefs::PopulateOrExchange(ShuttleGui & S)
|
||||
true);
|
||||
}
|
||||
S.EndStatic();
|
||||
S.EndScroller();
|
||||
}
|
||||
|
||||
bool GUIPrefs::Commit()
|
||||
|
@ -332,11 +332,13 @@ PrefsDialog::PrefsDialog
|
||||
mCategories->ExpandNode(iPage, it->expanded);
|
||||
}
|
||||
|
||||
// This ASSERT used to limit us to 800 x 600.
|
||||
// However, we think screens have got bigger now, and that was a bit too restrictive.
|
||||
// The impetus for increasing the limit (before we ASSERT) was that this ASSERT
|
||||
// was firing with wxWidgets 3.0, which has slightly different sizer behaviour.
|
||||
// Now takes display size into account to counter firing with high dpi displays.
|
||||
// This ASSERT was originally used to limit us to 800 x 600.
|
||||
// However, the range of screen sizes and dpi of modern (2018) displays
|
||||
// makes pixel dimensions an inadequate measure of usability, so
|
||||
// now we only ASSERT that preferences will fit in the client display
|
||||
// rectangle of the developer / tester's monitor.
|
||||
// Use scrollers when necessary to ensure that preference pages will
|
||||
// be fully visible.
|
||||
wxRect screenRect(wxGetClientDisplayRect());
|
||||
wxASSERT_MSG(sz.x <= screenRect.width && sz.y <= screenRect.height, wxT("Preferences dialog exceeds max size"));
|
||||
|
||||
|
@ -60,6 +60,7 @@ void TracksBehaviorsPrefs::PopulateOrExchange(ShuttleGui & S)
|
||||
{
|
||||
S.SetBorder(2);
|
||||
|
||||
S.StartScroller();
|
||||
S.StartStatic(_("Behaviors"));
|
||||
{
|
||||
S.TieCheckBox(_("A&uto-select, if selection required"),
|
||||
@ -104,6 +105,7 @@ void TracksBehaviorsPrefs::PopulateOrExchange(ShuttleGui & S)
|
||||
S.EndMultiColumn();
|
||||
}
|
||||
S.EndStatic();
|
||||
S.EndScroller();
|
||||
}
|
||||
|
||||
bool TracksBehaviorsPrefs::Commit()
|
||||
|
@ -120,6 +120,7 @@ void TracksPrefs::PopulateOrExchange(ShuttleGui & S)
|
||||
{
|
||||
S.SetBorder(2);
|
||||
|
||||
S.StartScroller();
|
||||
S.StartStatic(_("Display"));
|
||||
{
|
||||
S.TieCheckBox(_("&Pinned Recording/Playback head"),
|
||||
@ -183,6 +184,7 @@ void TracksPrefs::PopulateOrExchange(ShuttleGui & S)
|
||||
}
|
||||
}
|
||||
S.EndStatic();
|
||||
S.EndScroller();
|
||||
}
|
||||
|
||||
bool TracksPrefs::GetPinnedHeadPreference()
|
||||
|
Loading…
x
Reference in New Issue
Block a user