linkablemapobj.h
changeset 790 133e2ed6b9c5
parent 786 6269016c9905
child 791 f1006de05c54
     1.1 --- a/linkablemapobj.h	Mon Aug 24 14:39:07 2009 +0000
     1.2 +++ b/linkablemapobj.h	Thu Sep 03 08:52:00 2009 +0000
     1.3 @@ -5,13 +5,11 @@
     1.4  #include "noteobj.h"
     1.5  #include "headingobj.h"
     1.6  #include "flagrowobj.h"
     1.7 -#include "treeitem.h"
     1.8  
     1.9  #define MAX_DEPTH 999
    1.10  
    1.11  class VymModel;
    1.12 -
    1.13 -
    1.14 +class TreeItem;
    1.15  
    1.16  /*! \brief This class adds links to MapObj 
    1.17  
    1.18 @@ -50,16 +48,13 @@
    1.19  	};
    1.20  
    1.21      LinkableMapObj ();
    1.22 -    LinkableMapObj (QGraphicsScene*);
    1.23 +    LinkableMapObj (QGraphicsScene*, TreeItem *ti=NULL);
    1.24      LinkableMapObj (LinkableMapObj*);
    1.25      ~LinkableMapObj ();
    1.26  	virtual void delLink();
    1.27      virtual void init ();
    1.28      virtual void copy (LinkableMapObj*);
    1.29  
    1.30 -	virtual void setTreeItem(TreeItem *);
    1.31 -	virtual TreeItem* getTreeItem() const;
    1.32 -
    1.33      void setChildObj (LinkableMapObj*);
    1.34      virtual void setParObj (LinkableMapObj*);
    1.35      virtual void setParObjTmp (LinkableMapObj*,QPointF,int);	// Only for moving Obj around
    1.36 @@ -146,6 +141,5 @@
    1.37  	QPointF	 relPos;				// position relative to childPos of parent
    1.38  	bool useRelPos;
    1.39  
    1.40 -	TreeItem *treeItem;				// Crossrefence to treemodel
    1.41  };
    1.42  #endif