From 458411a82fcc9e0146ce49a41c88a47b26240181 Mon Sep 17 00:00:00 2001 From: nds Date: Thu, 26 Jun 2014 16:23:58 +0400 Subject: [PATCH] refs #80 - Sketch base GUI: create/draw point, circle and arc Position point for parallel and perpendicular constraints. --- src/SketchPlugin/SketchPlugin_ConstraintParallel.cpp | 3 +++ .../SketchPlugin_ConstraintPerpendicular.cpp | 3 +++ src/SketchPlugin/plugin-Sketch.xml | 10 ++++------ 3 files changed, 10 insertions(+), 6 deletions(-) diff --git a/src/SketchPlugin/SketchPlugin_ConstraintParallel.cpp b/src/SketchPlugin/SketchPlugin_ConstraintParallel.cpp index 342b2c1de..92e23ead4 100644 --- a/src/SketchPlugin/SketchPlugin_ConstraintParallel.cpp +++ b/src/SketchPlugin/SketchPlugin_ConstraintParallel.cpp @@ -12,6 +12,8 @@ #include #include +#include + SketchPlugin_ConstraintParallel::SketchPlugin_ConstraintParallel() { } @@ -20,6 +22,7 @@ void SketchPlugin_ConstraintParallel::initAttributes() { data()->addAttribute(CONSTRAINT_ATTR_ENTITY_A, ModelAPI_AttributeRefAttr::type()); data()->addAttribute(CONSTRAINT_ATTR_ENTITY_B, ModelAPI_AttributeRefAttr::type()); + data()->addAttribute(CONSTRAINT_ATTR_FLYOUT_VALUE_PNT, GeomDataAPI_Point2D::type()); } void SketchPlugin_ConstraintParallel::execute() diff --git a/src/SketchPlugin/SketchPlugin_ConstraintPerpendicular.cpp b/src/SketchPlugin/SketchPlugin_ConstraintPerpendicular.cpp index ca5e22972..d3646af7e 100644 --- a/src/SketchPlugin/SketchPlugin_ConstraintPerpendicular.cpp +++ b/src/SketchPlugin/SketchPlugin_ConstraintPerpendicular.cpp @@ -4,6 +4,8 @@ #include "SketchPlugin_ConstraintPerpendicular.h" +#include + #include #include #include @@ -20,6 +22,7 @@ void SketchPlugin_ConstraintPerpendicular::initAttributes() { data()->addAttribute(CONSTRAINT_ATTR_ENTITY_A, ModelAPI_AttributeRefAttr::type()); data()->addAttribute(CONSTRAINT_ATTR_ENTITY_B, ModelAPI_AttributeRefAttr::type()); + data()->addAttribute(CONSTRAINT_ATTR_FLYOUT_VALUE_PNT, GeomDataAPI_Point2D::type()); } void SketchPlugin_ConstraintPerpendicular::execute() diff --git a/src/SketchPlugin/plugin-Sketch.xml b/src/SketchPlugin/plugin-Sketch.xml index 582a118c6..20c8e80d5 100644 --- a/src/SketchPlugin/plugin-Sketch.xml +++ b/src/SketchPlugin/plugin-Sketch.xml @@ -1,7 +1,7 @@ - + @@ -21,11 +21,7 @@ - - + -- 2.39.2