]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
Fix of INT PAL 0051918: Pipe T-Shape - preview is not updated on Thickness reduction tab
authorakl <akl@opencascade.com>
Tue, 21 May 2013 08:13:45 +0000 (08:13 +0000)
committerakl <akl@opencascade.com>
Tue, 21 May 2013 08:13:45 +0000 (08:13 +0000)
src/AdvancedGUI/AdvancedGUI_PipeTShapeDlg.cxx

index 7b010f484fa72e671ce99a6f4affc8740f08c7b1..748004596dfd58e8b4e26cff5a89162dfe9317a1 100644 (file)
@@ -320,8 +320,25 @@ void AdvancedGUI_PipeTShapeDlg::Init()
   // ChamferOrFillet
   connect(ChamferGroupParams->GroupBox1, SIGNAL(toggled(bool)), this, SLOT(ChamferOrFillet(bool)));
   connect(FilletGroupParams->GroupBox1, SIGNAL(toggled(bool)), this, SLOT(ChamferOrFillet(bool)));
-  // Preview
-  //connect(PreviewPushButton, SIGNAL(clicked()), this, SLOT(DisplayPreview()));
+  // Thickness reduction:
+  //   Left
+  connect(LReductionGroupParams->GroupBox1, SIGNAL(toggled(bool)), this, SLOT(processPreview()));
+  connect(LReductionGroupParams->SpinBox1, SIGNAL(valueChanged(double)), this, SLOT(ValueChangedInSpinBox(double)));
+  connect(LReductionGroupParams->SpinBox2, SIGNAL(valueChanged(double)), this, SLOT(ValueChangedInSpinBox(double)));
+  connect(LReductionGroupParams->SpinBox3, SIGNAL(valueChanged(double)), this, SLOT(ValueChangedInSpinBox(double)));
+  connect(LReductionGroupParams->SpinBox4, SIGNAL(valueChanged(double)), this, SLOT(ValueChangedInSpinBox(double)));
+  //   Right
+  connect(RReductionGroupParams->GroupBox1, SIGNAL(toggled(bool)), this, SLOT(processPreview()));
+  connect(RReductionGroupParams->SpinBox1, SIGNAL(valueChanged(double)), this, SLOT(ValueChangedInSpinBox(double)));
+  connect(RReductionGroupParams->SpinBox2, SIGNAL(valueChanged(double)), this, SLOT(ValueChangedInSpinBox(double)));
+  connect(RReductionGroupParams->SpinBox3, SIGNAL(valueChanged(double)), this, SLOT(ValueChangedInSpinBox(double)));
+  connect(RReductionGroupParams->SpinBox4, SIGNAL(valueChanged(double)), this, SLOT(ValueChangedInSpinBox(double)));
+  //   Incident pipe
+  connect(IReductionGroupParams->GroupBox1, SIGNAL(toggled(bool)), this, SLOT(processPreview()));
+  connect(IReductionGroupParams->SpinBox1, SIGNAL(valueChanged(double)), this, SLOT(ValueChangedInSpinBox(double)));
+  connect(IReductionGroupParams->SpinBox2, SIGNAL(valueChanged(double)), this, SLOT(ValueChangedInSpinBox(double)));
+  connect(IReductionGroupParams->SpinBox3, SIGNAL(valueChanged(double)), this, SLOT(ValueChangedInSpinBox(double)));
+  connect(IReductionGroupParams->SpinBox4, SIGNAL(valueChanged(double)), this, SLOT(ValueChangedInSpinBox(double)));
   // Position
   connect(JunctionPointsSel->GroupBox1, SIGNAL(toggled(bool)), this, SLOT(SetPosition(bool)));
   connect(JunctionPointsSel->PushButton1, SIGNAL(clicked()), this, SLOT(SetEditCurrentArgument()));
@@ -681,6 +698,8 @@ bool AdvancedGUI_PipeTShapeDlg::ClickOnApply()
 
   initName();
 
+  if (!isApplyAndClose())
+    processPreview();
   return true;
 }