author | insilmaril |
Fri Oct 02 14:31:03 2009 +0000 (2009-10-02) | |
changeset 803 | 338ebdc9b947 |
parent 790 | 133e2ed6b9c5 |
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