Move Tag to separate translation unit

- Avoid code duplication
- Reduces compile time
This commit is contained in:
Benjamin Bræstrup Sayoc
2025-02-09 11:55:24 +01:00
parent 934e9fb683
commit b7f56a219f
16 changed files with 170 additions and 293 deletions

View File

@@ -28,6 +28,7 @@
#include <Base/Vector3D.h>
#include <Mod/TechDraw/TechDrawGlobal.h>
#include "Tag.h"
#include "Cosmetic.h"
#include "Geometry.h"
@@ -35,7 +36,7 @@
namespace TechDraw {
class DrawViewPart;
class TechDrawExport CenterLine: public Base::Persistence
class TechDrawExport CenterLine: public Base::Persistence, public TechDraw::Tag
{
TYPESYSTEM_HEADER_WITH_OVERRIDE();
@@ -175,19 +176,10 @@ public:
TechDraw::BaseGeomPtr m_geometry;
//Uniqueness
boost::uuids::uuid getTag() const;
virtual std::string getTagAsString() const;
protected:
void initialize();
void createNewTag();
boost::uuids::uuid tag;
Py::Object PythonObject;
};
} // namespace TechDraw