| 200 | } |
| 201 | |
| 202 | void 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 | |
| 242 | void SpectralDataDialog::OnAudioIO(AudioIOEvent ev) |
| 243 | { |
nothing calls this directly
no test coverage detected