Refactoring. Independent method for parse each tool.

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2015-06-24 19:14:26 +03:00
parent 07e7cbf908
commit da4d47c7ac
2 changed files with 1232 additions and 789 deletions

File diff suppressed because it is too large Load Diff

View File

@ -115,6 +115,42 @@ private:
QRectF ToolBoundingRect(const QRectF &rec, const quint32 &id) const;
void ParseCurrentPP();
QString GetLabelBase(unsigned int index)const;
void ParseToolBasePoint(VMainGraphicsScene *scene, const QDomElement &domElement, const Document &parse);
void ParseToolEndLine(VMainGraphicsScene *scene, QDomElement &domElement, const Document &parse);
void ParseToolAlongLine(VMainGraphicsScene *scene, QDomElement &domElement, const Document &parse);
void ParseToolShoulderPoint(VMainGraphicsScene *scene, QDomElement &domElement, const Document &parse);
void ParseToolNormal(VMainGraphicsScene *scene, QDomElement &domElement, const Document &parse);
void ParseToolBisector(VMainGraphicsScene *scene, QDomElement &domElement, const Document &parse);
void ParseToolLineIntersect(VMainGraphicsScene *scene, const QDomElement &domElement, const Document &parse);
void ParseToolPointOfContact(VMainGraphicsScene *scene, QDomElement &domElement, const Document &parse);
void ParseNodePoint(VMainGraphicsScene *scene, const QDomElement &domElement, const Document &parse);
void ParseToolHeight(VMainGraphicsScene *scene, const QDomElement &domElement, const Document &parse);
void ParseToolTriangle(VMainGraphicsScene *scene, const QDomElement &domElement, const Document &parse);
void ParseToolPointOfIntersection(VMainGraphicsScene *scene, const QDomElement &domElement, const Document &parse);
void ParseToolCutSpline(VMainGraphicsScene *scene, QDomElement &domElement, const Document &parse);
void ParseToolCutSplinePath(VMainGraphicsScene *scene, QDomElement &domElement, const Document &parse);
void ParseToolCutArc(VMainGraphicsScene *scene, QDomElement &domElement, const Document &parse);
void ParseToolLineIntersectAxis(VMainGraphicsScene *scene, QDomElement &domElement, const Document &parse);
void ParseToolCurveIntersectAxis(VMainGraphicsScene *scene, QDomElement &domElement, const Document &parse);
void ParseToolPointOfIntersectionArcs(VMainGraphicsScene *scene, const QDomElement &domElement,
const Document &parse);
void ParseToolPointOfIntersectionCircles(VMainGraphicsScene *scene, QDomElement &domElement,
const Document &parse);
void ParseToolPointFromCircleAndTangent(VMainGraphicsScene *scene, QDomElement &domElement,
const Document &parse);
void ParseToolPointFromArcAndTangent(VMainGraphicsScene *scene, const QDomElement &domElement,
const Document &parse);
void ParseToolTrueDarts(VMainGraphicsScene *scene, const QDomElement &domElement, const Document &parse);
void ParseToolSpline(VMainGraphicsScene *scene, const QDomElement &domElement, const Document &parse);
void ParseToolSplinePath(VMainGraphicsScene *scene, const QDomElement &domElement, const Document &parse);
void ParseNodeSpline(VMainGraphicsScene *scene, const QDomElement &domElement, const Document &parse);
void ParseNodeSplinePath(VMainGraphicsScene *scene, const QDomElement &domElement, const Document &parse);
void ParseToolArc(VMainGraphicsScene *scene, QDomElement &domElement, const Document &parse);
void ParseNodeArc(VMainGraphicsScene *scene, const QDomElement &domElement, const Document &parse);
void ParseToolArcWithLength(VMainGraphicsScene *scene, QDomElement &domElement, const Document &parse);
};
#endif // VPATTERN_H