diff -r 309609406650 -r 160459d924a1 floatobj.cpp --- a/floatobj.cpp Tue Jan 03 09:44:41 2006 +0000 +++ b/floatobj.cpp Thu Feb 23 08:37:39 2006 +0000 @@ -38,8 +38,6 @@ void FloatObj::init () { setChildObj(this); - relPos=getRandPos(); - useOrientation=true; floatExport=true; zPlane=Z_ICON; setLinkStyle (StyleParabel); @@ -49,44 +47,9 @@ void FloatObj::copy (FloatObj* other) { LinkableMapObj::copy (other); - relPos=other->relPos; - useOrientation=other->useOrientation; setVisibility (other->visible); } -void FloatObj::setRelPos() -{ - if (useOrientation) - { - if (parObj->getOrientation()==OrientLeftOfCenter) - relPos.setX ( parObj->x() +parObj->width() - bbox.width() -absPos.x()); - else - relPos.setX (absPos.x() - parObj->x() ); - } - else - relPos.setX (absPos.x() - parObj->x() ); - relPos.setY (absPos.y() - parObj->y() ); - if (parObj) - { - parObj->calcBBoxSize(); - parObj->requestReposition(); - } -} - -void FloatObj::setRelPos(const QPoint &p) -{ - relPos=p; - if (parObj) - { parObj->calcBBoxSize(); - parObj->requestReposition(); - } -} - -QPoint FloatObj::getRelPos () -{ - return relPos; -} - void FloatObj::setZ(const int &i) { zPlane=i; @@ -97,16 +60,6 @@ return zPlane; } - -void FloatObj::setUseOrientation (const bool &b) -{ - if (useOrientation!=b) - { - useOrientation=b; - requestReposition(); - } -} - void FloatObj::setFloatExport(const bool& b) { floatExport=b;