KShare/src/cropeditor/drawing/drawitem.hpp

23 lines
496 B
C++
Raw Normal View History

2017-04-29 11:29:50 +02:00
#ifndef DRAWITEM_HPP
#define DRAWITEM_HPP
2017-05-01 11:28:54 +02:00
class DrawItem;
2017-04-29 12:08:02 +02:00
#include <QString>
#include <cropeditor/cropscene.hpp>
2017-05-06 13:21:12 +02:00
class DrawItem {
2017-06-14 23:34:58 +02:00
public:
virtual ~DrawItem() {
}
virtual QString name() = 0;
virtual bool init(CropScene *scene) {
Q_UNUSED(scene)
return true;
}
virtual void mouseDragEvent(QGraphicsSceneMouseEvent *e, CropScene *scene) = 0;
virtual void mouseDragEndEvent(QGraphicsSceneMouseEvent *e, CropScene *scene) = 0;
2017-04-29 12:08:02 +02:00
};
2017-04-29 11:29:50 +02:00
#endif // DRAWITEM_HPP