1 // File : SMESHGUI_AddFaceDlg.h
2 // Created : Wed Jun 26 21:00:41 2002
3 // Author : Nicolas REJNERI
7 // Copyright : Open CASCADE 2002
11 #ifndef DIALOGBOX_ADD_FACE_H
12 #define DIALOGBOX_ADD_FACE_H
14 #include "SALOME_Selection.h"
20 // Open CASCADE Includes
21 #include <TColStd_MapOfInteger.hxx>
36 #include <SALOMEconfig.h>
37 #include CORBA_SERVER_HEADER(SMESH_Mesh)
39 //=================================================================================
40 // class : SMESHGUI_AddFaceDlg
42 //=================================================================================
43 class SMESHGUI_AddFaceDlg : public QDialog
48 SMESHGUI_AddFaceDlg( QWidget* parent = 0, const char* name = 0, SALOME_Selection* Sel = 0,
49 int nbNode = 3, bool modal = FALSE, WFlags fl = 0 );
50 ~SMESHGUI_AddFaceDlg();
54 void Init( SALOME_Selection* Sel ) ;
55 void closeEvent( QCloseEvent* e ) ;
56 void enterEvent ( QEvent * ) ; /* mouse enter the QWidget */
58 SMESHGUI* mySMESHGUI ; /* Current SMESHGUI object */
59 SALOME_Selection* mySelection ; /* User shape selection */
60 bool myOkNodes ; /* to check when arguments is defined */
64 int myConstructorId ; /* Current constructor id = radio button id */
65 QLineEdit* myEditCurrentArgument; /* Current LineEdit */
67 SMESH::SMESH_Mesh_var myMesh;
68 TColStd_MapOfInteger myMapIndex;
70 QButtonGroup* GroupConstructors;
71 QRadioButton* Constructor1;
72 QGroupBox* GroupButtons;
73 QPushButton* buttonOk;
74 QPushButton* buttonCancel;
75 QPushButton* buttonApply;
77 QLabel* TextLabelC1A1;
78 QPushButton* SelectButtonC1A1;
79 QLineEdit* LineEditC1A1;
85 void ConstructorsClicked(int constructorId);
89 void SetEditCurrentArgument() ;
90 void SelectionIntoArgument() ;
91 void DeactivateActiveDialog() ;
92 void ActivateThisDialog() ;
96 QGridLayout* SMESHGUI_AddFaceDlgLayout;
97 QGridLayout* GroupConstructorsLayout;
98 QGridLayout* GroupButtonsLayout;
99 QGridLayout* GroupC1Layout;
102 #endif // DIALOGBOX_ADD_FACE_H