X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FEntityGUI%2FEntityGUI.h;h=f69297f8fbc9d785442007098c4cb3affef2d53c;hb=c2ae4af70baf364fd78aabe14477db040adccac7;hp=9ecb56744a70ece9df777705ed90a2ca1dccbc8f;hpb=a596550f89dfafcf288f8d62a2ca2a1be40ca512;p=modules%2Fgeom.git diff --git a/src/EntityGUI/EntityGUI.h b/src/EntityGUI/EntityGUI.h index 9ecb56744..f69297f8f 100644 --- a/src/EntityGUI/EntityGUI.h +++ b/src/EntityGUI/EntityGUI.h @@ -17,53 +17,45 @@ // 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 +#include //================================================================================= // 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