src/BasicGUI/BasicGUI_VectorDlg.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_VectorDlg.h
00025 //  Author : Lucien PIGNOLONI
00026 //  Module : GEOM
00027 
00028 #ifndef DIALOGBOX_VECTOR_H
00029 #define DIALOGBOX_VECTOR_H
00030 
00031 #include "GEOMBase_Skeleton.h"
00032 #include "DlgRef_2Sel_QTD.h"
00033 #include "DlgRef_3Spin1Check.h"
00034 
00035 #include "BasicGUI.h"
00036 
00037 #if defined WNT && defined WIN32 && defined SALOME_WNT_EXPORTS
00038 #define BASICGUI_WNT_EXPORT __declspec( dllexport )
00039 #else
00040 #define BASICGUI_WNT_EXPORT
00041 #endif
00042 
00043 //=================================================================================
00044 // class    : BasicGUI_VectorDlg
00045 // purpose  :
00046 //=================================================================================
00047 class BasicGUI_VectorDlg : public GEOMBase_Skeleton
00048 { 
00049     Q_OBJECT
00050 
00051 public:
00052     BasicGUI_VectorDlg(GeometryGUI* theGeometryGUI, QWidget* parent = 0,
00053                  const char* name = 0, bool modal = FALSE, WFlags fl = 0);
00054     ~BasicGUI_VectorDlg();
00055 
00056 protected:
00057     // redefined from GEOMBase_Helper
00058     virtual GEOM::GEOM_IOperations_ptr createOperation();
00059     virtual bool isValid( QString& );
00060     virtual bool execute( ObjectList& objects );
00061 
00062 private :
00063     void Init();
00064     void enterEvent(QEvent* e);
00065 
00066     GEOM::GEOM_Object_var myPoint1;   
00067     GEOM::GEOM_Object_var myPoint2;
00068 
00069     DlgRef_2Sel_QTD* GroupPoints;
00070     DlgRef_3Spin1Check* GroupDimensions;
00071 
00072 private slots:
00073     void ClickOnOk();
00074     void ClickOnCancel();
00075     bool ClickOnApply();
00076 
00077     void ActivateThisDialog();
00078     void DeactivateActiveDialog();
00079     
00080     void LineEditReturnPressed();
00081     void SelectionIntoArgument();
00082     void SetEditCurrentArgument();
00083     void ConstructorsClicked(int constructorId);
00084     void ValueChangedInSpinBox(double newValue);
00085     void ReverseVector(int state);
00086 
00087 };
00088 
00089 #endif // DIALOGBOX_VECTOR_H