Salome HOME
First executable version
[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 "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 windowActivationChange( bool oldActive );
59     void DumpMeshInfos();
60
61 private slots:
62     void onSelectionChanged();
63     void DeactivateActiveDialog() ;
64     void ActivateThisDialog();
65     void onStartSelection();
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     QGroupBox*    myMeshFacesGroup;
83     QLabel*       myMeshNbFaces;
84     QLabel*       myMeshNbTriangles;
85     QLabel*       myMeshNbQuadrangles;
86     QLabel*       myMeshNbPolygones;
87     QGroupBox*    myMeshVolumesGroup;
88     QLabel*       myMeshNbVolumes;
89     QLabel*       myMeshNbTetra;
90     QLabel*       myMeshNbHexa;
91     QLabel*       myMeshNbPyra;
92     QLabel*       myMeshNbPrism;
93     QLabel*       myMeshNbPolyhedrones;
94
95     QWidget*      mySubMeshWidget;
96     QLabel*       mySubMeshName;
97     QLabel*       mySubMeshNbNodes;
98     QGroupBox*    mySubMeshElementsGroup;
99     QLabel*       mySubMeshNbElements;
100     QLabel*       mySubMeshNbEdges;
101     QLabel*       mySubMeshNbFaces;
102     QLabel*       mySubMeshNbVolumes;
103
104     QWidget*      myGroupWidget;
105     QLabel*       myGroupName;
106     QLabel*       myGroupType;
107     QLabel*       myGroupNb;
108
109     QGroupBox*   myButtonsGroup;
110     QPushButton* myOkBtn;
111 };
112
113 #endif // SMESHGUI_MESHINFOSDLG_H