Salome HOME
Fix for PAL10496.
[modules/smesh.git] / src / SMESHGUI / SMESHGUI_AddMeshElementDlg.h
index 4a785bbc57009c607117c17a6a806804c9d48801..f092954215dfe002f5a7f391cd594395ddba41a0 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,7 +29,7 @@
 #ifndef DIALOGBOX_ADD_FACE_H
 #define DIALOGBOX_ADD_FACE_H
 
-#include "SALOME_Selection.h"
+#include "LightApp_SelectionMgr.h"
 
 #include "SMDSAbs_ElementType.hxx"
 
@@ -51,6 +51,8 @@ class QCheckBox;
 class SMESHGUI;
 class SMESH_Actor;
 class SMDS_Mesh;
+class SVTK_ViewWindow;
+class SVTK_Selector;
 
 namespace SMESH{
   struct TElementSimulation;
@@ -69,33 +71,35 @@ class SMESHGUI_AddMeshElementDlg : public QDialog
     Q_OBJECT
 
 public:
-    SMESHGUI_AddMeshElementDlg( QWidget* parent = 0, const char* name = 0,
-                               SALOME_Selection* Sel = 0, 
+    SMESHGUI_AddMeshElementDlg( SMESHGUI*,
+                               const char* = 0, 
                                 SMDSAbs_ElementType ElementType = SMDSAbs_Edge,
                                int nbNodes = 2, bool modal = FALSE, WFlags fl = 0 );
     ~SMESHGUI_AddMeshElementDlg();
 
 private:
-
-    void Init( SALOME_Selection* Sel ) ;
-    void closeEvent( QCloseEvent* e ) ;
-    void hideEvent ( QHideEvent * );                 /* ESC key */
-    void enterEvent ( QEvent * ) ;                   /* mouse enter the QWidget */
+    void Init ();
+    void closeEvent (QCloseEvent*);
+    void hideEvent (QHideEvent*);                 /* ESC key */
+    void enterEvent (QEvent*);                    /* mouse enter the QWidget */
+    void keyPressEvent(QKeyEvent*);
     void displaySimulation();
 
-    SMESHGUI*              mySMESHGUI ;              /* Current SMESHGUI object */
-    SALOME_Selection*      mySelection ;             /* User shape selection */
-    bool                   myOkNodes ;               /* to check when arguments is defined */
-    bool                   myBusy;
+    SMESHGUI*                   mySMESHGUI;              /* Current SMESHGUI object */
+    LightApp_SelectionMgr*      mySelectionMgr;          /* User shape selection */
+    int                         myNbOkNodes;               /* to check when arguments is defined */
+    bool                        myBusy;
+    SVTK_Selector*              mySelector;
 
-    QLineEdit*             myEditCurrentArgument;    /* Current  LineEdit */
+    QLineEdit*                  myEditCurrentArgument;   /* Current  LineEdit */
 
-    int                             myElementType ;
-    int                             myNbNodes;
+    int                         myElementType;
+    int                         myNbNodes;
+    bool                        myIsPoly;
 
-    SMESH::SMESH_Mesh_var           myMesh;
-    SMESH_Actor*                    myActor;
-    SMESH::TElementSimulation*      mySimulation;
+    SMESH::SMESH_Mesh_var       myMesh;
+    SMESH_Actor*                myActor;
+    SMESH::TElementSimulation*  mySimulation;
     
     QButtonGroup* GroupConstructors;
     QRadioButton* Constructor1;
@@ -103,6 +107,7 @@ private:
     QPushButton * buttonOk;
     QPushButton * buttonCancel;
     QPushButton * buttonApply;
+    QPushButton * buttonHelp;
     QGroupBox   * GroupC1;
     QLabel      * TextLabelC1A1;
     QPushButton * SelectButtonC1A1;
@@ -110,11 +115,14 @@ private:
 
     QCheckBox   * Reverse;
 
+    QString       myHelpFileName;
+
 private slots:
 
     void ClickOnOk();
     void ClickOnCancel();
     void ClickOnApply();
+    void ClickOnHelp();
     void SetEditCurrentArgument() ;
     void SelectionIntoArgument() ;
     void DeactivateActiveDialog() ;