Salome HOME
Some forgotten return statments
[modules/smesh.git] / src / SMESHGUI / SMESHGUI_MeshInfosDlg.h
1 //  SMESH SMESHGUI : GUI for SMESH component
2 //
3 //  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 //  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
5 // 
6 //  This library is free software; you can redistribute it and/or 
7 //  modify it under the terms of the GNU Lesser General Public 
8 //  License as published by the Free Software Foundation; either 
9 //  version 2.1 of the License. 
10 // 
11 //  This library is distributed in the hope that it will be useful, 
12 //  but WITHOUT ANY WARRANTY; without even the implied warranty of 
13 //  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
14 //  Lesser General Public License for more details. 
15 // 
16 //  You should have received a copy of the GNU Lesser General Public 
17 //  License along with this library; if not, write to the Free Software 
18 //  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
19 // 
20 //  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
21 //
22 //
23 //
24 //  File   : SMESHGUI_MeshInfosDlg.h
25 //  Author : Nicolas BARBEROU
26 //  Module : SMESH
27 //  $Header$
28
29 #ifndef SMESHGUI_MESHINFOSDLG_H
30 #define SMESHGUI_MESHINFOSDLG_H
31
32 #include "SALOME_Selection.h"
33 #include "QAD_Study.h"
34
35 // IDL Headers
36 #include <SALOMEconfig.h>
37 #include CORBA_SERVER_HEADER(SMESH_Gen)
38 #include CORBA_SERVER_HEADER(SMESH_Mesh)
39
40 // QT Includes
41 #include <qvariant.h>
42 #include <qdialog.h>
43 class QVBoxLayout; 
44 class QHBoxLayout; 
45 class QGridLayout; 
46 class QGroupBox;
47 class QLabel;
48 class QPushButton;
49 class SMESHGUI;
50
51 class SMESHGUI_MeshInfosDlg : public QDialog
52
53     Q_OBJECT
54
55 public:
56     SMESHGUI_MeshInfosDlg( QWidget* parent = 0, const char* name = 0, SALOME_Selection* Sel = 0, bool modal = FALSE, WFlags fl = 0 );
57     ~SMESHGUI_MeshInfosDlg();
58
59 private:
60
61     void Init( SALOME_Selection* Sel ) ;
62     void closeEvent( QCloseEvent* e ) ;
63     void enterEvent ( QEvent * ) ;                /* mouse enter the QWidget */
64     void DumpMeshInfos();
65
66     SMESH::SMESH_Gen_var  myCompMesh ;                
67     SMESHGUI*             mySMESHGUI ;            
68     SMESH::SMESH_Mesh_var myMesh ;            
69     SALOME_Selection*     mySelection ; 
70     SALOMEDS::Study_var   myStudy;
71
72     QGroupBox* GroupBox1;
73     QLabel* TextLabel12;
74     QLabel* TextLabel11;
75     QLabel* TextLabel13;
76     QLabel* TextLabel14;
77     QGroupBox* GroupBox2;
78     QLabel* TextLabel21;
79     QLabel* TextLabel22;
80     QLabel* TextLabel23;
81     QLabel* TextLabel24;
82     QGroupBox* GroupBox3;
83     QLabel* TextLabel31;
84     QLabel* TextLabel32;
85     QLabel* TextLabel33;
86     QLabel* TextLabel34;
87     QPushButton* buttonOk;
88
89 private slots:
90
91     void ClickOnOk();
92     void SelectionIntoArgument() ;
93     void DeactivateActiveDialog() ;
94     void ActivateThisDialog() ;
95
96 protected:
97     QVBoxLayout* SMESHGUI_MeshInfosDlgLayout;
98     QHBoxLayout* Layout1;
99
100 };
101
102 #endif // SMESHGUI_MESHINFOSDLG_H