diff --git a/src/Mod/Sketcher/App/CMakeLists.txt b/src/Mod/Sketcher/App/CMakeLists.txt index 3436e230ed..2b3d95d6a4 100644 --- a/src/Mod/Sketcher/App/CMakeLists.txt +++ b/src/Mod/Sketcher/App/CMakeLists.txt @@ -79,6 +79,8 @@ SET(Datatypes_SRCS GeometryFacade.h ExternalGeometryFacade.cpp ExternalGeometryFacade.h + GeoEnum.cpp + GeoEnum.h ) SOURCE_GROUP("Datatypes" FILES ${Datatypes_SRCS}) diff --git a/src/Mod/Sketcher/App/GeoEnum.cpp b/src/Mod/Sketcher/App/GeoEnum.cpp new file mode 100644 index 0000000000..ba7c0571e2 --- /dev/null +++ b/src/Mod/Sketcher/App/GeoEnum.cpp @@ -0,0 +1,33 @@ +/*************************************************************************** + * Copyright (c) 2021 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 * + * * + ***************************************************************************/ + +#include "PreCompiled.h" + +#include "GeoEnum.h" + +using namespace Sketcher; + +const int GeoEnum::RtPnt = -1; +const int GeoEnum::HAxis = -1; +const int GeoEnum::VAxis = -2; +const int GeoEnum::RefExt = -3; + diff --git a/src/Mod/Sketcher/App/GeoEnum.h b/src/Mod/Sketcher/App/GeoEnum.h new file mode 100644 index 0000000000..cf0eb34b69 --- /dev/null +++ b/src/Mod/Sketcher/App/GeoEnum.h @@ -0,0 +1,41 @@ +/*************************************************************************** + * Copyright (c) 2021 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 SKETCHER_GeoEnum_H +#define SKETCHER_GeoEnum_H + +namespace Sketcher +{ + +struct SketcherExport GeoEnum +{ + static const int RtPnt; + static const int HAxis; + static const int VAxis; + static const int RefExt; +}; + +} // namespace Sketcher + + +#endif // SKETCHER_GeoEnum_H + diff --git a/src/Mod/Sketcher/App/SketchObject.cpp b/src/Mod/Sketcher/App/SketchObject.cpp index 91bef48921..3a78b58e6d 100644 --- a/src/Mod/Sketcher/App/SketchObject.cpp +++ b/src/Mod/Sketcher/App/SketchObject.cpp @@ -97,12 +97,6 @@ namespace bp = boost::placeholders; FC_LOG_LEVEL_INIT("Sketch",true,true) -const int GeoEnum::RtPnt = -1; -const int GeoEnum::HAxis = -1; -const int GeoEnum::VAxis = -2; -const int GeoEnum::RefExt = -3; - - PROPERTY_SOURCE(Sketcher::SketchObject, Part::Part2DObject) diff --git a/src/Mod/Sketcher/App/SketchObject.h b/src/Mod/Sketcher/App/SketchObject.h index fe2f9453be..85cf90e6ab 100644 --- a/src/Mod/Sketcher/App/SketchObject.h +++ b/src/Mod/Sketcher/App/SketchObject.h @@ -42,17 +42,11 @@ #include "SketchGeometryExtension.h" +#include "GeoEnum.h" + namespace Sketcher { -struct SketcherExport GeoEnum -{ - static const int RtPnt; - static const int HAxis; - static const int VAxis; - static const int RefExt; -}; - class SketchAnalysis; class SketcherExport SketchObject : public Part::Part2DObject