From d95aebd2b3e54e2feb4a0accdf98c3d35cecba75 Mon Sep 17 00:00:00 2001 From: apl Date: Fri, 7 Oct 2016 21:35:07 +0300 Subject: [PATCH] Temporary enable global selection for test of interactivity --- src/MeasureGUI/MeasureGUI_AnnotationDlg.cxx | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/MeasureGUI/MeasureGUI_AnnotationDlg.cxx b/src/MeasureGUI/MeasureGUI_AnnotationDlg.cxx index 2afd00811..baf3a0efb 100755 --- a/src/MeasureGUI/MeasureGUI_AnnotationDlg.cxx +++ b/src/MeasureGUI/MeasureGUI_AnnotationDlg.cxx @@ -222,7 +222,7 @@ void MeasureGUI_AnnotationDlg::Init() myEditCurrentArgument = myShapeName; // default presentation values - myAnnotationProperties.Position = gp_Pnt(50, 50, 50); + myAnnotationProperties.Position = gp_Pnt(250, 250, 250); myAnnotationProperties.Text = tr("ANNOTATION_PREFIX"); myAnnotationProperties.IsVisible = true; myAnnotationProperties.IsScreenFixed = false; @@ -242,7 +242,7 @@ void MeasureGUI_AnnotationDlg::Init() connect(mySubShapeTypeCombo, SIGNAL(currentIndexChanged(int)), this, SLOT(onSubShapeTypeChange())); - SelectionIntoArgument(); + //SelectionIntoArgument(); } else { // edition @@ -256,10 +256,10 @@ void MeasureGUI_AnnotationDlg::Init() //================================================================================= void MeasureGUI_AnnotationDlg::activateSelection() { - globalSelection(GEOM_ALLSHAPES); - if (!myShape->_is_nil() && mySelectionMode != TopAbs_SHAPE) { - localSelection(myShape.get(), mySelectionMode); - } + //globalSelection(GEOM_ALLSHAPES); + //if (!myShape->_is_nil() && mySelectionMode != TopAbs_SHAPE) { + // localSelection(myShape.get(), mySelectionMode); + //} } //================================================================================= @@ -597,7 +597,7 @@ void MeasureGUI_AnnotationDlg::redisplayPreview() //================================================================================= gp_Pnt MeasureGUI_AnnotationDlg::getAttachPoint(const TopoDS_Shape& theShape) { - gp_Pnt aPoint = gp_Pnt(300, 300, 300); + gp_Pnt aPoint = gp_Pnt(0, 0, 0); return aPoint; } -- 2.39.2