author | insilmaril |
Wed, 09 Jun 2010 13:14:08 +0000 | |
changeset 847 | 43268373032d |
parent 791 | f1006de05c54 |
permissions | -rw-r--r-- |
1 #ifndef XLINKOBJ_H
2 #define XLINKOBJ_H
4 #include "mapobj.h"
5 #include "xlink.h"
7 class BranchObj;
8 class BranchItem;
10 /*! \brief xlinks are used to draw arbitrary connections between branches (BranchObj) in the map. */
12 /////////////////////////////////////////////////////////////////////////////
13 class XLinkObj:public MapObj {
14 public:
15 XLinkObj (QGraphicsScene* scene, Link* l );
16 virtual ~XLinkObj ();
17 virtual void init ();
18 virtual void setEnd (QPointF);
19 void updateXLink();
20 void positionBBox();
21 void calcBBoxSize();
22 void setVisibility (bool);
23 void setVisibility ();
25 private:
26 static int arrowSize;
27 QPen pen;
28 QGraphicsLineItem *line;
29 QGraphicsPolygonItem *poly;
30 QPointF beginPos;
31 QPointF endPos;
33 BranchItem *visBranch; // the "visible" part of a partially scrolled li
34 Link *link;
35 };
37 #endif