diff -r f688a9913724 -r 598768200cfa linkobj.h --- a/linkobj.h Mon Apr 18 06:17:00 2005 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,39 +0,0 @@ -#ifndef LINKOBJ_H -#define LINKOBJ_H - -#include "linkablemapobj.h" - -enum LinkState {undefinedLink,initLink,activeLink,deleteLink}; - -///////////////////////////////////////////////////////////////////////////// -class LinkObj:public MapObj { -public: - LinkObj (); - LinkObj (QCanvas*); - ~LinkObj (); - virtual void init (); - virtual void copy (LinkObj*); - void setBegin (BranchObj*); - void setEnd (BranchObj*); - void setEnd (QPoint); - bool activate (); // Sets pointers in branchObjects - void deactivate(); // removes those pointers - bool isUsed(); // true, if at least on branch uses it - void updateLink(); - BranchObj* otherBranch (BranchObj*); - void positionBBox(); - void calcBBoxSize(); - void setVisibility (bool); - void setVisibility (); - -private: - QCanvasLine *line; - BranchObj *beginBranch; - BranchObj *endBranch; - BranchObj *visBranch; // the "visible" part of a partially scrolled link - LinkState linkState; // init during drawing or active - QPoint beginPos; - QPoint endPos; -}; - -#endif