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};
29 /*! Used to save relative position while map is not in QGraphicsView */
30 virtual void setRelPos(const QPointF&);
32 /*! Used to save absolute position while map is not in QGraphicsView */
33 virtual void setAbsPos(const QPointF&);
35 /*! Tell object to use e.g. absolute positioning for mapcenter.
36 Defaulst is MapItem::Unused */
37 void setPositionMode (PositionMode mode);
42 /*! Returns pointer to related LinkableMapObj in QGraphicsView */
43 virtual LinkableMapObj* getLMO();
45 /*! Set pointer to related LinkableMapObj in QGraphicsView */
46 virtual void setLMO (LinkableMapObj*);
48 /*! Initialize LinkableMapObj with data in MapItem */
49 virtual void initLMO();
51 /*! Return data as attributes for saving in XML */
52 virtual QString getAttr();