Salome HOME
Edit operation correction.
[modules/shaper.git] / src / ModuleBase / ModuleBase_WidgetFeatureOrAttribute.h
index 8ba8d352ce320dad5781d47b2ce3d46ce918539a..1dfd055ceb48f2b8699942cc7e59ec4f927cd5c9 100644 (file)
@@ -40,8 +40,15 @@ Q_OBJECT
   virtual bool storeValue() const;
 
   virtual bool restoreValue();
+  /// Defines if it is supposed that the widget should interact with the viewer.
+  virtual bool isViewerSelector() { return true; }
 
  protected:
+   /// Returns the feature attribute if it can be found by the given value
+   /// \param theValue the widget value
+   /// \return an attribute or null
+   boost::shared_ptr<ModelAPI_Attribute> findAttribute(ModuleBase_WidgetValue* theValue);
+
   /// Set the attribute
   /// \param theAttribute value
   /// \return the boolean result of the attribute set