X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FXGUI%2FXGUI_OperationMgr.h;h=1cf7dcefcbbd5fcbb6a5cc6588f24f313d39a979;hb=340b387f8fe22028900d0f2ba2b81eac538014c4;hp=c805532859282cbd56dfeea40bbefe786c259222;hpb=6ebb0f00477866099d80a8373d2b306d8ed0906e;p=modules%2Fshaper.git diff --git a/src/XGUI/XGUI_OperationMgr.h b/src/XGUI/XGUI_OperationMgr.h index c80553285..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(); @@ -146,6 +153,9 @@ signals: 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