Salome HOME
Fix bug 12796: Warning missed for the bad file 'test18.med'
[modules/smesh.git] / src / SMESHGUI / SMESHGUI_MeshPatternDlg.h
index 26a7332365a116fdc5570cd1975e04a196275412..080be328c1913543e72a7013064abe219e076deb 100755 (executable)
@@ -15,7 +15,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
 //
 //
 //
@@ -40,7 +40,7 @@ class QFrame;
 class QLineEdit;
 class SMESHGUI_SpinBox;
 class QPushButton;
-class SALOME_Selection;
+class LightApp_SelectionMgr;
 class QRadioButton;
 class QCheckBox;
 class QButtonGroup;
@@ -51,6 +51,9 @@ class SMESHGUI_CreatePatternDlg;
 class SMESHGUI_PatternWidget;
 class vtkUnstructuredGrid;
 class SALOME_Actor;
+class SVTK_ViewWindow;
+class SVTK_Selector;
+class SMESHGUI;
 
 /*
   Class       : SMESHGUI_MeshPatternDlg
@@ -68,18 +71,18 @@ class SMESHGUI_MeshPatternDlg : public QDialog
   enum { Mesh, Object, Vertex1, Vertex2, Ids };
 
 public:
-                                      SMESHGUI_MeshPatternDlg( QWidget*,
-                                                               SALOME_Selection*,
+                                      SMESHGUI_MeshPatternDlg( SMESHGUI*,
                                                                const char* = 0 );
   virtual                             ~SMESHGUI_MeshPatternDlg();
 
-  void                                Init( SALOME_Selection* );
+  void                                Init();
   
 private slots:
 
   void                                onOk();
   bool                                onApply();
   void                                onClose();
+  void                                onHelp();
 
   void                                onDeactivate();
 
@@ -111,6 +114,7 @@ private:
   QString                             autoExtension( const QString& theFileName ) const;
   void                                closeEvent( QCloseEvent* e ) ;
   void                                enterEvent ( QEvent * ) ;
+  void                                keyPressEvent(QKeyEvent*);
   bool                                isValid( const bool theMess = true );
   void                                resetSelInput();
   bool                                isRefine() const;
@@ -123,6 +127,7 @@ private:
   QPushButton*                        myOkBtn;
   QPushButton*                        myApplyBtn;
   QPushButton*                        myCloseBtn;
+  QPushButton*                        myHelpBtn;
 
   QButtonGroup*                       myTypeGrp;
   QRadioButton*                       mySwitch2d;
@@ -145,13 +150,17 @@ private:
   QPushButton*                        myNewBtn;
 
   QCheckBox*                          myReverseChk;
+  QCheckBox*                          myCreatePolygonsChk;
+  QCheckBox*                          myCreatePolyedrsChk;
   SMESHGUI_PatternWidget*             myPicture2d;
   QFrame*                             myPicture3d;
   QLabel*                             myPreview3d;
 
   QCheckBox*                          myPreviewChk;
-    
-  SALOME_Selection*                   mySelection;
+
+  SMESHGUI*                           mySMESHGUI;
+  SVTK_Selector*                      mySelector;
+  LightApp_SelectionMgr*              mySelectionMgr;
   int                                 mySelInput;
   int                                 myNbPoints;
   int                                 myType;
@@ -165,23 +174,8 @@ private:
   SMESHGUI_CreatePatternDlg*          myCreationDlg;
   SMESH::SMESH_Pattern_var            myPattern;
   SALOME_Actor*                       myPreviewActor;
+
+  QString                             myHelpFileName;
 };
 
 #endif
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-