X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FPartSet%2FPartSet_OperationSketchBase.cpp;h=d424849b1364f96560a8dadced238af6cc30b4a8;hb=29cf3cffcf4536d96e3546f6c451359387e670e6;hp=519c97f76d5335d3def922e4158b77de59982c2f;hpb=a764a876ed5d1480b2a76f4e12307985bcf96c16;p=modules%2Fshaper.git diff --git a/src/PartSet/PartSet_OperationSketchBase.cpp b/src/PartSet/PartSet_OperationSketchBase.cpp index 519c97f76..d424849b1 100644 --- a/src/PartSet/PartSet_OperationSketchBase.cpp +++ b/src/PartSet/PartSet_OperationSketchBase.cpp @@ -14,7 +14,7 @@ using namespace std; PartSet_OperationSketchBase::PartSet_OperationSketchBase(const QString& theId, QObject* theParent) -: ModuleBase_PropPanelOperation(theId, theParent) +: ModuleBase_Operation(theId, theParent) { } @@ -22,9 +22,17 @@ PartSet_OperationSketchBase::~PartSet_OperationSketchBase() { } -const TopoDS_Shape& PartSet_OperationSketchBase::preview() const +boost::shared_ptr PartSet_OperationSketchBase::preview( + boost::shared_ptr theFeature) const { boost::shared_ptr aFeature = - boost::dynamic_pointer_cast(feature()); - return aFeature->preview()->impl(); + boost::dynamic_pointer_cast(theFeature); + return aFeature->preview(); +} + +boost::shared_ptr PartSet_OperationSketchBase::createFeature() +{ + boost::shared_ptr aFeature = ModuleBase_Operation::createFeature(); + emit featureConstructed(aFeature, FM_Activation); + return aFeature; }