valentina_old/tools/drawTools/vtoolshoulderpoint.h

36 lines
1.6 KiB
C
Raw Normal View History

2013-07-29 14:55:40 +02:00
#ifndef VTOOLSHOULDERPOINT_H
#define VTOOLSHOULDERPOINT_H
2013-07-31 13:34:39 +02:00
#include "vtoollinepoint.h"
#include "dialogs/dialogshoulderpoint.h"
2013-07-29 14:55:40 +02:00
2013-07-31 13:34:39 +02:00
class VToolShoulderPoint : public VToolLinePoint
2013-07-29 14:55:40 +02:00
{
public:
VToolShoulderPoint(VDomDocument *doc, VContainer *data, const qint64 &id,
2013-07-29 14:55:40 +02:00
const QString &typeLine, const QString &formula, const qint64 &p1Line,
const qint64 &p2Line, const qint64 &pShoulder, Tool::Enum typeCreation,
QGraphicsItem * parent = 0);
virtual void setDialog();
2013-07-29 14:55:40 +02:00
static QPointF FindPoint(const QPointF &p1Line, const QPointF &p2Line, const QPointF &pShoulder,
const qreal &length);
static void Create(QSharedPointer<DialogShoulderPoint> &dialog, VMainGraphicsScene *scene,
VDomDocument *doc, VContainer *data);
static void Create(const qint64 _id, const QString &formula, const qint64 &p1Line, const qint64 &p2Line,
const qint64 &pShoulder, const QString &typeLine, const QString &pointName,
const qreal &mx, const qreal &my, VMainGraphicsScene *scene, VDomDocument *doc,
VContainer *data, Document::Enum parse, Tool::Enum typeCreation);
2013-07-29 14:55:40 +02:00
public slots:
virtual void FullUpdateFromFile();
virtual void FullUpdateFromGui(int result);
protected:
virtual void contextMenuEvent ( QGraphicsSceneContextMenuEvent * event );
virtual void AddToFile();
private:
qint64 p2Line;
qint64 pShoulder;
QSharedPointer<DialogShoulderPoint> dialogShoulderPoint;
};
#endif // VTOOLSHOULDERPOINT_H