branchobj.cpp
changeset 89 9db3eaa21237
parent 83 e90f5bef70c8
child 93 31c6ce8efbc7
     1.1 --- a/branchobj.cpp	Mon Jan 31 09:47:43 2005 +0000
     1.2 +++ b/branchobj.cpp	Tue Feb 08 14:07:19 2005 +0000
     1.3 @@ -181,6 +181,11 @@
     1.4  	return floatimage.count();
     1.5  }
     1.6  
     1.7 +int BranchObj::countLinks()
     1.8 +{
     1.9 +	return link.count();
    1.10 +}
    1.11 +
    1.12  void BranchObj::setParObjTmp(LinkableMapObj* lmo, QPoint m, int off)
    1.13  {
    1.14  	// Temporary link to lmo
    1.15 @@ -807,6 +812,14 @@
    1.16  	return link.count();
    1.17  }
    1.18  
    1.19 +BranchObj* BranchObj::linkTargetAt (int i)
    1.20 +{
    1.21 +	if (link.at(i))
    1.22 +		return link.at(i)->otherBranch (this);
    1.23 +	else
    1.24 +		return NULL;
    1.25 +}
    1.26 +
    1.27  LinkableMapObj* BranchObj::addFloatImage ()
    1.28  {
    1.29  	FloatImageObj *newfi=new FloatImageObj (canvas,this);