Salome HOME
projects
/
modules
/
shaper.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Init feature by model widget factory content
[modules/shaper.git]
/
src
/
ModuleBase
/
ModuleBase_IOperation.h
diff --git
a/src/ModuleBase/ModuleBase_IOperation.h
b/src/ModuleBase/ModuleBase_IOperation.h
index b3373e4bf2764955aa3d8513df6a91a9500d3b48..4af5c227f6abe858f23262cd958fab9cc3e2cd2a 100644
(file)
--- 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;
/// /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
/// 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 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<ModelAPI_Document> document() const;
/// Returns pointer to the root document.
boost::shared_ptr<ModelAPI_Document> document() const;