Salome HOME
SMH: 3.0.0 preparation - merged and adopted version (POLYWORK+HEAD)
[modules/visu.git] / src / VISUGUI / VisuGUI_CutLinesDlg.h
index d9f3d9b95f937042b4f5ad08dd28b9787b03e505..c33b15669dec0241fb601b5657ec135529b2f25a 100644 (file)
@@ -16,6 +16,8 @@
 #include <qhbuttongroup.h>
 #include <qvalidator.h>
 
+class SUIT_ViewManager;
+
 namespace VISU{
   class CutLines_i;
 }
@@ -25,11 +27,11 @@ class VisuGUI_CutLinesDlg: public QDialog
     Q_OBJECT
 
 public:
-    VisuGUI_CutLinesDlg(bool theIsCreation);
+    VisuGUI_CutLinesDlg (QWidget* parent, bool theIsCreation = true, bool theIsModal = true);
     ~VisuGUI_CutLinesDlg();
 
-    void initFromPrsObject(VISU::CutLines_i* thePrs);
-    int storeToPrsObject(VISU::CutLines_i* thePrs);
+    void initFromPrsObject (VISU::CutLines_i* thePrs);
+    int  storeToPrsObject (VISU::CutLines_i* thePrs);
 
     bool isGenerateTable() { return myCreateTable->isChecked(); }
     bool isGenerateCurves() { return myCreateTable->isChecked() && myCurvesCheck->isChecked(); }
@@ -39,40 +41,39 @@ protected slots:
   void reject();
 
 private slots:
-  void onPlaneSelect(int theId);
-  void onCutSelect(int theId, bool theUpdate = true);
-  void setBaseDefault(bool theUpdate = true);
-  void setDefaultint all = -1);
+  void onPlaneSelect (int theId);
+  void onCutSelect (int theId, bool theUpdate = true);
+  void setBaseDefault (bool theUpdate = true);
+  void setDefault (int all = -1);
   void DrawTable();
-  void onValueChanged(int theRow, int theCol);
-  void onPreviewCheck(bool thePreview);
-  void onRotation(double theValue);
-  void onPlanePos(const QString& theValue);
-  void onFrameActivated(QAD_StudyFrame* );
+  void onValueChanged (int theRow, int theCol);
+  void onPreviewCheck (bool thePreview);
+  void onRotation (double theValue);
+  void onPlanePos (const QString& theValue);
+  //jfa tmp:void onWindowActivated (SUIT_ViewWindow*);
 
 private:
   void createPlanes();
   void deletePlanes();
 
-
   QHButtonGroup* mySelPlane;
-  QAD_SpinBoxDbl* myRotXSpn;
-  QAD_SpinBoxDbl* myRotYSpn;
+  QtxDblSpinBox* myRotXSpn;
+  QtxDblSpinBox* myRotYSpn;
   QLabel* myRotXLbl;
   QLabel* myRotYLbl;
-  QAD_SpinBoxDbl* myPosSpn;
+  QtxDblSpinBox* myPosSpn;
   QLineEdit* myBasePlanePos;
   QCheckBox* myCBSetDef;
   QCheckBox* myCreateTable;
   QCheckBox* myCurvesCheck;
 
-  QHButtonGroup* mySelPlane2;  
-  QAD_SpinBoxDbl* myNbSpn;
-  QAD_SpinBoxDbl* myRotXSpn2;
-  QAD_SpinBoxDbl* myRotYSpn2;
+  QHButtonGroup* mySelPlane2;
+  QtxDblSpinBox* myNbSpn;
+  QtxDblSpinBox* myRotXSpn2;
+  QtxDblSpinBox* myRotYSpn2;
   QLabel* myRotXLbl2;
   QLabel* myRotYLbl2;
-  QAD_SpinBoxDbl* myPosSpn2;
+  QtxDblSpinBox* myPosSpn2;
   QTable* myPosTable;
   bool hasInit;
 
@@ -81,17 +82,17 @@ private:
 
   VisuGUI_ScalarBarPane* myScalarPane;
 
-  VISU::CutPlanes::Orientation  getOrientaion(bool IsBasePlane = true);
-  void   setOrientation( const VISU::CutPlanes::Orientation orient);
-  void   setOrientation2( const VISU::CutPlanes::Orientation orient);
+  VISU::CutPlanes::Orientation getOrientaion (bool IsBasePlane = true);
+  void setOrientation (const VISU::CutPlanes::Orientation orient);
+  void setOrientation2 (const VISU::CutPlanes::Orientation orient);
+
   SALOME_Actor* myPreviewActor;
   QCheckBox* myPreviewCheck;
-  
+
   VISU::CutLines_i* myPrs;
 
-  QAD_Study *myStudy;
-  QAD_StudyFrame *myStudyFrame;
+  //jfa tmp:SUIT_ViewManager *myMgr;
+  //jfa tmp:SUIT_ViewWindow *myStudyWnd;
 
   bool myIsCreation;
 
@@ -99,4 +100,3 @@ private:
   static bool MYGenerateCurve;
 };
 #endif // VISUGUI_CUTLINESDLG_H
-