1.1 --- a/branchobj.cpp Wed Apr 25 16:02:54 2007 +0000
1.2 +++ b/branchobj.cpp Mon Jul 23 12:42:02 2007 +0000
1.3 @@ -697,6 +697,31 @@
1.4 return NULL;
1.5 }
1.6
1.7 +LinkableMapObj* BranchObj::findID (QString sid)
1.8 +{
1.9 + // Search branches
1.10 + LinkableMapObj *lmo;
1.11 + for (int i=0; i<branch.size(); ++i)
1.12 + {
1.13 + lmo=branch.at(i)->findID (sid);
1.14 + if (lmo != NULL) return lmo;
1.15 + }
1.16 +
1.17 + // Search myself
1.18 + if (sid==id) return this;
1.19 +
1.20 +/*
1.21 + // Search float images
1.22 + for (int i=0; i<floatimage.size(); ++i )
1.23 + if (floatimage.at(i)->inBox(p) &&
1.24 + (floatimage.at(i) != excludeLMO) &&
1.25 + floatimage.at(i)->getParObj()!= excludeLMO &&
1.26 + floatimage.at(i)->isVisibleObj()
1.27 + ) return floatimage.at(i);
1.28 +*/
1.29 + return NULL;
1.30 +}
1.31 +
1.32 void BranchObj::setHeading(QString s)
1.33 {
1.34 heading->setText(s); // set new heading