valentina/tools/vtoolsimplepoint.h

29 lines
921 B
C
Raw Normal View History

2013-07-13 12:51:31 +02:00
#ifndef VTOOLSIMPLEPOINT_H
#define VTOOLSIMPLEPOINT_H
#include "../container/vcontainer.h"
#include "../xml/vdomdocument.h"
2013-07-17 13:38:11 +02:00
#include "vtoolpoint.h"
2013-07-13 12:51:31 +02:00
2013-07-17 13:38:11 +02:00
class VToolSimplePoint : public VToolPoint
2013-07-13 12:51:31 +02:00
{
Q_OBJECT
public:
VToolSimplePoint (VDomDocument *doc, VContainer *data, qint64 id,
Tool::Enum typeCreation, QGraphicsItem * parent = 0 );
public slots:
2013-07-17 13:38:11 +02:00
virtual void ChangedActivDraw(const QString newName);
virtual void FullUpdateFromFile();
2013-07-13 12:51:31 +02:00
signals:
void FullUpdateTree();
protected:
virtual void contextMenuEvent ( QGraphicsSceneContextMenuEvent * event );
2013-07-17 13:38:11 +02:00
virtual void AddToFile();
2013-07-13 12:51:31 +02:00
private:
bool ignoreContextMenuEvent;
2013-07-17 13:38:11 +02:00
2013-07-13 12:51:31 +02:00
void FullUpdateFromGui(const QString& name, qreal x, qreal y);
};
#endif // VTOOLSIMPLEPOINT_H