1 // File : GeometryGUI_TranslationDlg.h
3 // Author : Lucien PIGNOLONI
5 // Module : GeometryGUI
6 // Copyright : OPEN CASCADE
9 #ifndef DIALOGBOX_TRANSLATION_H
10 #define DIALOGBOX_TRANSLATION_H
12 #include "SALOME_Selection.h"
13 #include "GEOM_ShapeTypeFilter.hxx"
14 #include "GeometryGUI_SpinBox.h"
17 #include <TopoDS_Shape.hxx>
18 #include <BRepBuilderAPI_Transform.hxx>
35 //=================================================================================
36 // class : GeometryGUI_TranslationDlg
38 //=================================================================================
39 class GeometryGUI_TranslationDlg : public QDialog
44 GeometryGUI_TranslationDlg( QWidget* parent = 0, const char* name = 0, SALOME_Selection* Sel = 0, bool modal = FALSE, WFlags fl = 0 );
45 ~GeometryGUI_TranslationDlg();
49 GEOM::GEOM_Gen_var myGeom ; /* Current Geom object */
50 GeometryGUI* myGeomGUI ; /* Current GeomGUI object */
51 TopoDS_Shape mySimulationTopoDs; /* Shape used for simulation display */
52 SALOME_Selection* mySelection ; /* User shape selection */
54 GEOM::GEOM_Shape_var myGeomShape ; /* is myBase */
57 QLineEdit* myEditCurrentArgument; /* Current LineEdit */
58 int myConstructorId ; /* Current constructor id = radio button id */
59 Handle(GEOM_ShapeTypeFilter) myEdgeFilter; /* Filter selection */
61 void closeEvent( QCloseEvent* e ) ;
62 void enterEvent( QEvent* e);
63 void Init( SALOME_Selection* Sel ) ;
64 void MakeTranslationSimulationAndDisplay() ;
66 QButtonGroup* GroupConstructors;
67 QRadioButton* Constructor1;
73 GeometryGUI_SpinBox* SpinBox_DX ;
74 GeometryGUI_SpinBox* SpinBox_DY ;
75 GeometryGUI_SpinBox* SpinBox_DZ ;
77 QLabel* TextLabelC1A1;
78 QPushButton* SelectButtonC1A1;
79 QLineEdit* LineEditC1A1;
80 QGroupBox* GroupButtons;
81 QPushButton* buttonOk;
82 QPushButton* buttonCancel;
83 QPushButton* buttonApply;
87 void ConstructorsClicked(int constructorId);
91 void SetEditCurrentArgument() ;
92 void SelectionIntoArgument() ;
93 void LineEditReturnPressed() ;
94 void DeactivateActiveDialog() ;
95 void ActivateThisDialog() ;
96 void ValueChangedInSpinBox( double newValue ) ;
99 QGridLayout* GeometryGUI_TranslationDlgLayout;
100 QGridLayout* GroupConstructorsLayout;
101 QGridLayout* GroupC1Layout;
102 QGridLayout* GroupButtonsLayout;
104 QHBoxLayout* Layout1 ;
107 #endif // DIALOGBOX_TRANSLATION_H