MCPcopy Create free account
hub / github.com/audacity/audacity / Populate

Method Populate

src/SpectralDataDialog.cpp:202–240  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

200}
201
202void SpectralDataDialog::Populate(ShuttleGui & S)
203{
204 mBrushButton = MakeButton(this);
205
206 S.StartVerticalLay(true);
207 S.SetBorder(10);
208 {
209 S.AddVariableText(XO("Spectral Brush"));
210 S.AddWindow(mBrushButton, wxALIGN_LEFT);
211
212 S.AddVariableText(XO("Brush radius"));
213 S.Id(ID_SLIDER_BRUSH_SIZE)
214 .Style(wxSL_HORIZONTAL)
215 .Name(XO("Custom brush size"))
216 .AddSlider( {}, 5, 10, 1);
217
218 S.AddWindow(safenew wxStaticLine{ S.GetParent() });
219
220 S.Id(ID_CHECKBOX_OVERTONES)
221 .AddCheckBox(
222 XXO("Auto-select overtones (beta)"),
223 false);
224
225#ifdef SMART_CHECKBOX
226 S.Id(ID_CHECKBOX_SMART)
227 .AddCheckBox(XXO("Enable smart selection"), false);
228#endif
229
230 S.AddVariableText(
231 XO("Select the fundamental frequency\n"
232 "and release the mouse"));
233 }
234 S.EndVerticalLay();
235 // ----------------------- End of main section --------------
236
237 Layout();
238 Fit();
239 SetMinSize(GetSize());
240}
241
242void SpectralDataDialog::OnAudioIO(AudioIOEvent ev)
243{

Callers

nothing calls this directly

Calls 6

MakeButtonFunction · 0.85
AddVariableTextMethod · 0.80
AddWindowMethod · 0.80
AddSliderMethod · 0.80
AddCheckBoxMethod · 0.80
GetParentMethod · 0.45

Tested by

no test coverage detected