mirror of
https://github.com/cookiengineer/audacity
synced 2025-07-27 06:07:59 +02:00
simplified version of Steve's patch for bug 357 -- Never need to update array size in two places again.
This commit is contained in:
parent
fe01337aaa
commit
40254b1796
@ -162,21 +162,23 @@ FreqWindow::FreqWindow(wxWindow * parent, wxWindowID id,
|
|||||||
|
|
||||||
mAlgChoice->SetSelection(mAlg);
|
mAlgChoice->SetSelection(mAlg);
|
||||||
|
|
||||||
wxString sizeChoiceStrings[8] = { wxT("128"),
|
wxArrayString sizeChoiceStrings;
|
||||||
wxT("256"),
|
sizeChoiceStrings.Add(wxT("128"));
|
||||||
wxT("512"),
|
sizeChoiceStrings.Add(wxT("256"));
|
||||||
wxT("1024"),
|
sizeChoiceStrings.Add(wxT("512"));
|
||||||
wxT("2048"),
|
sizeChoiceStrings.Add(wxT("1024"));
|
||||||
wxT("4096"),
|
sizeChoiceStrings.Add(wxT("2048"));
|
||||||
wxT("8192"),
|
sizeChoiceStrings.Add(wxT("4096"));
|
||||||
wxT("16384")
|
sizeChoiceStrings.Add(wxT("8192"));
|
||||||
};
|
sizeChoiceStrings.Add(wxT("16384"));
|
||||||
|
sizeChoiceStrings.Add(wxT("32768"));
|
||||||
|
sizeChoiceStrings.Add(wxT("65536"));
|
||||||
|
|
||||||
wxStaticText *sizeLabel = new wxStaticText(this, wxID_ANY,
|
wxStaticText *sizeLabel = new wxStaticText(this, wxID_ANY,
|
||||||
wxString(_("Size")) + wxT(":"));
|
wxString(_("Size")) + wxT(":"));
|
||||||
mSizeChoice = new wxChoice(this, FreqSizeChoiceID,
|
mSizeChoice = new wxChoice(this, FreqSizeChoiceID,
|
||||||
wxDefaultPosition, wxDefaultSize,
|
wxDefaultPosition, wxDefaultSize,
|
||||||
8, sizeChoiceStrings);
|
sizeChoiceStrings);
|
||||||
mSizeChoice->SetName(_("Size"));
|
mSizeChoice->SetName(_("Size"));
|
||||||
|
|
||||||
mSizeChoice->SetSelection(mSize);
|
mSizeChoice->SetSelection(mSize);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user