1 // SMESH SMESHGUI : GUI for SMESH component
3 // Copyright (C) 2003 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
24 // File : SMESHGUI_AddMeshElementDlg.h
25 // Author : Nicolas REJNERI
29 #ifndef DIALOGBOX_ADD_FACE_H
30 #define DIALOGBOX_ADD_FACE_H
32 #include "SMESH_SMESHGUI.hxx"
34 #include "LightApp_SelectionMgr.h"
36 #include "SMDSAbs_ElementType.hxx"
56 class SVTK_ViewWindow;
60 struct TElementSimulation;
64 #include <SALOMEconfig.h>
65 #include CORBA_SERVER_HEADER(SMESH_Mesh)
67 //=================================================================================
68 // class : SMESHGUI_AddMeshElementDlg
70 //=================================================================================
71 class SMESHGUI_EXPORT SMESHGUI_AddMeshElementDlg : public QDialog
76 SMESHGUI_AddMeshElementDlg( SMESHGUI*,
78 SMDSAbs_ElementType ElementType = SMDSAbs_Edge,
79 int nbNodes = 2, bool modal = FALSE, WFlags fl = 0 );
80 ~SMESHGUI_AddMeshElementDlg();
84 void closeEvent (QCloseEvent*);
85 void hideEvent (QHideEvent*); /* ESC key */
86 void enterEvent (QEvent*); /* mouse enter the QWidget */
87 void keyPressEvent(QKeyEvent*);
88 void displaySimulation();
90 SMESHGUI* mySMESHGUI; /* Current SMESHGUI object */
91 LightApp_SelectionMgr* mySelectionMgr; /* User shape selection */
92 int myNbOkNodes; /* to check when arguments is defined */
94 SVTK_Selector* mySelector;
96 QLineEdit* myEditCurrentArgument; /* Current LineEdit */
102 SMESH::SMESH_Mesh_var myMesh;
103 SMESH_Actor* myActor;
104 SMESH::TElementSimulation* mySimulation;
106 QButtonGroup* GroupConstructors;
107 QRadioButton* Constructor1;
108 QGroupBox * GroupButtons;
109 QPushButton * buttonOk;
110 QPushButton * buttonCancel;
111 QPushButton * buttonApply;
112 QPushButton * buttonHelp;
114 QLabel * TextLabelC1A1;
115 QPushButton * SelectButtonC1A1;
116 QLineEdit * LineEditC1A1;
120 QString myHelpFileName;
125 void ClickOnCancel();
128 void SetEditCurrentArgument() ;
129 void SelectionIntoArgument() ;
130 void DeactivateActiveDialog() ;
131 void ActivateThisDialog() ;
132 void CheckBox( int );
133 void onTextChange(const QString&);
136 QGridLayout* SMESHGUI_AddMeshElementDlgLayout;
137 QGridLayout* GroupConstructorsLayout;
138 QGridLayout* GroupButtonsLayout;
139 QGridLayout* GroupC1Layout;
142 #endif // DIALOGBOX_ADD_FACE_H