X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FXGUI%2FXGUI_OperationMgr.h;h=f6632c161631d3b04c8ea152d09c3632d6b71cd5;hb=880a5c5b031fe9bbd7833fa3918af3e216d98d34;hp=82680fb56035ab4f072be9ef0db42b82c37c15b8;hpb=7f6341eabf8fe82dbb4a852bbf3f2854ddd8e52b;p=modules%2Fshaper.git diff --git a/src/XGUI/XGUI_OperationMgr.h b/src/XGUI/XGUI_OperationMgr.h index 82680fb56..f6632c161 100644 --- a/src/XGUI/XGUI_OperationMgr.h +++ b/src/XGUI/XGUI_OperationMgr.h @@ -62,6 +62,9 @@ signals: void operationStopped(ModuleBase_Operation* theOperation); /// Signal about an operation is resumed. It is emitted after the resume() of operation is done. void operationResumed(); + /// Signal about the necessety of the next widget activating + /// \param theWidget the model widget + void activateNextWidget(ModuleBase_ModelWidget* theWidget); protected: /// Sets the current operation or NULL @@ -78,6 +81,9 @@ protected: /// Returns whether the operation can be stopped. bool canStopOperation(); + /// Returns true if the operation can be aborted + bool canAbortOperation(); + protected slots: /// Slot that commits the current operation. void onCommitOperation(); @@ -93,6 +99,10 @@ protected slots: /// \param theEvent the mouse event void onKeyReleased(const std::string& theName, QKeyEvent* theEvent); + /// SLOT, that reacts to the widget activation + /// \param theWidget an activated widget + void onWidgetActivated(ModuleBase_ModelWidget* theWidget); + private: typedef QList Operations; ///< definition for a list of operations Operations myOperations; ///< a stack of started operations. The active operation is on top,