1
0
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:
Paul Licameli
2018-03-20 14:30:10 -04:00
parent 56bca74272
commit f7f721b52d
10 changed files with 9 additions and 54 deletions

View File

@@ -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();