4 #include "linkablemapobj.h"
6 enum LinkState {undefinedLink,initLink,activeLink,deleteLink};
8 /////////////////////////////////////////////////////////////////////////////
9 class LinkObj:public MapObj {
15 virtual void copy (LinkObj*);
16 void setBegin (BranchObj*);
17 void setEnd (BranchObj*);
19 bool activate (); // Sets pointers in branchObjects
20 void deactivate(); // removes those pointers
21 bool isUsed(); // true, if at least on branch uses it
23 BranchObj* otherBranch (BranchObj*);
26 void setVisibility (bool);
27 void setVisibility ();
31 BranchObj *beginBranch;
33 BranchObj *visBranch; // the "visible" part of a partially scrolled link
34 LinkState linkState; // init during drawing or active