Sketcher - Construction Migration - step 1: SketchGeometryExtension add construction enum

================================================================================

First step towards migration - Create Construction Geometry Mode in Extension
This commit is contained in:
Abdullah Tahiri
2020-12-02 13:07:09 +01:00
committed by abdullahtahiriyo
parent 40c8af8014
commit 6f63796efb

View File

@@ -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<const char *,InternalType::NumInternalGeometryType> internaltype2str {{ "None", "EllipseMajorDiameter", "EllipseMinorDiameter","EllipseFocus1", "EllipseFocus2", "HyperbolaMajor", "HyperbolaMinor", "HyperbolaFocus", "ParabolaFocus", "BSplineControlPoint", "BSplineKnotPoint" }};
constexpr static std::array<const char *,GeometryMode::NumGeometryMode> geometrymode2str {{ "Blocked" }};
constexpr static std::array<const char *,GeometryMode::NumGeometryMode> geometrymode2str {{ "Blocked", "Construction" }};
static bool getInternalTypeFromName(std::string str, InternalType::InternalType &type);