]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
Fix of IPAL19278(Number Of Contour is active by Default, but for Surface must be...
authorakl <akl@opencascade.com>
Thu, 20 Mar 2008 08:33:28 +0000 (08:33 +0000)
committerakl <akl@opencascade.com>
Thu, 20 Mar 2008 08:33:28 +0000 (08:33 +0000)
src/VISUGUI/VisuGUI_Plot3DDlg.cxx

index 32a76a7983b197ae23ea7f53e8cc25c4de4f6530..a4fcd7998b609947792cd7b161a9e0ede7c1c93a 100644 (file)
@@ -269,12 +269,12 @@ VisuGUI_Plot3DPane::VisuGUI_Plot3DPane (QWidget* parent)
   bottomLayout->addWidget(PreviewChkB,   3, 0);
 
   // signals and slots connections
-  connect(GBOrientation, SIGNAL(buttonClicked(int)),         this, SLOT(orientationChanged(int)));
+  connect(GBOrientation, SIGNAL(buttonClicked(int)),   this, SLOT(orientationChanged(int)));
   connect(Rot1,          SIGNAL(valueChanged(double)), this, SLOT(updatePreview()));
   connect(Rot2,          SIGNAL(valueChanged(double)), this, SLOT(updatePreview()));
   connect(PositionSpn,   SIGNAL(valueChanged(double)), this, SLOT(onPositionSpn()));
   connect(RelativeChkB,  SIGNAL(toggled(bool)),        this, SLOT(onRelativePos(bool)));
-  connect(GBPrsType,     SIGNAL(buttonClicked(int)),         this, SLOT(onPrsType(int)));
+  connect(GBPrsType,     SIGNAL(buttonClicked(int)),   this, SLOT(onPrsType(int)));
   connect(PreviewChkB,   SIGNAL(toggled(bool)),        this, SLOT(updatePreview()));
 }
 
@@ -448,8 +448,7 @@ void VisuGUI_Plot3DPane::initFromPrsObject(VISU::Plot3D_i* thePrs)
   case VISU::Plot3D::YZ: id = 1; break;
   default: id = 2;
   }
-  GBOrientation->button(id)->setChecked( true );
-  //? orientationChanged(id);
+  GBOrientation->button(id)->click();
 
   // rotation
   Rot1->setValue(thePrs->GetRotateX() * 180./PI);
@@ -465,9 +464,7 @@ void VisuGUI_Plot3DPane::initFromPrsObject(VISU::Plot3D_i* thePrs)
 
   // prs type
   id = thePrs->GetIsContourPrs() ? CONTOUR_PRS_ID : SURFACE_PRS_ID;
-  //GBPrsType->setButton(id);
-  GBPrsType->button(id)->setChecked( true );
-  //onPrsType(id);
+  GBPrsType->button(id)->click();
 
   // nb contours
   NbContoursSpn->setValue(thePrs->GetNbOfContours());
@@ -553,8 +550,7 @@ void VisuGUI_Plot3DPane::setPlane(int theOrientation, double theXRotation, doubl
   case VISU::Plot3D::YZ: id = 1; break;
   default: id = 2;
   }
-  GBOrientation->button(id)->setChecked(true);
-  //orientationChanged(id);
+  GBOrientation->button(id)->click();
   GBoxOrient->setEnabled(false);