summaryrefslogtreecommitdiffstats
path: root/noatun/modules/artseffects/extrastereogui_impl.cpp
blob: c65ff19fb7994210bbcaac554b6e103d3e180d65 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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,TQt::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);

};