You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
527 B
29 lines
527 B
13 years ago
|
#include <tqlayout.h>
|
||
15 years ago
|
#include <tqslider.h>
|
||
15 years ago
|
#include "extrastereogui_impl.h"
|
||
|
|
||
|
namespace Arts {
|
||
|
|
||
15 years ago
|
ExtraStereoGUI_impl::ExtraStereoGUI_impl() : TQWidget(0)
|
||
15 years ago
|
{
|
||
15 years ago
|
(new TQHBoxLayout(this))->setAutoAdd(true);
|
||
14 years ago
|
mSlider=new TQSlider(0,100,10, 0,Qt::Horizontal, this);
|
||
15 years ago
|
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);
|
||
|
|
||
|
};
|
||
|
|