src/BasicGUI/BasicGUI.h

Go to the documentation of this file.
00001 //  GEOM GEOMGUI : GUI for Geometry component
00002 //
00003 //  Copyright (C) 2003  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 //
00024 //  File   : BasicGUI.h
00025 //  Author : Damien COQUERET
00026 //  Module : GEOM
00027 
00028 #ifndef BASICGUI_H
00029 #define BASICGUI_H
00030 
00031 #include "GEOMGUI.h"
00032 #include "GEOMBase.h"
00033 #include <V3d_View.hxx>
00034 
00035 #if defined WNT && defined WIN32 && defined SALOME_WNT_EXPORTS
00036 #define BASICGUI_WNT_EXPORT __declspec( dllexport )
00037 #else
00038 #define BASICGUI_WNT_EXPORT
00039 #endif
00040 
00041 //=================================================================================
00042 // class    : BasicGUI
00043 // purpose  :
00044 //=================================================================================
00045 class BasicGUI : public GEOMGUI
00046 {
00047 public:
00048   BasicGUI( GeometryGUI* parent );
00049   ~BasicGUI();
00050 
00051   bool OnGUIEvent(int theCommandID, SUIT_Desktop* parent);
00052   bool OnMousePress(QMouseEvent* pe, SUIT_Desktop* parent, SUIT_ViewWindow* theViewWindow);
00053 
00054   gp_Pnt ConvertClickToPoint( int x, int y, Handle(V3d_View) aView );
00055 };
00056 
00057 #endif