1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-10-21 22:12:58 +02:00

Define and use ShuttleGui::Name and NameSuffix...

... For radio buttons, the name will default to the same as the prompt if not
otherwise specified
This commit is contained in:
Paul Licameli
2017-10-29 10:27:23 -04:00
parent 3ea0209e5c
commit 9eeef4713d
39 changed files with 434 additions and 322 deletions

View File

@@ -131,9 +131,10 @@ void LabelTrackMenuTable::OnSetFont(wxCommandEvent &)
facenames,
wxLB_SINGLE);
lb->SetName(_("Face name"));
lb->SetSelection( make_iterator_range( facenames ).index( facename ));
S.AddWindow(lb, wxALIGN_LEFT | wxEXPAND | wxALL);
S
.Name(XO("Face name"))
.AddWindow(lb, wxALIGN_LEFT | wxEXPAND | wxALL);
/* i18n-hint: (noun) The size of the typeface*/
S.AddPrompt(_("Face size"));
@@ -143,8 +144,9 @@ void LabelTrackMenuTable::OnSetFont(wxCommandEvent &)
wxDefaultSize,
wxSP_ARROW_KEYS,
8, 48, fontsize);
sc->SetName(_("Face size"));
S.AddWindow(sc, wxALIGN_LEFT | wxALL);
S
.Name(XO("Face size"))
.AddWindow(sc, wxALIGN_LEFT | wxALL);
}
S.EndMultiColumn();
S.AddStandardButtons();