1 // File : SMESHGUI_OrientationElementsDlg.h
2 // Created : Tue Jun 25 14:30:34 2002
3 // Author : Nicolas REJNERI
7 // Copyright : Open CASCADE 2002
11 #ifndef DIALOGBOX_ORIENTATION_ELEMENTS_H
12 #define DIALOGBOX_ORIENTATION_ELEMENTS_H
14 #include "SALOME_Selection.h"
20 // Open CASCADE Includes
21 #include <TColStd_MapOfInteger.hxx>
35 #include <SALOMEconfig.h>
36 #include CORBA_SERVER_HEADER(SMESH_Mesh)
38 //=================================================================================
39 // class : SMESHGUI_OrientationElementsDlg
41 //=================================================================================
42 class SMESHGUI_OrientationElementsDlg : public QDialog
47 SMESHGUI_OrientationElementsDlg( QWidget* parent = 0, const char* name = 0, SALOME_Selection* Sel = 0, bool modal = FALSE, WFlags fl = 0 );
48 ~SMESHGUI_OrientationElementsDlg();
52 void Init( SALOME_Selection* Sel ) ;
53 void closeEvent( QCloseEvent* e ) ;
54 void enterEvent ( QEvent * ) ; /* mouse enter the QWidget */
56 SMESHGUI* mySMESHGUI ; /* Current SMESHGUI object */
57 SALOME_Selection* mySelection ; /* User shape selection */
58 bool myOkElements ; /* to check when arguments is defined */
59 int myConstructorId ; /* Current constructor id = radio button id */
60 QLineEdit* myEditCurrentArgument; /* Current LineEdit */
62 SMESH::SMESH_Mesh_var myMesh;
63 TColStd_MapOfInteger myMapIndex;
65 QButtonGroup* GroupConstructors;
66 QRadioButton* Constructor1;
67 QGroupBox* GroupButtons;
68 QPushButton* buttonOk;
69 QPushButton* buttonCancel;
70 QPushButton* buttonApply;
72 QLabel* TextLabelC1A1;
73 QPushButton* SelectButtonC1A1;
74 QLineEdit* LineEditC1A1;
78 void ConstructorsClicked(int constructorId);
82 void SetEditCurrentArgument() ;
83 void SelectionIntoArgument() ;
84 void DeactivateActiveDialog() ;
85 void ActivateThisDialog() ;
88 QGridLayout* SMESHGUI_OrientationElementsDlgLayout;
89 QGridLayout* GroupConstructorsLayout;
90 QGridLayout* GroupButtonsLayout;
91 QGridLayout* GroupC1Layout;
94 #endif // DIALOGBOX_ORIENTATION_ELEMENTS_H