From 6232433c7e5e60f508fb55dd933db3ce7f9956e0 Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Kempf Date: Fri, 3 Sep 2010 22:45:29 +0200 Subject: [PATCH] Qt4: put gradfun in the UI --- .../gui/qt4/components/extended_panels.cpp | 3 + modules/gui/qt4/ui/video_effects.ui | 88 ++++++++++++++----- 2 files changed, 67 insertions(+), 24 deletions(-) diff --git a/modules/gui/qt4/components/extended_panels.cpp b/modules/gui/qt4/components/extended_panels.cpp index 2c15dfa7aa..8313536b8c 100644 --- a/modules/gui/qt4/components/extended_panels.cpp +++ b/modules/gui/qt4/components/extended_panels.cpp @@ -208,6 +208,9 @@ ExtVideo::ExtVideo( intf_thread_t *_p_intf, QTabWidget *_parent ) : SETUP_VFILTER_OPTION( logoXSpin, valueChanged( int ) ) SETUP_VFILTER_OPTION( logoOpacitySlider, valueChanged( int ) ) + SETUP_VFILTER( gradfun ) + SETUP_VFILTER_OPTION( gradfunRadiusSlider, valueChanged( int ) ) + if( module_exists( "atmo" ) ) { SETUP_VFILTER( atmo ) diff --git a/modules/gui/qt4/ui/video_effects.ui b/modules/gui/qt4/ui/video_effects.ui index f5f4436c13..65f52eebdd 100644 --- a/modules/gui/qt4/ui/video_effects.ui +++ b/modules/gui/qt4/ui/video_effects.ui @@ -18,24 +18,6 @@ Basic - - - - Transform - - - true - - - false - - - - - - - - @@ -60,9 +42,6 @@ 200 - - 1 - 10 @@ -70,7 +49,7 @@ Qt::Horizontal - QSlider::TicksBothSides + QSlider::TicksBelow 100 @@ -80,7 +59,7 @@ - + true @@ -223,6 +202,68 @@ + + + + Transform + + + true + + + false + + + + + + + + + + + + Gradient + + + true + + + false + + + + + + Radius + + + + + + + 4 + + + 32 + + + 4 + + + Qt::Horizontal + + + QSlider::TicksBelow + + + 4 + + + + + + @@ -1392,7 +1433,6 @@ contrastSlider hueSlider adjustEnable - transformEnable brightnessThresholdCheck gammaSlider sharpenSigmaSlider -- 2.39.2