summaryrefslogtreecommitdiffstats
path: root/noatun/modules/artseffects/extrastereogui_impl.cpp
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2020-12-08 22:26:17 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2020-12-08 22:26:17 +0900
commitfce86b22a2367f1be1f9aae5e1ba3d18d1371b74 (patch)
tree707fe84fef0569a152e632ce1e16407f9d19a3d2 /noatun/modules/artseffects/extrastereogui_impl.cpp
parent41fa1afc2c571b909acd0312e4eebb4a0b21e3c2 (diff)
downloadtdemultimedia-fce86b22a2367f1be1f9aae5e1ba3d18d1371b74.tar.gz
tdemultimedia-fce86b22a2367f1be1f9aae5e1ba3d18d1371b74.zip
Renaming of files in preparation for code style tools.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'noatun/modules/artseffects/extrastereogui_impl.cpp')
-rw-r--r--noatun/modules/artseffects/extrastereogui_impl.cpp28
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);
+
+};
+