Salome HOME
NRI : Merge from V1_2.
[modules/superv.git] / src / SUPERVGUI / SUPERVGUI_Service.cxx
index f9cb9e9acfad155b3ae05e1466ef796682309e79..2b13b08f9d0f466ae2a8f7347aa5b00664b542c5 100644 (file)
@@ -129,9 +129,11 @@ SUPERVGUI_Service::SUPERVGUI_Service(SALOME_NamingService* ns):
 
   QPushButton* aComputeCBtn = new QPushButton(tr("TIT_ADDCNODE"), aCorbaPane); //!!
   connect(aComputeCBtn, SIGNAL(clicked()), this, SLOT(addComputeNode())); //!!
+  aComputeCBtn->setDefault(false); 
 
   QPushButton* aComputeBtn = new QPushButton(tr("TIT_ADDFNODE"), aCorbaPane);
   connect(aComputeBtn, SIGNAL(clicked()), this, SLOT(addFactoryNode()));
+  aComputeBtn->setDefault(true); 
 
   aBaseLayout->addWidget(aComputeBtn);
   aBaseLayout->addWidget(aComputeCBtn); //!!
@@ -411,7 +413,7 @@ void SUPERVGUI_Service::addInlineNode() {
        aEndNode->Coords(myX + LABEL_WIDTH*2, myY);
        myX += NODE_DX;
        myY += NODE_DY;
-       aMain->addControlNode(SUPERV::CNode::_narrow(aStartNode), SUPERV::CNode::_narrow(aEndNode));
+       aMain->addControlNode(SUPERV::CNode::_narrow(aStartNode), SUPERV::CNode::_narrow(aEndNode), true);
       }
       break;
       
@@ -430,7 +432,7 @@ void SUPERVGUI_Service::addInlineNode() {
        aEndNode->Coords(myX + LABEL_WIDTH*2, myY);
        myX += NODE_DX;
        myY += NODE_DY;
-       aMain->addControlNode(SUPERV::CNode::_narrow(aStartNode), SUPERV::CNode::_narrow(aEndNode));
+       aMain->addControlNode(SUPERV::CNode::_narrow(aStartNode), SUPERV::CNode::_narrow(aEndNode), true);
       }
       break;