void RxDev::on_pushButton_managerNodelet_clicked() { NodeItem * newNode; newNode = new NodeItem("","nodelet",QStringList(),QStringList(),QStringList(),QStringList()); newNode->setType("nodelet"); newNode->setArgs("manager"); newNode->setLocation(findSpace(QPoint(0,55))); newNode->setColor(Qt::yellow); newNode->setPos(findSpace(QPoint(0,55))); if (newNode->getNodeData()==true){ scene->addItem(newNode); } }
void RxDev::on_pushButton_blankNode_clicked() { NodeItem * newNode; newNode = new NodeItem("","",QStringList(),QStringList(),QStringList(),QStringList()); newNode->setType("_blank_node"); newNode->setLocation(findSpace(QPoint(0,55))); newNode->setColor(Qt::yellow); newNode->setPos(findSpace(QPoint(0,55))); if (newNode->getNodeData()==true){ scene->addItem(newNode); } }