disconnect(aViewer, SIGNAL(mouseRelease(ModuleBase_IViewWindow*, QMouseEvent*)),
this, SLOT(onMouseRelease(ModuleBase_IViewWindow*, QMouseEvent*)));
myWorkshop->moduleConnector()->deactivateSubShapesSelection();
+ myWorkshop->operationMgr()->setLockValidating(false);
}
bool PartSet_WidgetPoint2D::getPoint2d(const Handle(V3d_View)& theView,
this, SLOT(onMouseMove(ModuleBase_IViewWindow*, QMouseEvent*)));
disconnect(aViewer, SIGNAL(mouseRelease(ModuleBase_IViewWindow*, QMouseEvent*)),
this, SLOT(onMouseRelease(ModuleBase_IViewWindow*, QMouseEvent*)));
+ myWorkshop->operationMgr()->setLockValidating(false);
}
void PartSet_WidgetPoint2dDistance::onMouseRelease(ModuleBase_IViewWindow* theWnd, QMouseEvent* theEvent)
void XGUI_PropertyPanel::setAcceptEnabled(bool isEnabled)
{
QPushButton* anOkBtn = findChild<QPushButton*>(PROP_PANEL_OK);
- anOkBtn->setEnabled(true);//isEnabled);
+ anOkBtn->setEnabled(isEnabled);
}
void XGUI_PropertyPanel::activateWidget(ModuleBase_ModelWidget* theWidget)
void XGUI_PropertyPanel::setOkEnabled(bool theEnabled)
{
QPushButton* anOkBtn = findChild<QPushButton*>(PROP_PANEL_OK);
- anOkBtn->setEnabled(true);//theEnabled);
+ anOkBtn->setEnabled(theEnabled);
}
bool XGUI_PropertyPanel::isOkEnabled() const