1 // GEOM GEOMGUI : GUI for Geometry component
3 // Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
6 // This library is free software; you can redistribute it and/or
7 // modify it under the terms of the GNU Lesser General Public
8 // License as published by the Free Software Foundation; either
9 // version 2.1 of the License.
11 // This library is distributed in the hope that it will be useful,
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 // Lesser General Public License for more details.
16 // You should have received a copy of the GNU Lesser General Public
17 // License along with this library; if not, write to the Free Software
18 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20 // See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org
24 // File : GeometryGUI_MultiTranslationDlg.h
25 // Author : Damien COQUERET
29 #ifndef DIALOGBOX_MULTITRANSLATION_H
30 #define DIALOGBOX_MULTITRANSLATION_H
32 #include "SALOME_Selection.h"
33 #include "GEOM_ShapeTypeFilter.hxx"
34 #include "GEOM_EdgeFilter.hxx"
35 #include "GeometryGUI_SpinBox.h"
57 //=================================================================================
58 // class : GeometryGUI_MultiTranslationDlg
60 //=================================================================================
61 class GeometryGUI_MultiTranslationDlg : public QDialog
66 GeometryGUI_MultiTranslationDlg( QWidget* parent = 0, const char* name = 0, SALOME_Selection* Sel = 0, bool modal = FALSE, WFlags fl = 0 );
67 ~GeometryGUI_MultiTranslationDlg();
71 GEOM::GEOM_Gen_var myGeom ; /* Current Geom object */
72 GeometryGUI* myGeomGUI ; /* Current GeomGUI object */
73 TopoDS_Shape mySimulationTopoDs ; /* Shape used for simulation display */
74 SALOME_Selection* mySelection ; /* User shape selection */
76 GEOM::GEOM_Shape_var myGeomShape ; /* is myBase */
81 Standard_Real myStep1 ;
82 Standard_Real myStep2 ;
90 QLineEdit* myEditCurrentArgument; /* Current LineEdit */
91 int myConstructorId ; /* Current constructor id = radio button id */
92 Handle(GEOM_EdgeFilter) myEdgeFilter; /* Filter selection */
94 void closeEvent( QCloseEvent* e ) ;
95 void enterEvent( QEvent* e);
96 void Init( SALOME_Selection* Sel ) ;
97 void MakeMultiTranslationSimulationAndDisplay() ;
99 QButtonGroup* GroupConstructors;
100 QRadioButton* Constructor1;
101 QRadioButton* Constructor2;
103 QGroupBox* GroupButtons;
104 QPushButton* buttonOk;
105 QPushButton* buttonCancel;
106 QPushButton* buttonApply;
109 QPushButton* SelectButtonC1A2;
110 QLineEdit* LineEditC1A1;
111 QLineEdit* LineEditC1A2;
112 QPushButton* SelectButtonC1A1;
113 QLabel* TextLabelC1A1;
114 QLabel* TextLabelC1A2;
116 QLabel* TextLabelC1A3;
117 QLabel* TextLabelC1A4;
118 GeometryGUI_SpinBox* SpinBox_C1A3 ;
119 QSpinBox* SpinBox_C1A4 ;
122 QPushButton* SelectButtonC2A2;
123 QLineEdit* LineEditC2A1;
124 QLineEdit* LineEditC2A2;
125 QPushButton* SelectButtonC2A1;
126 QLineEdit* LineEditC2A3;
127 QPushButton* SelectButtonC2A3;
128 QLabel* TextLabelC2A1;
129 QLabel* TextLabelC2A2;
130 QLabel* TextLabelC2A3;
132 QLabel* TextLabelC2A4;
133 QLabel* TextLabelC2A5;
134 QLabel* TextLabelC2A6;
135 QLabel* TextLabelC2A7;
136 GeometryGUI_SpinBox* SpinBox_C2A4 ;
137 QSpinBox* SpinBox_C2A5;
138 GeometryGUI_SpinBox* SpinBox_C2A6 ;
139 QSpinBox* SpinBox_C2A7 ;
141 QCheckBox* CheckBoxReverse0;
142 QCheckBox* CheckBoxReverse1;
143 QCheckBox* CheckBoxReverse2;
147 void ConstructorsClicked(int constructorId);
149 void ClickOnCancel();
151 void SetEditCurrentArgument() ;
152 void SelectionIntoArgument() ;
153 void DeactivateActiveDialog() ;
154 void ActivateThisDialog() ;
155 void LineEditReturnPressed() ;
156 void ReverseAngle1(int) ;
157 void ReverseAngle2(int) ;
158 void ValueChangedInSpinBox( double newValue ) ; /* for GeometryGUI_SpinBox */
159 void ValueChangedInt( int newIntValue ) ; /* for QT spin box ! not const ! */
162 QGridLayout* GeometryGUI_MultiTranslationDlgLayout;
163 QGridLayout* GroupConstructorsLayout;
164 QGridLayout* GroupButtonsLayout;
165 QGridLayout* GroupC1Layout;
166 QGridLayout* GroupC2Layout;
169 #endif // DIALOGBOX_MULTITRANSLATION_H