Salome HOME
Fix for Bug IPAL8945
[modules/visu.git] / src / VISUGUI / VisuGUI_IsoSurfacesDlg.h
index 158f1a12e7baf7d040b90090f3bf717d43027984..dc0547f1d6a78e24e856b22e7a2ddd18b66aa20d 100644 (file)
@@ -1,28 +1,28 @@
 //  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_IsoSurfacesDlg.h
-//  Author : Laurent CORNABE & Hubert ROLLAND 
+//  Author : Laurent CORNABE & Hubert ROLLAND
 //  Module : VISU
 //  $Header$
 
 #include <qcheckbox.h>
 #include <qlineedit.h>
 
-
+class SalomeApp_Module;
 
 class VisuGUI_IsoSurfPane : public QVBox
 {
-    Q_OBJECT
+  Q_OBJECT;
 
-public:
-    VisuGUI_IsoSurfPane(QWidget* parent);
-    ~VisuGUI_IsoSurfPane() {};
+ public:
+  VisuGUI_IsoSurfPane (QWidget* parent);
+  ~VisuGUI_IsoSurfPane() {};
 
-    void initFromPrsObject(VISU::IsoSurfaces_i* thePrs);
-    int storeToPrsObject(VISU::IsoSurfaces_i* thePrs);
+  void initFromPrsObject(VISU::IsoSurfaces_i* thePrs);
+  int storeToPrsObject(VISU::IsoSurfaces_i* thePrs);
 
-    void setScalarBarPane(VisuGUI_ScalarBarPane* theScalarPane) {myScalarPane = theScalarPane;}
-    VisuGUI_ScalarBarPane* getScalarBarPane() {return myScalarPane;}      
+  void setScalarBarPane(VisuGUI_ScalarBarPane* theScalarPane) {myScalarPane = theScalarPane;}
+  VisuGUI_ScalarBarPane* getScalarBarPane() {return myScalarPane;}
 
-    bool check();
+  bool check();
 
-protected slots:
+ protected slots:
   void onCBUpdate();
-   
-private:
+
+ private:
   QLineEdit* MinIso;
   QLineEdit* MaxIso;
   QSpinBox*  NbrIso;
-  //QCheckBox* CBUpdate;
-  VisuGUI_ScalarBarPane* myScalarPane;  
-  //  QCheckBox* CBLog;
+  VisuGUI_ScalarBarPane* myScalarPane;
 };
 
 
+class VisuGUI_IsoSurfacesDlg : public QDialog
+{
+  Q_OBJECT;
 
+ public:
+  VisuGUI_IsoSurfacesDlg (SalomeApp_Module* theModule);
+  ~VisuGUI_IsoSurfacesDlg() {};
 
-class VisuGUI_IsoSurfacesDlg : public QDialog
-{ 
-    Q_OBJECT
-
-public:
-    VisuGUI_IsoSurfacesDlg();
-    ~VisuGUI_IsoSurfacesDlg() {};
-    
-    void initFromPrsObject(VISU::IsoSurfaces_i* thePrs) 
-      {myScalarPane->initFromPrsObject(thePrs); myIsoPane->initFromPrsObject(thePrs);}
-
-    int storeToPrsObject(VISU::IsoSurfaces_i* thePrs)
-      {return myScalarPane->storeToPrsObject(thePrs) && myIsoPane->storeToPrsObject(thePrs);}
-    
-protected slots:
+  void initFromPrsObject(VISU::IsoSurfaces_i* thePrs)
+    {myScalarPane->initFromPrsObject(thePrs); myIsoPane->initFromPrsObject(thePrs);}
+
+  int storeToPrsObject(VISU::IsoSurfaces_i* thePrs)
+    {return myScalarPane->storeToPrsObject(thePrs) && myIsoPane->storeToPrsObject(thePrs);}
+
+ protected slots:
   void accept();
-   
-private:
- VisuGUI_IsoSurfPane*   myIsoPane;
- VisuGUI_ScalarBarPane* myScalarPane;
+  void reject();
+
+ private:
+  VisuGUI_IsoSurfPane*   myIsoPane;
+  VisuGUI_ScalarBarPane* myScalarPane;
 };
 
 #endif // VISUGUI_ISOSURFACESDLG_H