/// 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; }
/// \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.
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() {}
/// before operation feature creating
CompositeFeaturePtr myParentFeature;
+ /// Last current feature before editing operation
+ FeaturePtr myCurrentFeature;
};
#endif