smesh/src/SMESHGUI/SMESHGUI_MeshInfosDlg.h

137 lines
3.9 KiB
C
Raw Normal View History

2003-07-10 19:18:22 +06:00
// SMESH SMESHGUI : GUI for SMESH component
//
// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 of the License.
//
// This library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with this library; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
//
// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
2003-07-10 19:18:22 +06:00
//
//
//
// File : SMESHGUI_MeshInfosDlg.h
// Author : Nicolas BARBEROU
// Module : SMESH
2003-05-19 20:07:00 +06:00
// $Header$
#ifndef SMESHGUI_MESHINFOSDLG_H
#define SMESHGUI_MESHINFOSDLG_H
#include "SMESH_SMESHGUI.hxx"
2003-05-19 20:07:00 +06:00
// QT Includes
#include <qdialog.h>
2004-06-18 14:34:31 +06:00
2003-05-19 20:07:00 +06:00
class QGroupBox;
class QLabel;
class QPushButton;
2004-06-18 14:34:31 +06:00
class QWidgetStack;
2003-05-19 20:07:00 +06:00
class LightApp_SelectionMgr;
class SMESHGUI;
class SMESHGUI_EXPORT SMESHGUI_MeshInfosDlg : public QDialog
2003-05-19 20:07:00 +06:00
{
Q_OBJECT
public:
SMESHGUI_MeshInfosDlg( SMESHGUI* theModule,
const char* name = 0,
bool modal = FALSE,
WFlags fl = 0 );
2003-05-19 20:07:00 +06:00
~SMESHGUI_MeshInfosDlg();
2004-06-18 14:34:31 +06:00
protected:
void closeEvent( QCloseEvent* e );
void keyPressEvent( QKeyEvent* e );
2004-06-18 14:34:31 +06:00
void windowActivationChange( bool oldActive );
2003-05-19 20:07:00 +06:00
void DumpMeshInfos();
2004-06-18 14:34:31 +06:00
private slots:
void onSelectionChanged();
void DeactivateActiveDialog() ;
void ActivateThisDialog();
void onStartSelection();
void onHelp();
2003-05-19 20:07:00 +06:00
2004-06-18 14:34:31 +06:00
private:
SMESHGUI* mySMESHGUI;
LightApp_SelectionMgr* mySelectionMgr;
bool myStartSelection;
bool myIsActiveWindow;
2004-06-18 14:34:31 +06:00
QPushButton* mySelectBtn;
QLabel* mySelectLab;
2003-05-19 20:07:00 +06:00
2004-06-18 14:34:31 +06:00
QWidgetStack* myWGStack;
2003-05-19 20:07:00 +06:00
2004-06-18 14:34:31 +06:00
QWidget* myMeshWidget;
QLabel* myMeshName;
QLabel* myMeshNbNodes;
QLabel* myMeshNbEdges;
QLabel* myMeshNbEdges1;
QLabel* myMeshNbEdges2;
2004-06-18 14:34:31 +06:00
QGroupBox* myMeshFacesGroup;
QLabel* myMeshNbFaces;
QLabel* myMeshNbFaces1;
QLabel* myMeshNbFaces2;
2004-06-18 14:34:31 +06:00
QLabel* myMeshNbTriangles;
QLabel* myMeshNbTriangles1;
QLabel* myMeshNbTriangles2;
2004-06-18 14:34:31 +06:00
QLabel* myMeshNbQuadrangles;
QLabel* myMeshNbQuadrangles1;
QLabel* myMeshNbQuadrangles2;
QLabel* myMeshNbPolygones;
2004-06-18 14:34:31 +06:00
QGroupBox* myMeshVolumesGroup;
QLabel* myMeshNbVolumes;
QLabel* myMeshNbVolumes1;
QLabel* myMeshNbVolumes2;
2004-06-18 14:34:31 +06:00
QLabel* myMeshNbTetra;
QLabel* myMeshNbTetra1;
QLabel* myMeshNbTetra2;
2004-06-18 14:34:31 +06:00
QLabel* myMeshNbHexa;
QLabel* myMeshNbHexa1;
QLabel* myMeshNbHexa2;
2004-06-18 14:34:31 +06:00
QLabel* myMeshNbPyra;
QLabel* myMeshNbPyra1;
QLabel* myMeshNbPyra2;
2004-06-18 14:34:31 +06:00
QLabel* myMeshNbPrism;
QLabel* myMeshNbPrism1;
QLabel* myMeshNbPrism2;
QLabel* myMeshNbPolyhedrones;
2004-06-18 14:34:31 +06:00
QWidget* mySubMeshWidget;
QLabel* mySubMeshName;
QLabel* mySubMeshNbNodes;
QGroupBox* mySubMeshElementsGroup;
QLabel* mySubMeshNbElements;
QLabel* mySubMeshNbEdges;
QLabel* mySubMeshNbFaces;
QLabel* mySubMeshNbVolumes;
2003-05-19 20:07:00 +06:00
2004-06-18 14:34:31 +06:00
QWidget* myGroupWidget;
QLabel* myGroupName;
QLabel* myGroupType;
QLabel* myGroupNb;
2003-05-19 20:07:00 +06:00
QGroupBox* myButtonsGroup;
QPushButton* myOkBtn;
QPushButton* myHelpBtn;
QString myHelpFileName;
2003-05-19 20:07:00 +06:00
};
#endif // SMESHGUI_MESHINFOSDLG_H