diff -r 192e1392ba6a -r 12958f987bcf branchobj.cpp --- a/branchobj.cpp Wed Jul 16 10:44:44 2008 +0000 +++ b/branchobj.cpp Wed Jul 16 10:46:14 2008 +0000 @@ -21,7 +21,7 @@ BranchObj* BranchObj::itFirst=NULL; -BranchObj::BranchObj () :OrnamentedObj() +BranchObj::BranchObj () :OrnamentedObj() // FIXME needed at all? { // cout << "Const BranchObj ()\n"; setParObj (this); @@ -103,7 +103,7 @@ branch.clear(); for (int i=0; ibranch.size(); ++i) // Make deep copy of b - // Because addBranch again calls copy for the childs, + // Because addBranch again calls copy for the children, // Those will get a deep copy, too addBranch(other->branch.at(i) ); @@ -214,7 +214,7 @@ if (off==0) { // new parent is just a branch, link to it - QRectF t=o->getBBoxSizeWithChilds(); + QRectF t=o->getBBoxSizeWithChildren(); if (o->getLastBranch()) y=t.y() + t.height() ; else @@ -343,10 +343,10 @@ standardFlags->setVisibility(v); LinkableMapObj::setVisibility (v); - // Only change childs, if I am not scrolled + // Only change children, if I am not scrolled if (!scrolled && (depth < toDepth)) { - // Now go recursivly through all childs + // Now go recursivly through all children int i; for (i=0; isetVisibility (v,toDepth); @@ -370,9 +370,9 @@ // Overloaded from LinkableMapObj // BranchObj can use color of heading - if (mapEditor) + if (model) { - if (mapEditor->getMapLinkColorHint()==HeadingColor) + if (model->getMapLinkColorHint()==HeadingColor) LinkableMapObj::setLinkColor (heading->getColor() ); else LinkableMapObj::setLinkColor (); @@ -409,13 +409,13 @@ // no itLast, we are just beginning if (bo) { - // we have childs, return first one + // we have children, return first one itLast=this; return bo; } else { - // No childs, so there is no next + // No children, so there is no next itLast=this; return NULL; } @@ -426,12 +426,12 @@ { // We come from parent if (bo) { - // there are childs, go there + // there are children, go there itLast=this; return bo; } else - { // no childs, try to go up again + { // no children, try to go up again if (po) { // go back to parent and try to find next there @@ -450,17 +450,17 @@ } } - // We don't come from parent, but from brother or childs + // We don't come from parent, but from brother or children - // Try to find last child, where we came from, in my own childs + // Try to find last child, where we came from, in my own children bool searching=true; int i=0; while (i