You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

22 lines
496 B

#ifndef DRAWITEM_HPP
#define DRAWITEM_HPP
class DrawItem;
#include <QString>
#include <cropeditor/cropscene.hpp>
class DrawItem {
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;
};
#endif // DRAWITEM_HPP