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_GetShapesOnShapeDlg.h 00022 // Author : Sergey KUUL, Open CASCADE S.A.S. (sergey.kuul@opencascade.com) 00023 // 00024 #ifndef OPERATIONGUI_GETSHAPESONSHAPEDLG_H 00025 #define OPERATIONGUI_GETSHAPESONSHAPEDLG_H 00026 00027 #include <GEOMBase_Skeleton.h> 00028 #include <GEOMAlgo_State.hxx> 00029 00030 class DlgRef_2Sel2List; 00031 00032 //================================================================================= 00033 // class : OperationGUI_GetShapesOnShapeDlg 00034 // purpose : 00035 //================================================================================= 00036 class OperationGUI_GetShapesOnShapeDlg : public GEOMBase_Skeleton 00037 { 00038 Q_OBJECT 00039 00040 public: 00041 OperationGUI_GetShapesOnShapeDlg( GeometryGUI* theGeometryGUI, QWidget* parent = 0 ); 00042 ~OperationGUI_GetShapesOnShapeDlg(); 00043 00044 protected: 00045 // redefined from GEOMBase_Helper 00046 virtual GEOM::GEOM_IOperations_ptr createOperation(); 00047 virtual bool isValid( QString& ); 00048 virtual bool execute( ObjectList& ); 00049 00050 private: 00051 void Init(); 00052 void enterEvent( QEvent* ); 00053 00054 private: 00055 GEOM::GEOM_Object_var myObject1; 00056 GEOM::GEOM_Object_var myObject2; 00057 int myShapeType; 00058 GEOMAlgo_State myState; 00059 00060 DlgRef_2Sel2List* GroupPoints; 00061 00062 private slots: 00063 void ClickOnOk(); 00064 bool ClickOnApply(); 00065 void SetEditCurrentArgument(); 00066 void SelectionIntoArgument(); 00067 void LineEditReturnPressed(); 00068 void ActivateThisDialog(); 00069 void ComboTextChanged(); 00070 }; 00071 00072 #endif // OPERATIONGUI_GETSHAPESONSHAPEDLG_H