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

Method AddCompressionCurvePanel

src/effects/DynamicRangeProcessorEditor.cpp:347–372  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

345}
346
347void DynamicRangeProcessorEditor::AddCompressionCurvePanel(
348 ShuttleGui& S, const CompressorSettings& compressorSettings)
349{
350 S.StartMultiColumn(3);
351 {
352 S.SetStretchyRow(1);
353
354 constexpr auto tfWidth = 200;
355
356 // Horizontal ruler row
357 S.AddSpace(borderSize, 0);
358 S.Prop(1)
359 .Position(wxALIGN_BOTTOM)
360 .MinSize({ tfWidth, rulerWidth })
361 .AddWindow(MakeRulerPanel(mUIParent, wxHORIZONTAL, TFPanel::rangeDb));
362 S.AddSpace(rulerWidth, 0);
363
364 // Transfer function row
365 S.AddSpace(borderSize, 0);
366 S.Prop(1).Position(wxEXPAND).AddWindow(safenew TFPanel(
367 mUIParent, transferFunctionPanelId, compressorSettings));
368 S.Prop(1).Position(wxEXPAND).AddWindow(
369 MakeRulerPanel(mUIParent, wxVERTICAL, TFPanel::rangeDb));
370 }
371 S.EndMultiColumn();
372}
373
374void DynamicRangeProcessorEditor::AddSliderPanel(ShuttleGui& S)
375{

Callers

nothing calls this directly

Calls 4

MakeRulerPanelFunction · 0.85
SetStretchyRowMethod · 0.80
AddWindowMethod · 0.80
PositionMethod · 0.80

Tested by

no test coverage detected