KShare/cropeditor/drawing/drawitem.hpp
ArsenArsen ae46699b95 Blur!
2017-05-01 11:29:35 +02:00

25 lines
487 B
C++

#ifndef DRAWITEM_HPP
#define DRAWITEM_HPP
class DrawItem;
#include <QString>
#include <cropeditor/cropscene.hpp>
class DrawItem
{
public:
virtual ~DrawItem()
{
}
virtual QString name() = 0;
virtual void init(CropScene *scene)
{
Q_UNUSED(scene)
}
virtual void mouseDragEvent(QGraphicsSceneMouseEvent *e, CropScene *scene) = 0;
virtual void mouseDragEndEvent(QGraphicsSceneMouseEvent *e, CropScene *scene) = 0;
};
#endif // DRAWITEM_HPP