Back to index

salome-geom  6.5.0
MeasureGUI_NormaleDlg.h
Go to the documentation of this file.
00001 // Copyright (C) 2007-2012  CEA/DEN, EDF R&D, OPEN CASCADE
00002 //
00003 // This library is free software; you can redistribute it and/or
00004 // modify it under the terms of the GNU Lesser General Public
00005 // License as published by the Free Software Foundation; either
00006 // version 2.1 of the License.
00007 //
00008 // This library is distributed in the hope that it will be useful,
00009 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00010 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00011 // Lesser General Public License for more details.
00012 //
00013 // You should have received a copy of the GNU Lesser General Public
00014 // License along with this library; if not, write to the Free Software
00015 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
00016 //
00017 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
00018 //
00019 
00020 // GEOM GEOMGUI : GUI for Geometry component
00021 // File   : MeasureGUI_NormaleDlg.h
00022 // Author : Julia DOROVSKIKH, Open CASCADE S.A.S.
00023 //
00024 #ifndef MEASUREGUI_NORMALEDLG_H
00025 #define MEASUREGUI_NORMALEDLG_H
00026 
00027 #include <GEOMBase_Skeleton.h>
00028 
00029 class DlgRef_2Sel;
00030 
00031 //=================================================================================
00032 // class    : MeasureGUI_NormaleDlg
00033 // purpose  :
00034 //=================================================================================
00035 class MeasureGUI_NormaleDlg : public GEOMBase_Skeleton
00036 {
00037   Q_OBJECT
00038 
00039 public:
00040   MeasureGUI_NormaleDlg( GeometryGUI*, QWidget* );
00041   ~MeasureGUI_NormaleDlg();
00042 
00043 protected:
00044   // redefined from GEOMBase_Helper
00045   virtual GEOM::GEOM_IOperations_ptr createOperation();
00046   virtual bool                       isValid( QString& );
00047   virtual bool                       execute( ObjectList& );
00048 
00049 private:
00050   void                               Init();
00051   void                               enterEvent( QEvent* );
00052 
00053 private:
00054   GEOM::GEOM_Object_var              myFace;
00055   GEOM::GEOM_Object_var              myPoint;
00056 
00057   DlgRef_2Sel*                       GroupArgs;
00058 
00059 private slots:
00060   void                               ClickOnOk();
00061   bool                               ClickOnApply();
00062 
00063   void                               ActivateThisDialog();
00064   void                               LineEditReturnPressed();
00065   void                               SelectionIntoArgument();
00066   void                               SetEditCurrentArgument();
00067 };
00068 
00069 #endif // MEASUREGUI_NORMALEDLG_H