Allow manual repositioning of ProjGroup views

This commit is contained in:
WandererFan
2016-10-27 13:53:57 -04:00
committed by Yorik van Havre
parent a79d672bbd
commit 68c3f460d7
8 changed files with 109 additions and 59 deletions

View File

@@ -129,8 +129,8 @@ void DrawView::onChanged(const App::Property* prop)
}
} else if (prop == &X ||
prop == &Y) {
if (isMouseMove()) {
setAutoPos(false); //should only be for manual changes? not programmatic changes?
if (isMouseMove()) { //actually "has mouse moved this item?"
setAutoPos(false);
}
}
}
@@ -226,6 +226,14 @@ bool DrawView::checkFit(TechDraw::DrawPage* p) const
return result;
}
void DrawView::setPosition(double x, double y)
{
//recompute.lock()
X.setValue(x);
Y.setValue(y);
//recompute.unlock()
}
PyObject *DrawView::getPyObject(void)
{
if (PythonObject.is(Py::_None())) {