diff options
Diffstat (limited to 'noatun/modules/artseffects/extrastereogui_impl.cc')
-rw-r--r-- | noatun/modules/artseffects/extrastereogui_impl.cc | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/noatun/modules/artseffects/extrastereogui_impl.cc b/noatun/modules/artseffects/extrastereogui_impl.cc new file mode 100644 index 00000000..5952c80e --- /dev/null +++ b/noatun/modules/artseffects/extrastereogui_impl.cc @@ -0,0 +1,28 @@ +#include <qlayout.h> +#include <qslider.h> +#include "extrastereogui_impl.h" + +namespace Arts { + +ExtraStereoGUI_impl::ExtraStereoGUI_impl() : QWidget(0) +{ + (new QHBoxLayout(this))->setAutoAdd(true); + mSlider=new QSlider(0,100,10, 0, Horizontal, this); + mSlider->show(); + show(); +} + +void ExtraStereoGUI_impl::changeSlider(int v) +{ + effect.intensity((float)v/100.0); +} + +void ExtraStereoGUI_impl::setEffect(StereoEffect newEffect) +{ + effect = DynamicCast(newEffect); +} + +REGISTER_IMPLEMENTATION(ExtraStereoGUI_impl); + +}; + |