Back to index

salome-geom  6.5.0
OperationGUI_ClippingDlg.h
Go to the documentation of this file.
00001 // Copyright (C) 2007-2012  CEA/DEN, EDF R&D, OPEN CASCADE
00002 //
00003 // Copyright (C) 2003-2007  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 // GEOM GEOMGUI : GUI for Geometry component
00024 // File   : OperationGUI_ClippingDlg.h
00025 // Author : Michael Zorin, Open CASCADE S.A.S. (mikhail.zorin@opencascade.com)
00026 //
00027 #ifndef OPERATIONGUI_CLIPPINGDLG_H
00028 #define OPERATIONGUI_CLIPPINGDLG_H
00029 
00030 #include <GEOMBase_Skeleton.h>
00031 
00032 class QGroupBox;
00033 class QLabel;
00034 class QPushButton;
00035 class QComboBox;
00036 class SalomeApp_DoubleSpinBox;
00037 
00038 enum ViewerTypes { VTK, OCC, OTHER };
00039 
00040 //=================================================================================
00041 // class    : OperationGUI_ClippingDlg
00042 // purpose  :
00043 //=================================================================================
00044 class OperationGUI_ClippingDlg : public GEOMBase_Skeleton
00045 {
00046   Q_OBJECT
00047 
00048 public:
00049   OperationGUI_ClippingDlg( GeometryGUI*, QWidget* = 0 );
00050   ~OperationGUI_ClippingDlg();
00051   
00052 private:
00053   void              Init();
00054   
00055   void              enterEvent( QEvent* );
00056   
00057 private:
00058   ViewerTypes       myViewerType;
00059   
00060   QGroupBox*        GroupArguments;
00061   QLabel*           TextLabelNear;
00062   SalomeApp_DoubleSpinBox* SpinBox_Near;
00063   QLabel*           TextLabelFar;
00064   SalomeApp_DoubleSpinBox* SpinBox_Far;
00065   QPushButton*      resetButton;
00066   QComboBox*        TypeCB;
00067 
00068 private slots:
00069   void              ClickOnOk();
00070   bool              ClickOnApply();
00071   void              onActivate();
00072   void              onReset();
00073 };
00074 
00075 #endif // OPERATIONGUI_CLIPPINGDLG_H