Salome HOME
Distributed Geom, Smesh. Modifications by Anthony GEAY.
[modules/smesh.git] / src / SMESHGUI / SMESHGUI_ClippingDlg.h
index 6a2bb493ffffec99751f753d70a0dd25b7a545dd..a0f221bda5b333090b7abe82d1cb74925ecf1044 100644 (file)
@@ -17,7 +17,7 @@
 //  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 
+// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
 //
 //
 //
@@ -29,6 +29,8 @@
 #ifndef DIALOGBOX_CLIPPING_H
 #define DIALOGBOX_CLIPPING_H
 
+#include "SMESH_SMESHGUI.hxx"
+
 #include <SMESHGUI_SpinBox.h>
 
 #include <vtkSmartPointer.h>
@@ -45,18 +47,22 @@ class QPushButton;
 class QTable;
 class QCheckBox;
 class QComboBox;
-class SALOME_Selection;
+
+class LightApp_SelectionMgr;
+class SVTK_Selector;
+
+class SMESHGUI;
 class SMESH_Actor;
 
 class OrientedPlane;
 
 
-namespace SMESH{
-  
+namespace SMESH {
+
   typedef vtkSmartPointer<OrientedPlane> TVTKPlane;
   typedef std::vector<TVTKPlane> TPlanes;
   enum Orientation {XY, YZ, ZX};
-  
+
 };
 
 
@@ -64,31 +70,35 @@ namespace SMESH{
 // class    : SMESHGUI_ClippingDlg
 // purpose  :
 //=================================================================================
-class SMESHGUI_ClippingDlg : public QDialog
-{ 
+class SMESHGUI_EXPORT SMESHGUI_ClippingDlg : public QDialog
+{
     Q_OBJECT
 
 public:
-    SMESHGUI_ClippingDlg( QWidget* parent = 0,
+    SMESHGUI_ClippingDlg (SMESHGUI* theModule,
                          const char* name = 0,
                          bool modal = false,
-                         WFlags fl = 0 );
-
-    float  getDistance()  {return  (float)SpinBoxDistance->GetValue();}
-    void   setDistance( const float theDistance) {SpinBoxDistance->SetValue(theDistance);}
-    double getRotation1() {return SpinBoxRot1->GetValue();}
-    double getRotation2() {return SpinBoxRot2->GetValue();}
-    void   setRotation( const double theRot1, const double theRot2 );
-    void Sinchronize();
-    
+                         WFlags fl = 0);
+
+    float  getDistance()  { return  (float)SpinBoxDistance->GetValue(); }
+    void   setDistance (const float theDistance) { SpinBoxDistance->SetValue(theDistance); }
+    double getRotation1() { return SpinBoxRot1->GetValue(); }
+    double getRotation2() { return SpinBoxRot2->GetValue(); }
+    void   setRotation (const double theRot1, const double theRot2);
+    void   Sinchronize();
+
+    void   keyPressEvent(QKeyEvent*);
+
     ~SMESHGUI_ClippingDlg();
 
 private:
 
-    SALOME_Selection* mySelection;
-    SMESH_Actor*      myActor;
-    SMESH::TPlanes    myPlanes;
-    
+    LightApp_SelectionMgr*  mySelectionMgr;
+    SVTK_Selector*          mySelector;
+    SMESHGUI*               mySMESHGUI;
+    SMESH_Actor*            myActor;
+    SMESH::TPlanes          myPlanes;
+
     QComboBox*        ComboBoxPlanes;
     QPushButton*      buttonNew;
     QPushButton*      buttonDelete;
@@ -105,22 +115,24 @@ private:
     QPushButton*      buttonOk;
     QPushButton*      buttonCancel;
     QPushButton*      buttonApply;
+    QPushButton*      buttonHelp;
 
     bool myIsSelectPlane;
-    
+    QString myHelpFileName;
+
 public slots:
-    
-    void onSelectPlane(int theIndex);
+
+    void onSelectPlane (int theIndex);
     void ClickOnNew();
     void ClickOnDelete();
-    void onSelectOrientation(int theItem);
+    void onSelectOrientation (int theItem);
     void SetCurrentPlaneParam();
     void onSelectionChanged();
-    void OnPreviewToggle(bool theIsToggled);
+    void OnPreviewToggle (bool theIsToggled);
     void ClickOnOk();
     void ClickOnCancel();
     void ClickOnApply();
+    void ClickOnHelp();
 };
 
 #endif // DIALOGBOX_TRANSPARENCYDLG_H
-