Salome HOME
Merge with version on tag OCC-V2_1_0d
[modules/geom.git] / src / RepairGUI / RepairGUI.h
index 1afe5a85f9d7b97fc03a25a92658857c49e9daf4..2454b406c167b85380dd8eb8dfd12d1ae358691a 100644 (file)
 //  File   : RepairGUI.h
 //  Author : Damien COQUERET
 //  Module : GEOM
-//  $Header
+//  $Header$
 
 #ifndef REPAIRGUI_H
 #define REPAIRGUI_H
 
+#include "GEOMGUI.h"
 #include "GEOMBase.h"
 
 //=================================================================================
 // class    : RepairGUI
 // purpose  :
 //=================================================================================
-class RepairGUI : public QObject
+class RepairGUI : public GEOMGUI
 {
-  Q_OBJECT /* for QT compatibility */
+protected:
+  RepairGUI(); // hide constructor to avoid direct creation
 
 public :
-  RepairGUI();
   ~RepairGUI();
 
-  static bool OnGUIEvent(int theCommandID, QAD_Desktop* parent);
+  // Get the only RepairGUI object
+  static RepairGUI* GetRepairGUI();
 
-  void MakeSewingAndDisplay(GEOM::GEOM_Gen::ListOfIOR& listShapesIOR, 
-                           const Standard_Real precision);
-  void MakeOrientationChangeAndDisplay(GEOM::GEOM_Shape_ptr Shape);
-  bool OnSuppressHole(const char* ShapeTopoIOR,
-                     const GEOM::GEOM_Shape::ListOfSubShapeID& ListOfIdFace,
-                     const GEOM::GEOM_Shape::ListOfSubShapeID& ListOfIdWire,
-                     const GEOM::GEOM_Shape::ListOfSubShapeID& ListOfIdEndFace);
-  bool OnSuppressHolesInFaceOrShell(const char* ShapeTopoIOR,
-                                   const GEOM::GEOM_Shape::ListOfSubShapeID& ListOfIdWires);
-  bool OnSuppressFaces(const TopoDS_Shape& ShapeTopo,
-                      const char* ShapeTopoIOR,
-                      const Standard_Integer& aLocalContextId,
-                      bool& myUseLocalContext);
-
-  GEOMBase* myGeomBase;
-  GEOMContext* myGeomGUI;
-  GEOM::GEOM_Gen_var myGeom;   /* Current Geom Component */
+  bool OnGUIEvent(int theCommandID, QAD_Desktop* parent);
 
+private:
+  static RepairGUI* myGUIObject;        // the only RepairGUI object
+  
 };
 
 #endif