diff -r 9771028de303 -r 9db3eaa21237 branchobj.cpp --- a/branchobj.cpp Mon Jan 31 09:47:43 2005 +0000 +++ b/branchobj.cpp Tue Feb 08 14:07:19 2005 +0000 @@ -181,6 +181,11 @@ return floatimage.count(); } +int BranchObj::countLinks() +{ + return link.count(); +} + void BranchObj::setParObjTmp(LinkableMapObj* lmo, QPoint m, int off) { // Temporary link to lmo @@ -807,6 +812,14 @@ return link.count(); } +BranchObj* BranchObj::linkTargetAt (int i) +{ + if (link.at(i)) + return link.at(i)->otherBranch (this); + else + return NULL; +} + LinkableMapObj* BranchObj::addFloatImage () { FloatImageObj *newfi=new FloatImageObj (canvas,this);