diff -r 2f002657dada -r 6e4b586aa88a mapcenterobj.cpp --- a/mapcenterobj.cpp Tue May 26 11:24:51 2009 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,73 +0,0 @@ -#include - -#include "floatimageobj.h" -#include "geometry.h" -#include "mapcenterobj.h" - -///////////////////////////////////////////////////////////////// -// MapCenterObj -///////////////////////////////////////////////////////////////// -MapCenterObj::MapCenterObj() : BranchObj () -{ -// cout << "Const MapCenterObj\n"; - init(); -} - -MapCenterObj::MapCenterObj(QGraphicsScene* s) : BranchObj (s) -{ -// cout << "Const MapCenterObj canvas="<setFont(font); - //FIXME-2 no treeitem yet: setDefAttr(MovedBranch); and already in BI::createMapObj ?!? - - frame->setFrameType (FrameObj::Rectangle); -} - - -void MapCenterObj::updateLink() -{ - // set childPos to middle of MapCenterObj - childPos.setX( clickBox.topLeft().x() + (int)(clickBox.width())/2 ); - childPos.setY( clickBox.topLeft().y() + (int)(clickBox.height())/2 ); - parPos=childPos; - for (int i=0; ibranchCount(); ++i) - treeItem->getBranchObjNum(i)->updateLink(); -} - -void MapCenterObj::updateRelPositions() -{ - if (repositionRequest) unsetAllRepositionRequests(); - - // update relative Positions of branches and floats - for (int i=0; ibranchCount(); ++i) - { - treeItem->getBranchObjNum(i)->setRelPos(); - treeItem->getBranchObjNum(i)->setOrientation(); - } - - for (int i=0; isetRelPos(); - - if (repositionRequest) reposition(); -} -