X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FModuleBase%2FModuleBase_Operation.h;h=0fffbc0fdae9bea6f8bfd4fbf3e9678e2b79f2f1;hb=7850a95ad1efe835c2266230bdab39bf2e856789;hp=01a351d1ddc19ed1ea0821057c22c2e242847b7c;hpb=f0f8fbdcadad2d5d42c443e70afc6251faea1469;p=modules%2Fshaper.git diff --git a/src/ModuleBase/ModuleBase_Operation.h b/src/ModuleBase/ModuleBase_Operation.h index 01a351d1d..0fffbc0fd 100644 --- a/src/ModuleBase/ModuleBase_Operation.h +++ b/src/ModuleBase/ModuleBase_Operation.h @@ -63,14 +63,6 @@ Q_OBJECT /// \param theList an ids void setGrantedOperationIds(const QStringList& theList); - /// Appends an operation index to be granted - /// \param theId an index - void addGrantedOperationId(const QString& theId); - - /// Removes an operation index from the granted - /// \param theId an index - void removeGrantedOperationId(const QString& theId); - /// Must return true if this operation can be launched as nested for any current operation /// and it is not necessary to check this operation on validity. By default /// the operation is not granted. @@ -98,12 +90,18 @@ Q_OBJECT ModuleBase_IPropertyPanel* propertyPanel() const { return myPropertyPanel; } signals: + /// The operation is started + void beforeStarted(); /// The operation is started void started(); + /// The operation is aborted + void beforeAborted(); /// The operation is aborted void aborted(); + /// The operation is committed + void beforeCommitted(); /// The operation is committed void committed(); @@ -123,7 +121,8 @@ signals: /// to change behavior of operation. There is no point in using this method. It would /// be better to inherit own operator from base one and redefine startOperation method /// instead. - virtual void start(); + /// \return true if the start is successful + virtual bool start(); /// Deactivates current operation which can be resumed later. virtual void postpone();