]> SALOME platform Git repositories - modules/geom.git/blobdiff - src/AdvancedGUI/AdvancedGUI_PipeTShapeDlg.h
Salome HOME
Merge from V6_main 15/03/2013
[modules/geom.git] / src / AdvancedGUI / AdvancedGUI_PipeTShapeDlg.h
index 04147ea96baddf708b1d655578395b43990406dc..670c2f9d062893f1dd386708fef56574846f325b 100644 (file)
@@ -15,7 +15,6 @@
 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
 //
 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
-//
 
 #ifndef ADVANCEDGUI_PIPETSHAPEDLG_H
 #define ADVANCEDGUI_PIPETSHAPEDLG_H
 class DlgRef_1Spin;
 class DlgRef_2Spin;
 class DlgRef_3Spin;
+class DlgRef_4Spin;
 class DlgRef_3Sel;
 class DlgRef_6Sel;
 class QCheckBox;
 class QLineEdit;
 class QLabel;
+class QGridLayout;
+class QGroupBox;
+class SalomeApp_DoubleSpinBox;
+
+//=================================================================================
+// class    : AdvancedGUI_4Spin
+// purpose  :
+//=================================================================================
+class AdvancedGUI_4Spin : public QWidget
+{
+  Q_OBJECT
+
+ public:
+  AdvancedGUI_4Spin ();
+  ~AdvancedGUI_4Spin();
+
+ public:
+  QGroupBox *GroupBox1;
+  QGridLayout *gridLayout1;
+
+  QLabel *TextLabel1;
+  QLabel *TextLabel2;
+  QLabel *TextLabel3;
+  QLabel *TextLabel4;
+  SalomeApp_DoubleSpinBox *SpinBox1;
+  SalomeApp_DoubleSpinBox *SpinBox2;
+  SalomeApp_DoubleSpinBox *SpinBox3;
+  SalomeApp_DoubleSpinBox *SpinBox4;
+};
 
 //=================================================================================
 // class    : AdvancedGUI_PipeTShapeDlg
 // purpose  :
 //=================================================================================
-class AdvancedGUI_PipeTShapeDlg: public GEOMBase_Skeleton {
-Q_OBJECT
+class AdvancedGUI_PipeTShapeDlg: public GEOMBase_Skeleton
+{
+  Q_OBJECT
 
 public:
-       AdvancedGUI_PipeTShapeDlg(GeometryGUI*, QWidget* = 0);
-       ~AdvancedGUI_PipeTShapeDlg();
+  AdvancedGUI_PipeTShapeDlg (GeometryGUI*, QWidget* = 0);
+  ~AdvancedGUI_PipeTShapeDlg();
 
 protected:
-       // redefined from GEOMBase_Helper
-       virtual GEOM::GEOM_IOperations_ptr createOperation();
-       virtual bool isValid(QString&);
-       virtual bool execute(ObjectList&);
-       virtual void restoreSubShapes(SALOMEDS::Study_ptr, SALOMEDS::SObject_ptr);
+  // redefined from GEOMBase_Helper
+  virtual GEOM::GEOM_IOperations_ptr createOperation();
+  virtual bool isValid (QString&);
+  virtual bool execute (ObjectList&);
+  virtual void restoreSubShapes (SALOMEDS::Study_ptr, SALOMEDS::SObject_ptr);
 
 private:
-       void Init();
-       void enterEvent(QEvent*);
-    void resizeEvent(QResizeEvent *event);
-    void updateTshapeScreenshotLabel();
-       bool CheckCompatiblePosition(GEOM::GEOM_Object_var theP1, 
-                                 GEOM::GEOM_Object_var theP2,
-                                 GEOM::GEOM_Object_var theP3, double theTolerance);
+  void Init();
+  void enterEvent (QEvent*);
+  void resizeEvent (QResizeEvent *event);
+  void updateLabelImgPipeTShape();
+  bool CheckCompatiblePosition (GEOM::GEOM_Object_var theP1, 
+                                GEOM::GEOM_Object_var theP2,
+                                GEOM::GEOM_Object_var theP3, double theTolerance);
 
 private:
-       QPixmap imagePipeTShape;
-    QLabel* tshapeScreenShotLabel;
-       DlgRef_3Spin* MainTubeGroupParams;
-       DlgRef_3Spin* IncidentTubeGroupParams;
-       DlgRef_2Spin* ChamferGroupParams;
-       DlgRef_1Spin* FilletGroupParams;
-       DlgRef_6Sel*  JunctionPointsSel;
-    QPixmap imageImp;
-    QString CssNormal, CssAcceptable, CssRefused;
-       QCheckBox* HexMeshCheckBox;
-       GEOM::GEOM_Object_var myPoint1, myPoint2, myPoint3;
-       bool myOkPoint1, myOkPoint2, myOkPoint3;
-       bool isPreview;
-       ObjectList pipeTShapeGroupObjects;
+  QPixmap imagePipeTShape;
+  QPixmap imageReduction;
+  QLabel* LabelImgPipeTShape;
+  QLabel* LabelImgReduction;
+
+  // Main parameters
+  DlgRef_3Spin* MainTubeGroupParams;
+  DlgRef_3Spin* IncidentTubeGroupParams;
+  DlgRef_2Spin* ChamferGroupParams;
+  DlgRef_1Spin* FilletGroupParams;
+  QCheckBox*    HexMeshCheckBox;
+
+  // Thickness reduction parameters
+  AdvancedGUI_4Spin* LReductionGroupParams;
+  AdvancedGUI_4Spin* RReductionGroupParams;
+  AdvancedGUI_4Spin* IReductionGroupParams;
+
+  // Position parameters
+  DlgRef_6Sel* JunctionPointsSel;
+
+  QString CssNormal, CssAcceptable, CssRefused;
+  GEOM::GEOM_Object_var myPoint1, myPoint2, myPoint3;
+  bool myOkPoint1, myOkPoint2, myOkPoint3;
+  ObjectList pipeTShapeGroupObjects;
 
 private slots:
-       void ClickOnOk();
-       bool ClickOnApply();
-       void ActivateThisDialog();
-       void SelectionIntoArgument();
-       void SetEditCurrentArgument();
-       void DisplayPreview(const bool activate = false, const bool update = true,
-                       const bool toRemoveFromEngine = true, const double lineWidth = -1,
-                       const int displayMode = -1, const int color = -1);
-       virtual void processPreview();
-       void SetPosition(bool);
-       void ChamferOrFillet(bool);
-       void SetDoubleSpinBoxStep(double);
-       void ValueChangedInSpinBox( double );
-       void UpdatePicture(QWidget* old, QWidget* now);
-    void ApplyNewDimensions();
-    bool executeNoCheck( ObjectList& objects );
+  void ClickOnOk();
+  bool ClickOnApply();
+  void ActivateThisDialog();
+  void currentChanged (int);
+  void SelectionIntoArgument();
+  void SetEditCurrentArgument();
+  void DisplayPreview (const bool activate = false, const bool update = true,
+                       const bool toRemoveFromEngine = true, const double lineWidth = -1,
+                       const int displayMode = -1, const int color = -1);
+  virtual void processPreview();
+  void SetPosition (bool);
+  void ChamferOrFillet (bool);
+  void SetDoubleSpinBoxStep (double);
+  void ValueChangedInSpinBox (double);
+  void UpdatePicture (QWidget* old, QWidget* now);
+  void ApplyNewDimensions();
+  bool executeNoCheck (ObjectList& objects);
 };
 
 #endif // ADVANCEDGUI_PIPETSHAPEDLG_H