1 // File : GeometryGUI_MultiTranslationDlg.h
3 // Author : Damien COQUERET
5 // Module : GeometryGUI
6 // Copyright : OPEN CASCADE
9 #ifndef DIALOGBOX_MULTITRANSLATION_H
10 #define DIALOGBOX_MULTITRANSLATION_H
12 #include "SALOME_Selection.h"
13 #include "GEOM_ShapeTypeFilter.hxx"
14 #include "GEOM_EdgeFilter.hxx"
15 #include "GeometryGUI_SpinBox.h"
37 //=================================================================================
38 // class : GeometryGUI_MultiTranslationDlg
40 //=================================================================================
41 class GeometryGUI_MultiTranslationDlg : public QDialog
46 GeometryGUI_MultiTranslationDlg( QWidget* parent = 0, const char* name = 0, SALOME_Selection* Sel = 0, bool modal = FALSE, WFlags fl = 0 );
47 ~GeometryGUI_MultiTranslationDlg();
51 GEOM::GEOM_Gen_var myGeom ; /* Current Geom object */
52 GeometryGUI* myGeomGUI ; /* Current GeomGUI object */
53 TopoDS_Shape mySimulationTopoDs ; /* Shape used for simulation display */
54 SALOME_Selection* mySelection ; /* User shape selection */
56 GEOM::GEOM_Shape_var myGeomShape ; /* is myBase */
61 Standard_Real myStep1 ;
62 Standard_Real myStep2 ;
70 QLineEdit* myEditCurrentArgument; /* Current LineEdit */
71 int myConstructorId ; /* Current constructor id = radio button id */
72 Handle(GEOM_EdgeFilter) myEdgeFilter; /* Filter selection */
74 void closeEvent( QCloseEvent* e ) ;
75 void enterEvent( QEvent* e);
76 void Init( SALOME_Selection* Sel ) ;
77 void MakeMultiTranslationSimulationAndDisplay() ;
79 QButtonGroup* GroupConstructors;
80 QRadioButton* Constructor1;
81 QRadioButton* Constructor2;
83 QGroupBox* GroupButtons;
84 QPushButton* buttonOk;
85 QPushButton* buttonCancel;
86 QPushButton* buttonApply;
89 QPushButton* SelectButtonC1A2;
90 QLineEdit* LineEditC1A1;
91 QLineEdit* LineEditC1A2;
92 QPushButton* SelectButtonC1A1;
93 QLabel* TextLabelC1A1;
94 QLabel* TextLabelC1A2;
96 QLabel* TextLabelC1A3;
97 QLabel* TextLabelC1A4;
98 GeometryGUI_SpinBox* SpinBox_C1A3 ;
99 QSpinBox* SpinBox_C1A4 ;
102 QPushButton* SelectButtonC2A2;
103 QLineEdit* LineEditC2A1;
104 QLineEdit* LineEditC2A2;
105 QPushButton* SelectButtonC2A1;
106 QLineEdit* LineEditC2A3;
107 QPushButton* SelectButtonC2A3;
108 QLabel* TextLabelC2A1;
109 QLabel* TextLabelC2A2;
110 QLabel* TextLabelC2A3;
112 QLabel* TextLabelC2A4;
113 QLabel* TextLabelC2A5;
114 QLabel* TextLabelC2A6;
115 QLabel* TextLabelC2A7;
116 GeometryGUI_SpinBox* SpinBox_C2A4 ;
117 QSpinBox* SpinBox_C2A5;
118 GeometryGUI_SpinBox* SpinBox_C2A6 ;
119 QSpinBox* SpinBox_C2A7 ;
121 QCheckBox* CheckBoxReverse0;
122 QCheckBox* CheckBoxReverse1;
123 QCheckBox* CheckBoxReverse2;
127 void ConstructorsClicked(int constructorId);
129 void ClickOnCancel();
131 void SetEditCurrentArgument() ;
132 void SelectionIntoArgument() ;
133 void DeactivateActiveDialog() ;
134 void ActivateThisDialog() ;
135 void LineEditReturnPressed() ;
136 void ReverseAngle1(int) ;
137 void ReverseAngle2(int) ;
138 void ValueChangedInSpinBox( double newValue ) ; /* for GeometryGUI_SpinBox */
139 void ValueChangedInt( int newIntValue ) ; /* for QT spin box ! not const ! */
142 QGridLayout* GeometryGUI_MultiTranslationDlgLayout;
143 QGridLayout* GroupConstructorsLayout;
144 QGridLayout* GroupButtonsLayout;
145 QGridLayout* GroupC1Layout;
146 QGridLayout* GroupC2Layout;
149 #endif // DIALOGBOX_MULTITRANSLATION_H