X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FModuleBase%2FModuleBase_Operation.h;h=9d304e715b2fedd09c42c2d6edeb7eeb63063289;hb=9ddba1caf0817c1e95c55d4c5b8ae6de23cbe6d5;hp=a76c7c0ee7c356ec519a5e97f1ac25046fec4c2f;hpb=a24b7e6f4d112d5e7889fd76f030298fc428cd01;p=modules%2Fshaper.git diff --git a/src/ModuleBase/ModuleBase_Operation.h b/src/ModuleBase/ModuleBase_Operation.h index a76c7c0ee..9d304e715 100644 --- a/src/ModuleBase/ModuleBase_Operation.h +++ b/src/ModuleBase/ModuleBase_Operation.h @@ -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; } @@ -148,6 +151,10 @@ signals: /// The operation is postponed void postponed(); + /// The operation is triggered + /// \param theState a new triggered state + void triggered(bool theState); + /// The operation is filled with existing preselection void activatedByPreselection(); @@ -187,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. @@ -202,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() {} @@ -260,6 +270,8 @@ signals: /// before operation feature creating CompositeFeaturePtr myParentFeature; + /// Last current feature before editing operation + FeaturePtr myCurrentFeature; }; #endif