From ff9eac966c535589cb1bdd687386d368dccf1cd6 Mon Sep 17 00:00:00 2001 From: Abdullah Tahiri Date: Wed, 2 Dec 2020 13:07:09 +0100 Subject: [PATCH] Sketcher - Construction Migration - step 1: SketchGeometryExtension add construction enum ================================================================================ First step towards migration - Create Construction Geometry Mode in Extension --- src/Mod/Sketcher/App/SketchGeometryExtension.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Mod/Sketcher/App/SketchGeometryExtension.h b/src/Mod/Sketcher/App/SketchGeometryExtension.h index 3ad0893c1f..68c05b96da 100644 --- a/src/Mod/Sketcher/App/SketchGeometryExtension.h +++ b/src/Mod/Sketcher/App/SketchGeometryExtension.h @@ -51,6 +51,7 @@ namespace Sketcher namespace GeometryMode { enum GeometryMode { Blocked = 0, + Construction = 1, NumGeometryMode // Must be the last }; } @@ -101,7 +102,7 @@ public: constexpr static std::array internaltype2str {{ "None", "EllipseMajorDiameter", "EllipseMinorDiameter","EllipseFocus1", "EllipseFocus2", "HyperbolaMajor", "HyperbolaMinor", "HyperbolaFocus", "ParabolaFocus", "BSplineControlPoint", "BSplineKnotPoint" }}; - constexpr static std::array geometrymode2str {{ "Blocked" }}; + constexpr static std::array geometrymode2str {{ "Blocked", "Construction" }}; static bool getInternalTypeFromName(std::string str, InternalType::InternalType &type);