Additional implementation of DBC editor

This commit is contained in:
Collin Kidder
2015-06-09 21:29:03 -04:00
parent 27ab4aade7
commit b140737ab7
4 changed files with 26 additions and 7 deletions
+11 -1
View File
@@ -114,7 +114,7 @@ void DBCMainEditor::onCellChangedNode(int row,int col)
qDebug() << "New comment: " << thisNode->comment;
}
}
ui->NodesTable->setCurrentCell(row, col);
}
void DBCMainEditor::onCellChangedMessage(int row,int col)
@@ -243,6 +243,8 @@ void DBCMainEditor::onCellChangedMessage(int row,int col)
{
ui->MessagesTable->insertRow(ui->MessagesTable->rowCount());
}
ui->MessagesTable->setCurrentCell(row, col);
}
void DBCMainEditor::onCellClickedNode(int row, int col)
@@ -284,6 +286,14 @@ void DBCMainEditor::refreshNodesTable()
int rowIdx;
if (dbcHandler->findNodeByName("Vector_XXX") == NULL)
{
DBC_NODE newNode;
newNode.name = "Vector_XXX";
newNode.comment = "Default node if no other node is specified";
dbcHandler->dbc_nodes.append(newNode);
}
for (int x = 0; x < dbcHandler->dbc_nodes.count(); x++)
{
DBC_NODE node = dbcHandler->dbc_nodes.at(x);