NCL Composer  0.1.5
 All Classes Functions Variables Pages
qnstgraphicsinterface.h
1 #ifndef QNSTGRAPHICSINTERFACE_H
2 #define QNSTGRAPHICSINTERFACE_H
3 
4 #include "qnstgraphicsentity.h"
5 #include "qnstgraphicsedge.h"
6 
8 {
9 public:
11 
13 
14  virtual void adjust(bool avoidCollision = true);
15 
16  bool isRefer();
17 
18  void setRefer(bool refer);
19 
20  virtual void updateToolTip();
21 
22  virtual void setProperties(const QMap<QString, QString> &props);
23 
24 protected:
25  virtual void draw(QPainter* painter) = 0;
26 
27  virtual void delineate(QPainterPath* painter) const = 0;
28 
29  virtual void move(QGraphicsSceneMouseEvent* event);
30 
31  virtual void resize(QGraphicsSceneMouseEvent* event);
32 
33 private:
34  void adjustToBorder();
35 
36  bool _isRefer;
37 };
38 
39 #endif // QNSTGRAPHICSINTERFACE_H