branchobj.cpp
changeset 93 31c6ce8efbc7
parent 89 9db3eaa21237
child 94 6783e13bb05d
     1.1 --- a/branchobj.cpp	Thu Mar 24 20:48:58 2005 +0000
     1.2 +++ b/branchobj.cpp	Thu Mar 24 21:10:38 2005 +0000
     1.3 @@ -202,17 +202,18 @@
     1.4  	if (off==0)
     1.5  	{
     1.6  		link2ParPos=false;
     1.7 -		parObj=o;
     1.8 +	//	parObj=o;
     1.9  	}	
    1.10  	else
    1.11  	{	
    1.12  		link2ParPos=true;
    1.13 -		if (off>0)
    1.14 -			parObj=o->getParObj();
    1.15 -		else	
    1.16 -			parObj=o->getParObj();
    1.17 -		parObj=o;
    1.18 +	//	if (off>0)
    1.19 +	//		parObj=o->getParObj();
    1.20 +	//	else	
    1.21 +	//		parObj=o->getParObj();
    1.22 +	//	parObj=o;
    1.23  	}		
    1.24 +	parObj=o;
    1.25  
    1.26  	depth=parObj->getDepth()+1;
    1.27  
    1.28 @@ -273,6 +274,7 @@
    1.29  		parObjTmpBuf=NULL;
    1.30  		depth=parObj->getDepth()+1;
    1.31  		setLinkStyle (getDefLinkStyle() );
    1.32 +		updateLink();
    1.33  	}		
    1.34  }
    1.35  
    1.36 @@ -380,7 +382,7 @@
    1.37  				fio->setVisibility (v);
    1.38  		}
    1.39      } // depth <= toDepth	
    1.40 -	move (absPos.x(), absPos.y() );
    1.41 +	//FIXME move (absPos.x(), absPos.y() );
    1.42  	requestReposition();
    1.43  }	
    1.44  
    1.45 @@ -569,7 +571,7 @@
    1.46  
    1.47  void BranchObj::positionBBox()
    1.48  {
    1.49 -	// FIXME testing
    1.50 +	// FIXME testing (optimization)
    1.51  	/*
    1.52  	QString h=getHeading();
    1.53  	if (!h.isEmpty())
    1.54 @@ -761,7 +763,7 @@
    1.55  	} else
    1.56  		areaAttr="";
    1.57  	
    1.58 -    s=beginElement ("branch" +scrolledAttr +posAttr +urlAttr +vymLinkAttr +frameAttr +areaAttr);
    1.59 +    s=beginElement ("branch" +scrolledAttr +posAttr +urlAttr +vymLinkAttr +frameAttr +areaAttr );
    1.60      incIndent();
    1.61  
    1.62  	// save heading
    1.63 @@ -891,6 +893,7 @@
    1.64  		newbo->setVisibility (false);
    1.65  	else	
    1.66  		newbo->setVisibility(visible);
    1.67 +	newbo->updateLink();	
    1.68  	requestReposition();
    1.69  	return newbo;
    1.70  }
    1.71 @@ -907,6 +910,7 @@
    1.72  		newbo->setVisibility (false);
    1.73  	else	
    1.74  		newbo->setVisibility(bo->visible);
    1.75 +	newbo->updateLink();	
    1.76  	requestReposition();
    1.77  	return newbo;
    1.78  }