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

Method CreateControls

src/effects/NoiseReduction.cpp:242–259  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

240 }
241
242 void CreateControls(int id, ShuttleGui &S) const
243 {
244 wxTextCtrl *const text = S.Id(id + 1)
245 .Validator<FloatingPointValidator<double>>(
246 formatAsInt ? 0 : 2,
247 nullptr,
248 NumValidatorStyle::DEFAULT,
249 valueMin, valueMax
250 )
251 .AddTextBox(textBoxCaption, wxT(""), 0);
252
253 wxSlider *const slider =
254 S.Id(id)
255 .Name( sliderName )
256 .Style(wxSL_HORIZONTAL)
257 .MinSize( { 150, -1 } )
258 .AddSlider( {}, 0, sliderMax);
259 }
260
261 MemberPointer field;
262 double valueMin;

Callers 1

PopulateOrExchangeMethod · 0.80

Calls 2

AddTextBoxMethod · 0.80
AddSliderMethod · 0.80

Tested by

no test coverage detected