add extended addressing to iso tp window

This commit is contained in:
Ubuntu
2017-10-15 09:17:48 -07:00
parent 03776b6ad7
commit 4e645a8674
3 changed files with 18 additions and 2 deletions
+7
View File
@@ -28,6 +28,7 @@ ISOTP_InterpreterWindow::ISOTP_InterpreterWindow(const QVector<CANFrame> *frames
connect(ui->tableIsoFrames, &QTableWidget::itemSelectionChanged, this, &ISOTP_InterpreterWindow::showDetailView);
connect(ui->btnClearList, &QPushButton::clicked, this, &ISOTP_InterpreterWindow::clearList);
connect(ui->cbUseExtendedAddressing, SIGNAL(toggled(bool)), this, SLOT(useExtendedAddressing(bool)));
QStringList headers;
headers << "Timestamp" << "ID" << "Bus" << "Dir" << "Length" << "Data";
@@ -132,6 +133,12 @@ void ISOTP_InterpreterWindow::clearList()
//idFilters.clear();
}
void ISOTP_InterpreterWindow::useExtendedAddressing(bool checked)
{
decoder->setExtendedAddressing(checked);
this->interpretCapturedFrames();
}
void ISOTP_InterpreterWindow::updatedFrames(int numFrames)
{
if (numFrames == -1) //all frames deleted. Kill the display
+2
View File
@@ -30,6 +30,7 @@ private slots:
void filterAll();
void filterNone();
void interpretCapturedFrames();
void useExtendedAddressing(bool checked);
private:
Ui::ISOTP_InterpreterWindow *ui;
@@ -43,6 +44,7 @@ private:
void closeEvent(QCloseEvent *event);
void readSettings();
void writeSettings();
};
#endif // ISOTP_INTERPRETERWINDOW_H