Refactoring. Each a static method has access to each method in a class. So, we
can declare a constructor in private section for each a tool class that has "Create" methods. --HG-- branch : feature
This commit is contained in:
parent
6187f16c6a
commit
e9d23a7a32
|
@ -45,10 +45,6 @@ class VToolRotation : public VDrawTool, public QGraphicsItem
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
VToolRotation(VAbstractPattern *doc, VContainer *data, quint32 id, quint32 origPointId,
|
|
||||||
const QString &angle, const QString &suffix, const QVector<quint32> &source,
|
|
||||||
const QVector<DestinationItem> &destination, const Source &typeCreation,
|
|
||||||
QGraphicsItem *parent = nullptr);
|
|
||||||
virtual ~VToolRotation();
|
virtual ~VToolRotation();
|
||||||
virtual void setDialog() Q_DECL_OVERRIDE;
|
virtual void setDialog() Q_DECL_OVERRIDE;
|
||||||
static VToolRotation* Create(DialogTool *dialog, VMainGraphicsScene *scene, VAbstractPattern *doc,
|
static VToolRotation* Create(DialogTool *dialog, VMainGraphicsScene *scene, VAbstractPattern *doc,
|
||||||
|
@ -125,6 +121,11 @@ private:
|
||||||
|
|
||||||
QMap<quint32, VAbstractSimple *> rObjects;
|
QMap<quint32, VAbstractSimple *> rObjects;
|
||||||
|
|
||||||
|
VToolRotation(VAbstractPattern *doc, VContainer *data, quint32 id, quint32 origPointId,
|
||||||
|
const QString &angle, const QString &suffix, const QVector<quint32> &source,
|
||||||
|
const QVector<DestinationItem> &destination, const Source &typeCreation,
|
||||||
|
QGraphicsItem *parent = nullptr);
|
||||||
|
|
||||||
void UpdateNamePosition(quint32 id);
|
void UpdateNamePosition(quint32 id);
|
||||||
|
|
||||||
static DestinationItem CreatePoint(quint32 idTool, quint32 idItem, const QPointF &origin, qreal angle,
|
static DestinationItem CreatePoint(quint32 idTool, quint32 idItem, const QPointF &origin, qreal angle,
|
||||||
|
|
|
@ -40,8 +40,6 @@ class VToolArc :public VAbstractSpline
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
VToolArc(VAbstractPattern *doc, VContainer *data, quint32 id, const QString &color, const Source &typeCreation,
|
|
||||||
QGraphicsItem * parent = nullptr);
|
|
||||||
virtual void setDialog() Q_DECL_OVERRIDE;
|
virtual void setDialog() Q_DECL_OVERRIDE;
|
||||||
static VToolArc* Create(DialogTool *dialog, VMainGraphicsScene *scene, VAbstractPattern *doc, VContainer *data);
|
static VToolArc* Create(DialogTool *dialog, VMainGraphicsScene *scene, VAbstractPattern *doc, VContainer *data);
|
||||||
static VToolArc* Create(const quint32 _id, const quint32 ¢er, QString &radius, QString &f1, QString &f2,
|
static VToolArc* Create(const quint32 _id, const quint32 ¢er, QString &radius, QString &f1, QString &f2,
|
||||||
|
@ -73,6 +71,11 @@ protected:
|
||||||
virtual void SaveOptions(QDomElement &tag, QSharedPointer<VGObject> &obj) Q_DECL_OVERRIDE;
|
virtual void SaveOptions(QDomElement &tag, QSharedPointer<VGObject> &obj) Q_DECL_OVERRIDE;
|
||||||
virtual void SetVisualization() Q_DECL_OVERRIDE;
|
virtual void SetVisualization() Q_DECL_OVERRIDE;
|
||||||
private:
|
private:
|
||||||
|
Q_DISABLE_COPY(VToolArc)
|
||||||
|
|
||||||
|
VToolArc(VAbstractPattern *doc, VContainer *data, quint32 id, const QString &color, const Source &typeCreation,
|
||||||
|
QGraphicsItem * parent = nullptr);
|
||||||
|
|
||||||
virtual void RefreshGeometry() Q_DECL_OVERRIDE;
|
virtual void RefreshGeometry() Q_DECL_OVERRIDE;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -37,10 +37,6 @@ class VToolArcWithLength : public VAbstractSpline
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
VToolArcWithLength(VAbstractPattern *doc, VContainer *data, quint32 id, const QString &color,
|
|
||||||
const Source &typeCreation,
|
|
||||||
QGraphicsItem * parent = nullptr);
|
|
||||||
|
|
||||||
virtual void setDialog() Q_DECL_OVERRIDE;
|
virtual void setDialog() Q_DECL_OVERRIDE;
|
||||||
static VToolArcWithLength* Create(DialogTool *dialog, VMainGraphicsScene *scene, VAbstractPattern *doc,
|
static VToolArcWithLength* Create(DialogTool *dialog, VMainGraphicsScene *scene, VAbstractPattern *doc,
|
||||||
VContainer *data);
|
VContainer *data);
|
||||||
|
@ -74,6 +70,11 @@ protected:
|
||||||
virtual void SaveOptions(QDomElement &tag, QSharedPointer<VGObject> &obj) Q_DECL_OVERRIDE;
|
virtual void SaveOptions(QDomElement &tag, QSharedPointer<VGObject> &obj) Q_DECL_OVERRIDE;
|
||||||
virtual void SetVisualization() Q_DECL_OVERRIDE;
|
virtual void SetVisualization() Q_DECL_OVERRIDE;
|
||||||
private:
|
private:
|
||||||
|
Q_DISABLE_COPY(VToolArcWithLength)
|
||||||
|
|
||||||
|
VToolArcWithLength(VAbstractPattern *doc, VContainer *data, quint32 id, const QString &color,
|
||||||
|
const Source &typeCreation, QGraphicsItem * parent = nullptr);
|
||||||
|
|
||||||
virtual void RefreshGeometry() Q_DECL_OVERRIDE;
|
virtual void RefreshGeometry() Q_DECL_OVERRIDE;
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
|
@ -37,8 +37,6 @@ class VToolCubicBezier : public VAbstractSpline
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
VToolCubicBezier(VAbstractPattern *doc, VContainer *data, quint32 id, const QString &color,
|
|
||||||
const Source &typeCreation, QGraphicsItem * parent = nullptr);
|
|
||||||
virtual ~VToolCubicBezier();
|
virtual ~VToolCubicBezier();
|
||||||
virtual void setDialog() Q_DECL_OVERRIDE;
|
virtual void setDialog() Q_DECL_OVERRIDE;
|
||||||
static VToolCubicBezier *Create(DialogTool *dialog, VMainGraphicsScene *scene, VAbstractPattern *doc,
|
static VToolCubicBezier *Create(DialogTool *dialog, VMainGraphicsScene *scene, VAbstractPattern *doc,
|
||||||
|
@ -63,6 +61,9 @@ protected:
|
||||||
private:
|
private:
|
||||||
Q_DISABLE_COPY(VToolCubicBezier)
|
Q_DISABLE_COPY(VToolCubicBezier)
|
||||||
|
|
||||||
|
VToolCubicBezier(VAbstractPattern *doc, VContainer *data, quint32 id, const QString &color,
|
||||||
|
const Source &typeCreation, QGraphicsItem * parent = nullptr);
|
||||||
|
|
||||||
virtual void RefreshGeometry() Q_DECL_OVERRIDE;
|
virtual void RefreshGeometry() Q_DECL_OVERRIDE;
|
||||||
void SetSplineAttributes(QDomElement &domElement, const VCubicBezier &spl);
|
void SetSplineAttributes(QDomElement &domElement, const VCubicBezier &spl);
|
||||||
};
|
};
|
||||||
|
|
|
@ -37,8 +37,6 @@ class VToolCubicBezierPath:public VAbstractSpline
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
VToolCubicBezierPath(VAbstractPattern *doc, VContainer *data, quint32 id, const QString &color,
|
|
||||||
const Source &typeCreation, QGraphicsItem * parent = nullptr);
|
|
||||||
virtual ~VToolCubicBezierPath();
|
virtual ~VToolCubicBezierPath();
|
||||||
virtual void setDialog() Q_DECL_OVERRIDE;
|
virtual void setDialog() Q_DECL_OVERRIDE;
|
||||||
static VToolCubicBezierPath *Create(DialogTool *dialog, VMainGraphicsScene *scene, VAbstractPattern *doc,
|
static VToolCubicBezierPath *Create(DialogTool *dialog, VMainGraphicsScene *scene, VAbstractPattern *doc,
|
||||||
|
@ -65,6 +63,9 @@ protected:
|
||||||
private:
|
private:
|
||||||
Q_DISABLE_COPY(VToolCubicBezierPath)
|
Q_DISABLE_COPY(VToolCubicBezierPath)
|
||||||
|
|
||||||
|
VToolCubicBezierPath(VAbstractPattern *doc, VContainer *data, quint32 id, const QString &color,
|
||||||
|
const Source &typeCreation, QGraphicsItem * parent = nullptr);
|
||||||
|
|
||||||
virtual void RefreshGeometry() Q_DECL_OVERRIDE;
|
virtual void RefreshGeometry() Q_DECL_OVERRIDE;
|
||||||
static void AddPathPoint(VAbstractPattern *doc, QDomElement &domElement, const VPointF &splPoint);
|
static void AddPathPoint(VAbstractPattern *doc, QDomElement &domElement, const VPointF &splPoint);
|
||||||
void SetSplinePathAttributes(QDomElement &domElement, const VCubicBezierPath &path);
|
void SetSplinePathAttributes(QDomElement &domElement, const VCubicBezierPath &path);
|
||||||
|
|
|
@ -40,8 +40,6 @@ class VToolSpline:public VAbstractSpline
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
VToolSpline (VAbstractPattern *doc, VContainer *data, quint32 id, const QString &color, const Source &typeCreation,
|
|
||||||
QGraphicsItem * parent = nullptr );
|
|
||||||
virtual ~VToolSpline() Q_DECL_OVERRIDE;
|
virtual ~VToolSpline() Q_DECL_OVERRIDE;
|
||||||
virtual void setDialog() Q_DECL_OVERRIDE;
|
virtual void setDialog() Q_DECL_OVERRIDE;
|
||||||
static VToolSpline *Create(DialogTool *dialog, VMainGraphicsScene *scene, VAbstractPattern *doc, VContainer *data);
|
static VToolSpline *Create(DialogTool *dialog, VMainGraphicsScene *scene, VAbstractPattern *doc, VContainer *data);
|
||||||
|
@ -80,6 +78,9 @@ private:
|
||||||
Q_DISABLE_COPY(VToolSpline)
|
Q_DISABLE_COPY(VToolSpline)
|
||||||
QPointF oldPosition;
|
QPointF oldPosition;
|
||||||
|
|
||||||
|
VToolSpline (VAbstractPattern *doc, VContainer *data, quint32 id, const QString &color, const Source &typeCreation,
|
||||||
|
QGraphicsItem * parent = nullptr );
|
||||||
|
|
||||||
bool IsMovable() const;
|
bool IsMovable() const;
|
||||||
virtual void RefreshGeometry() Q_DECL_OVERRIDE;
|
virtual void RefreshGeometry() Q_DECL_OVERRIDE;
|
||||||
void SetSplineAttributes(QDomElement &domElement, const VSpline &spl);
|
void SetSplineAttributes(QDomElement &domElement, const VSpline &spl);
|
||||||
|
|
|
@ -42,9 +42,6 @@ class VToolSplinePath:public VAbstractSpline
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
VToolSplinePath(VAbstractPattern *doc, VContainer *data, quint32 id, const QString &color,
|
|
||||||
const Source &typeCreation,
|
|
||||||
QGraphicsItem * parent = nullptr);
|
|
||||||
virtual ~VToolSplinePath() Q_DECL_OVERRIDE;
|
virtual ~VToolSplinePath() Q_DECL_OVERRIDE;
|
||||||
virtual void setDialog() Q_DECL_OVERRIDE;
|
virtual void setDialog() Q_DECL_OVERRIDE;
|
||||||
static VToolSplinePath *Create(DialogTool *dialog, VMainGraphicsScene *scene, VAbstractPattern *doc,
|
static VToolSplinePath *Create(DialogTool *dialog, VMainGraphicsScene *scene, VAbstractPattern *doc,
|
||||||
|
@ -104,6 +101,9 @@ private:
|
||||||
QPointF oldPosition;
|
QPointF oldPosition;
|
||||||
int splIndex;
|
int splIndex;
|
||||||
|
|
||||||
|
VToolSplinePath(VAbstractPattern *doc, VContainer *data, quint32 id, const QString &color,
|
||||||
|
const Source &typeCreation, QGraphicsItem * parent = nullptr);
|
||||||
|
|
||||||
bool IsMovable(int index) const;
|
bool IsMovable(int index) const;
|
||||||
virtual void RefreshGeometry() Q_DECL_OVERRIDE;
|
virtual void RefreshGeometry() Q_DECL_OVERRIDE;
|
||||||
static void AddPathPoint(VAbstractPattern *doc, QDomElement &domElement, const VSplinePoint &splPoint);
|
static void AddPathPoint(VAbstractPattern *doc, QDomElement &domElement, const VSplinePoint &splPoint);
|
||||||
|
|
|
@ -35,19 +35,6 @@ class VToolTrueDarts : public VToolDoublePoint
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
VToolTrueDarts(VAbstractPattern *doc,
|
|
||||||
VContainer *data,
|
|
||||||
const quint32 &id,
|
|
||||||
const quint32 &p1id,
|
|
||||||
const quint32 &p2id,
|
|
||||||
const quint32 &baseLineP1Id,
|
|
||||||
const quint32 &baseLineP2Id,
|
|
||||||
const quint32 &dartP1Id,
|
|
||||||
const quint32 &dartP2Id,
|
|
||||||
const quint32 &dartP3Id,
|
|
||||||
const Source &typeCreation,
|
|
||||||
QGraphicsItem * parent = nullptr);
|
|
||||||
|
|
||||||
static void FindPoint(const QPointF &baseLineP1, const QPointF &baseLineP2, const QPointF &dartP1,
|
static void FindPoint(const QPointF &baseLineP1, const QPointF &baseLineP2, const QPointF &dartP1,
|
||||||
const QPointF &dartP2, const QPointF &dartP3, QPointF &p1, QPointF &p2);
|
const QPointF &dartP2, const QPointF &dartP3, QPointF &p1, QPointF &p2);
|
||||||
virtual void setDialog() Q_DECL_OVERRIDE;
|
virtual void setDialog() Q_DECL_OVERRIDE;
|
||||||
|
@ -100,6 +87,19 @@ private:
|
||||||
quint32 dartP1Id;
|
quint32 dartP1Id;
|
||||||
quint32 dartP2Id;
|
quint32 dartP2Id;
|
||||||
quint32 dartP3Id;
|
quint32 dartP3Id;
|
||||||
|
|
||||||
|
VToolTrueDarts(VAbstractPattern *doc,
|
||||||
|
VContainer *data,
|
||||||
|
const quint32 &id,
|
||||||
|
const quint32 &p1id,
|
||||||
|
const quint32 &p2id,
|
||||||
|
const quint32 &baseLineP1Id,
|
||||||
|
const quint32 &baseLineP2Id,
|
||||||
|
const quint32 &dartP1Id,
|
||||||
|
const quint32 &dartP2Id,
|
||||||
|
const quint32 &dartP3Id,
|
||||||
|
const Source &typeCreation,
|
||||||
|
QGraphicsItem * parent = nullptr);
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // VTOOLTRUEDARTS_H
|
#endif // VTOOLTRUEDARTS_H
|
||||||
|
|
|
@ -38,9 +38,6 @@ class VToolCutArc : public VToolCut
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
VToolCutArc(VAbstractPattern *doc, VContainer *data, const quint32 &id, const QString &formula,
|
|
||||||
const quint32 &arcId, const QString &color, const Source &typeCreation,
|
|
||||||
QGraphicsItem * parent = nullptr);
|
|
||||||
virtual void setDialog() Q_DECL_OVERRIDE;
|
virtual void setDialog() Q_DECL_OVERRIDE;
|
||||||
static VToolCutArc* Create(DialogTool *dialog, VMainGraphicsScene *scene, VAbstractPattern *doc, VContainer *data);
|
static VToolCutArc* Create(DialogTool *dialog, VMainGraphicsScene *scene, VAbstractPattern *doc, VContainer *data);
|
||||||
static VToolCutArc* Create(const quint32 _id, const QString &pointName, QString &formula, const quint32 &arcId,
|
static VToolCutArc* Create(const quint32 _id, const QString &pointName, QString &formula, const quint32 &arcId,
|
||||||
|
@ -59,6 +56,10 @@ protected:
|
||||||
virtual void SetVisualization() Q_DECL_OVERRIDE;
|
virtual void SetVisualization() Q_DECL_OVERRIDE;
|
||||||
private:
|
private:
|
||||||
Q_DISABLE_COPY(VToolCutArc)
|
Q_DISABLE_COPY(VToolCutArc)
|
||||||
|
|
||||||
|
VToolCutArc(VAbstractPattern *doc, VContainer *data, const quint32 &id, const QString &formula,
|
||||||
|
const quint32 &arcId, const QString &color, const Source &typeCreation,
|
||||||
|
QGraphicsItem * parent = nullptr);
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // VTOOLCUTARC_H
|
#endif // VTOOLCUTARC_H
|
||||||
|
|
|
@ -38,10 +38,6 @@ class VToolCutSpline : public VToolCut
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
|
|
||||||
VToolCutSpline(VAbstractPattern *doc, VContainer *data, const quint32 &id, const QString &formula,
|
|
||||||
const quint32 &splineId, const QString &color, const Source &typeCreation,
|
|
||||||
QGraphicsItem * parent = nullptr);
|
|
||||||
virtual void setDialog() Q_DECL_OVERRIDE;
|
virtual void setDialog() Q_DECL_OVERRIDE;
|
||||||
static VToolCutSpline *Create(DialogTool *dialog, VMainGraphicsScene *scene, VAbstractPattern *doc,
|
static VToolCutSpline *Create(DialogTool *dialog, VMainGraphicsScene *scene, VAbstractPattern *doc,
|
||||||
VContainer *data);
|
VContainer *data);
|
||||||
|
@ -63,6 +59,10 @@ protected:
|
||||||
virtual void SetVisualization() Q_DECL_OVERRIDE;
|
virtual void SetVisualization() Q_DECL_OVERRIDE;
|
||||||
private:
|
private:
|
||||||
Q_DISABLE_COPY(VToolCutSpline)
|
Q_DISABLE_COPY(VToolCutSpline)
|
||||||
|
|
||||||
|
VToolCutSpline(VAbstractPattern *doc, VContainer *data, const quint32 &id, const QString &formula,
|
||||||
|
const quint32 &splineId, const QString &color, const Source &typeCreation,
|
||||||
|
QGraphicsItem * parent = nullptr);
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // VTOOLCUTSPLINE_H
|
#endif // VTOOLCUTSPLINE_H
|
||||||
|
|
|
@ -42,10 +42,6 @@ class VToolCutSplinePath : public VToolCut
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
|
|
||||||
VToolCutSplinePath(VAbstractPattern *doc, VContainer *data, const quint32 &id, const QString &formula,
|
|
||||||
const quint32 &splinePathId, const QString &color, const Source &typeCreation,
|
|
||||||
QGraphicsItem * parent = nullptr);
|
|
||||||
virtual void setDialog() Q_DECL_OVERRIDE;
|
virtual void setDialog() Q_DECL_OVERRIDE;
|
||||||
static VToolCutSplinePath *Create(DialogTool *dialog, VMainGraphicsScene *scene, VAbstractPattern *doc,
|
static VToolCutSplinePath *Create(DialogTool *dialog, VMainGraphicsScene *scene, VAbstractPattern *doc,
|
||||||
VContainer *data);
|
VContainer *data);
|
||||||
|
@ -71,6 +67,10 @@ protected:
|
||||||
virtual void SetVisualization() Q_DECL_OVERRIDE;
|
virtual void SetVisualization() Q_DECL_OVERRIDE;
|
||||||
private:
|
private:
|
||||||
Q_DISABLE_COPY(VToolCutSplinePath)
|
Q_DISABLE_COPY(VToolCutSplinePath)
|
||||||
|
|
||||||
|
VToolCutSplinePath(VAbstractPattern *doc, VContainer *data, const quint32 &id, const QString &formula,
|
||||||
|
const quint32 &splinePathId, const QString &color, const Source &typeCreation,
|
||||||
|
QGraphicsItem * parent = nullptr);
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // VTOOLCUTSPLINEPATH_H
|
#endif // VTOOLCUTSPLINEPATH_H
|
||||||
|
|
|
@ -38,11 +38,6 @@ class VToolAlongLine : public VToolLinePoint
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
|
|
||||||
VToolAlongLine(VAbstractPattern *doc, VContainer *data, quint32 id, const QString &formula,
|
|
||||||
const quint32 &firstPointId,
|
|
||||||
const quint32 &secondPointId, const QString &typeLine, const QString &lineColor,
|
|
||||||
const Source &typeCreation, QGraphicsItem * parent = nullptr);
|
|
||||||
virtual void setDialog() Q_DECL_OVERRIDE;
|
virtual void setDialog() Q_DECL_OVERRIDE;
|
||||||
static VToolAlongLine* Create(DialogTool *dialog, VMainGraphicsScene *scene, VAbstractPattern *doc,
|
static VToolAlongLine* Create(DialogTool *dialog, VMainGraphicsScene *scene, VAbstractPattern *doc,
|
||||||
VContainer *data);
|
VContainer *data);
|
||||||
|
@ -69,8 +64,15 @@ protected:
|
||||||
virtual void ReadToolAttributes(const QDomElement &domElement) Q_DECL_OVERRIDE;
|
virtual void ReadToolAttributes(const QDomElement &domElement) Q_DECL_OVERRIDE;
|
||||||
virtual void SetVisualization() Q_DECL_OVERRIDE;
|
virtual void SetVisualization() Q_DECL_OVERRIDE;
|
||||||
private:
|
private:
|
||||||
|
Q_DISABLE_COPY(VToolAlongLine)
|
||||||
|
|
||||||
/** @brief secondPointId id second point of line. */
|
/** @brief secondPointId id second point of line. */
|
||||||
quint32 secondPointId;
|
quint32 secondPointId;
|
||||||
|
|
||||||
|
VToolAlongLine(VAbstractPattern *doc, VContainer *data, quint32 id, const QString &formula,
|
||||||
|
const quint32 &firstPointId,
|
||||||
|
const quint32 &secondPointId, const QString &typeLine, const QString &lineColor,
|
||||||
|
const Source &typeCreation, QGraphicsItem * parent = nullptr);
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // VTOOLALONGLINE_H
|
#endif // VTOOLALONGLINE_H
|
||||||
|
|
|
@ -38,11 +38,6 @@ class VToolBisector : public VToolLinePoint
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
|
|
||||||
VToolBisector(VAbstractPattern *doc, VContainer *data, const quint32 &id, const QString &typeLine,
|
|
||||||
const QString &lineColor,
|
|
||||||
const QString &formula, const quint32 &firstPointId, const quint32 &secondPointId,
|
|
||||||
const quint32 &thirdPointId, const Source &typeCreation, QGraphicsItem * parent = nullptr);
|
|
||||||
static qreal BisectorAngle(const QPointF &firstPoint, const QPointF &secondPoint, const QPointF &thirdPoint);
|
static qreal BisectorAngle(const QPointF &firstPoint, const QPointF &secondPoint, const QPointF &thirdPoint);
|
||||||
static QPointF FindPoint(const QPointF &firstPoint, const QPointF &secondPoint, const QPointF &thirdPoint,
|
static QPointF FindPoint(const QPointF &firstPoint, const QPointF &secondPoint, const QPointF &thirdPoint,
|
||||||
const qreal& length);
|
const qreal& length);
|
||||||
|
@ -76,11 +71,18 @@ protected:
|
||||||
virtual void ReadToolAttributes(const QDomElement &domElement) Q_DECL_OVERRIDE;
|
virtual void ReadToolAttributes(const QDomElement &domElement) Q_DECL_OVERRIDE;
|
||||||
virtual void SetVisualization() Q_DECL_OVERRIDE;
|
virtual void SetVisualization() Q_DECL_OVERRIDE;
|
||||||
private:
|
private:
|
||||||
|
Q_DISABLE_COPY(VToolBisector)
|
||||||
|
|
||||||
/** @brief firstPointId id first point of angle. */
|
/** @brief firstPointId id first point of angle. */
|
||||||
quint32 firstPointId;
|
quint32 firstPointId;
|
||||||
|
|
||||||
/** @brief thirdPointId id third point of angle. */
|
/** @brief thirdPointId id third point of angle. */
|
||||||
quint32 thirdPointId;
|
quint32 thirdPointId;
|
||||||
|
|
||||||
|
VToolBisector(VAbstractPattern *doc, VContainer *data, const quint32 &id, const QString &typeLine,
|
||||||
|
const QString &lineColor,
|
||||||
|
const QString &formula, const quint32 &firstPointId, const quint32 &secondPointId,
|
||||||
|
const quint32 &thirdPointId, const Source &typeCreation, QGraphicsItem * parent = nullptr);
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // VTOOLBISECTOR_H
|
#endif // VTOOLBISECTOR_H
|
||||||
|
|
|
@ -35,9 +35,6 @@ class VToolCurveIntersectAxis : public VToolLinePoint
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
VToolCurveIntersectAxis(VAbstractPattern *doc, VContainer *data, const quint32 &id, const QString &typeLine,
|
|
||||||
const QString &lineColor, const QString &formulaAngle, const quint32 &basePointId,
|
|
||||||
const quint32 &curveId, const Source &typeCreation, QGraphicsItem * parent = nullptr);
|
|
||||||
virtual ~VToolCurveIntersectAxis() Q_DECL_OVERRIDE;
|
virtual ~VToolCurveIntersectAxis() Q_DECL_OVERRIDE;
|
||||||
virtual void setDialog() Q_DECL_OVERRIDE;
|
virtual void setDialog() Q_DECL_OVERRIDE;
|
||||||
|
|
||||||
|
@ -73,6 +70,10 @@ private:
|
||||||
QString formulaAngle;
|
QString formulaAngle;
|
||||||
quint32 curveId;
|
quint32 curveId;
|
||||||
|
|
||||||
|
VToolCurveIntersectAxis(VAbstractPattern *doc, VContainer *data, const quint32 &id, const QString &typeLine,
|
||||||
|
const QString &lineColor, const QString &formulaAngle, const quint32 &basePointId,
|
||||||
|
const quint32 &curveId, const Source &typeCreation, QGraphicsItem * parent = nullptr);
|
||||||
|
|
||||||
static void InitSegments(const GOType &curveType, qreal segLength, const VPointF *p, quint32 curveId,
|
static void InitSegments(const GOType &curveType, qreal segLength, const VPointF *p, quint32 curveId,
|
||||||
VContainer *data);
|
VContainer *data);
|
||||||
};
|
};
|
||||||
|
|
|
@ -38,11 +38,6 @@ class VToolEndLine : public VToolLinePoint
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
|
|
||||||
VToolEndLine(VAbstractPattern *doc, VContainer *data, const quint32 &id, const QString &typeLine,
|
|
||||||
const QString &lineColor,
|
|
||||||
const QString &formulaLength, const QString &formulaAngle, const quint32 &basePointId,
|
|
||||||
const Source &typeCreation, QGraphicsItem * parent = nullptr);
|
|
||||||
virtual ~VToolEndLine() Q_DECL_OVERRIDE;
|
virtual ~VToolEndLine() Q_DECL_OVERRIDE;
|
||||||
virtual void setDialog() Q_DECL_OVERRIDE;
|
virtual void setDialog() Q_DECL_OVERRIDE;
|
||||||
static VToolEndLine *Create(DialogTool *dialog, VMainGraphicsScene *scene, VAbstractPattern *doc,
|
static VToolEndLine *Create(DialogTool *dialog, VMainGraphicsScene *scene, VAbstractPattern *doc,
|
||||||
|
@ -67,7 +62,14 @@ protected:
|
||||||
virtual void ReadToolAttributes(const QDomElement &domElement) Q_DECL_OVERRIDE;
|
virtual void ReadToolAttributes(const QDomElement &domElement) Q_DECL_OVERRIDE;
|
||||||
virtual void SetVisualization() Q_DECL_OVERRIDE;
|
virtual void SetVisualization() Q_DECL_OVERRIDE;
|
||||||
private:
|
private:
|
||||||
|
Q_DISABLE_COPY(VToolEndLine)
|
||||||
|
|
||||||
QString formulaAngle;
|
QString formulaAngle;
|
||||||
|
|
||||||
|
VToolEndLine(VAbstractPattern *doc, VContainer *data, const quint32 &id, const QString &typeLine,
|
||||||
|
const QString &lineColor,
|
||||||
|
const QString &formulaLength, const QString &formulaAngle, const quint32 &basePointId,
|
||||||
|
const Source &typeCreation, QGraphicsItem * parent = nullptr);
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // VTOOLENDLINE_H
|
#endif // VTOOLENDLINE_H
|
||||||
|
|
|
@ -38,11 +38,6 @@ class VToolHeight: public VToolLinePoint
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
|
|
||||||
VToolHeight(VAbstractPattern *doc, VContainer *data, const quint32 &id, const QString &typeLine,
|
|
||||||
const QString &lineColor,
|
|
||||||
const quint32 &basePointId, const quint32 &p1LineId, const quint32 &p2LineId,
|
|
||||||
const Source &typeCreation, QGraphicsItem * parent = nullptr);
|
|
||||||
virtual void setDialog() Q_DECL_OVERRIDE;
|
virtual void setDialog() Q_DECL_OVERRIDE;
|
||||||
static VToolHeight *Create(DialogTool *dialog, VMainGraphicsScene *scene, VAbstractPattern *doc, VContainer *data);
|
static VToolHeight *Create(DialogTool *dialog, VMainGraphicsScene *scene, VAbstractPattern *doc, VContainer *data);
|
||||||
static VToolHeight *Create(const quint32 _id, const QString &pointName, const QString &typeLine,
|
static VToolHeight *Create(const quint32 _id, const QString &pointName, const QString &typeLine,
|
||||||
|
@ -69,11 +64,18 @@ protected:
|
||||||
virtual void ReadToolAttributes(const QDomElement &domElement) Q_DECL_OVERRIDE;
|
virtual void ReadToolAttributes(const QDomElement &domElement) Q_DECL_OVERRIDE;
|
||||||
virtual void SetVisualization() Q_DECL_OVERRIDE;
|
virtual void SetVisualization() Q_DECL_OVERRIDE;
|
||||||
private:
|
private:
|
||||||
|
Q_DISABLE_COPY(VToolHeight)
|
||||||
|
|
||||||
/** @brief p1LineId id first point of line. */
|
/** @brief p1LineId id first point of line. */
|
||||||
quint32 p1LineId;
|
quint32 p1LineId;
|
||||||
|
|
||||||
/** @brief p2LineId id second point of line. */
|
/** @brief p2LineId id second point of line. */
|
||||||
quint32 p2LineId;
|
quint32 p2LineId;
|
||||||
|
|
||||||
|
VToolHeight(VAbstractPattern *doc, VContainer *data, const quint32 &id, const QString &typeLine,
|
||||||
|
const QString &lineColor,
|
||||||
|
const quint32 &basePointId, const quint32 &p1LineId, const quint32 &p2LineId,
|
||||||
|
const Source &typeCreation, QGraphicsItem * parent = nullptr);
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // VTOOLHEIGHT_H
|
#endif // VTOOLHEIGHT_H
|
||||||
|
|
|
@ -35,10 +35,6 @@ class VToolLineIntersectAxis : public VToolLinePoint
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
VToolLineIntersectAxis(VAbstractPattern *doc, VContainer *data, const quint32 &id, const QString &typeLine,
|
|
||||||
const QString &lineColor, const QString &formulaAngle, const quint32 &basePointId,
|
|
||||||
const quint32 &firstPointId, const quint32 &secondPointId, const Source &typeCreation,
|
|
||||||
QGraphicsItem * parent = nullptr);
|
|
||||||
virtual ~VToolLineIntersectAxis() Q_DECL_OVERRIDE;
|
virtual ~VToolLineIntersectAxis() Q_DECL_OVERRIDE;
|
||||||
virtual void setDialog() Q_DECL_OVERRIDE;
|
virtual void setDialog() Q_DECL_OVERRIDE;
|
||||||
|
|
||||||
|
@ -75,9 +71,15 @@ protected:
|
||||||
virtual void SetVisualization() Q_DECL_OVERRIDE;
|
virtual void SetVisualization() Q_DECL_OVERRIDE;
|
||||||
private:
|
private:
|
||||||
Q_DISABLE_COPY(VToolLineIntersectAxis)
|
Q_DISABLE_COPY(VToolLineIntersectAxis)
|
||||||
|
|
||||||
QString formulaAngle;
|
QString formulaAngle;
|
||||||
quint32 firstPointId;
|
quint32 firstPointId;
|
||||||
quint32 secondPointId;
|
quint32 secondPointId;
|
||||||
|
|
||||||
|
VToolLineIntersectAxis(VAbstractPattern *doc, VContainer *data, const quint32 &id, const QString &typeLine,
|
||||||
|
const QString &lineColor, const QString &formulaAngle, const quint32 &basePointId,
|
||||||
|
const quint32 &firstPointId, const quint32 &secondPointId, const Source &typeCreation,
|
||||||
|
QGraphicsItem * parent = nullptr);
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // VTOOLLINEINTERSECTAXIS_H
|
#endif // VTOOLLINEINTERSECTAXIS_H
|
||||||
|
|
|
@ -38,10 +38,6 @@ class VToolNormal : public VToolLinePoint
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
VToolNormal(VAbstractPattern *doc, VContainer *data, const quint32 &id, const QString &typeLine,
|
|
||||||
const QString &lineColor,
|
|
||||||
const QString &formula, const qreal &angle, const quint32 &firstPointId, const quint32 &secondPointId,
|
|
||||||
const Source &typeCreation, QGraphicsItem * parent = nullptr);
|
|
||||||
virtual void setDialog() Q_DECL_OVERRIDE;
|
virtual void setDialog() Q_DECL_OVERRIDE;
|
||||||
static VToolNormal* Create(DialogTool *dialog, VMainGraphicsScene *scene, VAbstractPattern *doc, VContainer *data);
|
static VToolNormal* Create(DialogTool *dialog, VMainGraphicsScene *scene, VAbstractPattern *doc, VContainer *data);
|
||||||
static VToolNormal* Create(const quint32 _id, QString &formula, const quint32 &firstPointId,
|
static VToolNormal* Create(const quint32 _id, QString &formula, const quint32 &firstPointId,
|
||||||
|
@ -70,8 +66,15 @@ protected:
|
||||||
virtual void ReadToolAttributes(const QDomElement &domElement) Q_DECL_OVERRIDE;
|
virtual void ReadToolAttributes(const QDomElement &domElement) Q_DECL_OVERRIDE;
|
||||||
virtual void SetVisualization() Q_DECL_OVERRIDE;
|
virtual void SetVisualization() Q_DECL_OVERRIDE;
|
||||||
private:
|
private:
|
||||||
|
Q_DISABLE_COPY(VToolNormal)
|
||||||
|
|
||||||
/** @brief secondPointId id second line point. */
|
/** @brief secondPointId id second line point. */
|
||||||
quint32 secondPointId;
|
quint32 secondPointId;
|
||||||
|
|
||||||
|
VToolNormal(VAbstractPattern *doc, VContainer *data, const quint32 &id, const QString &typeLine,
|
||||||
|
const QString &lineColor,
|
||||||
|
const QString &formula, const qreal &angle, const quint32 &firstPointId, const quint32 &secondPointId,
|
||||||
|
const Source &typeCreation, QGraphicsItem * parent = nullptr);
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // VTOOLNORMAL_H
|
#endif // VTOOLNORMAL_H
|
||||||
|
|
|
@ -39,9 +39,6 @@ class VToolShoulderPoint : public VToolLinePoint
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
VToolShoulderPoint(VAbstractPattern *doc, VContainer *data, const quint32 &id, const QString &typeLine,
|
|
||||||
const QString &lineColor, const QString &formula, const quint32 &p1Line, const quint32 &p2Line,
|
|
||||||
const quint32 &pShoulder, const Source &typeCreation, QGraphicsItem * parent = nullptr);
|
|
||||||
virtual void setDialog() Q_DECL_OVERRIDE;
|
virtual void setDialog() Q_DECL_OVERRIDE;
|
||||||
static QPointF FindPoint(const QPointF &p1Line, const QPointF &p2Line, const QPointF &pShoulder,
|
static QPointF FindPoint(const QPointF &p1Line, const QPointF &p2Line, const QPointF &pShoulder,
|
||||||
const qreal &length);
|
const qreal &length);
|
||||||
|
@ -74,11 +71,17 @@ protected:
|
||||||
virtual void ReadToolAttributes(const QDomElement &domElement) Q_DECL_OVERRIDE;
|
virtual void ReadToolAttributes(const QDomElement &domElement) Q_DECL_OVERRIDE;
|
||||||
virtual void SetVisualization() Q_DECL_OVERRIDE;
|
virtual void SetVisualization() Q_DECL_OVERRIDE;
|
||||||
private:
|
private:
|
||||||
|
Q_DISABLE_COPY(VToolShoulderPoint)
|
||||||
|
|
||||||
/** @brief p2Line id second line point. */
|
/** @brief p2Line id second line point. */
|
||||||
quint32 p2Line;
|
quint32 p2Line;
|
||||||
|
|
||||||
/** @brief pShoulder id shoulder line point. */
|
/** @brief pShoulder id shoulder line point. */
|
||||||
quint32 pShoulder;
|
quint32 pShoulder;
|
||||||
|
|
||||||
|
VToolShoulderPoint(VAbstractPattern *doc, VContainer *data, const quint32 &id, const QString &typeLine,
|
||||||
|
const QString &lineColor, const QString &formula, const quint32 &p1Line, const quint32 &p2Line,
|
||||||
|
const quint32 &pShoulder, const Source &typeCreation, QGraphicsItem * parent = nullptr);
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // VTOOLSHOULDERPOINT_H
|
#endif // VTOOLSHOULDERPOINT_H
|
||||||
|
|
|
@ -39,8 +39,6 @@ class VToolBasePoint : public VToolSinglePoint
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
VToolBasePoint (VAbstractPattern *doc, VContainer *data, quint32 id, const Source &typeCreation,
|
|
||||||
const QString &namePP, QGraphicsItem * parent = nullptr );
|
|
||||||
virtual ~VToolBasePoint() Q_DECL_OVERRIDE;
|
virtual ~VToolBasePoint() Q_DECL_OVERRIDE;
|
||||||
virtual void setDialog() Q_DECL_OVERRIDE;
|
virtual void setDialog() Q_DECL_OVERRIDE;
|
||||||
static VToolBasePoint *Create(quint32 _id, const QString &nameActivPP, VPointF *point,
|
static VToolBasePoint *Create(quint32 _id, const QString &nameActivPP, VPointF *point,
|
||||||
|
@ -74,9 +72,14 @@ protected:
|
||||||
virtual void ReadToolAttributes(const QDomElement &domElement) Q_DECL_OVERRIDE;
|
virtual void ReadToolAttributes(const QDomElement &domElement) Q_DECL_OVERRIDE;
|
||||||
virtual void SetVisualization() Q_DECL_OVERRIDE {}
|
virtual void SetVisualization() Q_DECL_OVERRIDE {}
|
||||||
private:
|
private:
|
||||||
QString namePP;
|
Q_DISABLE_COPY(VToolBasePoint)
|
||||||
void SetColorLabel(const Qt::GlobalColor & color);
|
|
||||||
|
|
||||||
|
QString namePP;
|
||||||
|
|
||||||
|
VToolBasePoint (VAbstractPattern *doc, VContainer *data, quint32 id, const Source &typeCreation,
|
||||||
|
const QString &namePP, QGraphicsItem * parent = nullptr );
|
||||||
|
|
||||||
|
void SetColorLabel(const Qt::GlobalColor & color);
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // VTOOLBASEPOINT_H
|
#endif // VTOOLBASEPOINT_H
|
||||||
|
|
|
@ -38,9 +38,6 @@ class VToolLineIntersect:public VToolSinglePoint
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
VToolLineIntersect(VAbstractPattern *doc, VContainer *data, const quint32 &id, const quint32 &p1Line1,
|
|
||||||
const quint32 &p2Line1, const quint32 &p1Line2, const quint32 &p2Line2,
|
|
||||||
const Source &typeCreation, QGraphicsItem * parent = nullptr);
|
|
||||||
virtual void setDialog() Q_DECL_OVERRIDE;
|
virtual void setDialog() Q_DECL_OVERRIDE;
|
||||||
static VToolLineIntersect *Create(DialogTool *dialog, VMainGraphicsScene *scene, VAbstractPattern *doc,
|
static VToolLineIntersect *Create(DialogTool *dialog, VMainGraphicsScene *scene, VAbstractPattern *doc,
|
||||||
VContainer *data);
|
VContainer *data);
|
||||||
|
@ -76,6 +73,8 @@ protected:
|
||||||
virtual void ReadToolAttributes(const QDomElement &domElement) Q_DECL_OVERRIDE;
|
virtual void ReadToolAttributes(const QDomElement &domElement) Q_DECL_OVERRIDE;
|
||||||
virtual void SetVisualization() Q_DECL_OVERRIDE;
|
virtual void SetVisualization() Q_DECL_OVERRIDE;
|
||||||
private:
|
private:
|
||||||
|
Q_DISABLE_COPY(VToolLineIntersect)
|
||||||
|
|
||||||
/** @brief p1Line1 id first point first line. */
|
/** @brief p1Line1 id first point first line. */
|
||||||
quint32 p1Line1;
|
quint32 p1Line1;
|
||||||
|
|
||||||
|
@ -87,6 +86,10 @@ private:
|
||||||
|
|
||||||
/** @brief p2Line2 id second point second line.*/
|
/** @brief p2Line2 id second point second line.*/
|
||||||
quint32 p2Line2;
|
quint32 p2Line2;
|
||||||
|
|
||||||
|
VToolLineIntersect(VAbstractPattern *doc, VContainer *data, const quint32 &id, const quint32 &p1Line1,
|
||||||
|
const quint32 &p2Line1, const quint32 &p1Line2, const quint32 &p2Line2,
|
||||||
|
const Source &typeCreation, QGraphicsItem * parent = nullptr);
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // VTOOLLINEINTERSECT_H
|
#endif // VTOOLLINEINTERSECT_H
|
||||||
|
|
|
@ -35,9 +35,6 @@ class VToolPointFromArcAndTangent : public VToolSinglePoint
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
VToolPointFromArcAndTangent(VAbstractPattern *doc, VContainer *data, const quint32 &id, quint32 arcId,
|
|
||||||
quint32 tangentPointId, CrossCirclesPoint crossPoint, const Source &typeCreation,
|
|
||||||
QGraphicsItem * parent = nullptr);
|
|
||||||
virtual void setDialog() Q_DECL_OVERRIDE;
|
virtual void setDialog() Q_DECL_OVERRIDE;
|
||||||
static VToolPointFromArcAndTangent *Create(DialogTool *dialog, VMainGraphicsScene *scene, VAbstractPattern *doc,
|
static VToolPointFromArcAndTangent *Create(DialogTool *dialog, VMainGraphicsScene *scene, VAbstractPattern *doc,
|
||||||
VContainer *data);
|
VContainer *data);
|
||||||
|
@ -73,6 +70,10 @@ private:
|
||||||
quint32 arcId;
|
quint32 arcId;
|
||||||
quint32 tangentPointId;
|
quint32 tangentPointId;
|
||||||
CrossCirclesPoint crossPoint;
|
CrossCirclesPoint crossPoint;
|
||||||
|
|
||||||
|
VToolPointFromArcAndTangent(VAbstractPattern *doc, VContainer *data, const quint32 &id, quint32 arcId,
|
||||||
|
quint32 tangentPointId, CrossCirclesPoint crossPoint, const Source &typeCreation,
|
||||||
|
QGraphicsItem * parent = nullptr);
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // VTOOLPOINTFROMARCANDTANGENT_H
|
#endif // VTOOLPOINTFROMARCANDTANGENT_H
|
||||||
|
|
|
@ -37,9 +37,6 @@ class VToolPointFromCircleAndTangent : public VToolSinglePoint
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
VToolPointFromCircleAndTangent(VAbstractPattern *doc, VContainer *data, const quint32 &id, quint32 circleCenterId,
|
|
||||||
const QString &circleRadius, quint32 tangentPointId, CrossCirclesPoint crossPoint,
|
|
||||||
const Source &typeCreation, QGraphicsItem * parent = nullptr);
|
|
||||||
virtual void setDialog() Q_DECL_OVERRIDE;
|
virtual void setDialog() Q_DECL_OVERRIDE;
|
||||||
static VToolPointFromCircleAndTangent *Create(DialogTool *dialog, VMainGraphicsScene *scene, VAbstractPattern *doc,
|
static VToolPointFromCircleAndTangent *Create(DialogTool *dialog, VMainGraphicsScene *scene, VAbstractPattern *doc,
|
||||||
VContainer *data);
|
VContainer *data);
|
||||||
|
@ -80,6 +77,10 @@ private:
|
||||||
quint32 tangentPointId;
|
quint32 tangentPointId;
|
||||||
QString circleRadius;
|
QString circleRadius;
|
||||||
CrossCirclesPoint crossPoint;
|
CrossCirclesPoint crossPoint;
|
||||||
|
|
||||||
|
VToolPointFromCircleAndTangent(VAbstractPattern *doc, VContainer *data, const quint32 &id, quint32 circleCenterId,
|
||||||
|
const QString &circleRadius, quint32 tangentPointId, CrossCirclesPoint crossPoint,
|
||||||
|
const Source &typeCreation, QGraphicsItem * parent = nullptr);
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // VTOOLPOINTFROMCIRCLEANDTANGENT_H
|
#endif // VTOOLPOINTFROMCIRCLEANDTANGENT_H
|
||||||
|
|
|
@ -40,9 +40,6 @@ class VToolPointOfContact : public VToolSinglePoint
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
VToolPointOfContact(VAbstractPattern *doc, VContainer *data, const quint32 &id, const QString &arcRadius,
|
|
||||||
const quint32 ¢er, const quint32 &firstPointId, const quint32 &secondPointId,
|
|
||||||
const Source &typeCreation, QGraphicsItem * parent = nullptr);
|
|
||||||
virtual void setDialog() Q_DECL_OVERRIDE;
|
virtual void setDialog() Q_DECL_OVERRIDE;
|
||||||
static QPointF FindPoint(const qreal &arcRadius, const QPointF ¢er, const QPointF &firstPoint,
|
static QPointF FindPoint(const qreal &arcRadius, const QPointF ¢er, const QPointF &firstPoint,
|
||||||
const QPointF &secondPoint);
|
const QPointF &secondPoint);
|
||||||
|
@ -81,6 +78,8 @@ protected:
|
||||||
virtual void ReadToolAttributes(const QDomElement &domElement) Q_DECL_OVERRIDE;
|
virtual void ReadToolAttributes(const QDomElement &domElement) Q_DECL_OVERRIDE;
|
||||||
virtual void SetVisualization() Q_DECL_OVERRIDE;
|
virtual void SetVisualization() Q_DECL_OVERRIDE;
|
||||||
private:
|
private:
|
||||||
|
Q_DISABLE_COPY(VToolPointOfContact)
|
||||||
|
|
||||||
/** @brief radius string with formula radius arc. */
|
/** @brief radius string with formula radius arc. */
|
||||||
QString arcRadius;
|
QString arcRadius;
|
||||||
|
|
||||||
|
@ -92,6 +91,10 @@ private:
|
||||||
|
|
||||||
/** @brief secondPointId id second line point. */
|
/** @brief secondPointId id second line point. */
|
||||||
quint32 secondPointId;
|
quint32 secondPointId;
|
||||||
|
|
||||||
|
VToolPointOfContact(VAbstractPattern *doc, VContainer *data, const quint32 &id, const QString &arcRadius,
|
||||||
|
const quint32 ¢er, const quint32 &firstPointId, const quint32 &secondPointId,
|
||||||
|
const Source &typeCreation, QGraphicsItem * parent = nullptr);
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // VTOOLPOINTOFCONTACT_H
|
#endif // VTOOLPOINTOFCONTACT_H
|
||||||
|
|
|
@ -38,9 +38,6 @@ class VToolPointOfIntersection : public VToolSinglePoint
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
VToolPointOfIntersection(VAbstractPattern *doc, VContainer *data, const quint32 &id, const quint32 &firstPointId,
|
|
||||||
const quint32 &secondPointId, const Source &typeCreation,
|
|
||||||
QGraphicsItem * parent = nullptr);
|
|
||||||
virtual void setDialog() Q_DECL_OVERRIDE;
|
virtual void setDialog() Q_DECL_OVERRIDE;
|
||||||
static VToolPointOfIntersection *Create(DialogTool *dialog, VMainGraphicsScene *scene, VAbstractPattern *doc,
|
static VToolPointOfIntersection *Create(DialogTool *dialog, VMainGraphicsScene *scene, VAbstractPattern *doc,
|
||||||
VContainer *data);
|
VContainer *data);
|
||||||
|
@ -68,11 +65,16 @@ protected:
|
||||||
virtual void SetVisualization() Q_DECL_OVERRIDE;
|
virtual void SetVisualization() Q_DECL_OVERRIDE;
|
||||||
private:
|
private:
|
||||||
Q_DISABLE_COPY(VToolPointOfIntersection)
|
Q_DISABLE_COPY(VToolPointOfIntersection)
|
||||||
|
|
||||||
/** @brief firstPointId id first line point. */
|
/** @brief firstPointId id first line point. */
|
||||||
quint32 firstPointId;
|
quint32 firstPointId;
|
||||||
|
|
||||||
/** @brief secondPointId id second line point. */
|
/** @brief secondPointId id second line point. */
|
||||||
quint32 secondPointId;
|
quint32 secondPointId;
|
||||||
|
|
||||||
|
VToolPointOfIntersection(VAbstractPattern *doc, VContainer *data, const quint32 &id, const quint32 &firstPointId,
|
||||||
|
const quint32 &secondPointId, const Source &typeCreation,
|
||||||
|
QGraphicsItem * parent = nullptr);
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // VTOOLPOINTOFINTERSECTION_H
|
#endif // VTOOLPOINTOFINTERSECTION_H
|
||||||
|
|
|
@ -38,9 +38,6 @@ class VToolPointOfIntersectionArcs : public VToolSinglePoint
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
VToolPointOfIntersectionArcs(VAbstractPattern *doc, VContainer *data, const quint32 &id, const quint32 &firstArcId,
|
|
||||||
const quint32 &secondArcId, CrossCirclesPoint crossPoint, const Source &typeCreation,
|
|
||||||
QGraphicsItem * parent = nullptr);
|
|
||||||
virtual void setDialog() Q_DECL_OVERRIDE;
|
virtual void setDialog() Q_DECL_OVERRIDE;
|
||||||
static VToolPointOfIntersectionArcs *Create(DialogTool *dialog, VMainGraphicsScene *scene, VAbstractPattern *doc,
|
static VToolPointOfIntersectionArcs *Create(DialogTool *dialog, VMainGraphicsScene *scene, VAbstractPattern *doc,
|
||||||
VContainer *data);
|
VContainer *data);
|
||||||
|
@ -81,6 +78,10 @@ private:
|
||||||
quint32 secondArcId;
|
quint32 secondArcId;
|
||||||
|
|
||||||
CrossCirclesPoint crossPoint;
|
CrossCirclesPoint crossPoint;
|
||||||
|
|
||||||
|
VToolPointOfIntersectionArcs(VAbstractPattern *doc, VContainer *data, const quint32 &id, const quint32 &firstArcId,
|
||||||
|
const quint32 &secondArcId, CrossCirclesPoint crossPoint, const Source &typeCreation,
|
||||||
|
QGraphicsItem * parent = nullptr);
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // VTOOLPOINTOFINTERSECTIONARCS_H
|
#endif // VTOOLPOINTOFINTERSECTIONARCS_H
|
||||||
|
|
|
@ -37,11 +37,6 @@ class VToolPointOfIntersectionCircles : public VToolSinglePoint
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
VToolPointOfIntersectionCircles(VAbstractPattern *doc, VContainer *data, const quint32 &id, const
|
|
||||||
quint32 firstCircleCenterId, quint32 secondCircleCenterId,
|
|
||||||
const QString &firstCircleRadius, const QString &secondCircleRadius,
|
|
||||||
CrossCirclesPoint crossPoint, const Source &typeCreation,
|
|
||||||
QGraphicsItem * parent = nullptr);
|
|
||||||
virtual void setDialog() Q_DECL_OVERRIDE;
|
virtual void setDialog() Q_DECL_OVERRIDE;
|
||||||
static VToolPointOfIntersectionCircles *Create(DialogTool *dialog, VMainGraphicsScene *scene,
|
static VToolPointOfIntersectionCircles *Create(DialogTool *dialog, VMainGraphicsScene *scene,
|
||||||
VAbstractPattern *doc,
|
VAbstractPattern *doc,
|
||||||
|
@ -92,6 +87,12 @@ private:
|
||||||
QString secondCircleRadius;
|
QString secondCircleRadius;
|
||||||
|
|
||||||
CrossCirclesPoint crossPoint;
|
CrossCirclesPoint crossPoint;
|
||||||
|
|
||||||
|
VToolPointOfIntersectionCircles(VAbstractPattern *doc, VContainer *data, const quint32 &id, const
|
||||||
|
quint32 firstCircleCenterId, quint32 secondCircleCenterId,
|
||||||
|
const QString &firstCircleRadius, const QString &secondCircleRadius,
|
||||||
|
CrossCirclesPoint crossPoint, const Source &typeCreation,
|
||||||
|
QGraphicsItem * parent = nullptr);
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // VTOOLPOINTOFINTERSECTIONCIRCLES_H
|
#endif // VTOOLPOINTOFINTERSECTIONCIRCLES_H
|
||||||
|
|
|
@ -35,10 +35,6 @@ class VToolPointOfIntersectionCurves : public VToolSinglePoint
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
explicit VToolPointOfIntersectionCurves(VAbstractPattern *doc, VContainer *data, const quint32 &id, const
|
|
||||||
quint32 firstCurveId, quint32 secondCurveId,
|
|
||||||
VCrossCurvesPoint vCrossPoint, HCrossCurvesPoint hCrossPoint,
|
|
||||||
const Source &typeCreation, QGraphicsItem * parent = nullptr);
|
|
||||||
virtual void setDialog() Q_DECL_OVERRIDE;
|
virtual void setDialog() Q_DECL_OVERRIDE;
|
||||||
static VToolPointOfIntersectionCurves *Create(DialogTool *dialog, VMainGraphicsScene *scene,
|
static VToolPointOfIntersectionCurves *Create(DialogTool *dialog, VMainGraphicsScene *scene,
|
||||||
VAbstractPattern *doc, VContainer *data);
|
VAbstractPattern *doc, VContainer *data);
|
||||||
|
@ -82,6 +78,11 @@ private:
|
||||||
|
|
||||||
VCrossCurvesPoint vCrossPoint;
|
VCrossCurvesPoint vCrossPoint;
|
||||||
HCrossCurvesPoint hCrossPoint;
|
HCrossCurvesPoint hCrossPoint;
|
||||||
|
|
||||||
|
explicit VToolPointOfIntersectionCurves(VAbstractPattern *doc, VContainer *data, const quint32 &id, const
|
||||||
|
quint32 firstCurveId, quint32 secondCurveId,
|
||||||
|
VCrossCurvesPoint vCrossPoint, HCrossCurvesPoint hCrossPoint,
|
||||||
|
const Source &typeCreation, QGraphicsItem * parent = nullptr);
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // VTOOLPOINTOFINTERSECTIONCURVES_H
|
#endif // VTOOLPOINTOFINTERSECTIONCURVES_H
|
||||||
|
|
|
@ -39,10 +39,6 @@ class VToolTriangle : public VToolSinglePoint
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
VToolTriangle(VAbstractPattern *doc, VContainer *data, const quint32 &id, const quint32 &axisP1Id,
|
|
||||||
const quint32 &axisP2Id,
|
|
||||||
const quint32 &firstPointId, const quint32 &secondPointId, const Source &typeCreation,
|
|
||||||
QGraphicsItem * parent = nullptr);
|
|
||||||
virtual void setDialog() Q_DECL_OVERRIDE;
|
virtual void setDialog() Q_DECL_OVERRIDE;
|
||||||
static VToolTriangle *Create(DialogTool *dialog, VMainGraphicsScene *scene, VAbstractPattern *doc,
|
static VToolTriangle *Create(DialogTool *dialog, VMainGraphicsScene *scene, VAbstractPattern *doc,
|
||||||
VContainer *data);
|
VContainer *data);
|
||||||
|
@ -89,6 +85,11 @@ private:
|
||||||
|
|
||||||
/** @brief secondPointId id second triangle point, what lies on the hypotenuse. */
|
/** @brief secondPointId id second triangle point, what lies on the hypotenuse. */
|
||||||
quint32 secondPointId;
|
quint32 secondPointId;
|
||||||
|
|
||||||
|
VToolTriangle(VAbstractPattern *doc, VContainer *data, const quint32 &id, const quint32 &axisP1Id,
|
||||||
|
const quint32 &axisP2Id,
|
||||||
|
const quint32 &firstPointId, const quint32 &secondPointId, const Source &typeCreation,
|
||||||
|
QGraphicsItem * parent = nullptr);
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // VTOOLTRIANGLE_H
|
#endif // VTOOLTRIANGLE_H
|
||||||
|
|
|
@ -39,9 +39,6 @@ class VToolLine: public VDrawTool, public QGraphicsLineItem
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
VToolLine(VAbstractPattern *doc, VContainer *data, quint32 id, quint32 firstPoint, quint32 secondPoint,
|
|
||||||
const QString &typeLine, const QString &lineColor, const Source &typeCreation,
|
|
||||||
QGraphicsItem * parent = nullptr);
|
|
||||||
virtual void setDialog() Q_DECL_OVERRIDE;
|
virtual void setDialog() Q_DECL_OVERRIDE;
|
||||||
static VToolLine *Create(DialogTool *dialog, VMainGraphicsScene *scene, VAbstractPattern *doc, VContainer *data);
|
static VToolLine *Create(DialogTool *dialog, VMainGraphicsScene *scene, VAbstractPattern *doc, VContainer *data);
|
||||||
static VToolLine *Create(const quint32 &_id, const quint32 &firstPoint, const quint32 &secondPoint,
|
static VToolLine *Create(const quint32 &_id, const quint32 &firstPoint, const quint32 &secondPoint,
|
||||||
|
@ -85,12 +82,18 @@ protected:
|
||||||
virtual void ReadToolAttributes(const QDomElement &domElement) Q_DECL_OVERRIDE;
|
virtual void ReadToolAttributes(const QDomElement &domElement) Q_DECL_OVERRIDE;
|
||||||
virtual void SetVisualization() Q_DECL_OVERRIDE;
|
virtual void SetVisualization() Q_DECL_OVERRIDE;
|
||||||
private:
|
private:
|
||||||
|
Q_DISABLE_COPY(VToolLine)
|
||||||
|
|
||||||
/** @brief firstPoint id first line point. */
|
/** @brief firstPoint id first line point. */
|
||||||
quint32 firstPoint;
|
quint32 firstPoint;
|
||||||
|
|
||||||
/** @brief secondPoint id second line point. */
|
/** @brief secondPoint id second line point. */
|
||||||
quint32 secondPoint;
|
quint32 secondPoint;
|
||||||
|
|
||||||
|
VToolLine(VAbstractPattern *doc, VContainer *data, quint32 id, quint32 firstPoint, quint32 secondPoint,
|
||||||
|
const QString &typeLine, const QString &lineColor, const Source &typeCreation,
|
||||||
|
QGraphicsItem * parent = nullptr);
|
||||||
|
|
||||||
void RefreshGeometry();
|
void RefreshGeometry();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -39,9 +39,6 @@ class VNodeArc :public VAbstractNode
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
VNodeArc(VAbstractPattern *doc, VContainer *data, quint32 id, quint32 idArc, const Source &typeCreation,
|
|
||||||
const quint32 &idTool = 0, QObject *qoParent = nullptr);
|
|
||||||
|
|
||||||
static void Create(VAbstractPattern *doc, VContainer *data, quint32 id, quint32 idArc, const Document &parse,
|
static void Create(VAbstractPattern *doc, VContainer *data, quint32 id, quint32 idArc, const Document &parse,
|
||||||
const Source &typeCreation, const quint32 &idTool = 0);
|
const Source &typeCreation, const quint32 &idTool = 0);
|
||||||
static const QString TagName;
|
static const QString TagName;
|
||||||
|
@ -58,6 +55,9 @@ protected:
|
||||||
virtual void HideNode() Q_DECL_OVERRIDE {}
|
virtual void HideNode() Q_DECL_OVERRIDE {}
|
||||||
private:
|
private:
|
||||||
Q_DISABLE_COPY(VNodeArc)
|
Q_DISABLE_COPY(VNodeArc)
|
||||||
|
|
||||||
|
VNodeArc(VAbstractPattern *doc, VContainer *data, quint32 id, quint32 idArc, const Source &typeCreation,
|
||||||
|
const quint32 &idTool = 0, QObject *qoParent = nullptr);
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // VNODEARC_H4
|
#endif // VNODEARC_H4
|
||||||
|
|
|
@ -44,10 +44,6 @@ class VNodePoint: public VAbstractNode, public QGraphicsEllipseItem
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
|
|
||||||
VNodePoint(VAbstractPattern *doc, VContainer *data, quint32 id, quint32 idPoint, const Source &typeCreation,
|
|
||||||
const quint32 &idTool = 0, QObject *qoParent = nullptr, QGraphicsItem * parent = nullptr );
|
|
||||||
|
|
||||||
static void Create(VAbstractPattern *doc, VContainer *data, VMainGraphicsScene *scene,
|
static void Create(VAbstractPattern *doc, VContainer *data, VMainGraphicsScene *scene,
|
||||||
quint32 id, quint32 idPoint, const Document &parse,
|
quint32 id, quint32 idPoint, const Document &parse,
|
||||||
const Source &typeCreation, const quint32 &idTool = 0);
|
const Source &typeCreation, const quint32 &idTool = 0);
|
||||||
|
@ -91,6 +87,9 @@ protected:
|
||||||
virtual void HideNode() Q_DECL_OVERRIDE;
|
virtual void HideNode() Q_DECL_OVERRIDE;
|
||||||
private:
|
private:
|
||||||
Q_DISABLE_COPY(VNodePoint)
|
Q_DISABLE_COPY(VNodePoint)
|
||||||
|
|
||||||
|
VNodePoint(VAbstractPattern *doc, VContainer *data, quint32 id, quint32 idPoint, const Source &typeCreation,
|
||||||
|
const quint32 &idTool = 0, QObject *qoParent = nullptr, QGraphicsItem * parent = nullptr );
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // VNODEPOINT_H
|
#endif // VNODEPOINT_H
|
||||||
|
|
|
@ -39,9 +39,6 @@ class VNodeSpline:public VAbstractNode
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
VNodeSpline(VAbstractPattern *doc, VContainer *data, quint32 id, quint32 idSpline, const Source &typeCreation,
|
|
||||||
const quint32 &idTool = 0, QObject *qoParent = nullptr);
|
|
||||||
|
|
||||||
static VNodeSpline *Create(VAbstractPattern *doc, VContainer *data, quint32 id,
|
static VNodeSpline *Create(VAbstractPattern *doc, VContainer *data, quint32 id,
|
||||||
quint32 idSpline, const Document &parse,
|
quint32 idSpline, const Document &parse,
|
||||||
const Source &typeCreation, const quint32 &idTool = 0);
|
const Source &typeCreation, const quint32 &idTool = 0);
|
||||||
|
@ -59,6 +56,9 @@ protected:
|
||||||
virtual void HideNode() Q_DECL_OVERRIDE {}
|
virtual void HideNode() Q_DECL_OVERRIDE {}
|
||||||
private:
|
private:
|
||||||
Q_DISABLE_COPY(VNodeSpline)
|
Q_DISABLE_COPY(VNodeSpline)
|
||||||
|
|
||||||
|
VNodeSpline(VAbstractPattern *doc, VContainer *data, quint32 id, quint32 idSpline, const Source &typeCreation,
|
||||||
|
const quint32 &idTool = 0, QObject *qoParent = nullptr);
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // VNODESPLINE_H
|
#endif // VNODESPLINE_H
|
||||||
|
|
|
@ -39,8 +39,6 @@ class VNodeSplinePath : public VAbstractNode
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
VNodeSplinePath(VAbstractPattern *doc, VContainer *data, quint32 id, quint32 idSpline, const Source &typeCreation,
|
|
||||||
const quint32 &idTool = 0, QObject *qoParent = nullptr);
|
|
||||||
static void Create(VAbstractPattern *doc, VContainer *data, quint32 id,
|
static void Create(VAbstractPattern *doc, VContainer *data, quint32 id,
|
||||||
quint32 idSpline, const Document &parse,
|
quint32 idSpline, const Document &parse,
|
||||||
const Source &typeCreation, const quint32 &idTool = 0);
|
const Source &typeCreation, const quint32 &idTool = 0);
|
||||||
|
@ -58,6 +56,9 @@ protected:
|
||||||
virtual void HideNode() Q_DECL_OVERRIDE {}
|
virtual void HideNode() Q_DECL_OVERRIDE {}
|
||||||
private:
|
private:
|
||||||
Q_DISABLE_COPY(VNodeSplinePath)
|
Q_DISABLE_COPY(VNodeSplinePath)
|
||||||
|
|
||||||
|
VNodeSplinePath(VAbstractPattern *doc, VContainer *data, quint32 id, quint32 idSpline, const Source &typeCreation,
|
||||||
|
const quint32 &idTool = 0, QObject *qoParent = nullptr);
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // VNODESPLINEPATH_H
|
#endif // VNODESPLINEPATH_H
|
||||||
|
|
|
@ -42,8 +42,6 @@ class VToolDetail: public VAbstractTool, public VNoBrushScalePathItem
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
VToolDetail(VAbstractPattern *doc, VContainer *data, const quint32 &id, const Source &typeCreation,
|
|
||||||
VMainGraphicsScene *scene, const QString &drawName, QGraphicsItem * parent = nullptr);
|
|
||||||
~VToolDetail();
|
~VToolDetail();
|
||||||
|
|
||||||
virtual void setDialog();
|
virtual void setDialog();
|
||||||
|
@ -116,6 +114,9 @@ private:
|
||||||
|
|
||||||
VNoBrushScalePathItem *seamAllowance;
|
VNoBrushScalePathItem *seamAllowance;
|
||||||
|
|
||||||
|
VToolDetail(VAbstractPattern *doc, VContainer *data, const quint32 &id, const Source &typeCreation,
|
||||||
|
VMainGraphicsScene *scene, const QString &drawName, QGraphicsItem * parent = nullptr);
|
||||||
|
|
||||||
void RefreshGeometry ();
|
void RefreshGeometry ();
|
||||||
template <typename Tool>
|
template <typename Tool>
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -42,9 +42,6 @@ class VToolUnionDetails : public VAbstractTool
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
VToolUnionDetails(VAbstractPattern *doc, VContainer *data, const quint32 &id, const VDetail &d1, const VDetail &d2,
|
|
||||||
const quint32 &indexD1, const quint32 &indexD2, const Source &typeCreation,
|
|
||||||
const QString &drawName, QObject *parent = nullptr);
|
|
||||||
/**
|
/**
|
||||||
* @brief setDialog set dialog when user want change tool option.
|
* @brief setDialog set dialog when user want change tool option.
|
||||||
*/
|
*/
|
||||||
|
@ -112,6 +109,10 @@ private:
|
||||||
|
|
||||||
QString drawName;
|
QString drawName;
|
||||||
|
|
||||||
|
VToolUnionDetails(VAbstractPattern *doc, VContainer *data, const quint32 &id, const VDetail &d1, const VDetail &d2,
|
||||||
|
const quint32 &indexD1, const quint32 &indexD2, const Source &typeCreation,
|
||||||
|
const QString &drawName, QObject *parent = nullptr);
|
||||||
|
|
||||||
void AddDetail(QDomElement &domElement, VDetail &d);
|
void AddDetail(QDomElement &domElement, VDetail &d);
|
||||||
void AddNode(QDomElement &domElement, const VNodeDetail &node);
|
void AddNode(QDomElement &domElement, const VNodeDetail &node);
|
||||||
QDomNode UpdateDetail(const QDomNode &domNode, const VDetail &d);
|
QDomNode UpdateDetail(const QDomNode &domNode, const VDetail &d);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user