diff -r 6dc0a20031f7 -r 1b4d1ea6ea8c mapeditor.cpp --- a/mapeditor.cpp Wed Feb 04 16:33:16 2009 +0000 +++ b/mapeditor.cpp Fri Mar 06 15:02:58 2009 +0000 @@ -282,30 +282,41 @@ void MapEditor::testFunction1() { + TreeItem *cur=NULL; + TreeItem *prev=NULL; + int d; + cout << "ME::testFunction1 starting to walk the map...\n"; + while (model->next (cur,prev,d) ) + cout << "*** " <getHeading().toStdString()<getSelectedBranch(); //if (bo) model->moveAway (bo); //if (bo) bo->setLinkStyle (LinkableMapObj::Line); +/* // Displacement and animation of all non-mainbranches QPointF p; QPointF q; BranchObj *bo; - TreeItem *ti=model->first(); - while (ti) + TreeItem *cur=NULL; + TreeItem *prev=NULL; + int d; + while (cur) { - bo=(BranchObj*)(ti->getLMO()); + bo=(BranchObj*)(cur->getLMO()); - if (ti->depth() >0 && !bo->hasScrolledParent(bo) ) + if (cur->depth() >0 && !bo->hasScrolledParent(bo) ) { p=QPointF (qrand() %600-300, qrand () %600-300); bo->setRelPos(); q=bo->getRelPos(); model->startAnimation (bo,p, q); } - ti=model->next(); + model->next(cur,prev,d); } - +*/ /* TODO Hide hidden stuff temporary, maybe add this as regular function somewhere