Salome HOME
PAL13409: EDF282 SMESH: Tetrahedron is added if we specify Mefisto.
[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.salome-platform.org/ or email : webmaster.salome@opencascade.com
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 // QT Includes
33 #include <qdialog.h>
34
35 class QGroupBox;
36 class QLabel;
37 class QPushButton;
38 class QWidgetStack;
39
40 class LightApp_SelectionMgr;
41 class SMESHGUI;
42
43 class SMESHGUI_MeshInfosDlg : public QDialog
44
45     Q_OBJECT
46
47 public:
48     SMESHGUI_MeshInfosDlg( SMESHGUI* theModule, 
49                            const char* name = 0, 
50                            bool modal = FALSE, 
51                            WFlags fl = 0 );
52     ~SMESHGUI_MeshInfosDlg();
53
54 protected:
55     void closeEvent( QCloseEvent* e );
56     void keyPressEvent( QKeyEvent* e );
57     void windowActivationChange( bool oldActive );
58     void DumpMeshInfos();
59
60 private slots:
61     void onSelectionChanged();
62     void DeactivateActiveDialog() ;
63     void ActivateThisDialog();
64     void onStartSelection();
65     void onHelp();
66
67 private:
68     SMESHGUI*               mySMESHGUI;
69     LightApp_SelectionMgr*  mySelectionMgr; 
70     bool                    myStartSelection;
71     bool                    myIsActiveWindow;
72
73     QPushButton*  mySelectBtn;
74     QLabel*       mySelectLab;
75
76     QWidgetStack* myWGStack;
77
78     QWidget*      myMeshWidget;
79     QLabel*       myMeshName;
80     QLabel*       myMeshNbNodes;
81     QLabel*       myMeshNbEdges;
82     QLabel*       myMeshNbEdges1;
83     QLabel*       myMeshNbEdges2;
84     QGroupBox*    myMeshFacesGroup;
85     QLabel*       myMeshNbFaces;
86     QLabel*       myMeshNbFaces1;
87     QLabel*       myMeshNbFaces2;
88     QLabel*       myMeshNbTriangles;
89     QLabel*       myMeshNbTriangles1;
90     QLabel*       myMeshNbTriangles2;
91     QLabel*       myMeshNbQuadrangles;
92     QLabel*       myMeshNbQuadrangles1;
93     QLabel*       myMeshNbQuadrangles2;
94     QLabel*       myMeshNbPolygones;
95     QGroupBox*    myMeshVolumesGroup;
96     QLabel*       myMeshNbVolumes;
97     QLabel*       myMeshNbVolumes1;
98     QLabel*       myMeshNbVolumes2;
99     QLabel*       myMeshNbTetra;
100     QLabel*       myMeshNbTetra1;
101     QLabel*       myMeshNbTetra2;
102     QLabel*       myMeshNbHexa;
103     QLabel*       myMeshNbHexa1;
104     QLabel*       myMeshNbHexa2;
105     QLabel*       myMeshNbPyra;
106     QLabel*       myMeshNbPyra1;
107     QLabel*       myMeshNbPyra2;
108     QLabel*       myMeshNbPrism;
109     QLabel*       myMeshNbPrism1;
110     QLabel*       myMeshNbPrism2;
111     QLabel*       myMeshNbPolyhedrones;
112
113     QWidget*      mySubMeshWidget;
114     QLabel*       mySubMeshName;
115     QLabel*       mySubMeshNbNodes;
116     QGroupBox*    mySubMeshElementsGroup;
117     QLabel*       mySubMeshNbElements;
118     QLabel*       mySubMeshNbEdges;
119     QLabel*       mySubMeshNbFaces;
120     QLabel*       mySubMeshNbVolumes;
121
122     QWidget*      myGroupWidget;
123     QLabel*       myGroupName;
124     QLabel*       myGroupType;
125     QLabel*       myGroupNb;
126
127     QGroupBox*    myButtonsGroup;
128     QPushButton*  myOkBtn;
129     QPushButton*  myHelpBtn;
130
131     QString       myHelpFileName;
132 };
133
134 #endif // SMESHGUI_MESHINFOSDLG_H