18 #include "ui_QmitkNavigationDataSequentialPlayerControlWidget.h"
27 m_UpdateTimer =
new QTimer();
28 connect( m_UpdateTimer, SIGNAL(timeout()),
this, SLOT(
OnUpdate()) );
40 ui->samplePositionHorizontalSlider->setMaximum(player->GetNumberOfSnapshots());
45 m_UpdateTimer->stop();
46 m_Player->GoToSnapshot(0);
51 ui->playPushButton->setChecked(
false);
56 if ( m_UpdateTimer->isActive() )
58 m_UpdateTimer->stop();
62 if ( m_Player->IsAtEnd() ) { m_Player->GoToSnapshot(0); }
64 m_UpdateTimer->start(ui->updateIntervalSpinBox->value());
65 if ( ! ui->playPushButton->isChecked() ) { ui->playPushButton->setChecked(
true); }
78 if ( ! m_Player->GoToNextSnapshot() )
80 m_UpdateTimer->stop();
81 ui->playPushButton->setChecked(
false);
95 m_UpdateTimer->setInterval(value);
100 int currentSnapshotNumber =
static_cast<int>(m_Player->GetCurrentSnapshotNumber());
102 ui->sampleLCDNumber->display(currentSnapshotNumber);
104 ui->samplePositionHorizontalSlider->setValue(currentSnapshotNumber);
itk::SmartPointer< Self > Pointer