Salome HOME
Issue #1961: Filter not acceptable shapes and objects
[modules/shaper.git] / src / CollectionPlugin / CollectionPlugin_WidgetField.h
index 3bd98f95c7c4f5aeb38187905a35243fa3eb0c94..e0084fcb335dd765b93a21a84df72df85ec7fbb1 100644 (file)
@@ -82,6 +82,13 @@ public:
   /// The methiod called when widget is deactivated
   virtual void deactivate();
 
+  /// Set the given wrapped value to the current widget
+  /// This value should be processed in the widget according to the needs
+  /// \param theValues the wrapped selection values
+  /// \param theToValidate a validation of the values flag
+  virtual bool setSelection(QList<std::shared_ptr<ModuleBase_ViewerPrs>>& theValues,
+                            const bool theToValidate);
+
 protected:
   /// Saves the internal parameters to the given feature
   /// \return True in success
@@ -106,10 +113,6 @@ protected:
   /// a shape. If the attribute do not uses the shape, it is empty
   virtual QList<std::shared_ptr<ModuleBase_ViewerPrs>> getAttributeSelection() const;
 
-protected slots:
-  /// Slot which is called on selection event
-  virtual void onSelectionChanged();
-
 private slots:
   /// Slot called on number of component changed
   /// \param theVal - a new components number