Salome HOME
Spell-checking
[modules/shaper.git] / src / ModuleBase / ModuleBase_IModule.h
index 79b702e3eaf56d614e5ded29926be6eea73998f5..a482586078a557b85c3f94bdac403013e1377155 100644 (file)
@@ -130,6 +130,10 @@ class MODULEBASE_EXPORT ModuleBase_IModule : public QObject
   /// \return a boolean value\r
   virtual bool canCommitOperation() const;\r
 \r
+  /// Returns whether the object can be erased. The default realization returns true.\r
+  /// \param theObject a model object\r
+  virtual bool canEraseObject(const ObjectPtr& theObject) const;\r
+\r
   /// Returns whether the object can be displayed. The default realization returns true.\r
   /// \param theObject a model object\r
   virtual bool canDisplayObject(const ObjectPtr& theObject) const;\r
@@ -160,8 +164,10 @@ class MODULEBASE_EXPORT ModuleBase_IModule : public QObject
   * If the object is result with the color attribute value set, it is used,\r
   * otherwise the customize is applyed to the object's feature if it is a custom prs\r
   * \param theObject an object instance\r
+  * \param theUpdateViewer the parameter whether the viewer should be update immediatelly\r
+  * \returns true if the object is modified\r
   */\r
-  virtual void customizeObject(ObjectPtr theObject) {}\r
+  virtual bool customizeObject(ObjectPtr theObject, const bool theUpdateViewer);\r
 \r
   /// This method is called on object browser creation for customisation of module specific features\r
   /// \param theObjectBrowser a pinter on Object Browser widget\r