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
519 B
29 lines
519 B
15 years ago
|
#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);
|
||
|
|
||
|
};
|
||
|
|