1 // Copyright (C) 2005 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
2 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
4 // This library is free software; you can redistribute it and/or
5 // modify it under the terms of the GNU Lesser General Public
6 // License as published by the Free Software Foundation; either
7 // version 2.1 of the License.
9 // This library is distributed in the hope that it will be useful
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 // Lesser General Public License for more details.
14 // You should have received a copy of the GNU Lesser General Public
15 // License along with this library; if not, write to the Free Software
16 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
21 #ifndef DIALOGBOX_GETMESH_H
22 #define DIALOGBOX_GETMESH_H
24 #include "LightApp_SelectionMgr.h"
25 #include "SUIT_SelectionFilter.h"
30 // Open CASCADE Includes
42 #include <SALOMEconfig.h>
43 #include CORBA_SERVER_HEADER(SMESH_Mesh)
45 //=================================================================================
46 // class : SMESHGUI_EditMeshDlg
48 //=================================================================================
49 class SMESHGUI_EditMeshDlg : public QDialog
54 SMESHGUI_EditMeshDlg (SMESHGUI * theModule,
58 ~SMESHGUI_EditMeshDlg();
62 void closeEvent (QCloseEvent*);
63 void enterEvent (QEvent*); /* mouse enter the QWidget */
64 void hideEvent (QHideEvent*); /* ESC key */
65 void keyPressEvent(QKeyEvent*);
68 SMESHGUI* mySMESHGUI; /* Current SMESHGUI object */
69 LightApp_SelectionMgr* mySelectionMgr; /* User shape selection */
71 SMESH::SMESH_Mesh_var myMesh;
72 SUIT_SelectionFilter* myMeshFilter;
77 QButtonGroup* GroupConstructors;
78 QRadioButton* Constructor1;
80 QGroupBox* GroupButtons;
81 QPushButton* buttonOk;
82 QPushButton* buttonCancel;
83 QPushButton* buttonApply;
84 QPushButton* buttonHelp;
87 QLabel* TextLabelMesh;
88 QPushButton* SelectButton;
89 QLineEdit* LineEditMesh;
92 QGridLayout* DlgLayout;
93 QGridLayout* GroupConstructorsLayout;
94 QGridLayout* GroupButtonsLayout;
95 QGridLayout* GroupMeshLayout;
97 QString myHelpFileName;
101 void ClickOnCancel();
104 void SelectionIntoArgument();
105 void DeactivateActiveDialog();
106 void ActivateThisDialog();
109 #endif // DIALOGBOX_GETMESH_H