1 // File : SMESHGUI_AddVolumeDlg.h
2 // Created : Wed Jun 26 21:00:41 2002
3 // Author : Nicolas REJNERI
7 // Copyright : Open CASCADE 2002
11 #ifndef DIALOGBOX_ADD_VOLUME_H
12 #define DIALOGBOX_ADD_VOLUME_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_AddVolumeDlg
42 //=================================================================================
43 class SMESHGUI_AddVolumeDlg : public QDialog
48 SMESHGUI_AddVolumeDlg( QWidget* parent = 0, const char* name = 0, SALOME_Selection* Sel = 0,
49 int nbNode = 4, bool modal = FALSE, WFlags fl = 0 );
50 ~SMESHGUI_AddVolumeDlg();
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 */
63 int myConstructorId ; /* Current constructor id = radio button id */
64 QLineEdit* myEditCurrentArgument; /* Current LineEdit */
66 SMESH::SMESH_Mesh_var myMesh;
67 TColStd_MapOfInteger myMapIndex;
69 QButtonGroup* GroupConstructors;
70 QRadioButton* Constructor1;
71 QGroupBox* GroupButtons;
72 QPushButton* buttonOk;
73 QPushButton* buttonCancel;
74 QPushButton* buttonApply;
76 QLabel* TextLabelC1A1;
77 QPushButton* SelectButtonC1A1;
78 QLineEdit* LineEditC1A1;
82 void ConstructorsClicked(int constructorId);
86 void SetEditCurrentArgument() ;
87 void SelectionIntoArgument() ;
88 void DeactivateActiveDialog() ;
89 void ActivateThisDialog() ;
92 QGridLayout* SMESHGUI_AddVolumeDlgLayout;
93 QGridLayout* GroupConstructorsLayout;
94 QGridLayout* GroupButtonsLayout;
95 QGridLayout* GroupC1Layout;
98 #endif // DIALOGBOX_ADD_VOLUME_H