1.1 --- a/mapitem.h Wed Apr 29 18:46:31 2009 +0000
1.2 +++ b/mapitem.h Thu Apr 30 11:52:49 2009 +0000
1.3 @@ -3,16 +3,19 @@
1.4
1.5 #include <QPointF>
1.6
1.7 +#include "xmlobj.h"
1.8 +
1.9 class LinkableMapObj;
1.10
1.11 /*! /brief MapItem is used to store information of MapObj and inherited
1.12 classes.
1.13
1.14 - This is done even while no QGraphicsView is availabe, e.g. on a
1.15 - mobile device.
1.16 + This is done even while no QGraphicsView is availabe. This is useful
1.17 + if e.g. on a small device like a cellphone te full map is not used,
1.18 + but just a treeview instead.
1.19 */
1.20
1.21 -class MapItem
1.22 +class MapItem: public XMLObj
1.23 {
1.24 protected:
1.25 enum PositionMode {Unused,Absolute,Relative};
1.26 @@ -39,6 +42,9 @@
1.27
1.28 /*! Initialize LinkableMapObj with data in MapItem */
1.29 virtual void initLMO();
1.30 +
1.31 + /*! Return data as attributes for saving in XML */
1.32 + virtual QString getAttr();
1.33 };
1.34
1.35