Addition of a playback form - used to play back a log file onto one or both canbuses. However, not yet completed (but it won't crash)

This commit is contained in:
Collin Kidder
2015-05-05 23:04:48 -04:00
parent eebcbacfa5
commit fcfdb76225
14 changed files with 349 additions and 6 deletions
+8 -2
View File
@@ -12,11 +12,9 @@ This first order of business is to attempt to gain feature parity (roughly) with
can replace it as a cross platform solution.
Here are things yet to do
- Support saving frames
- Add flow view - ability to see bits change over time
- Ability to send frames via playback mechanism (people use this so get it working!)
- Ability to use programmatic frame sending interface (only I use it and it's complicated but helpful)
*/
@@ -32,6 +30,7 @@ MainWindow::MainWindow(QWidget *parent) :
connect(ui->actionFrame_Data_Analysis, SIGNAL(triggered(bool)), this, SLOT(showFrameDataAnalysis()));
connect(ui->btnClearFrames, SIGNAL(clicked(bool)), this, SLOT(clearFrames()));
connect(ui->actionSave_Log_File, SIGNAL(triggered(bool)), this, SLOT(handleSaveFile()));
connect(ui->action_Playback, SIGNAL(triggered(bool)), this, SLOT(showPlaybackWindow()));
model = new CANFrameModel();
ui->canFramesView->setModel(model);
@@ -60,6 +59,7 @@ MainWindow::MainWindow(QWidget *parent) :
graphingWindow = NULL;
frameInfoWindow = NULL;
playbackWindow = NULL;
}
MainWindow::~MainWindow()
@@ -539,6 +539,12 @@ void MainWindow::showFrameDataAnalysis()
frameInfoWindow->show();
}
void MainWindow::showPlaybackWindow()
{
if (!playbackWindow) playbackWindow = new FramePlaybackWindow(model->getListReference());
playbackWindow->show();
}
void MainWindow::readSerialData()
{
QByteArray data = port->readAll();