Salome HOME
Issue #1343 Improvement of Extrusion and Revolution operations: delete of inappropria...
[modules/shaper.git] / src / ModuleBase / ModuleBase_IModule.h
index 016564178d8f7f2971b9597661091760276d2de8..45d070997c34b9c430a8325891eeba0b5737d2f2 100755 (executable)
@@ -73,6 +73,10 @@ class MODULEBASE_EXPORT ModuleBase_IModule : public QObject
   /// \param theFeature feature for editing\r
   virtual void editFeature(FeaturePtr theFeature);\r
 \r
+  /// Returns true if the operation can be committed. Result in default implementation is true.\r
+  /// \return boolean value\r
+  virtual bool canCommitOperation() const { return true; }\r
+\r
   /// Creates an operation and send it to loop\r
   /// \param theCmdId the operation name\r
   virtual void launchOperation(const QString& theCmdId);\r