1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-10-19 17:11:12 +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:
Paul Licameli
2017-09-27 21:20:14 -04:00
parent e0970ad1e8
commit 80a958f8a4
38 changed files with 113 additions and 113 deletions

View File

@@ -581,7 +581,7 @@ void VampEffect::PopulateOrExchange(ShuttleGui & S)
S.AddPrompt(_("Program"));
S.Id(ID_Program);
mProgram = S.AddChoice(wxT(""), currentProgram, &choices);
mProgram = S.AddChoice( {}, currentProgram, &choices);
mProgram->SetName(_("Program"));
mProgram->SetSizeHints(-1, -1);
wxSizer *s = mProgram->GetContainingSizer();
@@ -618,7 +618,7 @@ void VampEffect::PopulateOrExchange(ShuttleGui & S)
mParameters[p].maxValue == 1.0)
{
S.Id(ID_Toggles + p);
mToggles[p] = S.AddCheckBox(wxT(""),
mToggles[p] = S.AddCheckBox( {},
value > 0.5 ? wxT("true") : wxT("false"));
mToggles[p]->SetName(labelText);
if (!tip.IsEmpty())
@@ -651,7 +651,7 @@ void VampEffect::PopulateOrExchange(ShuttleGui & S)
}
S.Id(ID_Choices + p);
mChoices[p] = S.AddChoice(wxT(""), selected, &choices);
mChoices[p] = S.AddChoice( {}, selected, &choices);
mChoices[p]->SetName(labelText);
mChoices[p]->SetSizeHints(-1, -1);
if (!tip.IsEmpty())
@@ -678,7 +678,7 @@ void VampEffect::PopulateOrExchange(ShuttleGui & S)
vld.SetStyle(style);
S.Id(ID_Texts + p);
mFields[p] = S.AddTextBox(wxT(""), wxT(""), 12);
mFields[p] = S.AddTextBox( {}, wxT(""), 12);
mFields[p]->SetName(labelText);
mFields[p]->SetValidator(vld);
if (!tip.IsEmpty())
@@ -693,7 +693,7 @@ void VampEffect::PopulateOrExchange(ShuttleGui & S)
S.SetStyle(wxSL_HORIZONTAL);
S.Id(ID_Sliders + p);
mSliders[p] = S.AddSlider(wxT(""), 0, 1000, 0);
mSliders[p] = S.AddSlider( {}, 0, 1000, 0);
mSliders[p]->SetName(labelText);
mSliders[p]->SetSizeHints(150, -1);
if (!tip.IsEmpty())