Salome HOME
Issue #348 Validate sketch is disabled when point coordinates are set manually
authornds <natalia.donis@opencascade.com>
Mon, 26 Jan 2015 08:22:48 +0000 (11:22 +0300)
committernds <natalia.donis@opencascade.com>
Mon, 26 Jan 2015 08:22:48 +0000 (11:22 +0300)
commit1c2db2a9ea5f192e2bde3c81e19a9915e2f89d53
tree7c92907abb198318ab6200a9f1bc0508711567f7
parentcef62927c901f5e3e44bfee25e81e1ed20aab91c
Issue #348 Validate sketch is disabled when point coordinates are set manually

It saves the clicked point, connects to the the activated signal of a widget and try initialize the widget with the point value.
There are some limitations:
Firstly, for the constraints distane we should not perform it because the fly out point is moved to the mouse, there is a blinking between calculated value and the clicked. It can be corrected if do not update the viewer during this. But, the lightes workaround is to do not apply clicked point to such type of operation.
Secondly, the mouse release point should be also saved in the clicked point for the mouse moving with Left button swithed. Without this, the actuvatedwidget value is moved to the previuosly clicked mouse but not the current one.
src/ModuleBase/ModuleBase_IPropertyPanel.h
src/PartSet/PartSet_SketcherMgr.cpp
src/PartSet/PartSet_SketcherMgr.h
src/XGUI/XGUI_PropertyPanel.cpp
src/XGUI/XGUI_Workshop.cpp
src/XGUI/XGUI_Workshop.h