Completely revamped frame playback window that can play back files in sequence with various forms of looping.

This commit is contained in:
Collin Kidder
2015-06-23 21:34:48 -04:00
parent fbe89c7afb
commit 3aa2c42cf0
3 changed files with 434 additions and 124 deletions
+253 -43
View File
@@ -1,6 +1,20 @@
#include "frameplaybackwindow.h" #include "frameplaybackwindow.h"
#include "ui_frameplaybackwindow.h" #include "ui_frameplaybackwindow.h"
#include <QDebug> #include <QDebug>
#include <QFileDialog>
/*
* Notes about new functionality:
* The system has a sequence of files or captured data to play back. It starts at the first item in the list
* and goes through all of the frames. When it gets to the end it sees if there is a loop count for this file.
* If so it increments the loop count and goes back to the beginning. If not it goes to the next file in the list.
* At the end of the list it either stops (if looping is off) or goes back to the first item in the list.
* All items in the list have their own frame cache and filters
*
* So, to do this we'll have to track which item we're on and which frame within that item. As we go through
* items it should highlight the row we're on
*
*/
FramePlaybackWindow::FramePlaybackWindow(QVector<CANFrame> *frames, SerialWorker *worker, QWidget *parent) : FramePlaybackWindow::FramePlaybackWindow(QVector<CANFrame> *frames, SerialWorker *worker, QWidget *parent) :
QDialog(parent), QDialog(parent),
@@ -8,9 +22,7 @@ FramePlaybackWindow::FramePlaybackWindow(QVector<CANFrame> *frames, SerialWorker
{ {
ui->setupUi(this); ui->setupUi(this);
//this code intentionally creates a copy here so that we modelFrames = frames;
//don't pick up more frames coming in as we're going.
modelFrames = new QVector<CANFrame>(*frames);
serialWorker = worker; serialWorker = worker;
playbackTimer = new QTimer(); playbackTimer = new QTimer();
@@ -19,8 +31,8 @@ FramePlaybackWindow::FramePlaybackWindow(QVector<CANFrame> *frames, SerialWorker
playbackActive = false; playbackActive = false;
playbackForward = true; playbackForward = true;
whichBusSend = 0; //0 = no bus, 1 = bus 0, 2 = bus 1, 4 = from file - Bitfield so you can 'or' them. whichBusSend = 0; //0 = no bus, 1 = bus 0, 2 = bus 1, 4 = from file - Bitfield so you can 'or' them.
currentSeqItem = NULL;
refreshIDList(); currentSeqNum = -1;
ui->comboCANBus->addItem(tr("None")); ui->comboCANBus->addItem(tr("None"));
ui->comboCANBus->addItem(tr("0")); ui->comboCANBus->addItem(tr("0"));
@@ -39,15 +51,25 @@ FramePlaybackWindow::FramePlaybackWindow(QVector<CANFrame> *frames, SerialWorker
connect(ui->btnSelectAll, SIGNAL(clicked(bool)), this, SLOT(btnSelectAllClick())); connect(ui->btnSelectAll, SIGNAL(clicked(bool)), this, SLOT(btnSelectAllClick()));
connect(ui->btnSelectNone, SIGNAL(clicked(bool)), this, SLOT(btnSelectNoneClick())); connect(ui->btnSelectNone, SIGNAL(clicked(bool)), this, SLOT(btnSelectNoneClick()));
connect(ui->spinPlaySpeed, SIGNAL(valueChanged(int)), this, SLOT(changePlaybackSpeed(int))); connect(ui->spinPlaySpeed, SIGNAL(valueChanged(int)), this, SLOT(changePlaybackSpeed(int)));
connect(ui->cbLoop, SIGNAL(clicked(bool)), this, SLOT(changeLooping(bool))); //connect(ui->cbLoop, SIGNAL(clicked(bool)), this, SLOT(changeLooping(bool)));
connect(ui->comboCANBus, SIGNAL(currentIndexChanged(int)), this, SLOT(changeSendingBus(int))); connect(ui->comboCANBus, SIGNAL(currentIndexChanged(int)), this, SLOT(changeSendingBus(int)));
connect(ui->listID, SIGNAL(itemClicked(QListWidgetItem*)), this, SLOT(changeIDFiltering(QListWidgetItem*))); connect(ui->listID, SIGNAL(itemClicked(QListWidgetItem*)), this, SLOT(changeIDFiltering(QListWidgetItem*)));
connect(playbackTimer, SIGNAL(timeout()), this, SLOT(timerTriggered())); connect(playbackTimer, SIGNAL(timeout()), this, SLOT(timerTriggered()));
connect(ui->btnLoadFile, SIGNAL(clicked(bool)), this, SLOT(btnLoadFile()));
connect(ui->btnLoadLive, SIGNAL(clicked(bool)), this, SLOT(btnLoadLive()));
connect(ui->tblSequence, SIGNAL(cellPressed(int,int)), this, SLOT(seqTableCellClicked(int,int)));
connect(ui->tblSequence, SIGNAL(cellChanged(int,int)), this, SLOT(seqTableCellChanged(int,int)));
playbackTimer->setInterval(ui->spinPlaySpeed->value()); //set the timer to the default value of the control playbackTimer->setInterval(ui->spinPlaySpeed->value()); //set the timer to the default value of the control
connect(this, SIGNAL(sendCANFrame(const CANFrame*,int)), worker, SLOT(sendFrame(const CANFrame*,int)), Qt::QueuedConnection); connect(this, SIGNAL(sendCANFrame(const CANFrame*,int)), worker, SLOT(sendFrame(const CANFrame*,int)), Qt::QueuedConnection);
QStringList headers;
headers << "Source" << "Loops";
ui->tblSequence->setColumnCount(2);
ui->tblSequence->setColumnWidth(0, 260);
ui->tblSequence->setColumnWidth(1, 80);
ui->tblSequence->setHorizontalHeaderLabels(headers);
} }
FramePlaybackWindow::~FramePlaybackWindow() FramePlaybackWindow::~FramePlaybackWindow()
@@ -61,16 +83,20 @@ FramePlaybackWindow::~FramePlaybackWindow()
void FramePlaybackWindow::refreshIDList() void FramePlaybackWindow::refreshIDList()
{ {
int id; int id;
for (int i = 0; i < modelFrames->count(); i++)
if (currentSeqNum < 0 || currentSeqItem == NULL) return;
ui->tblSequence->setCurrentCell(currentSeqNum, 0);
ui->listID->clear();
QHash<int, bool>::Iterator filterIter;
for (filterIter = currentSeqItem->idFilters.begin(); filterIter != currentSeqItem->idFilters.end(); ++filterIter)
{ {
id = modelFrames->at(i).ID; QListWidgetItem* listItem = new QListWidgetItem(Utility::formatHexNum(filterIter.key()), ui->listID);
if (!foundID.contains(id)) listItem->setFlags(listItem->flags() | Qt::ItemIsUserCheckable); // set checkable flag
{ if (filterIter.value()) listItem->setCheckState(Qt::Checked);
foundID.append(id); else listItem->setCheckState(Qt::Unchecked);
QListWidgetItem* item = new QListWidgetItem(QString::number(id, 16).toUpper().rightJustified(4,'0'), ui->listID);
item->setFlags(item->flags() | Qt::ItemIsUserCheckable); // set checkable flag
item->setCheckState(Qt::Checked);
}
} }
//default is to sort in ascending order //default is to sort in ascending order
ui->listID->sortItems(); ui->listID->sortItems();
@@ -78,7 +104,135 @@ void FramePlaybackWindow::refreshIDList()
void FramePlaybackWindow::updateFrameLabel() void FramePlaybackWindow::updateFrameLabel()
{ {
ui->lblPosition->setText(QString::number(currentPosition) + tr(" of ") + QString::number(modelFrames->count())); int row = currentSeqNum;
if (row != ui->tblSequence->currentRow())
{
ui->tblSequence->setCurrentCell(row, 0);
}
if (row == -1)
{
ui->lblCurrPlayback->setText("");
ui->lblPosition->setText("");
return;
}
ui->lblCurrPlayback->setText(currentSeqItem->filename);
ui->lblPosition->setText(QString::number(currentPosition) + tr(" of ") + QString::number(seqItems[row].data.count()));
}
void FramePlaybackWindow::seqTableCellClicked(int row, int col)
{
qDebug() << "Row: " << QString::number(row) << " Col: " << QString::number(col);
if (currentSeqNum != row)
{
currentSeqNum = row;
currentSeqItem = &seqItems[row];
refreshIDList();
}
}
void FramePlaybackWindow::seqTableCellChanged(int row,int col)
{
if (col == 1) //don't save any changes to the first column (0)
{
seqItems[row].maxLoops = ui->tblSequence->item(row, col)->text().toInt();
if (seqItems[row].maxLoops < 1) seqItems[row].maxLoops = 1;
}
}
void FramePlaybackWindow::fillIDHash(SequenceItem &item)
{
int id;
item.idFilters.clear();
for (int i = 0; i < item.data.count(); i++)
{
id = item.data[i].ID;
if (!item.idFilters.contains(id))
{
item.idFilters.insert(id, true);
}
}
}
void FramePlaybackWindow::btnLoadFile()
{
QString filename;
QFileDialog dialog(this);
bool result = false;
SequenceItem item;
QStringList filters;
filters.append(QString(tr("CRTD Logs (*.txt)")));
filters.append(QString(tr("GVRET Logs (*.csv)")));
filters.append(QString(tr("Generic ID/Data CSV (*.csv)")));
filters.append(QString(tr("BusMaster Log (*.log)")));
filters.append(QString(tr("Microchip Log (*.log)")));
dialog.setFileMode(QFileDialog::ExistingFile);
dialog.setNameFilters(filters);
dialog.setViewMode(QFileDialog::Detail);
if (dialog.exec() == QDialog::Accepted)
{
filename = dialog.selectedFiles()[0];
if (dialog.selectedNameFilter() == filters[0]) result = FrameFileIO::loadCRTDFile(filename, &item.data);
if (dialog.selectedNameFilter() == filters[1]) result = FrameFileIO::loadNativeCSVFile(filename, &item.data);
if (dialog.selectedNameFilter() == filters[2]) result = FrameFileIO::loadGenericCSVFile(filename, &item.data);
if (dialog.selectedNameFilter() == filters[3]) result = FrameFileIO::loadLogFile(filename, &item.data);
if (dialog.selectedNameFilter() == filters[4]) result = FrameFileIO::loadMicrochipFile(filename, &item.data);
if (result)
{
QStringList fileList = filename.split('/');
item.filename = fileList[fileList.length() - 1];
item.currentLoopCount = 0;
item.maxLoops = 1;
fillIDHash(item);
if (ui->tblSequence->currentRow() == -1)
{
ui->tblSequence->setCurrentCell(0,0);
}
seqItems.append(item);
int row = ui->tblSequence->rowCount();
ui->tblSequence->insertRow(row);
ui->tblSequence->setItem(row, 0, new QTableWidgetItem(item.filename));
ui->tblSequence->setItem(row, 1, new QTableWidgetItem(QString::number(item.maxLoops)));
qDebug() << currentSeqNum;
if (currentSeqNum == -1)
{
currentSeqNum = 0;
currentSeqItem = &seqItems[0];
}
updateFrameLabel();
}
}
}
void FramePlaybackWindow::btnLoadLive()
{
SequenceItem item;
item.filename = "<CAPTURED DATA>";
item.currentLoopCount = 0;
item.maxLoops = 1;
item.data = QVector<CANFrame>(*modelFrames); //create a copy of the current frames from the main view
fillIDHash(item);
seqItems.append(item);
int row = ui->tblSequence->rowCount();
ui->tblSequence->insertRow(row);
ui->tblSequence->setItem(row, 0, new QTableWidgetItem(item.filename));
ui->tblSequence->setItem(row, 1, new QTableWidgetItem(QString::number(item.maxLoops)));
if (currentSeqNum == -1)
{
currentSeqNum = 0;
currentSeqItem = &seqItems[0];
}
updateFrameLabel();
} }
void FramePlaybackWindow::btnBackOneClick() void FramePlaybackWindow::btnBackOneClick()
@@ -107,6 +261,20 @@ void FramePlaybackWindow::btnStopClick()
playbackTimer->stop(); //pushing this button halts automatic playback playbackTimer->stop(); //pushing this button halts automatic playback
playbackActive = false; playbackActive = false;
currentPosition = 0; currentPosition = 0;
if (seqItems.count() > 0)
{
currentSeqNum = 0;
currentSeqItem = &seqItems[currentSeqNum];
}
else {
currentSeqNum = -1;
currentSeqItem = NULL;
}
if (ui->tblSequence->rowCount() > 0)
{
ui->tblSequence->setCurrentCell(0, 0);
refreshIDList();
}
updateFrameLabel(); updateFrameLabel();
} }
@@ -143,7 +311,9 @@ void FramePlaybackWindow::changeSendingBus(int newIdx)
void FramePlaybackWindow::changeIDFiltering(QListWidgetItem *item) void FramePlaybackWindow::changeIDFiltering(QListWidgetItem *item)
{ {
qDebug() << "Changed ID filter";
int ID = item->text().toInt(NULL, 16);
currentSeqItem->idFilters[ID] = item->checkState();
} }
void FramePlaybackWindow::btnSelectAllClick() void FramePlaybackWindow::btnSelectAllClick()
@@ -152,6 +322,7 @@ void FramePlaybackWindow::btnSelectAllClick()
{ {
QListWidgetItem *item = ui->listID->item(i); QListWidgetItem *item = ui->listID->item(i);
item->setCheckState(Qt::Checked); item->setCheckState(Qt::Checked);
currentSeqItem->idFilters[item->text().toInt(NULL, 16)] = true;
} }
} }
@@ -161,6 +332,7 @@ void FramePlaybackWindow::btnSelectNoneClick()
{ {
QListWidgetItem *item = ui->listID->item(i); QListWidgetItem *item = ui->listID->item(i);
item->setCheckState(Qt::Unchecked); item->setCheckState(Qt::Unchecked);
currentSeqItem->idFilters[item->text().toInt(NULL, 16)] = false;
} }
} }
@@ -181,12 +353,6 @@ void FramePlaybackWindow::timerTriggered()
{ {
updatePosition(false); updatePosition(false);
} }
if (!ui->cbLoop->isChecked())
{
if (currentPosition == 0) playbackActive = false;
if (currentPosition == (modelFrames->count() - 1)) playbackActive = false;
}
} }
} }
@@ -195,32 +361,76 @@ void FramePlaybackWindow::updatePosition(bool forward)
if (forward) if (forward)
{ {
if (currentPosition < (modelFrames->count() - 1)) currentPosition++; if (currentPosition < (currentSeqItem->data.count() - 1)) currentPosition++; //still in same file so keep going
else if (ui->cbLoop->isChecked()) currentPosition = 0; else //hit the end of the current file
{
qDebug() << "hit end of current sequence";
currentSeqItem->currentLoopCount++;
currentPosition = 0;
if (currentSeqItem->currentLoopCount == currentSeqItem->maxLoops) //have we looped enough times?
{
currentSeqNum++; //go forward in the sequence
if (currentSeqNum == seqItems.count()) //are we at the end of the sequence?
{
//reset the loop figures for each sequence entry
for (int i = 0; i < seqItems.count(); i++) seqItems[i].currentLoopCount = 0;
currentSeqNum = 0;
if (ui->cbLoop->isChecked()) //go back to beginning if we're looping the sequence
{
}
else //not looping so stop playback entirely
{
playbackActive = false;
playbackTimer->stop();
}
}
currentSeqItem = &seqItems[currentSeqNum];
ui->tblSequence->setCurrentCell(currentSeqNum, 0);
}
}
} }
else else
{ {
if (currentPosition > 0) currentPosition--; if (currentPosition > 0) currentPosition--;
else if (ui->cbLoop->isChecked()) currentPosition = modelFrames->count() - 1; else //hit the beginning of the current sequence
}
//only send frame out if its ID is checked in the list. Otherwise discard it.
QList<QListWidgetItem *> idList = ui->listID->findItems(QString::number(modelFrames->at(currentPosition).ID, 16).toUpper().rightJustified(4,'0'), Qt::MatchExactly);
if (idList.count() > 0)
{
if (idList.at(0)->checkState() == Qt::Checked)
{ {
//index 0 is none, 1 is Bus 0, 2 is bus 1, 3 is both, 4 is from file qDebug() << "hit start of current sequence";
const CANFrame *thisFrame = &modelFrames->at(currentPosition); currentSeqItem->currentLoopCount++;
if (whichBusSend & 1) emit sendCANFrame(thisFrame, 0); currentPosition = currentSeqItem->data.count() - 1;
if (whichBusSend & 2) emit sendCANFrame(thisFrame, 1); if (currentSeqItem->currentLoopCount == currentSeqItem->maxLoops) //have we looped enough times?
if (whichBusSend & 4) emit sendCANFrame(thisFrame, thisFrame->bus); {
//if (whichBusSend & 1) serialWorker->sendFrame(thisFrame, 0); currentSeqNum--; //go backward in the sequence
//if (whichBusSend & 2) serialWorker->sendFrame(thisFrame, 1); if (currentSeqNum == -1) //are we trying to go past the beginning?
//if (whichBusSend & 4) serialWorker->sendFrame(thisFrame, thisFrame->bus); {
updateFrameLabel(); //reset the loop figures for each sequence entry
for (int i = 0; i < seqItems.count(); i++) seqItems[i].currentLoopCount = 0;
currentSeqNum = seqItems.count() - 1;
if (ui->cbLoop->isChecked()) //go back to the last sequence entry if we're looping
{
}
else //not looping so stop playback entirely
{
playbackActive = false;
playbackTimer->stop();
}
}
currentSeqItem = &seqItems[currentSeqNum];
ui->tblSequence->setCurrentCell(currentSeqNum, 0);
}
} }
} }
//only send frame out if its ID is checked in the list. Otherwise discard it.
const CANFrame *thisFrame = &currentSeqItem->data[currentPosition];
if (currentSeqItem->idFilters.find(thisFrame->ID).value())
{
//index 0 is none, 1 is Bus 0, 2 is bus 1, 3 is both, 4 is from file
if (whichBusSend & 1) emit sendCANFrame(thisFrame, 0);
if (whichBusSend & 2) emit sendCANFrame(thisFrame, 1);
if (whichBusSend & 4) emit sendCANFrame(thisFrame, thisFrame->bus);
updateFrameLabel();
}
} }
+19
View File
@@ -6,11 +6,22 @@
#include <QTimer> #include <QTimer>
#include "can_structs.h" #include "can_structs.h"
#include "serialworker.h" #include "serialworker.h"
#include "framefileio.h"
namespace Ui { namespace Ui {
class FramePlaybackWindow; class FramePlaybackWindow;
} }
//one entry in the sequence of data to use
struct SequenceItem
{
QString filename;
QVector<CANFrame> data;
QHash<int, bool> idFilters;
int maxLoops;
int currentLoopCount;
};
class FramePlaybackWindow : public QDialog class FramePlaybackWindow : public QDialog
{ {
Q_OBJECT Q_OBJECT
@@ -33,6 +44,10 @@ private slots:
void btnSelectAllClick(); void btnSelectAllClick();
void btnSelectNoneClick(); void btnSelectNoneClick();
void timerTriggered(); void timerTriggered();
void btnLoadFile();
void btnLoadLive();
void seqTableCellClicked(int row, int col);
void seqTableCellChanged(int row, int col);
signals: signals:
void sendCANFrame(const CANFrame *, int); void sendCANFrame(const CANFrame *, int);
@@ -48,10 +63,14 @@ private:
bool playbackActive; bool playbackActive;
bool playbackForward; bool playbackForward;
int whichBusSend; int whichBusSend;
QList<SequenceItem> seqItems;
SequenceItem *currentSeqItem;
int currentSeqNum;
void refreshIDList(); void refreshIDList();
void updateFrameLabel(); void updateFrameLabel();
void updatePosition(bool forward); void updatePosition(bool forward);
void fillIDHash(SequenceItem &item);
}; };
#endif // FRAMEPLAYBACKWINDOW_H #endif // FRAMEPLAYBACKWINDOW_H
+161 -80
View File
@@ -6,7 +6,7 @@
<rect> <rect>
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>257</width> <width>742</width>
<height>606</height> <height>606</height>
</rect> </rect>
</property> </property>
@@ -100,52 +100,57 @@
</property> </property>
</spacer> </spacer>
</item> </item>
<item alignment="Qt::AlignHCenter">
<widget class="QLabel" name="label">
<property name="text">
<string>Playback speed (ms):</string>
</property>
</widget>
</item>
<item> <item>
<widget class="QSpinBox" name="spinPlaySpeed"> <layout class="QHBoxLayout" name="horizontalLayout_4">
<property name="minimum"> <item>
<number>0</number> <layout class="QVBoxLayout" name="verticalLayout_3">
</property> <item alignment="Qt::AlignHCenter">
<property name="maximum"> <widget class="QLabel" name="label">
<number>1000</number> <property name="text">
</property> <string>Playback speed (ms):</string>
<property name="value"> </property>
<number>5</number> </widget>
</property> </item>
</widget> <item>
</item> <widget class="QSpinBox" name="spinPlaySpeed">
<item alignment="Qt::AlignHCenter"> <property name="minimum">
<widget class="QLabel" name="label_3"> <number>0</number>
<property name="text"> </property>
<string>Burst Rate:</string> <property name="maximum">
</property> <number>1000</number>
</widget> </property>
</item> <property name="value">
<item> <number>5</number>
<widget class="QSpinBox" name="spinBurstSpeed"> </property>
<property name="minimum"> </widget>
<number>1</number> </item>
</property> </layout>
<property name="maximum"> </item>
<number>8</number> <item>
</property> <layout class="QVBoxLayout" name="verticalLayout_2">
<property name="value"> <item alignment="Qt::AlignHCenter">
<number>1</number> <widget class="QLabel" name="label_3">
</property> <property name="text">
</widget> <string>Burst Rate:</string>
</item> </property>
<item alignment="Qt::AlignHCenter"> </widget>
<widget class="QCheckBox" name="cbLoop"> </item>
<property name="text"> <item>
<string>Loop playback</string> <widget class="QSpinBox" name="spinBurstSpeed">
</property> <property name="minimum">
</widget> <number>1</number>
</property>
<property name="maximum">
<number>8</number>
</property>
<property name="value">
<number>1</number>
</property>
</widget>
</item>
</layout>
</item>
</layout>
</item> </item>
<item> <item>
<spacer name="verticalSpacer"> <spacer name="verticalSpacer">
@@ -163,19 +168,45 @@
</property> </property>
</spacer> </spacer>
</item> </item>
<item alignment="Qt::AlignHCenter"> <item>
<widget class="QLabel" name="label_2"> <layout class="QHBoxLayout" name="horizontalLayout_7">
<property name="text"> <item>
<string>Current frame:</string> <layout class="QVBoxLayout" name="verticalLayout_6">
</property> <item alignment="Qt::AlignHCenter">
</widget> <widget class="QLabel" name="label_7">
</item> <property name="text">
<item alignment="Qt::AlignHCenter"> <string>Current Playback Item:</string>
<widget class="QLabel" name="lblPosition"> </property>
<property name="text"> </widget>
<string>x of y</string> </item>
</property> <item alignment="Qt::AlignHCenter">
</widget> <widget class="QLabel" name="lblCurrPlayback">
<property name="text">
<string>TextLabel</string>
</property>
</widget>
</item>
</layout>
</item>
<item>
<layout class="QVBoxLayout" name="verticalLayout_8">
<item alignment="Qt::AlignHCenter">
<widget class="QLabel" name="label_2">
<property name="text">
<string>Current frame:</string>
</property>
</widget>
</item>
<item alignment="Qt::AlignHCenter">
<widget class="QLabel" name="lblPosition">
<property name="text">
<string>x of y</string>
</property>
</widget>
</item>
</layout>
</item>
</layout>
</item> </item>
<item> <item>
<spacer name="verticalSpacer_2"> <spacer name="verticalSpacer_2">
@@ -193,6 +224,13 @@
</property> </property>
</spacer> </spacer>
</item> </item>
<item alignment="Qt::AlignHCenter">
<widget class="QCheckBox" name="cbLoop">
<property name="text">
<string>Loop Sequence</string>
</property>
</widget>
</item>
<item alignment="Qt::AlignHCenter"> <item alignment="Qt::AlignHCenter">
<widget class="QLabel" name="label_4"> <widget class="QLabel" name="label_4">
<property name="text"> <property name="text">
@@ -219,34 +257,77 @@
</property> </property>
</spacer> </spacer>
</item> </item>
<item alignment="Qt::AlignHCenter">
<widget class="QLabel" name="label_5">
<property name="text">
<string>ID Filtering:</string>
</property>
</widget>
</item>
<item> <item>
<widget class="QListWidget" name="listID"/> <layout class="QHBoxLayout" name="horizontalLayout_5">
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout_3">
<item> <item>
<widget class="QPushButton" name="btnSelectAll"> <layout class="QVBoxLayout" name="verticalLayout_5">
<property name="text"> <item>
<string>Select all IDs</string> <widget class="QLabel" name="label_6">
</property> <property name="text">
</widget> <string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Playback Sequence:&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property>
</widget>
</item>
<item>
<widget class="QTableWidget" name="tblSequence"/>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout_8">
<item>
<widget class="QPushButton" name="btnLoadFile">
<property name="text">
<string>Load File</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="btnLoadLive">
<property name="text">
<string>Load Captured Data</string>
</property>
</widget>
</item>
</layout>
</item>
</layout>
</item> </item>
<item> <item>
<widget class="QPushButton" name="btnSelectNone"> <layout class="QVBoxLayout" name="verticalLayout_4">
<property name="text"> <item>
<string>Deselect all IDs</string> <widget class="QLabel" name="label_5">
</property> <property name="text">
</widget> <string>ID Filtering:</string>
</property>
</widget>
</item>
<item>
<widget class="QListWidget" name="listID"/>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout_6">
<item>
<widget class="QPushButton" name="btnSelectAll">
<property name="text">
<string>Select all IDs</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="btnSelectNone">
<property name="text">
<string>Deselect all IDs</string>
</property>
</widget>
</item>
</layout>
</item>
</layout>
</item> </item>
</layout> </layout>
</item> </item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout_3"/>
</item>
</layout> </layout>
</widget> </widget>
<resources> <resources>