Salome HOME
SMH: 3.0.0 preparation - merged and adopted version (POLYWORK+HEAD)
[modules/visu.git] / src / VISUGUI / VisuGUI_CutPlanesDlg.h
index b3ee6eea78a69c459145f984e3bf4258803a6ddc..0fb35b6f88271ce704cff7fb2ca5a1b0a66a48d8 100644 (file)
@@ -1,39 +1,37 @@
 //  VISU VISUGUI : GUI of VISU component
 //
 //  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
-//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
-// 
-//  This library is free software; you can redistribute it and/or 
-//  modify it under the terms of the GNU Lesser General Public 
-//  License as published by the Free Software Foundation; either 
-//  version 2.1 of the License. 
-// 
-//  This library is distributed in the hope that it will be useful, 
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
-//  Lesser General Public License for more details. 
-// 
-//  You should have received a copy of the GNU Lesser General Public 
-//  License along with this library; if not, write to the Free Software 
-//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
-// 
-//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
+//
+//  This library is free software; you can redistribute it and/or
+//  modify it under the terms of the GNU Lesser General Public
+//  License as published by the Free Software Foundation; either
+//  version 2.1 of the License.
+//
+//  This library is distributed in the hope that it will be useful,
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+//  Lesser General Public License for more details.
+//
+//  You should have received a copy of the GNU Lesser General Public
+//  License along with this library; if not, write to the Free Software
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
+//
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org
 //
 //
 //
 //  File   : VisuGUI_CutPlanesDlg.h
-//  Author : Laurent CORNABE & Hubert ROLLAND 
+//  Author : Laurent CORNABE & Hubert ROLLAND
 //  Module : VISU
 //  $Header$
 
 #ifndef VISUGUI_CUTPLANESDLG_H
 #define VISUGUI_CUTPLANESDLG_H
 
-#include "QAD_SpinBoxDbl.h"
-#include "QAD_StudyFrame.h"
-
 #include "VisuGUI_ScalarBarDlg.h"
 #include "VISU_CutPlanes_i.hh"
+
 #include <SALOME_Actor.h>
 
 #include <qradiobutton.h>
 #include "SALOMEconfig.h"
 #include CORBA_CLIENT_HEADER(VISU_Gen)
 
+class QtxDblSpinBox;
+class SUIT_ViewWindow;
+class SUIT_ViewManager;
+
 
 class VisuGUI_CutPlanesPane : public QFrame
 {
     Q_OBJECT
 
 public:
-    VisuGUI_CutPlanesPane(QWidget* theParent, QAD_Study * theStudy);
+    VisuGUI_CutPlanesPane(QWidget* theParent/*, SUIT_ViewManager * theStudy*/);
     ~VisuGUI_CutPlanesPane();
 
     void   setNbPlanes( const int nbp ) {nbPlan->setValue( nbp );}
@@ -70,20 +72,20 @@ private:
     QLabel* LabelRot1;
     QLabel* LabelRot2;
     QSpinBox* nbPlan;
-    QAD_SpinBoxDbl* Rot1;
-    QAD_SpinBoxDbl* Rot2;
+    QtxDblSpinBox* Rot1;
+    QtxDblSpinBox* Rot2;
     QRadioButton* RBzx;
     QRadioButton* RByz;
     QRadioButton* RBxy;
-    QAD_SpinBoxDbl* myPosSpn;
+    QtxDblSpinBox* myPosSpn;
     QTable* myPosTable;
-    VISU::CutPlanes_i* myCutPlanes;  
+    VISU::CutPlanes_i* myCutPlanes;
     QCheckBox* myPreviewCheck;
     double          X1, X2;
     double          Y1, Y2;
     double          Z1, Z2;
     bool hasInit;
-    QAD_Study* myStudy;
+    //SUIT_ViewManager  *myMgr;
 
     //vector<SALOME_Actor*> myPreviewActors;
     SALOME_Actor* myPreviewActor;
@@ -101,11 +103,12 @@ private slots:
 
 
 class VisuGUI_CutPlanesDlg : public QDialog
-{ 
+{
     Q_OBJECT
 
 public:
-    VisuGUI_CutPlanesDlg(bool theIsCreation, bool theIsModal);
+    //VisuGUI_CutPlanesDlg(QWidget* parent, bool theIsCreation = true, bool theIsModal = false);
+    VisuGUI_CutPlanesDlg(QWidget* parent, bool theIsCreation = true, bool theIsModal = true);
     ~VisuGUI_CutPlanesDlg() {};
 
     void initFromPrsObject(VISU::CutPlanes_i* thePrs)
@@ -113,21 +116,21 @@ public:
 
     int storeToPrsObject(VISU::CutPlanes_i* thePrs)
       {return myScalarPane->storeToPrsObject(thePrs) && myCutPane->storeToPrsObject(thePrs);}
-   
+
 protected slots:
   void accept();
   void reject();
-  void onFrameActivated( QAD_StudyFrame* theFrame);
+  void onWindowActivated( SUIT_ViewWindow* );
 
 private:
     VisuGUI_CutPlanesPane* myCutPane;
     VisuGUI_ScalarBarPane* myScalarPane;
     VISU::CutPlanes_i* myPrs;
-    
+
     bool myIsCreation;
 
-    QAD_Study  *myStudy;
-    QAD_StudyFrame *myStudyFrame;
+    //SUIT_ViewManager  *myMgr;
+    //SUIT_ViewWindow   *myStudyWnd;
 };