~ubuntu-branches/ubuntu/hoary/kdemultimedia/hoary

« back to all changes in this revision

Viewing changes to noatun/noatun/modules/artseffects/extrastereogui_impl.cc

  • Committer: Bazaar Package Importer
  • Author(s): Martin Schulze
  • Date: 2003-01-22 15:00:51 UTC
  • Revision ID: james.westby@ubuntu.com-20030122150051-uihwkdoxf15mi1tn
Tags: upstream-2.2.2
ImportĀ upstreamĀ versionĀ 2.2.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#include <qlayout.h>
 
2
#include <qslider.h>
 
3
#include "extrastereogui_impl.h"
 
4
 
 
5
namespace Arts {
 
6
 
 
7
ExtraStereoGUI_impl::ExtraStereoGUI_impl() : QWidget(0)
 
8
{
 
9
                (new QHBoxLayout(this))->setAutoAdd(true);
 
10
                mSlider=new QSlider(0,100,10, 0, Horizontal, this);
 
11
                mSlider->show();
 
12
                show();
 
13
}
 
14
 
 
15
void ExtraStereoGUI_impl::changeSlider(int v)
 
16
{
 
17
        effect.intensity((float)v/100.0);
 
18
}
 
19
 
 
20
void ExtraStereoGUI_impl::setEffect(StereoEffect newEffect)
 
21
{
 
22
        effect = DynamicCast(newEffect);
 
23
}
 
24
 
 
25
REGISTER_IMPLEMENTATION(ExtraStereoGUI_impl);
 
26
 
 
27
};
 
28