/// \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.
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();
/// 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();