From 145c0637bcc3f7afe26d0028175c82bf28c6da71 Mon Sep 17 00:00:00 2001 From: OKGougou Date: Sun, 30 Jun 2024 11:22:24 -0400 Subject: [PATCH] Set number of decimals to show to 2 (issue GRIS-UdeM/ControlGris#200) --- Source/PanelView.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/Source/PanelView.cpp b/Source/PanelView.cpp index bcf5c0e..743009d 100644 --- a/Source/PanelView.cpp +++ b/Source/PanelView.cpp @@ -44,6 +44,18 @@ PanelView::PanelView(AudioDescriptorsAudioProcessor& processor, Parameters& para mDescriptorLapSlider.setDoubleClickReturnValue(true, 1.0); mDescriptorOffsetSlider.setDoubleClickReturnValue(true, 0.0); + mDescriptorFactorSlider.setNumDecimalPlacesToDisplay(2); + mDescriptorSmoothSlider.setNumDecimalPlacesToDisplay(2); + mDescriptorSmoothCoefSlider.setNumDecimalPlacesToDisplay(2); + mDescriptorRangeSlider.setNumDecimalPlacesToDisplay(2); + mDescriptorMinFreqSlider.setNumDecimalPlacesToDisplay(2); + mDescriptorMaxFreqSlider.setNumDecimalPlacesToDisplay(2); + mDescriptorThresholdSlider.setNumDecimalPlacesToDisplay(2); + mDescriptorMinTimeSlider.setNumDecimalPlacesToDisplay(2); + mDescriptorMaxTimeSlider.setNumDecimalPlacesToDisplay(2); + mDescriptorLapSlider.setNumDecimalPlacesToDisplay(2); + mDescriptorOffsetSlider.setNumDecimalPlacesToDisplay(2); + if (parameter.getParameterID() == ParameterID::azimuth) { addAndMakeVisible(mDescriptorLapLabel);