diff --git a/src/Mod/Sketcher/Gui/CMakeLists.txt b/src/Mod/Sketcher/Gui/CMakeLists.txt index 50e7f5d39a..9c7277dfe1 100644 --- a/src/Mod/Sketcher/Gui/CMakeLists.txt +++ b/src/Mod/Sketcher/Gui/CMakeLists.txt @@ -54,6 +54,7 @@ SET(SketcherGui_SRCS AutoConstraint.h Utils.h Utils.cpp + CircleEllipseConstructionMethod.h DrawSketchHandlerLine.h DrawSketchHandlerRectangle.h DrawSketchHandlerPolygon.h diff --git a/src/Mod/Sketcher/Gui/CircleEllipseConstructionMethod.h b/src/Mod/Sketcher/Gui/CircleEllipseConstructionMethod.h new file mode 100644 index 0000000000..2123ca1f48 --- /dev/null +++ b/src/Mod/Sketcher/Gui/CircleEllipseConstructionMethod.h @@ -0,0 +1,40 @@ +/*************************************************************************** + * Copyright (c) 2022 Abdullah Tahiri * + * * + * This file is part of the FreeCAD CAx development system. * + * * + * This library is free software; you can redistribute it and/or * + * modify it under the terms of the GNU Library General Public * + * License as published by the Free Software Foundation; either * + * version 2 of the License, or (at your option) any later version. * + * * + * This library is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU Library General Public License for more details. * + * * + * You should have received a copy of the GNU Library General Public * + * License along with this library; see the file COPYING.LIB. If not, * + * write to the Free Software Foundation, Inc., 59 Temple Place, * + * Suite 330, Boston, MA 02111-1307, USA * + * * + ***************************************************************************/ + + +#ifndef SKETCHERGUI_CircleEllipseConstructionMethod_H +#define SKETCHERGUI_CircleEllipseConstructionMethod_H + +namespace SketcherGui::ConstructionMethods +{ + +enum class CircleEllipseConstructionMethod +{ + Center, + ThreeRim, + End // Must be the last one +}; + +} // namespace SketcherGui::ConstructionMethods + + +#endif // SKETCHERGUI_CircleEllipseConstructionMethod_H diff --git a/src/Mod/Sketcher/Gui/CommandCreateGeo.cpp b/src/Mod/Sketcher/Gui/CommandCreateGeo.cpp index f41e61c767..169c1614b8 100644 --- a/src/Mod/Sketcher/Gui/CommandCreateGeo.cpp +++ b/src/Mod/Sketcher/Gui/CommandCreateGeo.cpp @@ -44,6 +44,7 @@ #include #include +#include "CircleEllipseConstructionMethod.h" #include "GeometryCreationMode.h" #include "Utils.h" #include "ViewProviderSketch.h"