00001 // Copyright (C) 2007-2011 CEA/DEN, EDF R&D, OPEN CASCADE 00002 // 00003 // This library is free software; you can redistribute it and/or 00004 // modify it under the terms of the GNU Lesser General Public 00005 // License as published by the Free Software Foundation; either 00006 // version 2.1 of the License. 00007 // 00008 // This library is distributed in the hope that it will be useful, 00009 // but WITHOUT ANY WARRANTY; without even the implied warranty of 00010 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00011 // Lesser General Public License for more details. 00012 // 00013 // You should have received a copy of the GNU Lesser General Public 00014 // License along with this library; if not, write to the Free Software 00015 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00016 // 00017 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com 00018 // 00019 00020 // GEOM GEOMGUI : GUI for Geometry component 00021 // File : OperationGUI_Fillet1d2dDlg.h 00022 // Author : DMV, OCN 00023 // 00024 #ifndef OPERATIONGUI_Fillet1d2dDLG_H 00025 #define OPERATIONGUI_Fillet1d2dDLG_H 00026 00027 #include <GEOMBase_Skeleton.h> 00028 00029 #include <TColStd_IndexedMapOfInteger.hxx> 00030 00031 class DlgRef_2Sel1Spin; 00032 00033 //================================================================================= 00034 // class : OperationGUI_Fillet1d2dDlg 00035 // purpose : 00036 //================================================================================= 00037 class OperationGUI_Fillet1d2dDlg : public GEOMBase_Skeleton 00038 { 00039 Q_OBJECT 00040 00041 public: 00042 OperationGUI_Fillet1d2dDlg( GeometryGUI*, QWidget*, bool theIs1D ); 00043 ~OperationGUI_Fillet1d2dDlg(); 00044 00045 protected: 00046 // redefined from GEOMBase_Helper 00047 virtual GEOM::GEOM_IOperations_ptr createOperation(); 00048 virtual bool isValid( QString& ); 00049 virtual bool execute( ObjectList& ); 00050 00051 private slots: 00052 void ClickOnOk(); 00053 bool ClickOnApply(); 00054 void ActivateThisDialog(); 00055 void LineEditReturnPressed(); 00056 void SelectionIntoArgument(); 00057 void SetEditCurrentArgument(); 00058 void ValueChangedInSpinBox( double ); 00059 00060 private: 00061 void Init(); 00062 void enterEvent( QEvent* ); 00063 void activateSelection(); 00064 double getRadius() const; 00065 00066 private: 00067 bool myIs1D; 00068 GEOM::GEOM_Object_var myShape; 00069 TColStd_IndexedMapOfInteger myVertexes; 00070 00071 DlgRef_2Sel1Spin* GroupVertexes; 00072 }; 00073 00074 #endif // OPERATIONGUI_Fillet1d2dDLG_H