- protected:
- void filterShapes(const NCollection_List<TopoDS_Shape>& theShapesToFilter,
- NCollection_List<TopoDS_Shape>& theResult);
- void setCurrentShapeType(const TopAbs_ShapeEnum theShapeType);
- void activateShapeSelection();
+protected slots:
+ /// Slot for copy command in a list pop-up menu
+ void onCopyItem();
+
+ /// Slot for delete command in a list pop-up menu
+ void onDeleteItem();
+
+ /// Slot is called on selection of list of selected items
+ void onListSelection();
+
+protected:
+ /// The methiod called when widget is activated
+ virtual void activateCustom();
+
+ /// Saves the internal parameters to the given feature
+ /// \return True in success
+ virtual bool storeValueCustom() const;
+
+ virtual bool restoreValueCustom();
+
+ /// Creates a backup of the current values of the attribute
+ /// It should be realized in the specific widget because of different
+ /// parameters of the current attribute
+ virtual void storeAttributeValue();
+
+ /// Clear attribute
+ virtual void clearAttribute();
+
+ /// Set the focus on the last item in the list
+ virtual void updateFocus();
+
+ /// Computes and updates name of selected object in the widget
+ virtual void updateSelectionName();
+
+ /// Retunrs a list of possible shape types
+ /// \return a list of shapes
+ virtual QIntList getShapeTypes() const;
+
+ /// Append the values to the model attribute of the widget. It casts this attribute to
+ /// the specific type and set the given values
+ /// \param theSelectedObject an object
+ /// \param theShape a selected shape, which is used in the selection attribute
+ /// \return true if it is succeed
+ void setObject(ObjectPtr theSelectedObject, GeomShapePtr theShape);