mirror of
https://github.com/cookiengineer/audacity
synced 2025-09-19 17:40:51 +02:00
An overload of AddChoice specifying selected as string value
This commit is contained in:
parent
089b46ab64
commit
17ee2478bc
@ -418,6 +418,12 @@ wxChoice * ShuttleGuiBase::AddChoice( const wxString &Prompt,
|
|||||||
return pChoice;
|
return pChoice;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
wxChoice * ShuttleGuiBase::AddChoice( const wxString &Prompt,
|
||||||
|
const wxArrayStringEx &choices, const wxString &Selected )
|
||||||
|
{
|
||||||
|
return AddChoice( Prompt, choices, choices.Index( Selected ) );
|
||||||
|
}
|
||||||
|
|
||||||
void ShuttleGuiBase::AddFixedText(const wxString &Str, bool bCenter)
|
void ShuttleGuiBase::AddFixedText(const wxString &Str, bool bCenter)
|
||||||
{
|
{
|
||||||
UseUpId();
|
UseUpId();
|
||||||
|
@ -169,7 +169,10 @@ public:
|
|||||||
wxCheckBox * AddCheckBox( const wxString &Prompt, bool Selected);
|
wxCheckBox * AddCheckBox( const wxString &Prompt, bool Selected);
|
||||||
wxCheckBox * AddCheckBoxOnRight( const wxString &Prompt, bool Selected);
|
wxCheckBox * AddCheckBoxOnRight( const wxString &Prompt, bool Selected);
|
||||||
wxComboBox * AddCombo( const wxString &Prompt, const wxString &Selected,const wxArrayStringEx & choices, long style = 0 );
|
wxComboBox * AddCombo( const wxString &Prompt, const wxString &Selected,const wxArrayStringEx & choices, long style = 0 );
|
||||||
wxChoice * AddChoice( const wxString &Prompt, const wxArrayStringEx &choices, int Selected = -1 );
|
wxChoice * AddChoice( const wxString &Prompt,
|
||||||
|
const wxArrayStringEx &choices, int Selected = -1 );
|
||||||
|
wxChoice * AddChoice( const wxString &Prompt,
|
||||||
|
const wxArrayStringEx &choices, const wxString &selected );
|
||||||
wxMenuBar * AddMenuBar( );
|
wxMenuBar * AddMenuBar( );
|
||||||
wxMenu * AddMenu( const wxString & Title );
|
wxMenu * AddMenu( const wxString & Title );
|
||||||
void AddIcon( wxBitmap * pBmp);
|
void AddIcon( wxBitmap * pBmp);
|
||||||
|
@ -572,7 +572,7 @@ void VampEffect::PopulateOrExchange(ShuttleGui & S)
|
|||||||
mProgram = S.AddChoice(
|
mProgram = S.AddChoice(
|
||||||
{},
|
{},
|
||||||
choices,
|
choices,
|
||||||
choices.Index( currentProgram )
|
currentProgram
|
||||||
);
|
);
|
||||||
mProgram->SetName(_("Program"));
|
mProgram->SetName(_("Program"));
|
||||||
mProgram->SetSizeHints(-1, -1);
|
mProgram->SetSizeHints(-1, -1);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user