00001 // Copyright (C) 2007-2011 CEA/DEN, EDF R&D, OPEN CASCADE 00002 // 00003 // Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, 00004 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 00005 // 00006 // This library is free software; you can redistribute it and/or 00007 // modify it under the terms of the GNU Lesser General Public 00008 // License as published by the Free Software Foundation; either 00009 // version 2.1 of the License. 00010 // 00011 // This library is distributed in the hope that it will be useful, 00012 // but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00014 // Lesser General Public License for more details. 00015 // 00016 // You should have received a copy of the GNU Lesser General Public 00017 // License along with this library; if not, write to the Free Software 00018 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00019 // 00020 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com 00021 // 00022 00023 // GEOM GEOMGUI : GUI for Geometry component 00024 // File : BasicGUI_WorkingPlaneDlg.h 00025 // Author : Lucien PIGNOLONI, Open CASCADE S.A.S. 00026 // 00027 #ifndef BASICGUI_WORKINGPLANEDLG_H 00028 #define BASICGUI_WORKINGPLANEDLG_H 00029 00030 #include <GEOMBase_Skeleton.h> 00031 00032 #include <gp_Ax3.hxx> 00033 00034 class DlgRef_1Sel; 00035 class DlgRef_2Sel; 00036 class DlgRef_3Check; 00037 class QCheckBox; 00038 00039 //================================================================================= 00040 // class : BasicGUI_WorkingPlaneDlg 00041 // purpose : 00042 //================================================================================= 00043 class BasicGUI_WorkingPlaneDlg : public GEOMBase_Skeleton 00044 { 00045 Q_OBJECT 00046 00047 public: 00048 BasicGUI_WorkingPlaneDlg( GeometryGUI*, QWidget* = 0, bool = false, Qt::WindowFlags = 0 ); 00049 ~BasicGUI_WorkingPlaneDlg(); 00050 00051 private: 00052 void Init(); 00053 void enterEvent( QEvent* ); 00054 00055 bool updateWPlane( const bool = true ); 00056 00057 GEOM::GEOM_Object_var myFace; 00058 GEOM::GEOM_Object_var myVectX; 00059 GEOM::GEOM_Object_var myVectZ; 00060 00061 int aOriginType; 00062 00063 DlgRef_1Sel* Group1; 00064 DlgRef_2Sel* Group2; 00065 DlgRef_3Check* Group3; 00066 00067 QCheckBox* myReverseCB; 00068 00069 gp_Ax3 myWPlane; 00070 00071 private slots: 00072 void ClickOnOk(); 00073 bool ClickOnApply(); 00074 00075 void ConstructorsClicked( int ); 00076 void GroupClicked( int ); 00077 void SetEditCurrentArgument(); 00078 void SelectionIntoArgument(); 00079 void LineEditReturnPressed(); 00080 void onReverse(); 00081 00082 void ActivateThisDialog(); 00083 void DeactivateActiveDialog(); 00084 }; 00085 00086 #endif // BASICGUI_WORKINGPLANEDLG_H