mirror of
https://github.com/cookiengineer/audacity
synced 2025-10-25 15:53:52 +02:00
Rewrite empty prompts to ShuttleGUI functions as {} ...
... so we might more easily redefine the type of the function argument, some other day (not this release)
This commit is contained in:
@@ -120,7 +120,7 @@ void ExportCLOptions::PopulateOrExchange(ShuttleGui & S)
|
||||
&cmds);
|
||||
S.Id(ID_BROWSE).AddButton(_("Browse..."),
|
||||
wxALIGN_CENTER_VERTICAL);
|
||||
S.AddFixedText(wxT(""));
|
||||
S.AddFixedText( {} );
|
||||
S.TieCheckBox(_("Show output"),
|
||||
wxT("/FileFormats/ExternalProgramShowOutput"),
|
||||
false);
|
||||
|
||||
@@ -1459,9 +1459,9 @@ void ExportFFmpegOptions::PopulateOrExchange(ShuttleGui & S)
|
||||
S.SetStretchyCol(1);
|
||||
S.SetStretchyCol(3);
|
||||
S.Id(FEFormatLabelID).AddFixedText(_("Format:"));
|
||||
mFormatName = S.Id(FEFormatNameID).AddVariableText(wxT(""));
|
||||
mFormatName = S.Id(FEFormatNameID).AddVariableText( {} );
|
||||
S.Id(FECodecLabelID).AddFixedText(_("Codec:"));
|
||||
mCodecName = S.Id(FECodecNameID).AddVariableText(wxT(""));
|
||||
mCodecName = S.Id(FECodecNameID).AddVariableText( {} );
|
||||
}
|
||||
S.EndMultiColumn();
|
||||
S.AddVariableText(_("Not all formats and codecs are compatible. Nor are all option combinations compatible with all codecs."), false);
|
||||
@@ -1491,11 +1491,11 @@ void ExportFFmpegOptions::PopulateOrExchange(ShuttleGui & S)
|
||||
|
||||
S.AddSpace( 20,0 );
|
||||
S.AddVariableText(_("Bit Reservoir"));
|
||||
S.Id(FEBitReservoirID).TieCheckBox(wxEmptyString, wxT("/FileFormats/FFmpegBitReservoir"), true);
|
||||
S.Id(FEBitReservoirID).TieCheckBox( {}, wxT("/FileFormats/FFmpegBitReservoir"), true);
|
||||
|
||||
S.AddSpace( 20,0 );
|
||||
S.AddVariableText(_("VBL"));
|
||||
S.Id(FEVariableBlockLenID).TieCheckBox(wxEmptyString, wxT("/FileFormats/FFmpegVariableBlockLen"), true);
|
||||
S.Id(FEVariableBlockLenID).TieCheckBox( {}, wxT("/FileFormats/FFmpegVariableBlockLen"), true);
|
||||
}
|
||||
S.EndMultiColumn();
|
||||
S.StartMultiColumn(4, wxALIGN_LEFT);
|
||||
@@ -1555,7 +1555,7 @@ void ExportFFmpegOptions::PopulateOrExchange(ShuttleGui & S)
|
||||
mMaxPartitionOrderSpin->SetToolTip(_("Maximal partition order\nOptional\n-1 - default\nmin - 0\nmax - 8"));
|
||||
|
||||
S.AddVariableText(_("Use LPC"));
|
||||
S.Id(FEUseLPCID).TieCheckBox(wxEmptyString, wxT("/FileFormats/FFmpegUseLPC"), true);
|
||||
S.Id(FEUseLPCID).TieCheckBox( {}, wxT("/FileFormats/FFmpegUseLPC"), true);
|
||||
}
|
||||
S.EndMultiColumn();
|
||||
}
|
||||
|
||||
@@ -628,10 +628,10 @@ public:
|
||||
if (mLibPath.GetFullPath().IsEmpty()) {
|
||||
/* i18n-hint: There is a button to the right of the arrow.*/
|
||||
text.Printf(_("To find %s, click here -->"), mName);
|
||||
mPathText = S.AddTextBox(wxT(""), text, 0);
|
||||
mPathText = S.AddTextBox( {}, text, 0);
|
||||
}
|
||||
else {
|
||||
mPathText = S.AddTextBox(wxT(""), mLibPath.GetFullPath(), 0);
|
||||
mPathText = S.AddTextBox( {}, mLibPath.GetFullPath(), 0);
|
||||
}
|
||||
S.Id(ID_BROWSE).AddButton(_("Browse..."), wxALIGN_RIGHT);
|
||||
/* i18n-hint: There is a button to the right of the arrow.*/
|
||||
|
||||
@@ -273,8 +273,8 @@ void ExportMultiple::PopulateOrExchange(ShuttleGui& S)
|
||||
formats[mFilterIndex],
|
||||
formats,
|
||||
formats);
|
||||
S.AddVariableText(wxT(""), false);
|
||||
S.AddVariableText(wxT(""), false);
|
||||
S.AddVariableText( {}, false);
|
||||
S.AddVariableText( {}, false);
|
||||
|
||||
S.AddPrompt(_("Options:"));
|
||||
if (!mBook)
|
||||
@@ -290,8 +290,8 @@ void ExportMultiple::PopulateOrExchange(ShuttleGui& S)
|
||||
mBook->ChangeSelection(mFormat->GetSelection());
|
||||
}
|
||||
S.AddWindow(mBook);
|
||||
S.AddVariableText(wxT(""), false);
|
||||
S.AddVariableText(wxT(""), false);
|
||||
S.AddVariableText( {}, false);
|
||||
S.AddVariableText( {}, false);
|
||||
}
|
||||
S.EndMultiColumn();
|
||||
}
|
||||
@@ -325,13 +325,13 @@ void ExportMultiple::PopulateOrExchange(ShuttleGui& S)
|
||||
.AddCheckBox(_("Include audio before first label"), wxT("false"));
|
||||
|
||||
// Row 4
|
||||
S.AddVariableText(wxT(""), false);
|
||||
S.AddVariableText( {}, false);
|
||||
S.StartMultiColumn(2, wxEXPAND);
|
||||
S.SetStretchyCol(1);
|
||||
{
|
||||
mFirstFileLabel = S.AddVariableText(_("First file name:"), false);
|
||||
mFirstFileName = S.Id(FirstFileNameID)
|
||||
.Prop(1).TieTextBox(wxT(""),
|
||||
.Prop(1).TieTextBox( {},
|
||||
name,
|
||||
30);
|
||||
mFirstFileName->SetName(_("First file name"));
|
||||
@@ -368,7 +368,7 @@ void ExportMultiple::PopulateOrExchange(ShuttleGui& S)
|
||||
S.AddVariableText(wxT(" "), false);
|
||||
mPrefixLabel = S.AddVariableText(_("File name prefix:"), false);
|
||||
mPrefix = S.Id(PrefixID)
|
||||
.TieTextBox(wxT(""),
|
||||
.TieTextBox( {},
|
||||
name,
|
||||
30);
|
||||
mPrefix->SetName(_("File name prefix"));
|
||||
|
||||
Reference in New Issue
Block a user