diff -r d85834ad8c54 -r 133e2ed6b9c5 linkablemapobj.h --- a/linkablemapobj.h Mon Aug 24 14:39:07 2009 +0000 +++ b/linkablemapobj.h Thu Sep 03 08:52:00 2009 +0000 @@ -5,13 +5,11 @@ #include "noteobj.h" #include "headingobj.h" #include "flagrowobj.h" -#include "treeitem.h" #define MAX_DEPTH 999 class VymModel; - - +class TreeItem; /*! \brief This class adds links to MapObj @@ -50,16 +48,13 @@ }; LinkableMapObj (); - LinkableMapObj (QGraphicsScene*); + LinkableMapObj (QGraphicsScene*, TreeItem *ti=NULL); LinkableMapObj (LinkableMapObj*); ~LinkableMapObj (); virtual void delLink(); virtual void init (); virtual void copy (LinkableMapObj*); - virtual void setTreeItem(TreeItem *); - virtual TreeItem* getTreeItem() const; - void setChildObj (LinkableMapObj*); virtual void setParObj (LinkableMapObj*); virtual void setParObjTmp (LinkableMapObj*,QPointF,int); // Only for moving Obj around @@ -146,6 +141,5 @@ QPointF relPos; // position relative to childPos of parent bool useRelPos; - TreeItem *treeItem; // Crossrefence to treemodel }; #endif