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_FilletDlg.h
25 // Author : Damien COQUERET
29 #ifndef DIALOGBOX_FILLET_H
30 #define DIALOGBOX_FILLET_H
32 #include "SALOME_Selection.h"
33 #include "GEOM_ShapeTypeFilter.hxx"
34 #include "GeometryGUI_SpinBox.h"
39 #include <qvalidator.h>
41 // Open CASCADE Includes
42 #include <AIS_InteractiveContext.hxx>
57 //=================================================================================
58 // class : GeometryGUI_FilletDlg
60 //=================================================================================
61 class GeometryGUI_FilletDlg : public QDialog
66 GeometryGUI_FilletDlg( QWidget* parent = 0,
68 SALOME_Selection* Sel = 0,
69 Handle (AIS_InteractiveContext) ic = 0,
73 ~GeometryGUI_FilletDlg();
77 void Init( SALOME_Selection* Sel, Handle (AIS_InteractiveContext) ic ) ;
78 void closeEvent( QCloseEvent* e ) ;
79 void enterEvent( QEvent* e);
80 void ResetStateOfDialog() ;
82 /* Interactive and local context management see also : bool myUseLocalContext() */
83 Handle (AIS_InteractiveContext) myIC ; /* Interactive context */
84 Standard_Integer myLocalContextId ; /* identify a local context used by this method */
85 bool myUseLocalContext ; /* true when this method as opened a local context */
87 QDoubleValidator *myVa ; /* Double validator for numeric input */
89 GEOM::GEOM_Gen_var myGeom ; /* Current Geom object */
90 GeometryGUI* myGeomGUI ; /* Current GeomGUI object */
91 SALOME_Selection* mySelection ; /* User shape selection */
93 TopoDS_Shape mySimulationTopoDs ; /* Shape used for simulation display */
96 TopoDS_Shape myShape ;
100 QLineEdit* myEditCurrentArgument; /* Current LineEdit */
101 int myConstructorId ; /* Current constructor id = radio button id */
107 QButtonGroup* GroupConstructors;
109 QRadioButton* Constructor1;
110 QRadioButton* Constructor2;
111 QRadioButton* Constructor3;
113 QGroupBox* GroupButtons;
114 QPushButton* buttonOk;
115 QPushButton* buttonCancel;
116 QPushButton* buttonApply;
119 QPushButton* SelectButtonC1A1;
120 QLineEdit* LineEditC1A1;
121 QLabel* TextLabelC1A1;
122 GeometryGUI_SpinBox* SpinBox_C1A2 ;
123 QLabel* TextLabelC1A2;
126 QPushButton* SelectButtonC2A1;
127 QLineEdit* LineEditC2A1;
128 QLabel* TextLabelC2A1;
129 GeometryGUI_SpinBox* SpinBox_C2A2 ;
130 QLabel* TextLabelC2A2;
133 QPushButton* SelectButtonC3A1;
134 QLineEdit* LineEditC3A1;
135 QLabel* TextLabelC3A1;
136 GeometryGUI_SpinBox* SpinBox_C3A2 ;
137 QLabel* TextLabelC3A2;
141 void ConstructorsClicked(int constructorId);
143 void ClickOnCancel();
145 void SetEditCurrentArgument() ;
146 void SelectionIntoArgument() ;
147 void DeactivateActiveDialog() ;
148 void LineEditReturnPressed() ;
149 void ActivateThisDialog() ;
150 void ValueChangedInSpinBox( double newValue ) ;
154 QGridLayout* GeometryGUI_FilletDlgLayout;
155 QGridLayout* GroupButtonsLayout;
156 QGridLayout* GroupConstructorsLayout;
157 QGridLayout* GroupC1Layout;
158 QGridLayout* GroupC2Layout;
159 QGridLayout* GroupC3Layout;
162 #endif // DIALOGBOX_FILLET_H