]> SALOME platform Git repositories - modules/hydro.git/commitdiff
Salome HOME
Fix for the bug #42: point C is not activated, but point C is shown in preview in...
authorrkv <rkv@opencascade.com>
Thu, 5 Dec 2013 08:10:35 +0000 (08:10 +0000)
committerrkv <rkv@opencascade.com>
Thu, 5 Dec 2013 08:10:35 +0000 (08:10 +0000)
src/HYDROGUI/HYDROGUI_ImportImageDlg.cxx

index 30c6a9f9306ac4d4ddc0238e15c694301660891d..8ad7fb6b57f47b38926e1b81794f6445dc0fcaa1 100644 (file)
@@ -371,9 +371,24 @@ void HYDROGUI_ImportImageDlg::reset()
   
   // Emulate turning off C point usage
   myPointCEnabler->blockSignals( true );
-  myPointCEnabler->setChecked( true );
+  
+  myPointCEnabler->setChecked( false );
+  myPointBtnMap[ HYDROGUI_PrsImage::PointC ]->setEnabled( false );
+  myPointXMap[ HYDROGUI_PrsImage::PointC ]->setEnabled( false );
+  myPointYMap[ HYDROGUI_PrsImage::PointC ]->setEnabled( false );
+  myPointXDegMap[ HYDROGUI_PrsImage::PointC ]->setEnabled( false );
+  myPointYDegMap[ HYDROGUI_PrsImage::PointC ]->setEnabled( false );
+  myPointXMinMap[ HYDROGUI_PrsImage::PointC ]->setEnabled( false );
+  myPointYMinMap[ HYDROGUI_PrsImage::PointC ]->setEnabled( false );
+  myPointXSecMap[ HYDROGUI_PrsImage::PointC ]->setEnabled( false );
+  myPointYSecMap[ HYDROGUI_PrsImage::PointC ]->setEnabled( false );
+  myCartPointXMap[ HYDROGUI_PrsImage::PointC ]->setEnabled( false );
+  myCartPointYMap[ HYDROGUI_PrsImage::PointC ]->setEnabled( false );
+  myRefPointXMap[ HYDROGUI_PrsImage::PointC ]->setEnabled( false );
+  myRefPointYMap[ HYDROGUI_PrsImage::PointC ]->setEnabled( false );
+  onSetCIsUsed( false );
+
   myPointCEnabler->blockSignals( false );
-  myPointCEnabler->toggle();
   
   myTransformGroup->setEnabled( false );
   myRefImage->clear();