X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FBasicGUI%2FBasicGUI.h;h=c8303d27d83d86786a562e5342333259abe587cf;hb=643c92eb8f6e84b5643ba9c3bc990110d166f96b;hp=a2cd25a6f430036f18e84312ae33a2f1b8dbd321;hpb=409b095d2575bc03423b699dd4416d1d12e53998;p=modules%2Fgeom.git diff --git a/src/BasicGUI/BasicGUI.h b/src/BasicGUI/BasicGUI.h index a2cd25a6f..c8303d27d 100644 --- a/src/BasicGUI/BasicGUI.h +++ b/src/BasicGUI/BasicGUI.h @@ -1,66 +1,49 @@ -// GEOM GEOMGUI : GUI for Geometry component +// Copyright (C) 2007-2010 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 : BasicGUI.h -// Author : Damien COQUERET -// Module : GEOM -// $Header$ +// GEOM GEOMGUI : GUI for Geometry component +// File : BasicGUI.h +// Author : Damien COQUERET, Open CASCADE S.A.S. +// #ifndef BASICGUI_H #define BASICGUI_H -#include "GEOMGUI.h" -#include "GEOMBase.h" +#include #include - -#if defined WNT && defined WIN32 && defined SALOME_WNT_EXPORTS -#define BASICGUI_WNT_EXPORT __declspec( dllexport ) -#else -#define BASICGUI_WNT_EXPORT -#endif //================================================================================= // class : BasicGUI // purpose : //================================================================================= class BasicGUI : public GEOMGUI { -protected: - BasicGUI( GeometryGUI* parent ); // hide constructor to avoid direct creation - -public : +public: + BasicGUI( GeometryGUI* ); ~BasicGUI(); - // Get the only BasicGUI object - static BasicGUI* GetBasicGUI( GeometryGUI* parent ); - - bool OnGUIEvent(int theCommandID, SUIT_Desktop* parent); - bool OnMousePress(QMouseEvent* pe, SUIT_Desktop* parent, SUIT_ViewWindow* theViewWindow); - - gp_Pnt ConvertClickToPoint( int x, int y, Handle(V3d_View) aView ); + bool OnGUIEvent( int, SUIT_Desktop* ); + bool OnMousePress( QMouseEvent*, SUIT_Desktop*, SUIT_ViewWindow* ); -private: - static BasicGUI* myGUIObject; // the only BasicGUI object + gp_Pnt ConvertClickToPoint( int, int, Handle(V3d_View) ); }; -#endif +#endif // BASICGUI_H