Salome HOME
NRI : First integration.
[modules/smesh.git] / src / SMESHGUI / SMESHGUI_MeshInfosDlg.h
1 //  File      : SMESHGUI_MeshInfosDlg.h
2 //  Created   : Sat Jun 08 15:31:16 2002
3 //  Author    : Nicolas BARBEROU
4
5 //  Project   : SALOME
6 //  Module    : SMESH
7 //  Copyright : EADS CCR 2002 2002
8 //  $Header$
9
10 #ifndef SMESHGUI_MESHINFOSDLG_H
11 #define SMESHGUI_MESHINFOSDLG_H
12
13 #include "SALOME_Selection.h"
14 #include "QAD_Study.h"
15
16 // IDL Headers
17 #include <SALOMEconfig.h>
18 #include CORBA_SERVER_HEADER(SMESH_Gen)
19 #include CORBA_SERVER_HEADER(SMESH_Mesh)
20
21 // QT Includes
22 #include <qvariant.h>
23 #include <qdialog.h>
24 class QVBoxLayout; 
25 class QHBoxLayout; 
26 class QGridLayout; 
27 class QGroupBox;
28 class QLabel;
29 class QPushButton;
30 class SMESHGUI;
31
32 class SMESHGUI_MeshInfosDlg : public QDialog
33
34     Q_OBJECT
35
36 public:
37     SMESHGUI_MeshInfosDlg( QWidget* parent = 0, const char* name = 0, SALOME_Selection* Sel = 0, bool modal = FALSE, WFlags fl = 0 );
38     ~SMESHGUI_MeshInfosDlg();
39
40 private:
41
42     void Init( SALOME_Selection* Sel ) ;
43     void closeEvent( QCloseEvent* e ) ;
44     void enterEvent ( QEvent * ) ;                /* mouse enter the QWidget */
45     void DumpMeshInfos();
46
47     SMESH::SMESH_Gen_var  myCompMesh ;                
48     SMESHGUI*             mySMESHGUI ;            
49     SMESH::SMESH_Mesh_var myMesh ;            
50     SALOME_Selection*     mySelection ; 
51     SALOMEDS::Study_var   myStudy;
52
53     QGroupBox* GroupBox1;
54     QLabel* TextLabel12;
55     QLabel* TextLabel11;
56     QLabel* TextLabel13;
57     QLabel* TextLabel14;
58     QGroupBox* GroupBox2;
59     QLabel* TextLabel21;
60     QLabel* TextLabel22;
61     QLabel* TextLabel23;
62     QLabel* TextLabel24;
63     QGroupBox* GroupBox3;
64     QLabel* TextLabel31;
65     QLabel* TextLabel32;
66     QLabel* TextLabel33;
67     QLabel* TextLabel34;
68     QPushButton* buttonOk;
69
70 private slots:
71
72     void ClickOnOk();
73     void SelectionIntoArgument() ;
74     void DeactivateActiveDialog() ;
75     void ActivateThisDialog() ;
76
77 protected:
78     QVBoxLayout* SMESHGUI_MeshInfosDlgLayout;
79     QHBoxLayout* Layout1;
80
81 };
82
83 #endif // SMESHGUI_MESHINFOSDLG_H