Added a new window that allows for bisecting a CAN log into pieces along a variety of patterns. Not quite complete but what's there works.

This commit is contained in:
Collin Kidder
2016-12-13 22:38:09 -05:00
parent 8f12802657
commit a5ff16fc20
7 changed files with 456 additions and 3 deletions
+17
View File
@@ -81,6 +81,7 @@ MainWindow::MainWindow(QWidget *parent) :
motorctrlConfigWindow = NULL;
isoWindow = NULL;
snifferWindow = NULL;
bisectWindow = NULL;
dbcHandler = new DBCHandler;
bDirty = false;
inhibitFilterUpdate = false;
@@ -126,6 +127,7 @@ MainWindow::MainWindow(QWidget *parent) :
connect(ui->actionISO_TP_Decoder, &QAction::triggered, this, &MainWindow::showISOInterpreterWindow);
connect(ui->actionSniffer, &QAction::triggered, this, &MainWindow::showSnifferWindow);
connect(ui->actionMotorControlConfig, &QAction::triggered, this, &MainWindow::showMCConfigWindow);
connect(ui->actionCapture_Bisector, &QAction::triggered, this, &MainWindow::showBisectWindow);
connect(CANConManager::getInstance(), &CANConManager::framesReceived, model, &CANFrameModel::addFrames);
@@ -274,6 +276,13 @@ MainWindow::~MainWindow()
snifferWindow = NULL;
}
if (bisectWindow)
{
bisectWindow->close();
delete bisectWindow;
bisectWindow = NULL;
}
delete model;
delete elapsedTime;
delete dbcHandler;
@@ -854,6 +863,14 @@ void MainWindow::showSnifferWindow()
snifferWindow->show();
}
void MainWindow::showBisectWindow()
{
if (!bisectWindow)
{
bisectWindow = new BisectWindow(model->getListReference());
}
bisectWindow->show();
}
void MainWindow::showFrameSenderWindow()
{