]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
rnc : small bug fix
authorgdd <gdd>
Fri, 7 Oct 2011 12:13:22 +0000 (12:13 +0000)
committergdd <gdd>
Fri, 7 Oct 2011 12:13:22 +0000 (12:13 +0000)
src/EntityGUI/EntityGUI_FeatureDetectorDlg.cxx

index bf9346bcb843e4e2a3e68f0210a9e8b2185bc7ea..99eaa3e39bbc33edc1e4c10c0eb70a39349bd7ea 100644 (file)
@@ -143,6 +143,8 @@ EntityGUI_FeatureDetectorDlg::EntityGUI_FeatureDetectorDlg( GeometryGUI* theGeom
   myViewButtonGroup->addButton( myViewGroup->RadioButton2, YZ ); // Front View
   myViewButtonGroup->addButton( myViewGroup->RadioButton3, XZ ); // Left View
   
+  myViewGroup->hide();
+  
   mySelectionGroup = new QGroupBox(tr("GEOM_DETECT"), centralWidget());
   QGridLayout* mySelectGrpLayout = new QGridLayout(mySelectionGroup);
   myPushButton = new QPushButton(mySelectionGroup);
@@ -280,6 +282,12 @@ void EntityGUI_FeatureDetectorDlg::Init()
   myConstructorId = 0;
   myPushButton1->setDown(true);
   
+  mySelButton->click();
+  mySelButton->setDown(true);
+  
+//   SetEditCurrentArgument();
+  SelectionIntoArgument();
+  
   myX2->setEnabled(false);
   myY2->setEnabled(false);
   myZ2->setEnabled(false);
@@ -347,6 +355,8 @@ void EntityGUI_FeatureDetectorDlg::SetEditCurrentArgument()
     myEditCurrentArgument = myLineEdit;
     myLineEdit->setEnabled(true);
   }
+  else 
+    myLineEdit->setEnabled(false);
   send->setDown(true);
 }
 
@@ -356,6 +366,9 @@ void EntityGUI_FeatureDetectorDlg::SetEditCurrentArgument()
 //=================================================================================
 void EntityGUI_FeatureDetectorDlg::SelectionIntoArgument()
 {
+  if (!myEditCurrentArgument->isEnabled())
+    return;
+  
   myEditCurrentArgument->setText( "" );
 
   LightApp_SelectionMgr* aSelMgr = myGeomGUI->getApp()->selectionMgr();