Salome HOME
Use activation only for objects which are not result of a current operation
[modules/shaper.git] / src / ModuleBase / ModuleBase_IModule.h
index 1b3081dd976012fba8772e83870c09b9500b76f7..6ae486f6c72c7d8c8170be9716eb25773d2ef48e 100644 (file)
@@ -117,6 +117,11 @@ class MODULEBASE_EXPORT ModuleBase_IModule : public QObject
   /// \param theObject a model object\r
   virtual bool canDisplayObject(const ObjectPtr& theObject) const;\r
 \r
+  /// Returns true if selection for the object can be activate.\r
+  /// By default a result or feature of the current operation can not be activated\r
+  /// \param theObject a model object\r
+  virtual bool canActivateSelection(const ObjectPtr& theObject) const;\r
+\r
   /// Reacts to the delete action in module\r
   /// \returns true if the action is processed\r
   virtual bool deleteObjects() { return false; };\r