src/BasicGUI/BasicGUI_PlaneDlg.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_PlaneDlg.h
00025 //  Author : Lucien PIGNOLONI
00026 //  Module : GEOM
00027 
00028 #ifndef DIALOGBOX_PLANE_H
00029 #define DIALOGBOX_PLANE_H
00030 
00031 #include "GEOMBase_Skeleton.h"
00032 #include "DlgRef_1Sel1Spin.h"
00033 #include "DlgRef_2Sel1Spin.h"
00034 #include "DlgRef_3Sel1Spin.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_PlaneDlg
00044 // purpose  :
00045 //=================================================================================
00046 class BasicGUI_PlaneDlg : public GEOMBase_Skeleton
00047 { 
00048     Q_OBJECT
00049 
00050 public:
00051     BasicGUI_PlaneDlg( GeometryGUI* theGeometryGUI, QWidget* parent = 0,
00052                  const char* name = 0, bool modal = FALSE, WFlags fl = 0);
00053     ~BasicGUI_PlaneDlg();
00054 
00055 protected:
00056     // redefined from GEOMBase_Helper
00057     virtual GEOM::GEOM_IOperations_ptr createOperation();
00058     virtual bool isValid( QString& );
00059     virtual bool execute( ObjectList& objects );
00060 
00061     virtual void closeEvent( QCloseEvent* e );
00062 
00063 private :
00064     void Init();
00065     void enterEvent(QEvent* e);
00066     double getSize() const;
00067 
00068     GEOM::GEOM_Object_var myPoint, myDir, myPoint1, myPoint2, myPoint3, myFace;
00069 
00070     DlgRef_2Sel1Spin* GroupPntDir;
00071     DlgRef_3Sel1Spin* Group3Pnts;
00072     DlgRef_1Sel1Spin* GroupFace;
00073 
00074 private slots:
00075     void ClickOnOk();
00076     void ClickOnCancel();
00077     bool ClickOnApply();
00078     
00079     void ActivateThisDialog();
00080     void DeactivateActiveDialog();
00081     
00082     void SelectionIntoArgument();
00083     void LineEditReturnPressed();
00084     void SetEditCurrentArgument();
00085     void ConstructorsClicked(int constructorId);
00086     void ValueChangedInSpinBox(double newValue);
00087 
00088 };
00089 
00090 #endif // DIALOGBOX_PLANE_H