Salome HOME
Issue #591 - Highlight of the first argument of constraints
[modules/shaper.git] / src / ModuleBase / ModuleBase_Operation.h
index c453e6b0616196a613694f90c9cd55214308dc3e..9d304e715b2fedd09c42c2d6edeb7eeb63063289 100644 (file)
@@ -76,6 +76,9 @@ Q_OBJECT
   /// Returns True if data of its feature was modified during operation
   virtual bool isModified() const { return myIsModified; }
 
+  /// Change the modified state of the operation
+  void setIsModified(const bool theIsModified) { myIsModified = theIsModified;  }
+
   /// Returns True id the current operation is launched in editing mode
   bool isEditOperation() const { return myIsEditing; }
 
@@ -191,6 +194,9 @@ signals:
   /// \param theState th flag to abort, if it is true, do nothing, overwise abort
   void setRunning(bool theState);
 
+  /// Changes the modified flag of the operation
+  void onValuesChanged();
+
  protected:
   /// Virtual method called when operation started (see start() method for more description)
   /// Default impl calls corresponding slot and commits immediately.
@@ -206,7 +212,7 @@ signals:
   virtual void abortOperation() {}
 
   /// Virtual method called when operation committed (see commit() method for more description)
-  virtual void commitOperation() {}
+  virtual void commitOperation();
 
   /// Virtual method called after operation committed (see commit() method for more description)
   virtual void afterCommitOperation() {}
@@ -264,6 +270,8 @@ signals:
   /// before operation feature creating
   CompositeFeaturePtr myParentFeature;  
 
+  /// Last current feature before editing operation
+  FeaturePtr myCurrentFeature;
 };
 
 #endif