From aaf7965df8b423bcacd411931d4cb0bb238ced61 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Mon, 20 Jun 2016 11:19:33 +0200 Subject: filter/ewma: cleanup, update - switch to our timer since it has more than millisecond precision - use slider_value for settings - sanitize allowed scaling curve bounds - ensure min <= max in dialog - ensure min <= max at filter runtime - check for NaN taking -ffast-math into account - simplify dialog logic - change delta smoothing constant --- filter-ewma2/ftnoir_ewma_filtercontrols.ui | 250 ++++++++++------------------- 1 file changed, 87 insertions(+), 163 deletions(-) (limited to 'filter-ewma2/ftnoir_ewma_filtercontrols.ui') diff --git a/filter-ewma2/ftnoir_ewma_filtercontrols.ui b/filter-ewma2/ftnoir_ewma_filtercontrols.ui index 9387f0d5..36826c2d 100644 --- a/filter-ewma2/ftnoir_ewma_filtercontrols.ui +++ b/filter-ewma2/ftnoir_ewma_filtercontrols.ui @@ -13,11 +13,17 @@ 380 + + + 0 + 0 + + - EWMA2 filter settings + EWMA filter settings - + :/images/filter-16.png:/images/filter-16.png @@ -39,30 +45,24 @@ 2 - - + + 0 0 - - - 0 - 0 - - - Min + Max - - + + 0 @@ -70,16 +70,19 @@ - 1 + 0 - 100 + 1000 - + 5 + + 50 + - 2 + 1000 Qt::Horizontal @@ -89,55 +92,30 @@ - - - - - 0 - 0 - - - - background:none; - - - true - - - QAbstractSpinBox::PlusMinus - - - 1 - - - 120 - - - 5 - - - 2 - - - - - + + 0 0 + + + 0 + 0 + + - Max + Min - - + + 0 @@ -148,13 +126,16 @@ 1 - 100 + 1000 - + 5 + + 50 + - 10 + 1000 Qt::Horizontal @@ -164,38 +145,7 @@ - - - - - 0 - 0 - - - - background:none; - - - true - - - QAbstractSpinBox::PlusMinus - - - 1 - - - 120 - - - 5 - - - 10 - - - - + @@ -211,7 +161,7 @@ - + @@ -220,16 +170,19 @@ - 1 + 0 - 100 + 1000 - + 5 + + 50 + - 10 + 1000 Qt::Horizontal @@ -239,31 +192,51 @@ - - - - - 0 - 0 - + + + + + 45 + 0 + - - background:none; + + 100% + + + Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter + + + + + + + + 45 + 0 + - - true + + 100% - - QAbstractSpinBox::PlusMinus + + Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter - - 100 + + + + + + + 45 + 0 + - - 5 + + 100% - - 10 + + Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter @@ -312,58 +285,9 @@ p, li { white-space: pre-wrap; } - + - - - minSmooth - valueChanged(int) - spinMinSmooth - setValue(int) - - - 303 - 33 - - - 391 - 36 - - - - - maxSmooth - valueChanged(int) - spinMaxSmooth - setValue(int) - - - 281 - 61 - - - 390 - 74 - - - - - powCurve - valueChanged(int) - spinPowCurve - setValue(int) - - - 236 - 101 - - - 391 - 98 - - - - + startEngineClicked() stopEngineClicked() -- cgit v1.2.3