summaryrefslogtreecommitdiffstats
path: root/ksirc/KSTicker/speeddialog.cpp
blob: eb1ff46241a2afa2ca7eb342eb1d66f151ffbfc7 (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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
/**********************************************************************

	--- Qt Architect generated file ---

	File: speeddialog.cpp
	Last generated: Sun Dec 21 08:52:31 1997

 *********************************************************************/

#include <klocale.h>

#include "speeddialog.h"

SpeedDialog::SpeedDialog
(
 int tick,
 int step,
 QWidget* parent,
 const char* name
)
  : speeddialogData( parent, name )
{
  setCaption(i18n( "Speed Setup") );
  connect(sliderTick, SIGNAL(valueChanged(int)),
	  lcdTick, SLOT(display(int)));
  connect(sliderStep, SIGNAL(valueChanged(int)),
	  lcdStep, SLOT(display(int)));
  lcdTick->display(tick);
  sliderTick->setValue(tick);
  lcdStep->display(step);
  sliderStep->setValue(step);
}


SpeedDialog::~SpeedDialog()
{
}


void SpeedDialog::updateTick(int tick)
{
  emit stateChange(tick, sliderStep->value());
}

void SpeedDialog::updateStep(int step)
{
  emit stateChange(sliderTick->value(), step);
}

void SpeedDialog::terminate()
{
  delete this;
}

void SpeedDialog::setLimit(int tmin, int tmax, int smin, int smax)
{
  sliderTick->setRange(tmin, tmax);
  sliderStep->setRange(smin, smax);
}

#include "speeddialog.moc"