floatobj.cpp
changeset 219 a860efcaac4c
parent 173 309609406650
child 223 e03b393e4e51
     1.1 --- a/floatobj.cpp	Tue Jan 03 09:44:41 2006 +0000
     1.2 +++ b/floatobj.cpp	Thu Feb 23 16:39:16 2006 +0000
     1.3 @@ -38,8 +38,6 @@
     1.4  void FloatObj::init () 
     1.5  {
     1.6      setChildObj(this);
     1.7 -	relPos=getRandPos();
     1.8 -	useOrientation=true;
     1.9  	floatExport=true;
    1.10  	zPlane=Z_ICON;
    1.11  	setLinkStyle (StyleParabel);
    1.12 @@ -49,44 +47,9 @@
    1.13  void FloatObj::copy (FloatObj* other)
    1.14  {
    1.15  	LinkableMapObj::copy (other);
    1.16 -	relPos=other->relPos;
    1.17 -	useOrientation=other->useOrientation;
    1.18  	setVisibility (other->visible);
    1.19  }
    1.20  
    1.21 -void FloatObj::setRelPos()
    1.22 -{
    1.23 -	if (useOrientation)
    1.24 -	{
    1.25 -		if (parObj->getOrientation()==OrientLeftOfCenter)
    1.26 -			relPos.setX ( parObj->x() +parObj->width() - bbox.width() -absPos.x());
    1.27 -		else	
    1.28 -			relPos.setX (absPos.x() - parObj->x() );
    1.29 -	}
    1.30 -	else
    1.31 -		relPos.setX (absPos.x() - parObj->x() );
    1.32 -	relPos.setY (absPos.y() - parObj->y() );
    1.33 -	if (parObj)
    1.34 -	{	
    1.35 -		parObj->calcBBoxSize();
    1.36 -		parObj->requestReposition();
    1.37 -	}	
    1.38 -}
    1.39 -
    1.40 -void FloatObj::setRelPos(const QPoint &p)
    1.41 -{
    1.42 -	relPos=p;
    1.43 -	if (parObj)
    1.44 -	{	parObj->calcBBoxSize();
    1.45 -		parObj->requestReposition();
    1.46 -	}	
    1.47 -}
    1.48 -
    1.49 -QPoint FloatObj::getRelPos ()
    1.50 -{
    1.51 -	return relPos;
    1.52 -}
    1.53 -
    1.54  void FloatObj::setZ(const int &i)
    1.55  {
    1.56  	zPlane=i;
    1.57 @@ -97,16 +60,6 @@
    1.58  	return zPlane;
    1.59  }
    1.60  
    1.61 -
    1.62 -void FloatObj::setUseOrientation (const bool &b)
    1.63 -{	
    1.64 -	if (useOrientation!=b)
    1.65 -	{
    1.66 -		useOrientation=b;
    1.67 -		requestReposition();
    1.68 -	}	
    1.69 -}
    1.70 -
    1.71  void FloatObj::setFloatExport(const bool& b)
    1.72  {
    1.73  	floatExport=b;