From 941757ad0d0140393e4f1b371dc2d7552120750c Mon Sep 17 00:00:00 2001 From: nds Date: Wed, 27 Jul 2016 18:28:07 +0300 Subject: [PATCH] Issue #1664: In the Sketcher, add the function Split a segment. Widget of Split feature should not restore selection in viewer to the attribute value. --- src/PartSet/PartSet_WidgetSubShapeSelector.cpp | 7 +++++++ src/PartSet/PartSet_WidgetSubShapeSelector.h | 5 +++++ 2 files changed, 12 insertions(+) diff --git a/src/PartSet/PartSet_WidgetSubShapeSelector.cpp b/src/PartSet/PartSet_WidgetSubShapeSelector.cpp index 2057b467c..46c20acea 100755 --- a/src/PartSet/PartSet_WidgetSubShapeSelector.cpp +++ b/src/PartSet/PartSet_WidgetSubShapeSelector.cpp @@ -122,6 +122,13 @@ void PartSet_WidgetSubShapeSelector::getGeomSelection(const ModuleBase_ViewerPrs theObject = myCurrentSubShape->object(); } +//******************************************************************** +QList PartSet_WidgetSubShapeSelector::getAttributeSelection() const +{ + return QList(); +} + + //******************************************************************** bool PartSet_WidgetSubShapeSelector::setSelection( QList>& theValues, diff --git a/src/PartSet/PartSet_WidgetSubShapeSelector.h b/src/PartSet/PartSet_WidgetSubShapeSelector.h index 2831dfdb6..b93f4d074 100644 --- a/src/PartSet/PartSet_WidgetSubShapeSelector.h +++ b/src/PartSet/PartSet_WidgetSubShapeSelector.h @@ -100,6 +100,11 @@ protected: ObjectPtr& theObject, GeomShapePtr& theShape); + /// Return the attribute values wrapped in a list of viewer presentations + /// \return a list of viewer presentations, which contains an attribute result and + /// a shape. If the attribute do not uses the shape, it is empty + virtual QList> getAttributeSelection() const; + protected: /// The methiod called when widget is activated virtual void activateCustom(); -- 2.39.2