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