From: nds Date: Wed, 27 Jul 2016 15:28:07 +0000 (+0300) Subject: Issue #1664: In the Sketcher, add the function Split a segment. Widget of Split featu... X-Git-Tag: V_2.5.0~164 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=941757ad0d0140393e4f1b371dc2d7552120750c;p=modules%2Fshaper.git 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. --- 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();