예제 #1
0
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);
    }
}
예제 #2
0
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);
    }


}