X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FXGUI%2FXGUI_OperationMgr.h;h=1cf7dcefcbbd5fcbb6a5cc6588f24f313d39a979;hb=9cea92b08d17ed1cb784b7ed774b947d03a348e1;hp=d24064c24403b1d565f17a872ffa5330b8e39c38;hpb=3874b57fe5aba25ff5aee2a07654fc23c1ee8eb0;p=modules%2Fshaper.git diff --git a/src/XGUI/XGUI_OperationMgr.h b/src/XGUI/XGUI_OperationMgr.h index d24064c24..1cf7dcefc 100644 --- a/src/XGUI/XGUI_OperationMgr.h +++ b/src/XGUI/XGUI_OperationMgr.h @@ -82,6 +82,13 @@ Q_OBJECT /// Returns true if the operation can be aborted bool canAbortOperation(); + /// Blocking/unblocking enabling of Ok button in property panel. + /// It is used when operation can not be validated even all attributes are valid + void setLockValidating(bool toLock) { myIsValidationLock = toLock; } + + /// Returns state of validation locking + bool isValidationLocked() const { return myIsValidationLock; } + public slots: /// Slot that commits the current operation. void onCommitOperation(); @@ -101,8 +108,8 @@ signals: /// Signal about an operation is resumed. It is emitted after the resume() of operation is done. void operationResumed(ModuleBase_Operation* theOperation); - /// Emitted when current operation is comitted - void operationComitted(ModuleBase_Operation* theOperation); + /// Emitted when current operation is Committed + void operationCommitted(ModuleBase_Operation* theOperation); /// Emitted when current operation is aborted void operationAborted(ModuleBase_Operation* theOperation); @@ -139,13 +146,16 @@ signals: void onOperationStopped(); void onOperationStarted(); void onOperationAborted(); - void onOperationComitted(); + void onOperationCommitted(); void onOperationResumed(); private: typedef QList Operations; ///< definition for a list of operations Operations myOperations; ///< a stack of started operations. The active operation is on top, // others are suspended and started by the active is finished + + /// Lock/Unlock access to Ok button in property panel + bool myIsValidationLock; }; #endif