X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FMeasureGUI%2FMeasureGUI_BndBoxDlg.h;h=c0b824565223ceef99574382e7860ef911af7d05;hb=4d4cef4054e35fe6b16c7ba463f5360516d704ec;hp=ee17c700829b6d6e8782b6e2195a8abebf44f7e9;hpb=c577ca78d7a6e286526662cf54df6de1f4f2f449;p=modules%2Fgeom.git diff --git a/src/MeasureGUI/MeasureGUI_BndBoxDlg.h b/src/MeasureGUI/MeasureGUI_BndBoxDlg.h index ee17c7008..c0b824565 100644 --- a/src/MeasureGUI/MeasureGUI_BndBoxDlg.h +++ b/src/MeasureGUI/MeasureGUI_BndBoxDlg.h @@ -1,38 +1,35 @@ -// GEOM GEOMGUI : GUI for Geometry component +// Copyright (C) 2007-2011 CEA/DEN, EDF R&D, OPEN CASCADE // -// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org +// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, +// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS // +// This library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License. // +// This library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with this library; if not, write to the Free Software +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +// +// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com // -// File : MeasureGUI_BndBoxDlg.h -// Author : Nicolas REJNERI -// Module : GEOM -// $Header$ -#ifndef DIALOGBOX_BNDBOX_H -#define DIALOGBOX_BNDBOX_H +// GEOM GEOMGUI : GUI for Geometry component +// File : MeasureGUI_BndBoxDlg.h +// Author : Nicolas REJNERI, Open CASCADE S.A.S. +// +#ifndef MEASUREGUI_BNDBOXDLG_H +#define MEASUREGUI_BNDBOXDLG_H #include "MeasureGUI_Skeleton.h" -#include "MeasureGUI_1Sel6LineEdit_QTD.h" -#include "MeasureGUI.h" +class MeasureGUI_1Sel6LineEdit; //================================================================================= // class : DialogBox_PROPERTIES @@ -40,25 +37,25 @@ //================================================================================= class MeasureGUI_BndBoxDlg : public MeasureGUI_Skeleton { - Q_OBJECT + Q_OBJECT public: - MeasureGUI_BndBoxDlg(QWidget* parent = 0, const char* name = 0, SALOME_Selection* Sel = 0, bool modal = FALSE, WFlags fl = 0); - ~MeasureGUI_BndBoxDlg(); + MeasureGUI_BndBoxDlg( GeometryGUI*, QWidget* ); + ~MeasureGUI_BndBoxDlg(); -private: - void Init(); - void enterEvent(QEvent* e); - void CalculateAndDisplayBndBox(const TopoDS_Shape& S); +protected: + // redefined from GEOMBase_Helper and MeasureGUI_Skeleton + virtual void processObject(); + virtual SALOME_Prs* buildPrs(); - MeasureGUI_1Sel6LineEdit_QTD* GroupC1; - -private slots: - void SetEditCurrentArgument(); - void SelectionIntoArgument(); - void LineEditReturnPressed(); - void ActivateThisDialog(); +private: + void Init(); + bool getParameters( double&, double&, + double&, double&, + double&, double& ); +private: + MeasureGUI_1Sel6LineEdit* myGrp; }; -#endif // DIALOGBOX_BNDBOX_H +#endif // MEASUREGUI_BNDBOXDLG_H