Fill the property panel by the sketch current operation on a suboperation finish.
void ModuleBase_IOperation::resume()
{
+ emit resumed();
}
void ModuleBase_IOperation::abort()
void aborted(); /// the operation is aborted
void committed(); /// the operation is committed
void stopped(); /// the operation is aborted or committed
+ void resumed(); /// the operation is resumed
public slots:
/// Starts operation
connect(theOperation, SIGNAL(stopped()), this, SLOT(onOperationStopped()));
connect(theOperation, SIGNAL(started()), this, SIGNAL(operationStarted()));
+ connect(theOperation, SIGNAL(resumed()), this, SIGNAL(operationResumed()));
theOperation->start();
return true;
void XGUI_OperationMgr::resumeOperation(ModuleBase_Operation* theOperation)
{
- connect(theOperation, SIGNAL(stopped()), this, SLOT(onOperationStopped()));
- connect(theOperation, SIGNAL(started()), this, SIGNAL(operationStarted()));
-
theOperation->resume();
}
/// Signal about an operation is stopped. It is emitted after the stop() of operation is done.
/// \param theOperation a stopped operation
void operationStopped(ModuleBase_Operation* theOperation);
+ /// Signal about an operation is resumed. It is emitted after the resume() of operation is done.
+ void operationResumed();
protected:
/// Sets the current operation or NULL
myViewerProxy = new XGUI_ViewerProxy(this);
connect(myOperationMgr, SIGNAL(operationStarted()), this, SLOT(onOperationStarted()));
+ connect(myOperationMgr, SIGNAL(operationResumed()), this, SLOT(onOperationStarted()));
connect(myOperationMgr, SIGNAL(operationStopped(ModuleBase_Operation*)),
this, SLOT(onOperationStopped(ModuleBase_Operation*)));
connect(this, SIGNAL(errorOccurred(const QString&)), myErrorDlg, SLOT(addError(const QString&)));