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