diff -r 4258723b534c -r 54440f49b869 branchobj.cpp --- a/branchobj.cpp Mon Apr 24 10:05:09 2006 +0000 +++ b/branchobj.cpp Mon May 08 13:26:08 2006 +0000 @@ -1128,6 +1128,15 @@ return branch.at(i); } +bool BranchObj::canMoveBranchUp() +{ + if (!parObj) return false; + BranchObj* par=(BranchObj*)parObj; + if (this==par->getFirstBranch()) + return false; + else + return true; +} BranchObj* BranchObj::moveBranchUp(BranchObj* bo1) // move a branch up (modify myself) { @@ -1143,6 +1152,16 @@ return branch.at(i); } +bool BranchObj::canMoveBranchDown() +{ + if (!parObj) return false; + BranchObj* par=(BranchObj*)parObj; + if (this==par->getLastBranch()) + return false; + else + return true; +} + BranchObj* BranchObj::moveBranchDown(BranchObj* bo1) { savePosInAngle();