[TD]Add line appearance editor

This commit is contained in:
wandererfan
2019-07-04 09:47:53 -04:00
committed by WandererFan
parent 11d8aaed61
commit 3d2edd0f7e
19 changed files with 1747 additions and 103 deletions

View File

@@ -71,6 +71,7 @@ class DrawViewBalloon;
class CosmeticVertex;
class CosmeticEdge;
class CenterLine;
class GeomFormat;
}
namespace TechDraw
@@ -107,6 +108,7 @@ public:
App::PropertyStringList CosmeticVertexList;
App::PropertyStringList CosmeticEdgeList;
App::PropertyStringList CenterLineList;
App::PropertyStringList GeomFormatList;
virtual short mustExecute() const;
virtual void onDocumentRestored() override;
@@ -199,6 +201,13 @@ public:
void addCosmeticEdgesToGeom(void);
void addCenterLinesToGeom(void);
int addGeomFormat(TechDraw::GeomFormat* gf);
virtual void writeGFormatProp(void);
virtual void removeGeomFormat(int idx);
const std::vector<TechDraw::GeomFormat*> & getGeomFormats(void) const { return GFormatTable; }
TechDraw::GeomFormat* getGeomFormatByIndex(int idx) const;
TechDraw::GeomFormat* getGeomFormatByGeom(int idx) const;
void clearGeomFormats(void);
protected:
TechDraw::GeometryObject *geometryObject;
@@ -231,6 +240,9 @@ protected:
std::vector<TechDraw::CenterLine*> CLineTable;
void readCLineProp(void);
std::vector<TechDraw::GeomFormat*> GFormatTable;
void readGFormatProp(void);
private:
bool nowUnsetting;
/* bool m_restoreComplete;*/