Back to index

salome-geom  6.5.0
PrimitiveGUI_FaceDlg.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   : BasicGUI_FaceDlg.h
00022 // Author : Dmitry Matveithev, OCN.
00023 //
00024 #ifndef BASICGUI_FACEDLG_H
00025 #define BASICGUI_FACEDLG_H
00026 
00027 #include "GEOMBase_Skeleton.h"
00028 #include "GEOM_GenericObjPtr.h"
00029 
00030 class DlgRef_2Spin;
00031 class DlgRef_1Sel2Spin;
00032 class DlgRef_3Radio;
00033 
00034 //=================================================================================
00035 // class    : PrimitiveGUI_FaceDlg
00036 // purpose  :
00037 //=================================================================================
00038 class PrimitiveGUI_FaceDlg : public GEOMBase_Skeleton
00039 { 
00040   Q_OBJECT
00041 
00042 public:
00043   PrimitiveGUI_FaceDlg( GeometryGUI*, QWidget* = 0, bool = false, Qt::WindowFlags = 0 );
00044   ~PrimitiveGUI_FaceDlg();
00045   
00046 protected:
00047   // redefined from GEOMBase_Helper
00048   virtual GEOM::GEOM_IOperations_ptr createOperation();
00049   virtual bool                       isValid( QString& );
00050   virtual bool                       execute( ObjectList& );
00051   virtual void                       addSubshapesToStudy();
00052     
00053 private:
00054   void                               Init();
00055   void                               enterEvent( QEvent* );
00056   
00057 private:
00058   GEOM::GeomObjPtr                   myEdge;
00059   GEOM::GeomObjPtr                   myFace;
00060 
00061   int                                myOrientationType;
00062   
00063   DlgRef_2Spin*                      GroupDimensions;
00064   DlgRef_1Sel2Spin*                  GroupPlane;
00065   DlgRef_3Radio*                     GroupOrientation;
00066   DlgRef_3Radio*                     GroupType;
00067     
00068 private slots:
00069   void                               ClickOnOk();
00070   bool                               ClickOnApply();
00071 
00072   void                               ActivateThisDialog();
00073   void                               DeactivateActiveDialog();
00074   void                               ConstructorsClicked( int );    
00075     
00076   void                               SelectionIntoArgument();
00077   void                               SetEditCurrentArgument();
00078   void                               ValueChangedInSpinBox( double );
00079   void                               SetDoubleSpinBoxStep( double );
00080   void                               RadioButtonClicked();
00081   void                               TypeButtonClicked();
00082 };
00083 
00084 #endif // BASICGUI_FACEDLG_H