1 #ifndef QNSTGRAPHICSINTERFACE_H
2 #define QNSTGRAPHICSINTERFACE_H
4 #include "qnstgraphicsentity.h"
5 #include "qnstgraphicsedge.h"
14 virtual void adjust(
bool avoidCollision =
true);
18 void setRefer(
bool refer);
20 virtual void updateToolTip();
22 virtual void setProperties(
const QMap<QString, QString> &props);
25 virtual void draw(QPainter* painter) = 0;
27 virtual void delineate(QPainterPath* painter)
const = 0;
29 virtual void move(QGraphicsSceneMouseEvent* event);
31 virtual void resize(QGraphicsSceneMouseEvent* event);
34 void adjustToBorder();
39 #endif // QNSTGRAPHICSINTERFACE_H