Salome HOME
0020321: EDF : Some windows do not appear depending on the platform (MinimumSizeHint())
[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*                 myMeshNbEdges;
79   QLabel*                 myMeshNbEdges1;
80   QLabel*                 myMeshNbEdges2;
81   QGroupBox*              myMeshFacesGroup;
82   QLabel*                 myMeshNbFaces;
83   QLabel*                 myMeshNbFaces1;
84   QLabel*                 myMeshNbFaces2;
85   QLabel*                 myMeshNbTriangles;
86   QLabel*                 myMeshNbTriangles1;
87   QLabel*                 myMeshNbTriangles2;
88   QLabel*                 myMeshNbQuadrangles;
89   QLabel*                 myMeshNbQuadrangles1;
90   QLabel*                 myMeshNbQuadrangles2;
91   QLabel*                 myMeshNbPolygones;
92   QGroupBox*              myMeshVolumesGroup;
93   QLabel*                 myMeshNbVolumes;
94   QLabel*                 myMeshNbVolumes1;
95   QLabel*                 myMeshNbVolumes2;
96   QLabel*                 myMeshNbTetra;
97   QLabel*                 myMeshNbTetra1;
98   QLabel*                 myMeshNbTetra2;
99   QLabel*                 myMeshNbHexa;
100   QLabel*                 myMeshNbHexa1;
101   QLabel*                 myMeshNbHexa2;
102   QLabel*                 myMeshNbPyra;
103   QLabel*                 myMeshNbPyra1;
104   QLabel*                 myMeshNbPyra2;
105   QLabel*                 myMeshNbPrism;
106   QLabel*                 myMeshNbPrism1;
107   QLabel*                 myMeshNbPrism2;
108   QLabel*                 myMeshNbPolyhedrones;
109   
110   QWidget*                mySubMeshWidget;
111   QLabel*                 mySubMeshName;
112   QLabel*                 mySubMeshNbNodes;
113   QGroupBox*              mySubMeshElementsGroup;
114   QLabel*                 mySubMeshNbElements;
115   QLabel*                 mySubMeshNbEdges;
116   QLabel*                 mySubMeshNbFaces;
117   QLabel*                 mySubMeshNbVolumes;
118
119   QWidget*                myGroupWidget;
120   QLabel*                 myGroupName;
121   QLabel*                 myGroupType;
122   QLabel*                 myGroupNb;
123
124   QGroupBox*              myButtonsGroup;
125   QPushButton*            myOkBtn;
126   QPushButton*            myHelpBtn;
127
128   QString                 myHelpFileName;
129 };
130
131 #endif // SMESHGUI_MESHINFOSDLG_H