+//******************************************************
+void XGUI_Workshop::onAcceptActionClicked()
+{
+ QAction* anAction = dynamic_cast<QAction*>(sender());
+ XGUI_OperationMgr* anOperationMgr = operationMgr();
+ if (anOperationMgr) {
+ ModuleBase_OperationFeature* aFOperation = dynamic_cast<ModuleBase_OperationFeature*>
+ (anOperationMgr->currentOperation());
+ if (aFOperation) {
+ if (errorMgr()->canProcessClick(anAction, aFOperation->feature()))
+ myOperationMgr->onCommitOperation();
+ }
+ }
+}
+
+//******************************************************
+/*void XGUI_Workshop::onValidationStateChanged(bool theEnabled)
+{
+ XGUI_OperationMgr* anOperationMgr = operationMgr();
+ if (anOperationMgr) {
+ ModuleBase_OperationFeature* aFOperation = dynamic_cast<ModuleBase_OperationFeature*>
+ (anOperationMgr->currentOperation());
+ if (aFOperation) {
+ QAction* anAction = myActionsMgr->operationStateAction(XGUI_ActionsMgr::Accept);
+ myErrorMgr->updateActionState(anAction, aFOperation->feature(), theEnabled);
+ }
+ }
+}*/
+