Added burst mode to the playback window to allow for faster data rates.
This commit is contained in:
+19
-16
@@ -164,24 +164,27 @@ void FramePlaybackWindow::btnSelectNoneClick()
|
|||||||
|
|
||||||
void FramePlaybackWindow::timerTriggered()
|
void FramePlaybackWindow::timerTriggered()
|
||||||
{
|
{
|
||||||
if (!playbackActive)
|
for (int count = 0; count < ui->spinBurstSpeed->value(); count++)
|
||||||
{
|
{
|
||||||
playbackTimer->stop();
|
if (!playbackActive)
|
||||||
return;
|
{
|
||||||
}
|
playbackTimer->stop();
|
||||||
if (playbackForward)
|
return;
|
||||||
{
|
}
|
||||||
updatePosition(true);
|
if (playbackForward)
|
||||||
}
|
{
|
||||||
else
|
updatePosition(true);
|
||||||
{
|
}
|
||||||
updatePosition(false);
|
else
|
||||||
}
|
{
|
||||||
|
updatePosition(false);
|
||||||
|
}
|
||||||
|
|
||||||
if (!ui->cbLoop->isChecked())
|
if (!ui->cbLoop->isChecked())
|
||||||
{
|
{
|
||||||
if (currentPosition == 0) playbackActive = false;
|
if (currentPosition == 0) playbackActive = false;
|
||||||
if (currentPosition == (modelFrames->count() - 1)) playbackActive = false;
|
if (currentPosition == (modelFrames->count() - 1)) playbackActive = false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -120,6 +120,26 @@
|
|||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
|
<item alignment="Qt::AlignHCenter">
|
||||||
|
<widget class="QLabel" name="label_3">
|
||||||
|
<property name="text">
|
||||||
|
<string>Burst Rate:</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QSpinBox" name="spinBurstSpeed">
|
||||||
|
<property name="minimum">
|
||||||
|
<number>1</number>
|
||||||
|
</property>
|
||||||
|
<property name="maximum">
|
||||||
|
<number>8</number>
|
||||||
|
</property>
|
||||||
|
<property name="value">
|
||||||
|
<number>1</number>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
<item alignment="Qt::AlignHCenter">
|
<item alignment="Qt::AlignHCenter">
|
||||||
<widget class="QCheckBox" name="cbLoop">
|
<widget class="QCheckBox" name="cbLoop">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
|
|||||||
Reference in New Issue
Block a user