Beispiel #1
0
void PhMediaPanel::onPreviousFrame()
{
	if(_clock) {
		_clock->setRate(0);
		_clock->setFrame(_clock->frame() - 1);
	}
	emit previousFrame();
}
Beispiel #2
0
void LimbsWeightDialog::on_copyToPrevPushButton_clicked()
{
  int value = _weights[currentFrame];
  currentFrame--;
  emit previousFrame();
  _weights[currentFrame] = value;
  initComponents();
}
medTimeLineParameter::medTimeLineParameter(QString name, QObject *parent):
    medAbstractGroupParameter(name, parent),
    d(new medTimeLineParameterPrivate)
{
    d->widget = NULL;
    d->frameLabel = NULL;
    d->numberOfFramesLabel = NULL;

    d->speedFactorParameter = new medIntParameter("Speed", this);
    d->speedFactorParameter->setRange(1,5000);
    d->speedFactorParameter->setValue(100);

    d->playParameter = new medBoolParameter("Play", this);
    d->parametersCandidateToPool << d->playParameter;

    d->timeParameter = new medDoubleParameter("Time", this);
    d->timeParameter->setValue(0);
    d->parametersCandidateToPool << d->timeParameter;

    d->nextFrameParameter = new medTriggerParameter("NextFrame", this);
    d->previousFrameParameter = new medTriggerParameter("PreviousFrame", this);

    d->timeLine = new QTimeLine(7000, this);
    d->timeLine->setCurveShape (QTimeLine::LinearCurve);

    d->loopParameter = new medBoolParameter("Loop", this);
    d->parametersCandidateToPool << d->loopParameter;
    d->loopParameter->setText("Loop");

    d->duration = 1;
    d->currentFrame = 0;
    d->timeBetweenFrames = 0;
    d->numberOfFrames = 0;
    d->timeLineLocked = false;

    this->clear();

    connect(d->timeLine, SIGNAL(frameChanged(int)), this, SLOT(setFrame(int)));
    connect(d->timeLine, SIGNAL(finished()), this, SLOT(reset()));

    connect(d->playParameter, SIGNAL(valueChanged(bool)), this, SLOT(play(bool)));
    connect(d->previousFrameParameter, SIGNAL(triggered()), this, SLOT(previousFrame()));
    connect(d->nextFrameParameter, SIGNAL(triggered()), this, SLOT(nextFrame()));
    connect(d->speedFactorParameter, SIGNAL(valueChanged(int)), this, SLOT(setSpeedFactor(int)));
    connect(d->timeParameter, SIGNAL(valueChanged(double)), this, SLOT(updateTime(double)));
    connect(d->loopParameter, SIGNAL(valueChanged(bool)), this, SLOT(setLoop(bool)));
    connect(d->timeParameter, SIGNAL(valueChanged(double)), this, SLOT(updateFrameLabel()));

    d->loopParameter->setValue(true);
}
Beispiel #4
0
ShowVictimDialog::ShowVictimDialog(QWidget *parent, uint id, QList<QImage> imgs) :
    QDialog(parent),
    ui(new Ui::ShowVictimDialog),
    victimID(id),
    images(imgs),
    actualFrame(0)
{
    ui->setupUi(this);
    ui->imgLabel->resize(FOCUS_CAMERA_WIDTH, FOCUS_CAMERA_HEIGHT);
    this->setWindowTitle("Victim with id " + QString::number(id) + "maybe found");

    //Connections
    connect(ui->nextScrollButton, SIGNAL(clicked()), this, SLOT(nextFrame()));
    connect(ui->previousScrollButton, SIGNAL(clicked()), this, SLOT(previousFrame()));
    connect(ui->confirmButton, SIGNAL(clicked()), this, SLOT(onVictimAccepted()));
    connect(ui->notAVictimButton, SIGNAL(clicked()), this, SLOT(onVictimRefused()));
    connect(ui->postponeButton, SIGNAL(clicked()), this, SLOT(onPostponeDecision()));
    if(images.size() > 0)
        showFrame();
}
void GUI::PreviewControlPanel::connectActions() {
	connect(button_nextFrame,SIGNAL(clicked()),this,SLOT(nextFrame()));
	connect(button_previousFrame,SIGNAL(clicked()),this,SLOT(previousFrame()));
	connect(&updater_,SIGNAL(timeout()),this,SLOT(updateUi()));
}
Beispiel #6
0
void LimbsWeightDialog::on_prevFrameButton_clicked()
{
  currentFrame--;
  emit previousFrame();
  initComponents();
}