smesh/src/SMESHGUI/SMESHGUI_MeshInfosDlg.h

112 lines
3.1 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.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org
//
//
//
// 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
// 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 SalomeApp_SelectionMgr;
class SMESHGUI;
2003-05-19 20:07:00 +06:00
class SMESHGUI_MeshInfosDlg : public QDialog
{
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 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();
2003-05-19 20:07:00 +06:00
2004-06-18 14:34:31 +06:00
private:
SMESHGUI* mySMESHGUI;
SalomeApp_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;
QGroupBox* myMeshFacesGroup;
QLabel* myMeshNbFaces;
QLabel* myMeshNbTriangles;
QLabel* myMeshNbQuadrangles;
QLabel* myMeshNbPolygones;
2004-06-18 14:34:31 +06:00
QGroupBox* myMeshVolumesGroup;
QLabel* myMeshNbVolumes;
QLabel* myMeshNbTetra;
QLabel* myMeshNbHexa;
QLabel* myMeshNbPyra;
QLabel* myMeshNbPrism;
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
2004-06-18 14:34:31 +06:00
QGroupBox* myButtonsGroup;
QPushButton* myOkBtn;
2003-05-19 20:07:00 +06:00
};
#endif // SMESHGUI_MESHINFOSDLG_H