X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FModuleBase%2FModuleBase_IOperation.h;h=4af5c227f6abe858f23262cd958fab9cc3e2cd2a;hb=a8d0fddcc65db1fe234df36354b6735918075a70;hp=b3373e4bf2764955aa3d8513df6a91a9500d3b48;hpb=98d902a1056a3476a50af26142b367cfd45d3cc9;p=modules%2Fshaper.git diff --git a/src/ModuleBase/ModuleBase_IOperation.h b/src/ModuleBase/ModuleBase_IOperation.h index b3373e4bf..4af5c227f 100644 --- a/src/ModuleBase/ModuleBase_IOperation.h +++ b/src/ModuleBase/ModuleBase_IOperation.h @@ -55,6 +55,10 @@ public: /// /returns the instance of the description class ModuleBase_OperationDescription* getDescription() const; + /// Verifies whether this operator can be commited. + /// \return Returns TRUE if current operation can be committed, e.g. all parameters are filled + virtual bool canBeCommitted() const; + /// Verifies whether this operator can be always started above any already running one /// \return Returns TRUE if current operation must not be checked for ActiveOperation->IsValid( this ) /// This method must be redefined in derived operation if operation of derived class @@ -118,6 +122,9 @@ protected: virtual void abortOperation() = 0; /// Virtual method called when operation committed (see commit() method for more description) virtual void commitOperation() = 0; + /// Virtual method called after operation committed (see commit() method for more description) + /// it is important that the method is called after the stop() signal is emitted + virtual void afterCommitOperation() = 0; /// Returns pointer to the root document. boost::shared_ptr document() const;