4 #include "linkablemapobj.h"
6 enum XLinkState {undefinedXLink,initXLink,activeXLink,deleteXLink};
8 /////////////////////////////////////////////////////////////////////////////
9 class XLinkObj:public MapObj {
12 XLinkObj (QGraphicsScene*);
15 virtual void copy (XLinkObj*);
16 void setBegin (BranchObj*);
17 BranchObj* getBegin();
18 void setEnd (BranchObj*);
19 void setEnd (QPointF);
21 void setColor(QColor);
25 bool activate (); // Sets pointers in branchObjects
26 void deactivate(); // removes those pointers
27 bool isUsed(); // true, if at least on branch uses it
29 BranchObj* otherBranch (BranchObj*);
32 void setVisibility (bool);
33 void setVisibility ();
41 QGraphicsLineItem *line;
42 QGraphicsPolygonItem *poly;
43 BranchObj *beginBranch;
45 BranchObj *visBranch; // the "visible" part of a partially scrolled link
46 XLinkState xLinkState; // init during drawing or active