Salome HOME
PAL12607: Static objects in Geometry GUI libraries.
[modules/geom.git] / src / EntityGUI / EntityGUI.h
index 9ecb56744a70ece9df777705ed90a2ca1dccbc8f..f69297f8fbc9d785442007098c4cb3affef2d53c 100644 (file)
 //  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 
+//  See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
 //
 //
 //
 //  File   : EntityGUI.h
 //  Author : Damien COQUERET
 //  Module : GEOM
-//  $Header: 
 
 #ifndef ENTITYGUI_H
 #define ENTITYGUI_H
 
-#include "GEOMBase.h"
+#include "GEOMGUI.h"
+
+#include "SALOMEDSClient.hxx"
+
+#include <TopoDS_Shape.hxx>
+#include <AIS_Shape.hxx>
 
 //=================================================================================
 // class    : EntityGUI
 // purpose  :
 //=================================================================================
-class EntityGUI : public QObject
+class EntityGUI : public GEOMGUI
 {
-  Q_OBJECT /* for QT compatibility */
-
 public :
-  EntityGUI();
+  EntityGUI( GeometryGUI* parent ); // hide constructor to avoid direct creation
   ~EntityGUI();
 
-  static bool OnGUIEvent(int theCommandID, QAD_Desktop* parent);
-
-  void OnSketchEnd(const char *Cmd);
+  bool OnGUIEvent(int theCommandID, SUIT_Desktop* parent);
 
   void DisplaySimulationShape(const TopoDS_Shape& S1, const TopoDS_Shape& S2); 
-  void EraseSimulationShape(int Sh = 0);
+  void EraseSimulationShape();
 
-    /* Methods for sub shapes explode */
-  bool SObjectExist(SALOMEDS::SObject_ptr theFatherObject, const char* IOR);
-  bool OnSubShapeGetAll(const TopoDS_Shape& ShapeTopo, const char* ShapeTopoIOR, const int SubShapeType);  
-  bool OnSubShapeGetSelected(const TopoDS_Shape& ShapeTopo, const char* ShapeTopoIOR, const int SubShapeType,
-                            Standard_Integer& aLocalContextId, bool& myUseLocalContext);
+  // Methods for sub shapes explode
+  bool SObjectExist(const _PTR(SObject)& theFatherObject, const char* IOR);
 
-  /* AIS shape used only during topo/geom simulations */
+  // AIS shape used only during topo/geom simulations
   Handle(AIS_Shape) mySimulationShape1;
   Handle(AIS_Shape) mySimulationShape2;
-
-  GEOMBase* myGeomBase;
-  GEOMContext* myGeomGUI;
-  GEOM::GEOM_Gen_var myGeom;   /* Current Geom Component */
-
 };
 
 #endif