1.1 --- a/mapcenterobj.cpp Wed May 20 15:40:14 2009 +0000
1.2 +++ b/mapcenterobj.cpp Tue May 26 11:23:44 2009 +0000
1.3 @@ -19,13 +19,6 @@
1.4 init();
1.5 }
1.6
1.7 -MapCenterObj::MapCenterObj(QGraphicsScene* s,VymModel *m) : BranchObj (s)
1.8 -{
1.9 -// cout << "Const MapCenterObj canvas="<<s<<"\n";
1.10 - model=m;
1.11 - init();
1.12 -}
1.13 -
1.14 MapCenterObj::~MapCenterObj()
1.15 {
1.16 // cout << "Destr MapCenterObj\n";
1.17 @@ -45,41 +38,11 @@
1.18 // TODO this should be done in TextObj later...
1.19 //QFont font ("Sans Serif,16,-1,5,50,0,0,0,0,0");
1.20 //heading->setFont(font);
1.21 - //FIXME-2 no treeitem yet: setDefAttr(MovedBranch);
1.22 + //FIXME-2 no treeitem yet: setDefAttr(MovedBranch); and already in BI::createMapObj ?!?
1.23
1.24 frame->setFrameType (FrameObj::Rectangle);
1.25 }
1.26
1.27 -void MapCenterObj::move (double x, double y)
1.28 -{
1.29 - BranchObj::move(x,y);
1.30 -}
1.31 -
1.32 -void MapCenterObj::move (QPointF absPos)
1.33 -{
1.34 - BranchObj::move(absPos);
1.35 -}
1.36 -
1.37 -void MapCenterObj::moveBy (double x, double y)
1.38 -{
1.39 - BranchObj::moveBy(x,y);
1.40 -}
1.41 -
1.42 -void MapCenterObj::moveAll (double x, double y)
1.43 -{
1.44 - // Get rel. position
1.45 - double dx=x-absPos.x();
1.46 - double dy=y-absPos.y();
1.47 -
1.48 - // Move myself and branches
1.49 - moveAllBy (dx,dy);
1.50 -}
1.51 -
1.52 -void MapCenterObj::moveAllBy (double dx, double dy)
1.53 -{
1.54 - // Move myself and children
1.55 - BranchObj::moveBy(dx,dy);
1.56 -}
1.57
1.58 void MapCenterObj::updateLink()
1.59 {