// 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 );}
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;
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)
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;
};