1
0
mirror of https://github.com/cookiengineer/audacity synced 2026-03-31 19:44:54 +02:00

Define and use ShuttleGui::Disable; remove EnableCtrl

This commit is contained in:
Paul Licameli
2019-11-19 11:34:36 -05:00
parent c72dbf5b51
commit d98e41aad1
12 changed files with 85 additions and 81 deletions

View File

@@ -392,21 +392,21 @@ void ExportMP3Options::PopulateOrExchange(ShuttleGui & S)
codes
);
mMode = S.TieNumberAsChoice(
_("Variable Speed:"),
{ wxT("/FileFormats/MP3VarMode"), ROUTINE_FAST },
varModeNames );
mMode->Enable(enable);
mMode = S.Disable(!enable)
.TieNumberAsChoice(
_("Variable Speed:"),
{ wxT("/FileFormats/MP3VarMode"), ROUTINE_FAST },
varModeNames );
S.AddPrompt(_("Channel Mode:"));
S.StartMultiColumn(3, wxEXPAND);
{
S.StartRadioButtonGroup(MP3ChannelModeSetting);
{
mJoint = S.TieRadioButton();
mStereo = S.TieRadioButton();
mJoint->Enable(!mono);
mStereo->Enable(!mono);
mJoint = S.Disable(mono)
.TieRadioButton();
mStereo = S.Disable(mono)
.TieRadioButton();
}
S.EndRadioButtonGroup();