Salome HOME
IMP 0020089: Take into account 0D elements (MED_POINT1)
[modules/smesh.git] / src / SMESHGUI / SMESHGUI_MeshInfosDlg.h
1 //  Copyright (C) 2007-2008  CEA/DEN, EDF R&D, OPEN CASCADE
2 //
3 //  Copyright (C) 2003-2007  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 // SMESH SMESHGUI : GUI for SMESH component
23 // File   : SMESHGUI_MeshInfosDlg.h
24 // Author : Nicolas BARBEROU
25 //
26 #ifndef SMESHGUI_MESHINFOSDLG_H
27 #define SMESHGUI_MESHINFOSDLG_H
28
29 // SMESH includes
30 #include "SMESH_SMESHGUI.hxx"
31
32 // Qt includes
33 #include <QDialog>
34
35 class QGroupBox;
36 class QLabel;
37 class QPushButton;
38 class QStackedWidget;
39
40 class LightApp_SelectionMgr;
41 class SMESHGUI;
42
43 class SMESHGUI_EXPORT SMESHGUI_MeshInfosDlg : public QDialog
44
45   Q_OBJECT
46
47 public:
48   SMESHGUI_MeshInfosDlg( SMESHGUI* );
49   ~SMESHGUI_MeshInfosDlg();
50
51 protected:
52   void                    closeEvent( QCloseEvent* );
53   void                    keyPressEvent( QKeyEvent* );
54   void                    windowActivationChange( bool );
55   void                    DumpMeshInfos();
56
57 private slots:
58   void                    onSelectionChanged();
59   void                    DeactivateActiveDialog();
60   void                    ActivateThisDialog();
61   void                    onStartSelection();
62   void                    onHelp();
63
64 private:
65   SMESHGUI*               mySMESHGUI;
66   LightApp_SelectionMgr*  mySelectionMgr; 
67   bool                    myStartSelection;
68   bool                    myIsActiveWindow;
69   
70   QPushButton*            mySelectBtn;
71   QLabel*                 mySelectLab;
72   
73   QStackedWidget*         myWGStack;
74   
75   QWidget*                myMeshWidget;
76   QLabel*                 myMeshName;
77   QLabel*                 myMeshNbNodes;
78   QLabel*                 myMeshNb0DElems;
79   QLabel*                 myMeshNbEdges;
80   QLabel*                 myMeshNbEdges1;
81   QLabel*                 myMeshNbEdges2;
82   QGroupBox*              myMeshFacesGroup;
83   QLabel*                 myMeshNbFaces;
84   QLabel*                 myMeshNbFaces1;
85   QLabel*                 myMeshNbFaces2;
86   QLabel*                 myMeshNbTriangles;
87   QLabel*                 myMeshNbTriangles1;
88   QLabel*                 myMeshNbTriangles2;
89   QLabel*                 myMeshNbQuadrangles;
90   QLabel*                 myMeshNbQuadrangles1;
91   QLabel*                 myMeshNbQuadrangles2;
92   QLabel*                 myMeshNbPolygones;
93   QGroupBox*              myMeshVolumesGroup;
94   QLabel*                 myMeshNbVolumes;
95   QLabel*                 myMeshNbVolumes1;
96   QLabel*                 myMeshNbVolumes2;
97   QLabel*                 myMeshNbTetra;
98   QLabel*                 myMeshNbTetra1;
99   QLabel*                 myMeshNbTetra2;
100   QLabel*                 myMeshNbHexa;
101   QLabel*                 myMeshNbHexa1;
102   QLabel*                 myMeshNbHexa2;
103   QLabel*                 myMeshNbPyra;
104   QLabel*                 myMeshNbPyra1;
105   QLabel*                 myMeshNbPyra2;
106   QLabel*                 myMeshNbPrism;
107   QLabel*                 myMeshNbPrism1;
108   QLabel*                 myMeshNbPrism2;
109   QLabel*                 myMeshNbPolyhedrones;
110   
111   QWidget*                mySubMeshWidget;
112   QLabel*                 mySubMeshName;
113   QLabel*                 mySubMeshNbNodes;
114   QGroupBox*              mySubMeshElementsGroup;
115   QLabel*                 mySubMeshNbElements;
116   QLabel*                 mySubMeshNb0DElems;
117   QLabel*                 mySubMeshNbEdges;
118   QLabel*                 mySubMeshNbFaces;
119   QLabel*                 mySubMeshNbVolumes;
120
121   QWidget*                myGroupWidget;
122   QLabel*                 myGroupName;
123   QLabel*                 myGroupType;
124   QLabel*                 myGroupNb;
125
126   QGroupBox*              myButtonsGroup;
127   QPushButton*            myOkBtn;
128   QPushButton*            myHelpBtn;
129
130   QString                 myHelpFileName;
131 };
132
133 #endif // SMESHGUI_MESHINFOSDLG_H