linkablemapobj.h
changeset 755 ed5b407975b3
parent 754 db0ec4bcf416
child 757 c6908bc17d78
     1.1 --- a/linkablemapobj.h	Mon Apr 20 10:42:05 2009 +0000
     1.2 +++ b/linkablemapobj.h	Thu Apr 23 12:15:31 2009 +0000
     1.3 @@ -19,7 +19,7 @@
     1.4  */
     1.5  
     1.6  class LinkableMapObj:public QObject, public MapObj {
     1.7 -	Q_OBJECT
     1.8 +	Q_OBJECT		// FIXME-3 really needed here?
     1.9  public:
    1.10  	/*! Orientation of an object depends on the position relative to the parent */
    1.11  	enum Orientation {
    1.12 @@ -101,7 +101,6 @@
    1.13      QPointF getChildPos();					// returns pos where children dock
    1.14      QPointF getParPos();						// returns pos where parents dock
    1.15      Orientation getOrientation();			// get orientation
    1.16 -    virtual int getDepth();					// return depth
    1.17  	virtual QPointF getRandPos();			// make randomised position
    1.18  
    1.19  	virtual void reposition();
    1.20 @@ -126,11 +125,10 @@
    1.21  	VymModel* model;												
    1.22      Orientation orientation;     
    1.23      qreal linkwidth;				// width of a link
    1.24 -    int depth;						// depth: undef=-1 mapCenter=0 branch=1..n
    1.25  	QRectF bboxTotal;				// bounding box including children
    1.26  
    1.27      LinkableMapObj* childObj;
    1.28 -    LinkableMapObj* parObj;
    1.29 +    LinkableMapObj* parObj;		// FIXME-2 really still needed? Better get from TreeItem
    1.30      LinkableMapObj* parObjTmpBuf;	// temporary buffer the original parent
    1.31      qreal bottomlineY;              // vertical offset of dockpos to pos
    1.32