1 // File : SMESHGUI_RemoveElementsDlg.h
2 // Created : Fri Jun 07 11:18:42 2002
3 // Author : Nicolas REJNERI
7 // Copyright : Open CASCADE 2002
10 #ifndef DIALOGBOX_REMOVE_ELEMENTS_H
11 #define DIALOGBOX_REMOVE_ELEMENTS_H
13 #include "SALOME_Selection.h"
19 // Open CASCADE Includes
20 #include <TColStd_MapOfInteger.hxx>
34 #include <SALOMEconfig.h>
35 #include CORBA_SERVER_HEADER(SMESH_Mesh)
37 //=================================================================================
38 // class : SMESHGUI_RemoveElementsDlg
40 //=================================================================================
41 class SMESHGUI_RemoveElementsDlg : public QDialog
46 SMESHGUI_RemoveElementsDlg( QWidget* parent = 0, const char* name = 0, SALOME_Selection* Sel = 0, bool modal = FALSE, WFlags fl = 0 );
47 ~SMESHGUI_RemoveElementsDlg();
51 void Init( SALOME_Selection* Sel ) ;
52 void closeEvent( QCloseEvent* e ) ;
53 void enterEvent ( QEvent * ) ; /* mouse enter the QWidget */
55 SMESHGUI* mySMESHGUI ; /* Current SMESHGUI object */
56 SALOME_Selection* mySelection ; /* User shape selection */
57 bool myOkElements ; /* to check when arguments is defined */
58 int myConstructorId ; /* Current constructor id = radio button id */
59 QLineEdit* myEditCurrentArgument; /* Current LineEdit */
61 SMESH::SMESH_Mesh_var myMesh;
62 TColStd_MapOfInteger myMapIndex;
64 QButtonGroup* GroupConstructors;
65 QRadioButton* Constructor1;
66 QGroupBox* GroupButtons;
67 QPushButton* buttonOk;
68 QPushButton* buttonCancel;
69 QPushButton* buttonApply;
71 QLabel* TextLabelC1A1;
72 QPushButton* SelectButtonC1A1;
73 QLineEdit* LineEditC1A1;
77 void ConstructorsClicked(int constructorId);
81 void SetEditCurrentArgument() ;
82 void SelectionIntoArgument() ;
83 void DeactivateActiveDialog() ;
84 void ActivateThisDialog() ;
87 QGridLayout* SMESHGUI_RemoveElementsDlgLayout;
88 QGridLayout* GroupConstructorsLayout;
89 QGridLayout* GroupButtonsLayout;
90 QGridLayout* GroupC1Layout;
93 #endif // DIALOGBOX_REMOVE_ELEMENTS_H