1 // Copyright (C) 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE
3 // Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
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.
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.
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
20 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
22 // SMESH SMESHGUI : GUI for SMESH component
23 // File : SMESHGUI_MeshInfosDlg.h
24 // Author : Nicolas BARBEROU
28 #ifndef SMESHGUI_MESHINFOSDLG_H
29 #define SMESHGUI_MESHINFOSDLG_H
31 #include "SMESH_SMESHGUI.hxx"
41 class LightApp_SelectionMgr;
44 class SMESHGUI_EXPORT SMESHGUI_MeshInfosDlg : public QDialog
49 SMESHGUI_MeshInfosDlg( SMESHGUI* theModule,
53 ~SMESHGUI_MeshInfosDlg();
56 void closeEvent( QCloseEvent* e );
57 void keyPressEvent( QKeyEvent* e );
58 void windowActivationChange( bool oldActive );
62 void onSelectionChanged();
63 void DeactivateActiveDialog() ;
64 void ActivateThisDialog();
65 void onStartSelection();
70 LightApp_SelectionMgr* mySelectionMgr;
71 bool myStartSelection;
72 bool myIsActiveWindow;
74 QPushButton* mySelectBtn;
77 QWidgetStack* myWGStack;
79 QWidget* myMeshWidget;
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;
114 QWidget* mySubMeshWidget;
115 QLabel* mySubMeshName;
116 QLabel* mySubMeshNbNodes;
117 QGroupBox* mySubMeshElementsGroup;
118 QLabel* mySubMeshNbElements;
119 QLabel* mySubMeshNbEdges;
120 QLabel* mySubMeshNbFaces;
121 QLabel* mySubMeshNbVolumes;
123 QWidget* myGroupWidget;
128 QGroupBox* myButtonsGroup;
129 QPushButton* myOkBtn;
130 QPushButton* myHelpBtn;
132 QString myHelpFileName;
135 #endif // SMESHGUI_MESHINFOSDLG_H