Salome HOME
Reanud's patch for modern Cpp11 compilers applied
[modules/shaper.git] / src / ModuleBase / ModuleBase_IModule.h
index bf1675bfaa9e4ac32f9ec5dc7e8fe7ed0073b6ea..5703bb3c068b09a228f3475cf0ca058a1e6fc380 100644 (file)
@@ -1,3 +1,5 @@
+// Copyright (C) 2014-20xx CEA/DEN, EDF R&D\r
+\r
 #ifndef ModuleBase_IModule_H\r
 #define ModuleBase_IModule_H\r
 \r
@@ -53,6 +55,15 @@ class MODULEBASE_EXPORT ModuleBase_IModule : public QObject
   /// \param theOperation a resumed operation\r
   virtual void operationResumed(ModuleBase_Operation* theOperation) {}\r
 \r
+  /// Realizes some functionality by an operation stop\r
+  virtual void operationStopped(ModuleBase_Operation* theOperation) {}\r
+\r
+  /// Realizes some functionality by an operation commit\r
+  virtual void operationCommitted(ModuleBase_Operation* theOperation) {}\r
+\r
+  /// Realizes some functionality by an operation abort\r
+  virtual void operationAborted(ModuleBase_Operation* theOperation) {}\r
+\r
   /// Called when it is necessary to update a command state (enable or disable it)\r
   //virtual bool isFeatureEnabled(const QString& theCmdId) const = 0;\r
 \r
@@ -74,16 +85,6 @@ public slots:
   void onFeatureTriggered();\r
 \r
 protected slots:\r
-  /// SLOT, that is called after the operation is stopped. Switched off the modfications performed\r
-  /// by the operation start\r
-  virtual void onOperationStopped(ModuleBase_Operation* theOperation) {}\r
-\r
-\r
-  virtual void onOperationComitted(ModuleBase_Operation* theOperation) {}\r
-\r
-  virtual void onOperationAborted(ModuleBase_Operation* theOperation) {}\r
-\r
-\r
   /// Called on selection changed event\r
   virtual void onSelectionChanged() {}\r
 \r