valentina_old/tools/vtoolsinglepoint.h

38 lines
1.3 KiB
C
Raw Normal View History

2013-08-05 10:37:56 +02:00
#ifndef VTOOLSINGLEPOINT_H
#define VTOOLSINGLEPOINT_H
2013-08-20 12:26:02 +02:00
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Weffc++"
#pragma GCC diagnostic ignored "-Wconversion"
#pragma GCC diagnostic ignored "-Wsign-conversion"
#pragma GCC diagnostic ignored "-Wctor-dtor-privacy"
2013-08-05 10:37:56 +02:00
#include "../container/vcontainer.h"
#include "../xml/vdomdocument.h"
#include "../dialogs/dialogsinglepoint.h"
2013-08-20 12:26:02 +02:00
#include "vtoolpoint.h"
#pragma GCC diagnostic pop
2013-08-05 10:37:56 +02:00
class VToolSinglePoint : public VToolPoint
{
Q_OBJECT
public:
VToolSinglePoint (VDomDocument *doc, VContainer *data, qint64 id,
2013-08-28 10:55:11 +02:00
Tool::Enum typeCreation,
QGraphicsItem * parent = 0 );
2013-08-15 22:39:00 +02:00
virtual void setDialog();
2013-08-05 10:37:56 +02:00
public slots:
virtual void FullUpdateFromFile();
virtual void FullUpdateFromGui(int result);
virtual void ChangedActivDraw(const QString newName);
2013-08-05 10:37:56 +02:00
signals:
void FullUpdateTree();
protected:
virtual void contextMenuEvent ( QGraphicsSceneContextMenuEvent * event );
virtual void AddToFile();
QVariant itemChange ( GraphicsItemChange change, const QVariant &value );
2013-08-05 10:37:56 +02:00
private:
QSharedPointer<DialogSinglePoint> dialogSinglePoint;
};
#endif // VTOOLSINGLEPOINT_H