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