diff options
Diffstat (limited to 'noatun/modules/artseffects/extrastereogui_impl.cpp')
-rw-r--r-- | noatun/modules/artseffects/extrastereogui_impl.cpp | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/noatun/modules/artseffects/extrastereogui_impl.cpp b/noatun/modules/artseffects/extrastereogui_impl.cpp new file mode 100644 index 00000000..92148ba0 --- /dev/null +++ b/noatun/modules/artseffects/extrastereogui_impl.cpp @@ -0,0 +1,28 @@ +#include <tqlayout.h> +#include <tqslider.h> +#include "extrastereogui_impl.h" + +namespace Arts { + +ExtraStereoGUI_impl::ExtraStereoGUI_impl() : TQWidget(0) +{ + (new TQHBoxLayout(this))->setAutoAdd(true); + mSlider=new TQSlider(0,100,10, 0,Qt::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); + +}; + |