Salome HOME
IPAL9285,9292,9314
[modules/visu.git] / src / VISUGUI / VisuGUI_IsoSurfacesDlg.h
index 9f4701760145f71c997a252ba362704d2c4346dd..f3ad7c0bee28f9955a310a3fc3f5b8327f02d1f6 100644 (file)
 #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;
 };
 
 
 class VisuGUI_IsoSurfacesDlg : public QDialog
 {
-    Q_OBJECT
+  Q_OBJECT;
 
-public:
-    VisuGUI_IsoSurfacesDlg(QWidget* parent);
-    ~VisuGUI_IsoSurfacesDlg() {};
+ public:
+  VisuGUI_IsoSurfacesDlg (SalomeApp_Module* theModule);
+  ~VisuGUI_IsoSurfacesDlg() {};
 
-    void initFromPrsObject(VISU::IsoSurfaces_i* thePrs)
-      {myScalarPane->initFromPrsObject(thePrs); myIsoPane->initFromPrsObject(thePrs);}
+  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);}
+  int storeToPrsObject(VISU::IsoSurfaces_i* thePrs)
+    {return myScalarPane->storeToPrsObject(thePrs) && myIsoPane->storeToPrsObject(thePrs);}
 
-protected slots:
+ protected slots:
   void accept();
 
-private:
- VisuGUI_IsoSurfPane*   myIsoPane;
- VisuGUI_ScalarBarPane* myScalarPane;
+ private:
 VisuGUI_IsoSurfPane*   myIsoPane;
 VisuGUI_ScalarBarPane* myScalarPane;
 };
 
 #endif // VISUGUI_ISOSURFACESDLG_H