Salome HOME
0020432: EDF 1029 GEOM : Fillet 1D
[modules/geom.git] / src / OperationGUI / OperationGUI_Fillet1d2dDlg.h
1 // GEOM GEOMGUI : GUI for Geometry component
2 //
3 // Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
5 // 
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. 
10 // 
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. 
15 // 
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 
19 // 
20 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
21 //
22 // File   : OperationGUI_Fillet1d2dDlg.h
23 // Author : DMV, OCN
24 //
25
26 #ifndef OPERATIONGUI_Fillet1d2dDLG_H
27 #define OPERATIONGUI_Fillet1d2dDLG_H
28
29 #include <GEOMBase_Skeleton.h>
30
31 #include <TColStd_IndexedMapOfInteger.hxx>
32
33 class DlgRef_2Sel1Spin;
34
35 //=================================================================================
36 // class    : OperationGUI_Fillet1d2dDlg
37 // purpose  :
38 //=================================================================================
39 class OperationGUI_Fillet1d2dDlg : public GEOMBase_Skeleton
40
41   Q_OBJECT
42       
43 public:
44   OperationGUI_Fillet1d2dDlg( GeometryGUI*, QWidget*, bool theIs1D );
45   ~OperationGUI_Fillet1d2dDlg();
46   
47 protected:
48   // redefined from GEOMBase_Helper
49   virtual                             GEOM::GEOM_IOperations_ptr createOperation();
50   virtual                             bool isValid( QString& );
51   virtual                             bool execute( ObjectList& );
52
53 private slots:
54   void                                ClickOnOk();
55   bool                                ClickOnApply();
56   void                                ActivateThisDialog();
57   void                                LineEditReturnPressed();
58   void                                SelectionIntoArgument();
59   void                                SetEditCurrentArgument();
60   void                                ValueChangedInSpinBox( double );
61   
62 private:
63   void                                Init();
64   void                                enterEvent( QEvent* );
65   void                                activateSelection();
66   double                              getRadius() const;
67
68 private:
69   bool                                myIs1D;
70   GEOM::GEOM_Object_var               myShape;
71   TColStd_IndexedMapOfInteger         myVertexes;
72
73   DlgRef_2Sel1Spin*                   GroupVertexes;
74 };
75
76 #endif // OPERATIONGUI_Fillet1d2dDLG_H