1 // File : SMESHGUI_MoveNodesDlg.h
2 // Created : Thu Jun 20 22:30:22 2002
3 // Author : Nicolas REJNERI
7 // Copyright : Open CASCADE 2002
11 #ifndef DIALOGBOX_MOVE_NODES_H
12 #define DIALOGBOX_MOVE_NODES_H
14 #include "SALOME_Selection.h"
20 // Open CASCADE Includes
21 #include <TColStd_MapOfInteger.hxx>
33 class SMESHGUI_SpinBox;
36 #include <SALOMEconfig.h>
37 #include CORBA_SERVER_HEADER(SMESH_Mesh)
42 //=================================================================================
43 // class : SMESHGUI_MoveNodesDlg
45 //=================================================================================
46 class SMESHGUI_MoveNodesDlg : public QDialog
51 SMESHGUI_MoveNodesDlg( QWidget* parent = 0, const char* name = 0, SALOME_Selection* Sel = 0, bool modal = FALSE, WFlags fl = 0 );
52 ~SMESHGUI_MoveNodesDlg();
56 void Init( SALOME_Selection* Sel ) ;
57 void closeEvent( QCloseEvent* e ) ;
58 void enterEvent ( QEvent * ) ; /* mouse enter the QWidget */
60 SMESHGUI* mySMESHGUI ; /* Current SMESHGUI object */
61 SALOME_Selection* mySelection ; /* User shape selection */
62 bool myOkNodes ; /* to check when arguments is defined */
63 int myConstructorId ; /* Current constructor id = radio button id */
65 QLineEdit* myEditCurrentArgument; /* Current LineEdit */
67 SMESH::SMESH_Mesh_var myMesh;
68 TColStd_MapOfInteger myMapIndex;
70 vtkActor *mySimulationActor;
72 QGroupBox* GroupCoordinates;
76 SMESHGUI_SpinBox* SpinBox_X;
77 SMESHGUI_SpinBox* SpinBox_Y;
78 SMESHGUI_SpinBox* SpinBox_Z;
80 QButtonGroup* GroupConstructors;
81 QRadioButton* Constructor1;
82 QGroupBox* GroupButtons;
83 QPushButton* buttonOk;
84 QPushButton* buttonCancel;
85 QPushButton* buttonApply;
87 QLabel* TextLabelC1A1;
88 QPushButton* SelectButtonC1A1;
89 QLineEdit* LineEditC1A1;
93 void ConstructorsClicked(int constructorId);
97 void SetEditCurrentArgument() ;
98 void SelectionIntoArgument() ;
99 void DeactivateActiveDialog() ;
100 void ActivateThisDialog() ;
101 void ValueChangedInSpinBox( double newValue ) ;
104 QGridLayout* SMESHGUI_MoveNodesDlgLayout;
105 QGridLayout* GroupConstructorsLayout;
106 QGridLayout* GroupButtonsLayout;
107 QGridLayout* GroupC1Layout;
108 QGridLayout* GroupCoordinatesLayout;
111 #endif // DIALOGBOX_MOVE_NODES_H