valentina_old/tools/vtoolline.h

30 lines
990 B
C
Raw Normal View History

2013-07-25 20:39:51 +02:00
#ifndef VTOOLLINE_H
#define VTOOLLINE_H
#include "vabstracttool.h"
#include "QGraphicsLineItem"
#include "../dialogs/dialogline.h"
class VToolLine: public VAbstractTool, public QGraphicsLineItem
{
Q_OBJECT
public:
VToolLine(VDomDocument *doc, VContainer *data, qint64 id, qint64 firstPoint, qint64 secondPoint,
2013-07-28 00:18:06 +02:00
Tool::Enum typeCreation, QGraphicsItem * parent = 0);
2013-07-25 20:39:51 +02:00
public slots:
virtual void FullUpdateFromFile();
virtual void ChangedActivDraw(const QString newName);
2013-07-28 00:18:06 +02:00
virtual void FullUpdateFromGui(int result);
2013-07-25 20:39:51 +02:00
protected:
virtual void contextMenuEvent ( QGraphicsSceneContextMenuEvent * event );
virtual void AddToFile();
2013-07-28 00:18:06 +02:00
virtual void hoverMoveEvent ( QGraphicsSceneHoverEvent * event );
virtual void hoverLeaveEvent ( QGraphicsSceneHoverEvent * event );
2013-07-25 20:39:51 +02:00
private:
qint64 firstPoint;
qint64 secondPoint;
QSharedPointer<DialogLine> dialogLine;
};
#endif // VTOOLLINE_H