Salome HOME
Remove redundant code
[modules/geom.git] / src / BasicGUI / BasicGUI.h
index 418f446ed0c61a850fd41b67045a5ccc22c8277c..79a7b4e5720d2609f4d798bb6af57a25b0f45426 100644 (file)
@@ -1,37 +1,33 @@
-//  GEOM GEOMGUI : GUI for Geometry component
+// Copyright (C) 2007-2015  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, or (at your option) any later version.
 //
+// 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 <V3d_View.hxx>
+#include <GEOMGUI.h>
 
 //=================================================================================
 // class    : BasicGUI
 //=================================================================================
 class BasicGUI : public GEOMGUI
 {
-protected:
-  BasicGUI(); // hide constructor to avoid direct creation
-
-public :
+public:
+  BasicGUI( GeometryGUI* );
   ~BasicGUI();
 
-  // Get the only BasicGUI object
-  static BasicGUI* GetBasicGUI();
-
-  bool OnGUIEvent(int theCommandID, QAD_Desktop* parent);
-  bool OnMousePress(QMouseEvent* pe, QAD_Desktop* parent, QAD_StudyFrame* studyFrame);
-
-  gp_Pnt ConvertClickToPoint( int x, int y, Handle(V3d_View) aView );
-
-private:
-  static BasicGUI* myGUIObject;        // the only BasicGUI object
+  bool   OnGUIEvent( int, SUIT_Desktop* );
+  bool   OnMousePress( QMouseEvent*, SUIT_Desktop*, SUIT_ViewWindow* );
 };
 
-#endif
+#endif // BASICGUI_H