1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-11-21 16:37:12 +01:00

TranslatableString for prompts of radio buttons

This commit is contained in:
Paul Licameli
2019-12-23 18:02:44 -05:00
parent 455d3185a8
commit c23451af9d
9 changed files with 36 additions and 35 deletions

View File

@@ -283,9 +283,9 @@ public:
// Spoken name of the button defaults to the same as the prompt
// (after stripping menu codes):
wxRadioButton * AddRadioButton(
const wxString & Prompt, int selector = 0, int initValue = 0 );
const TranslatableString & Prompt, int selector = 0, int initValue = 0 );
wxRadioButton * AddRadioButtonToGroup(
const wxString & Prompt, int selector = 1, int initValue = 0 );
const TranslatableString & Prompt, int selector = 1, int initValue = 0 );
// Only the last button specified as default (if more than one) will be
// Always ORs the flags with wxALL (which affects borders):
@@ -578,7 +578,7 @@ private:
int mRadioCount; /// The index of this radio item. -1 for none.
wxString mRadioValueString; /// Unwrapped string value.
wxRadioButton * DoAddRadioButton(
const wxString &Prompt, int style, int selector, int initValue);
const TranslatableString &Prompt, int style, int selector, int initValue);
protected:
DialogDefinition::Item mItem;