1 // Copyright (C) 2007-2010 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
23 // SMESH SMESHGUI : GUI for SMESH component
24 // File : SMESHGUI_AddMeshElementDlg.h
25 // Author : Nicolas REJNERI, Open CASCADE S.A.S.
27 #ifndef SMESHGUI_ADDQUADRATICELEMENTDLG_H
28 #define SMESHGUI_ADDQUADRATICELEMENTDLG_H
31 #include "SMESH_SMESHGUI.hxx"
37 #include <SALOMEconfig.h>
38 #include CORBA_SERVER_HEADER(SMESH_Mesh)
51 class LightApp_SelectionMgr;
55 struct TElementSimulation;
58 enum { QUAD_EDGE, QUAD_TRIANGLE, QUAD_QUADRANGLE, QUAD_TETRAHEDRON,
59 QUAD_PYRAMID, QUAD_PENTAHEDRON, QUAD_HEXAHEDRON };
61 //=================================================================================
62 // class : SMESHGUI_AddQuadraticElementDlg
64 //=================================================================================
65 class SMESHGUI_EXPORT SMESHGUI_AddQuadraticElementDlg : public QDialog
70 SMESHGUI_AddQuadraticElementDlg( SMESHGUI*, const int );
71 ~SMESHGUI_AddQuadraticElementDlg();
75 void closeEvent( QCloseEvent* );
76 void hideEvent( QHideEvent* ); /* ESC key */
77 void enterEvent( QEvent* ); /* mouse enter the QWidget */
78 void keyPressEvent( QKeyEvent* );
79 void displaySimulation();
80 void UpdateTable( bool = true );
86 SMESHGUI* mySMESHGUI; /* Current SMESHGUI object */
87 LightApp_SelectionMgr* mySelectionMgr; /* User shape selection */
88 int myNbCorners; /* The required number of corners */
90 SVTK_Selector* mySelector;
92 SMESH::SMESH_Mesh_var myMesh;
94 SMESH::TElementSimulation* mySimulation;
100 QGroupBox* GroupConstructors;
101 QRadioButton* myRadioButton1;
103 QGroupBox* GroupArguments;
104 QLineEdit* myCornerNodes;
105 QPushButton* mySelectButton;
106 QTableWidget* myTable;
107 QCheckBox* myReverseCB;
109 QGroupBox* GroupGroups;
110 QLabel* TextLabel_GroupName;
111 QComboBox* ComboBox_GroupName;
113 QGroupBox* GroupButtons;
114 QPushButton* buttonOk;
115 QPushButton* buttonCancel;
116 QPushButton* buttonApply;
117 QPushButton* buttonHelp;
119 QString myHelpFileName;
122 void onTextChange( const QString& );
123 void onCellTextChange( int, int );
124 void onReverse( int );
125 void onCellDoubleClicked( int, int );
128 void ClickOnCancel();
131 void SetEditCorners();
132 void SelectionIntoArgument();
133 void DeactivateActiveDialog();
134 void ActivateThisDialog();
137 #endif // SMESHGUI_ADDQUADRATICELEMENTDLG_H