]> SALOME platform Git repositories - plugins/blsurfplugin.git/commitdiff
Salome HOME
Deactivate the selection input when an enforced vertex is created.
authorgdd <gdd>
Wed, 2 Feb 2011 17:14:17 +0000 (17:14 +0000)
committergdd <gdd>
Wed, 2 Feb 2011 17:14:17 +0000 (17:14 +0000)
src/GUI/BLSURFPluginGUI_HypothesisCreator.cxx

index 6c5a84a5363b36d0ca26101da77aa42af539a4ea..a21c1536eca527b3f6987b085ffb80244658a4bc 100644 (file)
@@ -906,6 +906,8 @@ QFrame* BLSURFPluginGUI_HypothesisCreator::buildFrame()
   connect( addVertexButton,    SIGNAL( clicked()),                    this,         SLOT( onAddEnforcedVertices() ) );
   connect( removeVertexButton, SIGNAL( clicked()),                    this,         SLOT( onRemoveEnforcedVertex() ) );
   connect( myEnfVertexWdg,     SIGNAL( contentModified()),            this,         SLOT( onSelectEnforcedVertex() ) );
+//   connect( myEnfVertexWdg,     SIGNAL( selectionActivated()),         this,         SLOT( onVertexSelectionActivated() ) );
+//   connect( myEnfFaceWdg,       SIGNAL( selectionActivated()),         this,         SLOT( onFaceSelectionActivated() ) );
 
   return fr;
 }
@@ -1101,11 +1103,15 @@ This method is called when a item is added into the enforced vertices tree widge
 void BLSURFPluginGUI_HypothesisCreator::onAddEnforcedVertices() {
 //   MESSAGE("BLSURFPluginGUI_HypothesisCreator::onAddEnforcedVertices");
 
+  BLSURFPluginGUI_HypothesisCreator* that = (BLSURFPluginGUI_HypothesisCreator*)this;  
+  
+  that->getGeomSelectionTool()->selectionMgr()->clearFilters();
+  myEnfFaceWdg->deactivateSelection();
+  myEnfVertexWdg->deactivateSelection();
+  
   for (int column = 0; column < myEnforcedTreeWidget->columnCount(); ++column)
     myEnforcedTreeWidget->resizeColumnToContents(column);
   
-
-  BLSURFPluginGUI_HypothesisCreator* that = (BLSURFPluginGUI_HypothesisCreator*)this;
   // Vertex selection
   int selEnfFace   = myEnfFaceWdg->NbObjects();
   int selEnfVertex = myEnfVertexWdg->NbObjects();