| 64 | } |
| 65 | |
| 66 | void SignalViewerWindow::processFrame(CANFrame &frame) |
| 67 | { |
| 68 | QString sigString; |
| 69 | DBC_SIGNAL *sig; |
| 70 | for (int i = 0; i < signalList.count(); i++) |
| 71 | { |
| 72 | sig = signalList.at(i); |
| 73 | if (!sig) return; |
| 74 | if (sig->parentMessage->ID == frame.ID) |
| 75 | { |
| 76 | if (sig->processAsText(frame, sigString, false)) //if true we could interpret the signal so update it in the list |
| 77 | { |
| 78 | QTableWidgetItem *item = ui->tableViewer->item(i, 1); |
| 79 | if (!item) |
| 80 | { |
| 81 | item = new QTableWidgetItem(sigString); |
| 82 | ui->tableViewer->setItem(i, 1, item); |
| 83 | } |
| 84 | else item->setText(sigString); |
| 85 | } |
| 86 | } |
| 87 | } |
| 88 | } |
| 89 | |
| 90 | void SignalViewerWindow::removeSelectedSignal() |
| 91 | { |
nothing calls this directly
no test coverage detected