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 class QCheckBox;
00043 
00044 //=================================================================================
00045 // class    : BasicGUI_WorkingPlaneDlg
00046 // purpose  :
00047 //=================================================================================
00048 class BASICGUI_WNT_EXPORT BasicGUI_WorkingPlaneDlg : public GEOMBase_Skeleton
00049 { 
00050     Q_OBJECT
00051 
00052 public:
00053     BasicGUI_WorkingPlaneDlg( GeometryGUI* theGeometryGUI, QWidget* parent = 0,
00054                      const char* name = 0, bool modal = FALSE, WFlags fl = 0 );
00055     ~BasicGUI_WorkingPlaneDlg();
00056     virtual void closeEvent( QCloseEvent* e );
00057 
00058 private:
00059     void Init();
00060     void enterEvent(QEvent* e);
00061 
00062     bool updateWPlane(const bool showPreview = true);
00063 
00064     GEOM::GEOM_Object_var myFace;
00065     GEOM::GEOM_Object_var myVectX;
00066     GEOM::GEOM_Object_var myVectZ;
00067 
00068     int aOriginType;
00069 
00070     DlgRef_1Sel_QTD* Group1;
00071     DlgRef_2Sel_QTD* Group2;
00072     DlgRef_3Check_QTD* Group3;
00073 
00074     QCheckBox* myReverseCB;
00075 
00076     gp_Ax3 myWPlane;
00077 
00078 private slots:
00079     void ClickOnOk();
00080     void ClickOnCancel();
00081     bool ClickOnApply();
00082 
00083     void ConstructorsClicked(int constructorId);
00084     void GroupClicked(int groupId);
00085     void SetEditCurrentArgument();
00086     void SelectionIntoArgument();
00087     void LineEditReturnPressed();
00088     void onReverse();
00089 
00090     void ActivateThisDialog();
00091     void DeactivateActiveDialog();
00092 
00093 };
00094 
00095 #endif // DIALOGBOX_WORKINGPLANE_H