+ /// Returns true if envent is processed. The default implementation is empty, returns false.
+ virtual bool processSelection();
+
+ /// Emits model changed info, updates the current control by selection change
+ /// \param theDone a state whether the selection is set
+ virtual void updateOnSelectionChanged(const bool theDone);
+
+ /// Update focus after the attribute value change
+ // NDS: has body is temporary
+ virtual void updateFocus() {};
+
+ /// Retunrs a list of possible shape types
+ /// \return a list of shapes
+ QIntList getShapeTypes() const;
+
+ /// Retunrs a list of possible shape types
+ /// \return a list of shapes
+ virtual QIntList shapeTypes() const = 0;
+
+ /// Computes and updates name of selected object in the widget
+ // NDS: has body is temporary
+ virtual void updateSelectionName() {};
+
+ /// The methiod called when widget is activated
+ virtual void activateCustom();
+
+ /// Returns true if selected shape corresponds to requested shape types.
+ /// If the widget type of shapes contains the faces item, the result is converted
+ /// to construction result and the method returns true if there is at least one face
+ /// in the construction.
+ /// \param theShape a shape
+ /// \param theResult a selected result
+ bool acceptSubShape(const GeomShapePtr& theShape,
+ const std::shared_ptr<ModelAPI_Result>& theResult) const;
+
+ /// Return an object and geom shape by the viewer presentation
+ /// \param thePrs a selection
+ /// \param theObject an output object
+ /// \param theShape a shape of the selection
+ virtual void getGeomSelection(const std::shared_ptr<ModuleBase_ViewerPrs>& thePrs,
+ ObjectPtr& theObject,
+ GeomShapePtr& theShape);