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.
62 lines
1.2 KiB
62 lines
1.2 KiB
/**********************************************************************
|
|
|
|
--- TQt 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,
|
|
TQWidget* parent,
|
|
const char* name
|
|
)
|
|
: speeddialogData( parent, name )
|
|
{
|
|
setCaption(i18n( "Speed Setup") );
|
|
connect(sliderTick, TQT_SIGNAL(valueChanged(int)),
|
|
lcdTick, TQT_SLOT(display(int)));
|
|
connect(sliderStep, TQT_SIGNAL(valueChanged(int)),
|
|
lcdStep, TQT_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"
|