src/BasicGUI/BasicGUI_WorkingPlaneDlg.h

Go to the documentation of this file.
00001 //  GEOM GEOMGUI : GUI for Geometry component
00002 //
00003 //  Copyright (C) 2003  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 //
00024 //  File   : BasicGUI_WorkingPlaneDlg.h
00025 //  Author : Lucien PIGNOLONI
00026 //  Module : GEOM
00027 
00028 #ifndef DIALOGBOX_WORKINGPLANE_H
00029 #define DIALOGBOX_WORKINGPLANE_H
00030 
00031 #include "GEOMBase_Skeleton.h"
00032 #include "DlgRef_1Sel_QTD.h"
00033 #include "DlgRef_2Sel_QTD.h"
00034 #include "DlgRef_3Check_QTD.h"
00035 
00036 #if defined WNT && defined WIN32 && defined SALOME_WNT_EXPORTS
00037 #define BASICGUI_WNT_EXPORT __declspec( dllexport )
00038 #else
00039 #define BASICGUI_WNT_EXPORT
00040 #endif
00041 
00042 //=================================================================================
00043 // class    : BasicGUI_WorkingPlaneDlg
00044 // purpose  :
00045 //=================================================================================
00046 class BASICGUI_WNT_EXPORT BasicGUI_WorkingPlaneDlg : public GEOMBase_Skeleton
00047 { 
00048     Q_OBJECT
00049 
00050 public:
00051     BasicGUI_WorkingPlaneDlg( GeometryGUI* theGeometryGUI, QWidget* parent = 0,
00052                      const char* name = 0, bool modal = FALSE, WFlags fl = 0 );
00053     ~BasicGUI_WorkingPlaneDlg();
00054     virtual void closeEvent( QCloseEvent* e );
00055 
00056 private:
00057     void Init();
00058     void enterEvent(QEvent* e);
00059 
00060     GEOM::GEOM_Object_var myFace;
00061     GEOM::GEOM_Object_var myVectX;
00062     GEOM::GEOM_Object_var myVectZ;
00063 
00064     int aOriginType;
00065 
00066     DlgRef_1Sel_QTD* Group1;
00067     DlgRef_2Sel_QTD* Group2;
00068     DlgRef_3Check_QTD* Group3;
00069 
00070     gp_Ax3 myWPlane;
00071 
00072 private slots:
00073     void ClickOnOk();
00074     void ClickOnCancel();
00075     bool ClickOnApply();
00076 
00077     void ConstructorsClicked(int constructorId);
00078     void GroupClicked(int groupId);
00079     void SetEditCurrentArgument();
00080     void SelectionIntoArgument();
00081     void LineEditReturnPressed();
00082 
00083     void ActivateThisDialog();
00084     void DeactivateActiveDialog();
00085 
00086 };
00087 
00088 #endif // DIALOGBOX_WORKINGPLANE_H