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};
30 /*! Used to save relative position while map is not in QGraphicsView */
31 virtual void setRelPos(const QPointF&);
33 /*! Used to save absolute position while map is not in QGraphicsView */
34 virtual void setAbsPos(const QPointF&);
36 /*! Tell object to use e.g. absolute positioning for mapcenter.
37 Defaulst is MapItem::Unused */
38 void setPositionMode (PositionMode mode);
43 /*! Returns pointer to related LinkableMapObj in QGraphicsView */
44 virtual LinkableMapObj* getLMO();
46 /*! Set pointer to related LinkableMapObj in QGraphicsView */
47 virtual void setLMO (LinkableMapObj*);
49 /*! Initialize LinkableMapObj with data in MapItem */
50 virtual void initLMO();