Additional implementation of DBC editor
This commit is contained in:
+11
-1
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user