valentina/tools/vtoollinepoint.h

30 lines
921 B
C
Raw Normal View History

2013-07-30 20:46:40 +02:00
#ifndef VTOOLLINEPOINT_H
#define VTOOLLINEPOINT_H
2013-08-20 12:26:02 +02:00
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Weffc++"
2013-07-30 20:46:40 +02:00
#include "vtoolpoint.h"
2013-08-20 12:26:02 +02:00
#pragma GCC diagnostic pop
2013-07-30 20:46:40 +02:00
class VToolLinePoint : public VToolPoint
{
public:
2013-08-28 10:55:11 +02:00
VToolLinePoint(VDomDocument *doc, VContainer *data, const qint64 &id, Draw::Mode mode,
2013-07-30 20:46:40 +02:00
const QString &typeLine, const QString &formula,
2013-07-31 13:34:39 +02:00
const qint64 &basePointId, const qint32 &angle, QGraphicsItem * parent = 0);
2013-07-30 20:46:40 +02:00
public slots:
virtual void ChangedActivDraw(const QString newName);
2013-07-31 13:34:39 +02:00
virtual void RefreshGeometry();
2013-07-30 20:46:40 +02:00
protected:
QString typeLine;
QString formula;
qint32 angle;
2013-07-31 13:34:39 +02:00
qint64 basePointId;
2013-07-30 20:46:40 +02:00
QGraphicsLineItem *mainLine;
2013-08-20 12:26:02 +02:00
private:
VToolLinePoint(const VToolLinePoint &tool);
const VToolLinePoint &operator=(const VToolLinePoint &tool);
2013-07-30 20:46:40 +02:00
};
#endif // VTOOLLINEPOINT_H