10 /*! /brief MapItem is used to store information of MapObj and inherited
13 This is done even while no QGraphicsView is availabe. This is useful
14 if e.g. on a small device like a cellphone te full map is not used,
15 but just a treeview instead.
18 class MapItem: public XMLObj
21 enum PositionMode {Unused,Absolute,Relative};
28 /*! Used to save relative position while map is not in QGraphicsView */
29 virtual void setRelPos(const QPointF&);
31 /*! Used to save absolute position while map is not in QGraphicsView */
32 virtual void setAbsPos(const QPointF&);
37 /*! Returns pointer to related LinkableMapObj in QGraphicsView */
38 virtual LinkableMapObj* getLMO();
40 /*! Set pointer to related LinkableMapObj in QGraphicsView */
41 virtual void setLMO (LinkableMapObj*);
43 /*! Initialize LinkableMapObj with data in MapItem */
44 virtual void initLMO();
46 /*! Return data as attributes for saving in XML */
47 virtual QString getAttr();